forked from php-danfu.shenzhenbenwo.com

lefengyang
2025-09-10 9753a88eceb52a0f2e3084cf72f3474d2d7d7f1b
1
2
3
4
5
6
7
8
9
10
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/order_pay_status/payLottery"],{2882:function(t,e,n){"use strict";var o=n("9664"),i=n.n(o);i.a},"2bba":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$t("支付成功")),o=t.$t("支付金额"),i=t.$t("¥"),a=t.$t("查看订单"),r=t.$t("返回首页"),d=t.$t("恭喜您"),s=t.$t("获得"),c=t.$t("机会");t._isMounted||(t.e0=function(){t.addressModel=!1}),t.$mp.data=Object.assign({},{$root:{m0:n,m1:o,m2:i,m3:a,m4:r,m5:d,m6:s,m7:c}})},i=[]},"6409b":function(t,e,n){"use strict";n.r(e);var o=n("6be5"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"6be5":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,a=o(n("7ca3")),r=(n("1a5b"),n("0729")),d=n("d7f8"),s=n("c660"),c=n("8f59"),u=o(n("0cf0")),l={components:{authorize:function(){n.e("components/Authorize").then(function(){return resolve(n("636c"))}.bind(null,n)).catch(n.oe)},gridsLottery:function(){Promise.all([n.e("pages/goods/common/vendor"),n.e("pages/goods/components/lottery/index")]).then(function(){return resolve(n("d229"))}.bind(null,n)).catch(n.oe)},lotteryAleart:function(){n.e("pages/goods/order_pay_status/components/lotteryAleart").then(function(){return resolve(n("77d7"))}.bind(null,n)).catch(n.oe)},userAddress:function(){Promise.all([n.e("common/vendor"),n.e("pages/goods/order_pay_status/components/userAddress")]).then(function(){return resolve(n("a7c7"))}.bind(null,n)).catch(n.oe)}},mixins:[u.default],props:{options:{type:Object}},data:function(){return{lotteryShow:!1,addressModel:!1,lottery_num:0,aleartType:0,aleartStatus:!1,lottery_draw_param:{startIndex:3,totalCount:3,winingIndex:1,speed:100},alData:{},type:"",prize:[],orderId:"",order_pay_info:{paid:1,_status:{}},isAuto:!1,isShowAuth:!1,couponsHidden:!0,couponList:[],totalPrice:0}},computed:(0,c.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,e){},deep:!0},options:{handler:function(t,e){this.orderId=t.order_id,this.totalPrice=t.totalPrice,this.type=t.type,this.getLotteryData(t.type)},deep:!0}},created:function(t){this.isLogin?this.getLotteryData(this.type):(0,d.toLogin)()},methods:(i={openTap:function(){this.$set(this,"couponsHidden",!this.couponsHidden)},orderDetails:function(){this.$emit("orderDetails")},getWiningIndex:function(t){var e=this;this.aleartType=0,(0,s.startLottery)({id:this.id}).then((function(n){e.prize.forEach((function(o,i){n.data.id===o.id&&(e.alData=n.data,e.lottery_draw_param.winingIndex=i,t(e.lottery_draw_param))}))})).catch((function(t){e.$util.Tips({title:t})}))},goIndex:function(e){t.switchTab({url:"/pages/index/index"})},goOrderDetails:function(e){var n=this;t.showLoading({title:this.$t("正在加载中")}),(0,r.openOrderSubscribe)().then((function(e){t.hideLoading(),t.navigateTo({url:"/pages/goods/order_details/index?order_id="+n.orderId})})).catch((function(){nui.hideLoading()}))},getLotteryData:function(t){var e=this;(0,s.getLotteryData)(t).then((function(t){e.factor_num=t.data.lottery.factor_num,e.id=t.data.lottery.id,e.prize=t.data.lottery.prize,e.lottery_num=t.data.lottery_num,e.prize.push({a:1}),e.$emit("lotteryShow",!0),e.lotteryShow=!0})).catch((function(t){e.$emit("lotteryShow",!1),e.lotteryShow=!1}))},closeLottery:function(t){this.aleartStatus=!1,this.getLotteryData(this.type),6===this.alData.type&&(this.addressModel=!0)},getAddress:function(t){var e=this,n=t;n.id=this.alData.lottery_record_id,n.address=t.address.province+t.address.city+t.address.district+t.detail,(0,s.receiveLottery)(n).then((function(t){e.$util.Tips({title:e.$t("领取成功")}),e.addressModel=!1})).catch((function(t){e.$util.Tips({title:t})}))}},(0,a.default)(i,"getWiningIndex",(function(t){var e=this;this.aleartType=0,(0,s.startLottery)({id:this.id}).then((function(n){e.prize.forEach((function(o,i){n.data.id===o.id&&(e.alData=n.data,e.lottery_draw_param.winingIndex=i,t(e.lottery_draw_param))}))})).catch((function(t){e.$util.Tips({title:t})}))})),(0,a.default)(i,"luck_draw_finish",(function(t){this.aleartType=2,this.aleartStatus=!0})),i)};e.default=l}).call(this,n("df3c")["default"])},7287:function(t,e,n){"use strict";n.r(e);var o=n("2bba"),i=n("6409b");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("2882");var r=n("828b"),d=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"d40efdea",null,!1,o["a"],void 0);e["default"]=d.exports},9664:function(t,e,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/goods/order_pay_status/payLottery-create-component',
    {
        'pages/goods/order_pay_status/payLottery-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("7287"))
        })
    },
    [['pages/goods/order_pay_status/payLottery-create-component']]
]);