1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-test-index"],{"25c4":function(e,t,n){"use strict";n.r(t);var o=n("3537"),a=n("6f2b");for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);n("f8f8");var r=n("f0c5"),i=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"06c5c134",null,!1,o["a"],void 0);t["default"]=i.exports},3537:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"container"},[n("navBar",{attrs:{title:"接口测试",back:!0,color:"white",background:"green"}}),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.wxAuthLogin.apply(void 0,arguments)}}},[e._v("微信授权登陆")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getUserInfo.apply(void 0,arguments)}}},[e._v("获取用户信息")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.updatetUserInfo.apply(void 0,arguments)}}},[e._v("更新用户信息")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.updatetUserInfo.apply(void 0,arguments)}}},[e._v("更新用户信息")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getIndexConfig.apply(void 0,arguments)}}},[e._v("获取首页配置")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.postOrder.apply(void 0,arguments)}}},[e._v("提交订单")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getOrderDetail.apply(void 0,arguments)}}},[e._v("获取订单详细")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getMallCat.apply(void 0,arguments)}}},[e._v("获取商城分类数据")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getMall.apply(void 0,arguments)}}},[e._v("获取商城数据")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getSerDoc.apply(void 0,arguments)}}},[e._v("获取服务文档数据")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getPricePercent.apply(void 0,arguments)}}},[e._v("获取各个身份的价格百分比")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getSerBack.apply(void 0,arguments)}}},[e._v("获取我的售后保障")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getSerStep.apply(void 0,arguments)}}},[e._v("获取我的服务流程")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getSerBackGoods.apply(void 0,arguments)}}},[e._v("获取我的售后商品")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getSerBackCon.apply(void 0,arguments)}}},[e._v("获取我的售后联系")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.postInvite.apply(void 0,arguments)}}},[e._v("提交邀请")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getMyInvite.apply(void 0,arguments)}}},[e._v("获取我的邀请")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addInvite.apply(void 0,arguments)}}},[e._v("添加邀请")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addColl.apply(void 0,arguments)}}},[e._v("添加收藏")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelColl.apply(void 0,arguments)}}},[e._v("取消收藏")]),n("v-uni-button",{on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.getActGoods.apply(void 0,arguments)}}},[e._v("获取活动商品")])],1)},a=[]},"531c":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.wxAuthLoginReq=t.updateUserInfoReq=t.submitFeedbackReq=t.postOrderReq=t.postInviteReq=t.getWxQrCodeReq=t.getUserPhone=t.getUserInfoReq=t.getServerDataReq=t.getSerStepReq=t.getSerDocReq=t.getSerBackReq=t.getSerBackGoodsReq=t.getSerBackConReq=t.getPricePercentReq=t.getOrderDetailReq=t.getMyInviteReq=t.getMyGoodsDetailReq=t.getMallReq=t.getMallCatReq=t.getInviteDetailBg=t.getIndexTopPics=t.getIndexConfigReq=t.getHomeDataNextReq=t.getGoodsPriceReq=t.getConfigTextByTypeReq=t.getConfigTextByIdReq=t.getChangeStepReq=t.getAwardDataReq=t.getAfterSaleCon=t.getActivityDataReq=t.getActivityDataDetailReq=t.cancelCollReq=t.addInviteReq=t.addCollReq=t.addAward=void 0,n("d3b7"),n("159b"),n("b64b"),n("99af");var o=uni.$u.http;t.getAfterSaleCon=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/bindingAfterSale",e,t)};t.getIndexTopPics=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/bindingAfterSale",e,t)};t.wxAuthLoginReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/auth/mnplogin",e,t)};t.getUserInfoReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getUserInfo",e,t)};t.getActivityDataReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/getActivityData",e,t)};t.updateUserInfoReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/updateUserInfo",e,t)};t.getInviteDetailBg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/invite/getSharePicTrue",e,t)};t.getUserPhone=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/invite/getUserPhone",e,t)};t.addAward=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/invite/addAward",e,t)};t.getIndexConfigReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/getHomeData",e,t)};t.getHomeDataNextReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/getHomeDataNext";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getActivityDataDetailReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/users/getActivityDataDetail";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.postOrderReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/order/submitOrder",e,t)};t.getOrderDetailReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/order/getOrderDetail";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getMallCatReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/goods/getClassifyData";return e&&Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getMallReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/goods/getGoodsData";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getSerDocReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/server/getServerData",e,t)};t.getPricePercentReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/common/getPriceConfig",e,t)};t.getSerBackReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getMyAfterSaleData",e,t)};t.getSerStepReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getMyServiceProcess",e,t)};t.getChangeStepReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getRenewFlow",e,t)};t.getSerBackGoodsReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/users/getMyAfterSaleGoods";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getSerBackConReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getMyAfterSaleContact",e,t)};t.postInviteReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/invite/submitInviteData",e,t)};t.getMyInviteReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/invite/getMyInviteData";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.addInviteReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/invite/addInvite",e,t)};t.addCollReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/addCollect",e,t)};t.cancelCollReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/cancelCollect",e,t)};t.getGoodsPriceReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/goods/getGoodsPrice",e,t)};t.getServerDataReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/server/getServerData",e,t)};t.submitFeedbackReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/users/submitFeedback",e,t)};t.getAwardDataReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.get("/api/users/getAwardData",e,t)};t.getConfigTextByTypeReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/common/getConfigTextByType";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getWxQrCodeReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/common/getWxQrCode",e,t)};t.getConfigTextByIdReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/common/getConfigTextById";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)};t.getMyGoodsDetailReq=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/api/goods/getGoodsDetail";return Object.keys(e).forEach((function(t,o){n+=0==o?"?".concat(t,"=").concat(e[t]):"&".concat(t,"=").concat(e[t])})),console.log("处理后的apiUrl",n),o.get(n,e,t)}},"68fe":function(e,t,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("c7eb")),c=o(n("1da1")),r=n("531c"),i={data:function(){return{}},methods:{wxAuthLogin:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.wxAuthLoginReq)({code:"0b3nl20w3x5lh13zH53w3HRKX02nl20H"});case 2:t=e.sent,0==t.code?(console.log("微信授权登陆返回值:",t),uni.setStorageSync("token",t.data.token)):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getUserInfo:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getUserInfoReq)();case 2:t=e.sent,0==t.code?console.log("获取用户信息返回值:",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},updatetUserInfo:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.updateUserInfoReq)({nickname:"测试昵称",head:"https://himg.bdimg.com/sys/portraitn/item/public.1.7bbfbe74.qTDof1r_zukwKzMF2A-cRQ",phone:"15609038521",sex:1,name:"李万涛",birthday:"1999-01-03"});case 2:t=e.sent,0==t.code?console.log("更新用户信息返回值:",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getIndexConfig:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getIndexConfigReq)({type:2});case 2:t=e.sent,0==t.code?console.log("获取首页配置返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},postOrder:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.postOrderReq)({address:"成都市金牛区长平街70号",phone:"15609038521",name:"李万涛",remark:"备注内容",config_id:"1,3,5",lamp_id:"2,4,6"});case 2:t=e.sent,0==t.code?console.log("提交订单返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getOrderDetail:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getOrderDetailReq)({orderId:"3bfc962f6f049082267020faf903d777"});case 2:t=e.sent,0==t.code?console.log("获取订单详细返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getMallCat:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getMallCatReq)();case 2:t=e.sent,0==t.code?console.log("获取商城分类数据返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getMall:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getMallReq)({page:1,type:1,brand:0,search:"筒"});case 2:t=e.sent,0==t.code?console.log("获取商城数据返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getSerDoc:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getSerDocReq)();case 2:t=e.sent,0==t.code?console.log("获取服务文档数据返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getPricePercent:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getPricePercentReq)();case 2:t=e.sent,0==t.code?console.log("获取各个身份的价格百分比返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getSerBack:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getSerBackReq)();case 2:t=e.sent,0==t.code?console.log("获取我的售后保障返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getSerStep:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getSerStepReq)();case 2:t=e.sent,0==t.code?console.log("获取我的服务流程返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getSerBackGoods:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getSerBackGoodsReq)({page:1});case 2:t=e.sent,0==t.code?console.log("获取我的售后商品返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getSerBackCon:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getSerBackConReq)();case 2:t=e.sent,0==t.code?console.log("获取我的售后联系返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},postInvite:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.postInviteReq)({type:0,name:"李万涛",phone:"15609038521",status:"G-VIP",company:"思维定制科技有限公司",remark:"我的备注project_nameproject_name",project_name:"project_name"});case 2:t=e.sent,0==t.code?console.log("提交邀请返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getMyInvite:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getMyInviteReq)({type:0,state:0});case 2:t=e.sent,0==t.code?console.log("获取我的邀请返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},addInvite:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.addInviteReq)({inviteId:"b3f48188b03b54aeb32256c825044e35"});case 2:t=e.sent,0==t.code?console.log("添加邀请返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},addColl:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.addCollReq)({id:2});case 2:t=e.sent,0==t.code?console.log("添加收藏返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},cancelColl:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.cancelCollReq)({id:1});case 2:t=e.sent,0==t.code?console.log("取消收藏返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()},getActGoods:function(){return(0,c.default)((0,a.default)().mark((function e(){var t;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,r.getActGoodsReq)();case 2:t=e.sent,0==t.code?console.log("获取活动商品返回值: ",t):uni.showToast({title:t.message,icon:"none"});case 4:case"end":return e.stop()}}),e)})))()}}};t.default=i},"6f2b":function(e,t,n){"use strict";n.r(t);var o=n("68fe"),a=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=a.a},b9a8:function(e,t,n){var o=n("f21f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=n("4f06").default;a("d89b2b60",o,!0,{sourceMap:!1,shadowMode:!1})},f21f:function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,'@charset "UTF-8";\n/* 水平间距 */\n/* 水平间距 */',""]),e.exports=t},f8f8:function(e,t,n){"use strict";var o=n("b9a8"),a=n.n(o);a.a}}]);
|