Commit f0fd0cbd authored by wildfirecode13's avatar wildfirecode13

1

parent 07924b3a
{
"name": "",
"version": "1.0.0",
"main": "",
"license": "MIT",
"dependencies": {
"@tbminiapp/lottie-miniapp": "0.0.3"
}
}
{
"name": "spark-project-create",
"name": "hellocanvas",
"version": "0.1.0",
"private": true,
"scripts": {
......
......@@ -4,5 +4,5 @@ module.exports = {
TEMP_DIR: "./.temp",
ENTRY: "src/app.jsx",
TEMPLATE: "./public/index.html",
MOCK_STATUS: true
MOCK_STATUS: false
};
......@@ -2,6 +2,7 @@ let projectId = window.CFG.projectId || '';
const apiCfg = {
getRule:`/projectx/${projectId}/projectRule.query`,
getRule2:`/projectx/${projectId}/projectRule2.query`,
doJoin: {
uri: `/projectx/${projectId}/join.do`,
method: "post"
......
......@@ -7,9 +7,17 @@ import MD from './MD';
MD();
//此处为spark-cli动态生成
import Pagefrontpage from "./pages/pagefrontpage/pagefrontpage.jsx";
import API from "./api";
class App extends Component {
render() {
console.log('API.getRule(')
API.getRule({ orderId: 1 }).then((data)=>{
console.log('getRule',data)
})
return (
<Pagefrontpage></Pagefrontpage>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment