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.
hezhiying/unpackage/dist/build/h5/static/js/pages-warehouse-weituo.ee6f...

1 line
46 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-weituo"],{"0021":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a9e3");var o=n(i("e15e")),r=i("05e0"),a={data:function(){return{orderInfo:[],warehouse:[],orderDetails:{},value:30,min:0,max:0,coupon_id:null,couponNum:0,sxfRadio:null,sxf:null,switchValue:1,total:0,enough:0,couponNumOrgin:0}},methods:{submitHandle:function(){var e=this,t={order_id:this.id,coupon_id:this.coupon_id,use_commission:this.switchValue};(0,r.payUpGoods)(t).then((function(t){o.default.config({debug:!0,appId:t.data.pay_data.appId,timestamp:t.data.pay_data.timeStamp,nonceStr:t.data.pay_data.nonceStr,signature:t.data.pay_data.signType,jsApiList:["chooseWXPay"]}),o.default.ready((function(){o.default.checkJsApi({jsApiList:["chooseWXPay"],success:function(e){console.log("checkjsapi Success"),console.log(e)},fail:function(e){console.log("res"),console.log(e)}}),o.default.chooseWXPay({timestamp:t.data.pay_data.timeStamp,nonceStr:t.data.pay_data.nonceStr,package:t.data.pay_data.package,signType:t.data.pay_data.signType,paySign:t.data.pay_data.paySign,success:function(e){uni.showToast({title:"支付成功",icon:"none"})},cancel:function(e){console.log(e)},fail:function(e){uni.showToast({title:"支付失败",icon:"none"})}})})),o.default.error((function(e){console.log(e)})),e.getOrderDetails()}))},goyhq:function(){uni.navigateTo({url:"/pages/MyCoupon/MyCoupon?id="+this.id})},gopay:function(){uni.navigateTo({url:"/pages/warehouse/pay?num="+this.orderDetails.order_amount+"&id="+this.orderDetails.id})},getOrderDetails:function(){var e=this;(0,r.orderDetail)({id:this.id,custom:{auth:!0}}).then((function(t){e.min=t.data.order_amount,e.orderDetails=Object.assign({},e.orderDetails,t.data),e.orderInfo=t.data.order_goods,e.warehouse=t.data.warehouse,e.sxfRadio=t.data.entrustment_ratio,e.max=Number(e.min)*(1+Number(t.data.entrusted_ratio)/100),e.value=e.max,console.log(e.max);var i=Number(t.data.order_amount)*(Number(e.sxfRadio)/100);e.sxf=i.toFixed(2),e.sxf>e.enough?(e.total=(Number(e.sxf)-Number(e.couponNum)).toFixed(2),e.couponNum=e.couponNumOrgin):(e.total=Number(e.sxf).toFixed(2),e.couponNum=0)}))},sliderChange:function(e){this.orderDetails.order_amount=e.detail.value;var t=Number(e.detail.value)*(Number(this.sxfRadio)/100);this.sxf=t.toFixed(2),this.total=(Number(this.orderDetails.order_amount)+Number(this.sxf)-Number(this.couponNum)).toFixed(2)}},onLoad:function(e){e.coupon&&(this.coupon_id=e.coupon_id,this.couponNumOrgin=Number(e.num),this.enough=Number(e.enough)),this.id=e.id,this.getOrderDetails()}};t.default=a},"05e0":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.userRegister=t.updateUserInfo=t.smsSend=t.smsCheck=t.privacyPolicy=t.payUpGoods=t.orderPay=t.orderDetail=t.logout=t.loginApi=t.getgoodsDetail=t.getWarehouseList=t.getUserProfitStatistic=t.getUserProfitList=t.getUserInfo=t.getUserFansStatistic=t.getUserFansOrderStatistic=t.getUserFansOrderList=t.getUserFansList=t.getUserCommissionStatistic=t.getUserCommissionList=t.getUserCommissionApi=t.getSellerOrderList=t.getGoodsList=t.getBuyerOrderList=t.getArea=t.getAddrList=t.getAddrDesc=t.forgetPsw=t.editAddr=t.deleteAddr=t.createOrder=t.couponList=t.changePassword=t.cancelOrder=t.bindInvitor=t.addAddr=void 0;var n=uni.$u.http;t.smsSend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/sms/send",e,t)};t.smsCheck=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/sms/check",e,t)};t.userRegister=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/user/register",e,t)};t.loginApi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/user/login",e,t)};t.privacyPolicy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/addons/shopro/data.richtext/index",e,t)};t.forgetPsw=function(e){var t=arguments.l