You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
7.1 KiB
1 line
7.1 KiB
5 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/bell/order"],{"12f2":function(e,r,n){},"1f55":function(e,r,n){"use strict";n.d(r,"b",(function(){return t})),n.d(r,"c",(function(){return o})),n.d(r,"a",(function(){}));var t=function(){var e=this,r=e.$createElement,n=(e._self._c,e.isLoad?e.orderInfo.order_goods&&e.orderInfo.order_goods.length>0:null),t=e.isLoad&&n?e.__map(e.orderInfo.order_goods,(function(r,n){var t=e.__get_orig(r),o=e.$t("action.attendantName");return{$orig:t,m0:o}})):null,o=e.isLoad&&n?e.configInfo.trading_rules&&e.configInfo.trading_rules.length>0:null;e._isMounted||(e.e0=function(r){r.stopPropagation(),e.isAgree=!e.isAgree},e.e1=function(r){return r.stopPropagation(),e.$refs.show_rule_item.open()},e.e2=function(r){return e.$util.goUrl({url:1,openType:"navigateBack"})},e.e3=function(r){return e.$refs.show_rule_item.close()}),e.$mp.data=Object.assign({},{$root:{g0:n,l0:t,g1:o}})},o=[]},7743:function(e,r,n){"use strict";n.r(r);var t=n("1f55"),o=n("d466");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(r,e,(function(){return o[e]}))}(a);n("78aa");var i=n("828b"),u=Object(i["a"])(o["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);r["default"]=u.exports},"78aa":function(e,r,n){"use strict";var t=n("12f2"),o=n.n(t);o.a},a0a1:function(e,r,n){"use strict";var t=n("47a9");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=t(n("7eb4")),a=t(n("34cf")),i=t(n("7ca3")),u=t(n("ee10")),c=n("8f59");function s(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?s(Object(n),!0).forEach((function(r){(0,i.default)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var d={components:{parser:function(){Promise.all([n.e("common/vendor"),n.e("components/jyf-Parser/index")]).then(function(){return resolve(n("99e9"))}.bind(null,n)).catch(n.oe)}},data:function(){return{isLoad:!1,options:{},payList:[{id:1,icon:"iconweixinzhifu1",title:"微信支付"},{id:2,icon:"iconqianbao c-balance",title:"账户余额",is_disabled:!1}],payInd:0,balanceInd:1,balance:0,send_info:{time_index:0,time:{}},orderInfo:{coupon_id:0,address_info:{id:0}},lockTap:!1,isBus:0,isAgree:!1}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},commonOptions:function(e){return e.user.commonOptions},userInfo:function(e){return e.user.userInfo},mineInfo:function(e){return e.user.mineInfo},bellOrderParams:function(e){return e.order.bellOrderParams}}),onLoad:function(){var e=this;return(0,u.default)(o.default.mark((function r(){return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.initIndex();case 2:case"end":return r.stop()}}),r)})))()},methods:l(l(l({},(0,c.mapActions)(["getConfigInfo","getMineInfo"])),(0,c.mapMutations)(["updateUserItem","updateOrderItem"])),{},{initIndex:function(){var e=arguments,r=this;return(0,u.default)(o.default.mark((function n(){var t,i,u,c,s,l,d,f,p,g;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.length>0&&void 0!==e[0]&&e[0],n.next=3,r.getConfigInfo();case 3:return t=r.configInfo.alipay_status,void 0===t?0:t,i=r.$util.deepCopy(r.bellOrderParams),u=i.order_type,c=void 0===u?0:u,delete i.order_type,s=0==c?"upOrderInfo":"payOrderInfo",n.next=11,Promise.all([r.$api.order[s](i),r.getMineInfo()]);case 11:l=n.sent,d=(0,a.default)(l,2),f=d[0],d[1],r.$util.setNavigationBarColor({bg:r.primaryColor}),r.orderInfo=f,p=r.mineInfo.balance,g=r.balanceInd,r.payList[g].is_disabled=1*p<1*f.pay_price,r.balance=p,0==c&&(r.payInd=r.payList.findIndex((function(e){retur
|