1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupons-hinge-index"],{"09cc":function(t,e,n){"use strict";n("7a82");var i=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("e25e");var a=i(n("d1fd")),o=n("8e2f"),r=n("c27c"),u={data:function(){return{tips:"跳转活动中,请稍后...",activityId:void 0}},methods:{routeguard:function(t,e){t.flag?e():uni.navigateTo({url:"/pages/simpleshop/notinwl/notinwl"})},getAccountInfo:function(){var t=this;a.default.getAccountInfo().then((function(e){if(200==e.data.code){var n=e.data.data;switch(t.activityId){case 9:t.routeguard(n,(function(){uni.switchTab({url:"/pages/simpleshop/index/index"})})),t.tips="活动入口配置有误";break;case 10:case 11:case 12:case 13:case 14:case 15:uni.navigateTo({url:"/pages/packet/index/index"});break;default:t.tips="活动维护中,请稍后再来"}}else uni.showToast({title:e.data.message,icon:"none"})}))}},onShow:function(){var t=this;r.acstore.dispatch("getactivitId").then((function(e){t.activityId=parseInt(e.activitId)})),o.authState.isLogin()?(this.getAccountInfo(),r.acstore.dispatch("getactivitId").then((function(e){t.activityId=parseInt(e.activitId)}))):(this.tips="尚未登陆",uni.navigateBack())}};e.default=u},"0a6f":function(t,e,n){"use strict";n.r(e);var i=n("09cc"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"2ec4":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("d3b7");var i=n("8e2f"),a="https://lottery.api.86698.cn",o={request:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise((function(r,u){var c=void 0,s=a+t;i.authState.isLogin()&&(c=i.authState.state.token),o&&uni.showLoading({title:""}),uni.request({url:s,data:n,method:e,header:{"content-type":"application/json",token:c},success:function(t){401==t.data.code?(i.authState.logout(),uni.reLaunch({url:i.loginPage})):r(t)},fail:function(t){u(t)},complete:function(){uni.hideLoading()}})}))}};e.default=o},"5a1d":function(t,e,n){"use strict";var i=n("ac11"),a=n.n(i);a.a},"74f5":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".content[data-v-fe5bff56]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%}",""]),t.exports=e},"8cd4":function(t,e,n){"use strict";n.r(e);var i=n("ef2b"),a=n("0a6f");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("5a1d");var r=n("f0c5"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"fe5bff56",null,!1,i["a"],void 0);e["default"]=u.exports},ac11:function(t,e,n){var i=n("74f5");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("29e1052e",i,!0,{sourceMap:!1,shadowMode:!1})},c27c:function(t,e,n){"use strict";n("7a82");var i=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.acstore=void 0,n("e9c4"),n("d3b7");var a=i(n("26cb")),o=new a.default.Store({state:{activitId:9},mutations:{setactivitId:function(t,e){t.activitId=e,localStorage.setItem("activitId",JSON.stringify({activitId:t.activitId}))}},actions:{getactivitId:function(t){var e=t.commit;return new Promise((function(t,n){var i=localStorage.getItem("activitId");void 0==i?n():(e("setactivitId",JSON.parse(i)["activitId"]),t(JSON.parse(i)))}))}}});e.acstore=o},d1fd:function(t,e,n){"use strict";n("7a82");var i=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2ec4")),o=a.default,r={imgUrl:"http://47.109.21.59/",getcodes:function(t){return o.request("/front/loginSendSms","POST",t)},login:function(t){return o.request("/front/loginBySms","POST",t)},logout:function(t){return o.request("/front/logout","GET")},getAccountInfo:function(t){return o.request("/front/getAccountInfo","GET",t)},getproducts:function(t){return o.request("/front/homeData","GET",t)},getorderlist:function(t){return o.request("/front/or
|