first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/api/http.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/http.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js"),t=require("../utils/fun.js"),o={development:"https://apidjk.jitujt.com",production:"https://apidjk.jitujt.com"};exports.http=({url:n,params:i,method:r})=>new Promise(((a,s)=>{let c=e.index.getStorageSync("Authorization")||"",d={Authorization:c,"Tenant-id":"134"};e.index.request({url:o.production+n,data:i||{},method:r||"POST",header:d,success:o=>{const n=o.data;if(401==n.code||401==o.statusCode)return e.index.removeStorageSync("Authorization"),e.index.removeStorageSync("userInfo"),e.index.showModal({title:"提示",content:(c?"登录失效":"你还未登录")+",是否前往登录?",success:function(t){t.confirm?e.index.navigateTo({url:"/pages/login/login"}):t.cancel&&(e.index.clearStorageSync(),console.log("用户点击取消"))}}),void s(n);0===n.code?a(n.data||null):(t.toast(n.msg),s(n))},fail:e=>{s(e)}})})),exports.proxyObj=o;
|
||||
1
unpackage/dist/build/mp-weixin/api/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./modules/users.js"),s=require("./modules/goods.js"),r=require("./modules/config.js"),i=require("./modules/order.js"),o={...e.api,...s.api,...r.api,...i.api};exports.api=o;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/config.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/config.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),a={banner:(a={})=>p.http({url:"/app-api/djk/app/banner/page",params:a,method:"GET"}),noticePage:(a={})=>p.http({url:"/app-api/djk/app/notice/page",params:a,method:"GET"}),noticeCatePage:(a={})=>p.http({url:"/app-api/djk/app/notice-category/page",params:a,method:"GET"}),noticeInfo:(a={})=>p.http({url:"/app-api/djk/app/notice/get",params:a,method:"GET"})};exports.api=a;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/goods.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/goods.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),a={goodsPage:(a={})=>p.http({url:"/app-api/djk/app/goods/page",params:a,method:"GET"}),goodsInfo:(a={})=>p.http({url:"/app-api/djk/app/goods/get",params:a,method:"GET"}),goodsCate:(a={})=>p.http({url:"/app-api/djk/app/goods/category/page",params:a,method:"GET"})};exports.api=a;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/order.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/order.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),r={orderCreate:(r={})=>p.http({url:"/app-api/djk/app/order/create",params:r,method:"POST"}),orderPage:(r={})=>p.http({url:"/app-api/djk/app/order/page",params:r,method:"GET"}),orderInfo:(r={})=>p.http({url:"/app-api/djk/app/order/get",params:r,method:"GET"})};exports.api=r;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/users.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/users.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../http.js"),p={loginApi:(p={})=>e.http({url:"/app-api/member/auth/login",params:p,method:"POST"}),smsLoginApi:(p={})=>e.http({url:"/app-api/member/auth/sms-login",params:p,method:"POST"}),registerApi:(p={})=>e.http({url:"/app-api/member/auth/register",params:p,method:"POST"}),smsCode:(p={})=>e.http({url:"/app-api/member/auth/send-sms-code",params:p,method:"POST"}),usersGetInfo:(p={})=>e.http({url:"/app-api/member/user/get",params:p,method:"GET"}),usersGetInfoTeam:(p={})=>e.http({url:"/app-api/member/user/getPage",params:p,method:"GET"}),usersUpdate:(p={})=>e.http({url:"/app-api/member/user/update",params:p,method:"PUT"}),addressPage:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/page",params:p,method:"GET"}),addressAdd:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/create",params:p,method:"POST"}),addressUp:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/update",params:p,method:"PUT"}),addressInfo:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/get",params:p,method:"GET"}),addressDel:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/delete?id="+p.id,params:p,method:"DELETE"}),moneyRecord:(p={})=>e.http({url:"/app-api/member/money-record/djk/page",params:p,method:"GET"}),updateMobile:(p={})=>e.http({url:"/app-api/member/user/update-mobile",params:p,method:"PUT"}),rewardReport:(p={})=>e.http({url:"/app-api/member/money-record/djk/rewardReport",params:p,method:"GET"}),getTeamMonthlyPerformanceAward:(p={})=>e.http({url:"/app-api/member/money-record/djk/getTeamMonthlyPerformanceAward",params:p,method:"GET"}),transfer2other:(p={})=>e.http({url:"/app-api/member/user/pay/transfer2other",params:p,method:"POST"})};exports.api=p;
|
||||
Reference in New Issue
Block a user