java-mall-app/unpackage/dist/build/mp-weixin/chain/chain/favorabledetail.js
2025-12-12 17:04:03 +08:00

1 line
4.5 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["chain/chain/favorabledetail"],{1004:function(t,e,a){"use strict";a.r(e);var o=a("56a7"),n=a("65a0");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("62e8");var i=a("828b"),s=Object(i["a"])(n["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},"56a7":function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,a=(t._self._c,t.info.trade_is_paid==t.StateCode.ORDER_PAID_STATE_YES?t.__("已支付"):null),o=t.info.trade_is_paid!=t.StateCode.ORDER_PAID_STATE_YES?t.__("待付款"):null,n=t.__("消费金额"),r=t.__("实际支付"),i=t.__("优惠金额"),s=t.__("订单编号"),c=t.__("消费时间"),d=t.__("余额抵扣");t.$mp.data=Object.assign({},{$root:{m0:a,m1:o,m2:n,m3:r,m4:i,m5:s,m6:c,m7:d}})},n=[]},"62e8":function(t,e,a){"use strict";var o=a("77bb"),n=a.n(o);n.a},"65a0":function(t,e,a){"use strict";a.r(e);var o=a("b1c4"),n=a.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(r);e["default"]=n.a},"77bb":function(t,e,a){t.exports={theme_bg:"#f30213"}},b1c4:function(t,e,a){"use strict";(function(t,o){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(a("7ca3")),i=a("8f59");function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,o)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){(0,r.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var d={data:function(){return{info:{},deduction:0,showRPK:!1,ActivityGroupId:0,maxRPK:0,order_id:"",isshow1:!1,Currency:"¥"}},components:{},computed:(0,i.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(e){t.setNavigationBarTitle({title:this.__("优惠买单")});this.setData({order_id:e.order_id||""}),this.load()},onUnload:function(){},methods:c(c({},(0,i.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{load:function(){var t=this;t.$.request({type:"post",url:this.Config.URL.pay.consume_trade_detail,data:{order_id:t.order_id},dataType:"json",success:function(e,a,o,n){t.setData({info:e,Currency:e.currency_symbol_left}),t.setData({isshow1:!0}),t.inputVal()}})},shareQRCode:function(t){var e=this,a={store_id:app.globalData.VendorInfo.Id,sponsorId:app.globalData.UserInfo.Id,imageUrl:"https://media-mall-prod-1259811287.cos.ap-guangzhou.myqcloud.com/static/xcxfile/appicon/shareImg.png",path:"pages/redpacket/redpacket?g="+this.data.ActivityGroupId+"&n="+this.data.maxRPK+"&uid="+app.globalData.UserInfo.Id,luckyOrder:this.data.maxRPK};$.xsr($.makeUrl(orderapi.ShareLuckyRedPacket,a),(function(t){e.setData({PageQRCodeInfo:{Path:t.Info,IsShare:!0,IsShareBox:!1,IsJT:!0}})}))},shareBox:function(){this.setData({PageQRCodeInfo:{Path:"",IsShare:!0,IsShareBox:!0,IsJT:!1}})},cancelShare:function(){this.setData({PageQRCodeInfo:{Path:"",IsShare:!1,IsShareBox:!1,IsJT:!1}})},saveImg:function(){var t=this;$.loading(),o.downloadFile({url:this.data.PageQRCodeInfo.Path,success:function(e){$.hideloading(),o.saveImageToPhotosAlbum({filePath:e.tempFilePath,success:function(){t.setData({PageQRCodeInfo:{Path:"",IsShare:!1,IsShareBox:!1,IsJT:!1}}),$.alert("保存图片成功!"),$.xsr1($.makeUrl(orderapi.ShareCount,{sponsorId:app.globalData.UserInfo.Id,audienceType:3,audienceId:0,ContentType:22,contentId:t.data.ActivityGroupId}))},fail:function(t){$.hideloading(),console.log("保存图片失败:",t)}})},fail:function(t){$.hideloading()}})},showCodeImg:function(){o.previewImage({current:this.data.PageQRCodeInfo.Path,urls:[this.data.PageQRCodeInfo.Path]})},IsShowRPK:function(){var t=this;t.data.showRPK?setTimeout((function(){t.setData({showRPK:!1,type:1})}),250):t.setData({showRPK:!0,type:1})}})};e.default=d}).call(this,a("df3c")["default"],a("3223")["default"])},dec9:function(t,e,a){"use strict";(function(t,e){var o=a("47a9");a("ec76");o(a("3240"));var n=o(a("1004"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(n.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])}},[["dec9","common/runtime","common/vendor"]]]);