cczg-lottery-activity/unpackage/dist/build/web/static/js/pages-coupons-finish-index....

1 line
6.2 KiB
JavaScript
Raw Normal View History

2024-05-30 11:04:54 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-coupons-finish-index"],{2786:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uButton:n("6591").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"topcontent"},[n("v-uni-image",{staticClass:"logo",attrs:{src:t.finishlogo}}),n("v-uni-view",{staticClass:"text-area"},[n("v-uni-text",{staticClass:"title"},[t._v("感谢您的填写,请到积分商城兑换好礼")])],1)],1),n("v-uni-view",{staticClass:"btn"},[n("u-button",{attrs:{type:"primary",text:"兑换好礼",shape:"circle",color:"#00A8EA"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navigateToHinge.apply(void 0,arguments)}}}),n("u-button",{attrs:{type:"primary",plain:!0,text:"再次填写",shape:"circle",color:"#00A8EA"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navigateBack.apply(void 0,arguments)}}})],1)],1)},o=[]},"2a27":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("cab0"),r=n("c27c"),u=n("8e2f"),c={data:function(){return{finishlogo:n("81f2"),activityId:void 0}},methods:{navigateBack:function(){uni.reLaunch({url:"/pages/coupons/coupon/index"})},navigateToHinge:function(){uni.navigateTo({url:"/pages/coupons/hinge/index"})}},mounted:function(){var t=this;u.authState.isLogin()&&(r.acstore.dispatch("getactivitId").then((function(e){t.activityId=parseInt(e.activitId)})),o.store.dispatch("getanswer").then((function(e){e.answer.length>0&&a.default.answerFinished({id:t.activityId,answer:e.answer}).then((function(t){200==t.data.code?o.store.commit("setanswer",[]):uni.showToast({title:t.data.message,icon:"none"})}))})))}};e.default=c},"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},"4a73":function(t,e,n){var i=n("f00b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("4f06").default;a("2a8aeca5",i,!0,{sourceMap:!1,shadowMode:!1})},"4cfe":function(t,e,n){"use strict";n.r(e);var i=n("2a27"),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},"81f2":function(t,e,n){t.exports=n.p+"static/images/finishicon.png"},b64a:function(t,e,n){"use strict";n.r(e);var i=n("2786"),a=n("4cfe");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("e743");var r=n("f0c5"),u=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"0d4a2426",null,!1,i["a"],void 0);e["default"]=u.exports},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},cab0:function(t,e,n){"use strict";n("7a82");var i=n("ee27").default;Object.defineProperty(e,"__esModule",{value:!0}),e.store=void 0,n("e9c4"),n("d3b7");var a=i