forked from php-danfu.shenzhenbenwo.com

lefengyang
2025-09-10 9753a88eceb52a0f2e3084cf72f3474d2d7d7f1b
1
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/lottery/grids/record"],{"221f":function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("9c8e"));var o=n("c660"),r=i(n("0cf0")),a={components:{emptyPage:function(){n.e("components/emptyPage").then(function(){return resolve(n("04be"))}.bind(null,n)).catch(n.oe)},userAddress:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods/lottery/components/userAddress")]).then(function(){return resolve(n("d477"))}.bind(null,n)).catch(n.oe)}},mixins:[r.default],data:function(){return{loading:!1,loadend:!1,addressModel:!1,where:{page:1,limit:20},lotteryList:[],loadTitle:""}},onShow:function(){this.where.page=1,this.loadend=!1,this.loading=!1,this.lotteryList=[],this.getLotteryList()},filters:{typeName:function(t){return 2==t?"积分":3==t?"余额":4==t?"红包":5==t?"优惠券":6==t?"商品":void 0}},onReady:function(){},methods:{getAddress:function(t){var e=this,n=t;n.id=this.addid,n.address=t.address.province+t.address.city+t.address.district+t.detail,(0,o.receiveLottery)(n).then((function(t){e.$util.Tips({title:e.$t("领取成功")}),e.addressModel=!1,e.where.page=1,e.loadend=!1,e.lotteryList=[],e.getLotteryList()})).catch((function(t){e.$util.Tips({title:t})}))},goDetail:function(e){"WAIT_USER_CONFIRM"==e.state&&t.navigateTo({url:"/pages/users/user_spread_money/receiving?type=2&id="+e.wechat_order_id})},fromAddress:function(t){this.addid=t.id,this.addressModel=!0},copyOrderId:function(e){t.setClipboardData({data:e})},getLotteryList:function(){var t=this,e=this;this.loadend||this.loading||(this.loading=!0,this.loadTitle="",(0,o.getLotteryList)(this.where).then((function(n){var i=n.data,o=t.$util.SplitArray(i,t.lotteryList),r=i.length<t.where.limit;t.loadend=r,t.loading=!1,t.loadTitle=r?e.$t("没有更多内容啦~"):e.$t("加载更多"),t.$set(t,"lotteryList",o),t.$set(t.where,"page",t.where.page+1)})).catch((function(t){e.loading=!1,e.loadTitle=e.$t("加载更多")})))}},onReachBottom:function(){this.lotteryList.length,this.getLotteryList()}};e.default=a}).call(this,n("df3c")["default"])},"310f":function(t,e,n){},"51c1":function(t,e,n){"use strict";n.r(e);var i=n("221f"),o=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a},a023:function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("2ea2");i(n("3240"));var o=i(n("c8e2d"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},a5e0:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.lotteryList.length),i=n?t.__map(t.lotteryList,(function(e,n){var i=t.__get_orig(e),o=t.$t("奖品类型"),r=t._f("typeName")(e.prize.type),a=6!=e.type||e.receive_time?null:t.$t("立即兑换"),d=4==e.type&&"WAIT_USER_CONFIRM"==e.state?t.$t("去领取"):null,l=4==e.type&&"FAIL"==e.state?t.$t("已失效"):null,s=4!=e.type||"FAIL"!=e.state?t.$t("兑换时间"):null,u=e.deliver_info.deliver_name?t.$t("快递公司"):null,c=e.deliver_info.deliver_number?t.$t("快递单号"):null,f=e.deliver_info.deliver_number&&e.deliver_info.deliver_number?t.$t("复制"):null;return{$orig:i,m0:o,f0:r,m1:a,m2:d,m3:l,m4:s,m5:u,m6:c,m7:f}})):null,o=n?t.lotteryList.length:null,r=0===t.lotteryList.length&&!t.loading,a=r?t.$t("暂无中奖记录"):null;t._isMounted||(t.e0=function(){t.addressModel=!1},t.e1=function(){t.addressModel=!1}),t.$mp.data=Object.assign({},{$root:{g0:n,l0:i,g1:o,g2:r,m8:a}})},o=[]},c8e2d:function(t,e,n){"use strict";n.r(e);var i=n("a5e0"),o=n("51c1");for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("e5a7");var a=n("828b"),d=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"8d3af676",null,!1,i["a"],void 0);e["default"]=d.exports},e5a7:function(t,e,n){"use strict";var i=n("310f"),o=n.n(i);o.a}},[["a023","common/runtime","common/vendor","pages/goods/common/vendor"]]]);