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", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
......
...@@ -4,5 +4,5 @@ module.exports = { ...@@ -4,5 +4,5 @@ module.exports = {
TEMP_DIR: "./.temp", TEMP_DIR: "./.temp",
ENTRY: "src/app.jsx", ENTRY: "src/app.jsx",
TEMPLATE: "./public/index.html", TEMPLATE: "./public/index.html",
MOCK_STATUS: true MOCK_STATUS: false
}; };
...@@ -2,6 +2,7 @@ let projectId = window.CFG.projectId || ''; ...@@ -2,6 +2,7 @@ let projectId = window.CFG.projectId || '';
const apiCfg = { const apiCfg = {
getRule:`/projectx/${projectId}/projectRule.query`, getRule:`/projectx/${projectId}/projectRule.query`,
getRule2:`/projectx/${projectId}/projectRule2.query`,
doJoin: { doJoin: {
uri: `/projectx/${projectId}/join.do`, uri: `/projectx/${projectId}/join.do`,
method: "post" method: "post"
......
...@@ -7,9 +7,17 @@ import MD from './MD'; ...@@ -7,9 +7,17 @@ import MD from './MD';
MD(); MD();
//此处为spark-cli动态生成 //此处为spark-cli动态生成
import Pagefrontpage from "./pages/pagefrontpage/pagefrontpage.jsx"; import Pagefrontpage from "./pages/pagefrontpage/pagefrontpage.jsx";
import API from "./api";
class App extends Component { class App extends Component {
render() { render() {
console.log('API.getRule(')
API.getRule({ orderId: 1 }).then((data)=>{
console.log('getRule',data)
})
return ( return (
<Pagefrontpage></Pagefrontpage> <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