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 lines
2.7 KiB
1 lines
2.7 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/deposit/deposit"],{"00d2":function(t,n,e){"use strict";var o=e("7c6b"),a=e.n(o);a.a},"53c0":function(t,n,e){"use strict";(function(t){e("eba6");o(e("66fd"));var n=o(e("5dbe"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"5dbe":function(t,n,e){"use strict";e.r(n);var o=e("60d9"),a=e("e594");for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("00d2");var u,r=e("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);n["default"]=s.exports},"60d9":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return o}));var a=function(){var t=this,n=t.$createElement;t._self._c;t._isMounted||(t.e0=function(n){t.paytype="wxpay"})},i=[]},"7c6b":function(t,n,e){},"9b13":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("b528"),a=getApp(),i={data:function(){return{inputAmount:"",amountList:[10,50,100],paytype:"wxpay",user:""}},methods:{select:function(t){this.inputAmount=t},doDeposit:function(){if("NaN"!=parseFloat(this.inputAmount).toString())if(this.inputAmount<=0)t.showToast({title:"请输入大于0的金额",icon:"none"});else if(parseFloat(this.inputAmount).toFixed(2)==parseFloat(this.inputAmount)){t.showLoading({title:"正在提交订单..."});var n={highChildOrderList:[{goodsType:2,goodsId:a.globalData.userInfo.id,saleCount:1,goodsPrice:this.inputAmount}]};(0,o.addOrder)(n).then((function(n){if("000000"==n.return_code){t.showLoading({title:"支付中..."});var e={orderId:n.return_data.id,openId:a.globalData.openId,orderScene:"GOODS_ORDER"};(0,o.orderToPay)(e).then((function(n){"000000"==n.return_code?t.requestPayment({appId:n.return_data.appId,nonceStr:n.return_data.nonceStr,package:n.return_data.package,paySign:n.return_data.sign,signType:"MD5",timeStamp:n.return_data.timeStamp,success:function(n){t.hideLoading(),t.showToast({title:"支付成功"}),setTimeout((function(){t.navigateBack({})}),100)},fail:function(n){t.hideLoading(),console.log("fail:"+JSON.stringify(n))}}):t.showToast({title:"支付失败"})}))}else t.showToast({title:n.return_msg})}))}else t.showToast({title:"最多只能输入两位小数哦~",icon:"none"});else t.showToast({title:"请输入正确金额",icon:"none"})}},onLoad:function(){this.user=a.globalData.userInfo}};n.default=i}).call(this,e("543d")["default"])},e594:function(t,n,e){"use strict";e.r(n);var o=e("9b13"),a=e.n(o);for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a}},[["53c0","common/runtime","common/vendor"]]]); |