| 1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_user/user/paymentOrderRemain"],{"0871":function(e,n,t){"use strict";var r=t("666f"),o=t.n(r);o.a},3502:function(e,n,t){"use strict";(function(e,n){var r=t("47a9");t("2438");r(t("3240"));var o=r(t("9eab"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"666f":function(e,n,t){},"871a":function(e,n,t){"use strict";t.r(n);var r=t("f1e7"),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},"9eab":function(e,n,t){"use strict";t.r(n);var r=t("a176"),o=t("871a");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("0871");var a=t("828b"),s=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=s.exports},a176:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var r=function(){var e=this.$createElement,n=(this._self._c,this.payDelivery.toFixed(2)),t=null!=this.order?this.order.payPrice.toFixed(2):null,r=null!=this.order?this.order.payMoney.toFixed(2):null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:t,g2:r}})},o=[]},f1e7:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("6fb3"),o=t("c449"),i={data:function(){return{payDelivery:0,order:null,user:null,orderId:null}},onLoad:function(n){this.orderId=JSON.parse(n.orderId),console.log(this.orderId),this.getUserInfo(),e.showShareMenu({withShareTicket:!0,menus:["shareAppMessage"]})},onShow:function(){this.getStoreOrderById()},onShareAppMessage:function(e){return{title:"帮TA支付",path:"/pages_user/user/otherPaymentOrderRemain?orderId="+this.orderId,imageUrl:"https://hos-1309931967.cos.ap-chongqing.myqcloud.com/fs/20250814/3687aa8663c7479d9d75c2d203cbaa72.jpg"}},methods:{getUserInfo:function(){var n=this;(0,r.getUserInfo)().then((function(t){200==t.code?null!=t.user&&(n.user=t.user):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))},copyOrderSn:function(n){e.setClipboardData({data:n,success:function(){e.showToast({title:"内容已成功复制到剪切板",icon:"none"})}})},getStoreOrderById:function(){var n=this,t={orderId:this.orderId},r=this;e.showLoading(),(0,o.getStoreOrderById)(t).then((function(t){200==t.code?(console.log(t),e.hideLoading(),r.order=t.order,n.payDelivery=r.order.payDelivery):e.showToast({icon:"none",title:t.msg})}),(function(e){}))},payOrder:function(){var n={orderId:this.order.id,payType:1},t=this;e.showLoading(),(0,o.payRemain)(n).then((function(n){200==n.code?(console.log(n),e.requestPayment({provider:"wxpay",timeStamp:n.result.timeStamp,nonceStr:n.result.nonceStr,package:n.result.packageValue,signType:n.result.signType,paySign:n.result.paySign,success:function(n){e.hideLoading(),e.redirectTo({url:"success?order="+JSON.stringify(t.order)})},fail:function(n){console.log("fail:"+JSON.stringify(n)),e.hideLoading()}})):e.showToast({icon:"none",title:n.msg})}),(function(e){}))}}};n.default=i}).call(this,t("df3c")["default"])}},[["3502","common/runtime","common/vendor"]]]);
|