1 line
3.8 KiB
JavaScript
1 line
3.8 KiB
JavaScript
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesMy/Coupons/Coupons"],{"288f":function(t,e,o){"use strict";var n=o("c0d9"),a=o.n(n);a.a},"3c91":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/@dcloudio/uni-ui/lib/uni-icons/uni-icons")]).then(o.bind(null,"069f"))},uTabs:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(o.bind(null,"894d"))},uOverlay:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-overlay/u-overlay")]).then(o.bind(null,"2dea"))}},a=function(){var t=this.$createElement;this._self._c},i=[]},"48cc":function(t,e,o){"use strict";o.r(e);var n=o("4bd4"),a=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=a.a},"4bd4":function(t,e,o){"use strict";(function(t){var n=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(o("7073")),i={data:function(){return{idList:[],cardFavorableList:[],cardsList:[],shows:!1,query:{storeId:"",couponType:"",useStatus:0,pageNo:1,pageSize:10},title:"",tabindex:0,tapList:[{name:"未使用"},{name:"已使用"},{name:"已失效"}],list1:[{name:"全部"},{name:"优惠券"},{name:"兑换券"},{name:"洗车券"}]}},components:{},onLoad:function(){this.query.storeId=t.getStorageSync("storeId"),this.getGiftRecords(),this.isDrawDown(),this.getAllCardFavorables()},onShow:function(){console.log(this.query)},methods:{getAllCardFavorables:function(){var t=this;(0,a.default)({url:"business/marketingActivity/cardFavorable/appletList",method:"get",params:this.query}).then((function(e){if(200==e.code){t.cardFavorableList=e.data.records,0==t.cardFavorableList.length&&(t.shows=!1);for(var o=0;o<e.data.records.length;o++)t.idList.push(e.data.records[o].id)}}))},drawDownCardFavorables:function(){var e=this;(0,a.default)({url:"business/marketingActivity/cardFavorableRecord/drawDown",method:"post",data:{idList:this.idList}}).then((function(o){console.log("222"+o),200==o.code&&1==o.data?(e.shows=!1,e.getGiftRecords(),t.showToast({title:"领取成功!"})):(e.shows=!1,t.showToast({title:"领取失败!"}))}))},isDrawDown:function(){var t=this;(0,a.default)({url:"business/marketingActivity/cardFavorableRecord/isDrawDown",method:"get",params:this.query}).then((function(e){200==e.code&&1==e.data?t.shows=!0:t.shows=!1}))},goRecharge:function(e,o){t.navigateTo({url:"/pages/refuel/refuel?id=0&cardFavorableId="+e+"&cardRecordId="+o})},click:function(t){console.log("item",t),this.cardsList=[],"全部"==t.name?(this.query.couponType="",this.getGiftRecords()):(this.query.couponType=t.name,console.log(this.query.couponType),this.getGiftRecords())},gettabingex:function(t){this.tabindex=t,console.log(t),this.cardsList=[],this.query.useStatus=t,this.getGiftRecords()},goback:function(){t.navigateBack()},getGiftRecords:function(){var t=this;(0,a.default)({url:"business/marketingActivity/cardFavorable/applet",method:"get",params:this.query}).then((function(e){console.log(e),200==e.code&&(t.cardsList=e.data.records),console.log(e.data.records),console.log(t.cardsList)}))}}};e.default=i}).call(this,o("df3c")["default"])},"4d06":function(t,e,o){"use strict";o.r(e);var n=o("3c91"),a=o("48cc");for(var i in a)["default"].indexOf(i)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(i);o("288f");var s=o("828b"),r=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"499f62c4",null,!1,n["a"],void 0);e["default"]=r.exports},"9d9f":function(t,e,o){"use strict";(function(t,e){var n=o("47a9");o("3cca");n(o("3240"));var a=n(o("4d06"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(a.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},c0d9:function(t,e,o){}},[["9d9f","common/runtime","common/vendor"]]]);
|