1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-index"],{"0245":function(t,i,e){var n=e("edf5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("4f06").default;a("875b729e",n,!0,{sourceMap:!1,shadowMode:!1})},"1de5b":function(t,i,e){"use strict";t.exports=function(t,i){return i||(i={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),i.hash&&(t+=i.hash),/["'() \t\n]/.test(t)||i.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"26f3":function(t,i,e){"use strict";e.d(i,"b",(function(){return n})),e.d(i,"c",(function(){return a})),e.d(i,"a",(function(){}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"plr20"},[0!=t.list.length?e("v-uni-view",t._l(t.list,(function(i,n){return e("v-uni-view",{key:n,class:[1==i.state?"okdui":"nodui","mt30","flex_start"]},[e("v-uni-view",{staticClass:"flex_column flex_items mt10",staticStyle:{width:"200rpx"}},[e("v-uni-view",{staticClass:"flex_start",style:{color:1==i.state?"#E91619":"#333"}},[e("v-uni-text",{staticClass:"f26 bold mt20"},[t._v("¥")]),e("v-uni-text",{staticClass:"bold f80"},[t._v("50")])],1),e("v-uni-view",{staticClass:"plr10 f22 ml20",style:{"border-radius":"48rpx",height:"40rpx","line-height":"40rpx",color:"#E91619",border:"1px solid #E91619"}},[t._v("微信立减金")])],1),e("v-uni-view",{staticClass:"ml20 flex_start flex_items"},[e("v-uni-view",{staticClass:"flex_column"},[e("v-uni-text",{staticClass:"f26 mt20",staticStyle:{color:"#fff"}},[t._v(t._s(i.activity_name))]),e("v-uni-text",{staticClass:"mt20 f22",staticStyle:{color:"#FFD6D6"}},[t._v("单击“去兑换”立即领取立减金")]),e("v-uni-text",{staticClass:"mt20 f22",staticStyle:{color:"#FFD6D6"}},[t._v(t._s(i.create_time))])],1),1==i.state?e("v-uni-image",{staticClass:"ml20",staticStyle:{width:"121rpx",height:"56rpx"},attrs:{src:t.godui,mode:""}}):e("v-uni-image",{staticClass:"ml20",staticStyle:{width:"121rpx",height:"56rpx"},attrs:{src:t.yidui,mode:""}})],1)],1)})),1):e("v-uni-view",{staticClass:"p30 f26 f-center",staticStyle:{color:"#9a9a9a","margin-top":"50rpx"}},[t._v("--暂无数据--")]),e("v-uni-view",{staticStyle:{width:"100%",height:"30rpx"}})],1)},a=[]},"3be4":function(t,i,e){t.exports=e.p+"static/img/qudui.2979c022.png"},"44fd":function(t,i,e){"use strict";e.r(i);var n=e("26f3"),a=e("84b3");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);e("88ce");var o=e("f0c5"),c=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"614a058e",null,!1,n["a"],void 0);i["default"]=c.exports},"466c":function(t,i,e){"use strict";(function(t){e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("d3b7"),e("159b"),e("14d9");var n={data:function(){return{istrue:!1,godui:e("3be4"),yidui:e("87b2"),form:{pageSize:10,page:1,state:""},list:[]}},onLoad:function(){this.getlist()},methods:{getlist:function(){var i=this;uni.showLoading({title:"加载中..."}),this.api.zjlist(this.form).then((function(e){t.log(e),200==e.data.code?(uni.hideLoading(),uni.stopPullDownRefresh(),0==e.data.data.data.length?uni.showToast({title:"暂无数据",icon:"none"}):e.data.data.data.forEach((function(t,e){i.list.push(t)}))):uni.showToast({icon:"none",title:e.data.message})}))},gopay:function(t){uni.navigateTo({url:"/pages/pay/index?order_id="+t})},canclepay:function(i){var e=this;uni.showModal({title:"",content:"确认取消付款吗?",cancelText:"取消",confirmText:"确定",confirmColor:"#30d09b",cancelColor:"#9E9E9E",success:function(n){n.confirm?e.gocancle(i):n.cancel&&t.log("用户点击取消")}})},gocancle:function(i){var e=this;uni.showLoading({title:"取消中..."}),e.api.canclepay({id:i,userid:uni.getStorageSync("userid"),token:uni.getStorageSync("token")}).then((function(i){t.log(i),1==i.data.code?(uni.hideLoading(),uni.showToast({title:"取消成功",icon:"success",duration:800}),setTimeout((function(){e.form.pageIndex=1,e.list=[],e.getlist()}),800)):uni.showToast({icon
|