frontend_h5/static/js/pages-my-prizes.16a2f9a7.js

1 line
5.7 KiB
JavaScript
Raw Normal View History

2024-06-17 15:25:46 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-prizes"],{"0a59":function(t,e,i){"use strict";i.r(e);var a=i("162e"),r=i("91df");for(var n in r)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(n);i("f48a");var s=i("f0c5"),o=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"ccc09532",null,!1,a["a"],void 0);e["default"]=o.exports},"162e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.istrue?i("v-uni-view",{},[0!=t.list.length?i("v-uni-view",t._l(t.list,(function(e,a){return i("v-uni-view",{key:a,staticClass:"mt30 pos bgwhite ptb30 plr20"},[i("v-uni-view",{staticClass:"abs f18 f-center",staticStyle:{color:"#C0513D",width:"82rpx",height:"38rpx","line-height":"38rpx",background:"#FCECEB","border-radius":"0rpx 20rpx",right:"0",top:"0"}},[t._v("新获得")]),i("v-uni-view",[i("v-uni-view",{staticClass:"flex_between flex_items mt30 bbe9s pb20",staticStyle:{width:"calc(100% - 40rpx)"}},[i("v-uni-view",{staticClass:"flex_start flex_items"},[i("v-uni-view",{staticStyle:{width:"120rpx",height:"120rpx","boredr-radius":"12rpx"}},[1==e.prize_type?i("v-uni-image",{staticStyle:{width:"120rpx",height:"120rpx","boredr-radius":"12rpx"},attrs:{src:e.prize_data.icon,mode:""}}):t._e(),2==e.prize_type?i("v-uni-image",{staticStyle:{width:"120rpx",height:"120rpx","boredr-radius":"12rpx"},attrs:{src:e.prize_data.main_image,mode:""}}):t._e()],1),i("v-uni-view",{staticClass:"ml30 flex_column",staticStyle:{width:"350rpx"}},[i("v-uni-view",{staticClass:"f30 bold three"},[t._v(t._s(e.prize))]),i("v-uni-text",{staticClass:"f30 mt30",staticStyle:{color:"#888"}},[t._v(t._s(e.win_time))])],1)],1),null==e.goodsExchangeRecord?i("v-uni-view",{staticClass:"flex_start flex_items mr20",staticStyle:{color:"#EB5E42"}},[i("v-uni-view",{staticClass:"f24"},[t._v("¥")]),i("v-uni-text",{staticClass:"f48 bolder one"},[t._v(t._s(e.winning_integral))])],1):t._e()],1),i("v-uni-view",{staticClass:"mt40 flex_between flex_items"},[i("v-uni-text",{staticClass:"f28",staticStyle:{color:"#4d4d4d"}},[t._v(t._s(e.active_name))]),e.goodsExchangeRecord?i("v-uni-view",{staticClass:"flex_start flex_items"},[1==e.goodsExchangeRecord.state?i("v-uni-view",{staticClass:"f24 f-center mr20",staticStyle:{width:"124rpx","line-height":"48rpx",border:"1px solid #e9e9e9",color:"#a0a0a0",height:"48rpx",background:"#fff","border-radius":"23rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.dui(e)}}},[t._v("兑换")]):t._e(),2==e.goodsExchangeRecord.state?i("v-uni-view",{staticClass:"f24 f-center mr20",staticStyle:{width:"124rpx","line-height":"48rpx",border:"1px solid #e9e9e9",color:"#a0a0a0",height:"48rpx",background:"#fff","border-radius":"23rpx"}},[t._v("兑换中")]):t._e(),3==e.goodsExchangeRecord.state?i("v-uni-view",{staticClass:"f24 f-center mr20",staticStyle:{width:"124rpx","line-height":"48rpx",border:"1px solid #e9e9e9",color:"#a0a0a0",height:"48rpx",background:"#fff","border-radius":"23rpx"}},[t._v("已兑换")]):t._e(),i("v-uni-view",{staticClass:"f24 f-center",staticStyle:{width:"124rpx","line-height":"48rpx",color:"#fff",height:"48rpx",background:"linear-gradient(90deg, #EA5C41 0%, #EC7852 100%)","border-radius":"23rpx"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.gomypre(e.prize_data.id)}}},[t._v("查看")])],1):t._e()],1)],1)],1)})),1):i("v-uni-view",{staticClass:"flex_center flex_items f24",staticStyle:{color:"#888",height:"600rpx",width:"100%"}},[i("v-uni-text",[t._v("--暂无数据--")])],1)],1):t._e()},r=[]},"34f8":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("14d9"),i("e9c4");var a={data:function(){return{istrue:!1,imgUrl:"",form:{page:1,pageSize:10,activity_id:""},list:[]}},onLoad:function(t){this.form.activity_id=t.acid,this.imgUrl=this.api.imgUrl},onShow:function(){this.getData()},methods:{getData:function(){var t=this;uni.showLoading({title:"加载中..."}),this.api.getprizes(this.form).then((