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
23 KiB
1 lines
23 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?688e","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?ab47","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?70a6","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?e641","uni-app:///pages/warehouse/weituo.vue","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?9b1c","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/warehouse/weituo.vue?ffe3"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","orderInfo","warehouse","orderDetails","value","min","max","coupon_id","sxfRadio","sxf","switchValue","total","enough","couponNumOrgin","available_commission_amount","methods","changeYongjin","console","submitHandle","order_id","use_commission","uni","title","icon","url","jweixin","debug","appId","timestamp","nonceStr","signature","jsApiList","success","fail","package","signType","paySign","cancel","goyhq","gopay","getOrderDetails","id","custom","auth","sliderChange","onLoad"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,6SAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAo0B,CAAgB,oyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACqGx1B;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADA;AAAA,eAEA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACAC;MACA;QACA;QACA;UACA;QACA;UACA;QACA;MACA;QACA;UACA;QACA;UACA;QACA;MAEA;IACA;IAEAC;MAAA;MACA;QACAC;QACAZ;QACAa;MACA;MACA;QACA;QACA;UACAC;YACAC;YACAC;UACA;UACAF;YACAG;UACA;QACA;UACAC;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;UACA;;UACAN;YACAA;cACAM;cAAA;cACAC;gBACAf;gBACAA;cACA;cACAgB;gBACAhB;gBACAA;cACA;YACA;YACAQ;cACAG;cAAA;cACAC;cAAA;cACAK;cAAA;cACAC;cAAA;cACAC;cAAA;cACAJ;gBACAX;kBACAC;kBACAC;gBACA;gBACAF;kBACAG;gBACA;gBACA;gBACA;gBACA;cACA;;cACAa;gBACApB;cACA;cACAgB;gBACAZ;kBACAC;kBACAC;gBACA;cACA;YACA;UACA;UAEAE;YACAR;UACA;UACA;QACA;;QAIA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;QACA;MAEA;IAEA;IACAqB;MACAjB;QACAG;MACA;IACA;IACAe;MACAlB;QACAG;MACA;IACA;IACAgB;MAAA;MACA;QAAAC;QAAAC;UAAAC;QAAA;MAAA;QACA;UAEA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA1B;UACA;UACA;UACA;UACA;YACA;YACAA;UACA;YACA;UACA;UAEA;YACA;UACA;UACA;UACA;UACA;UACA;QACA;MAEA;IACA;IACA2B;MACA;MACA;MACA;MACA;IACA;EAGA;EACAC;IACA;MACA;MACA;MACA;IACA;MACA;IACA;IACA;IACA;EAEA;AACA;AAAA,2B;;;;;;;;;;;;;AC1TA;AAAA;AAAA;AAAA;AAA2jD,CAAgB,27CAAG,EAAC,C;;;;;;;;;;;ACA/kD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/warehouse/weituo.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/warehouse/weituo.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./weituo.vue?vue&type=template&id=0bfbc2d0&scoped=true&\"\nvar renderjs\nimport script from \"./weituo.vue?vue&type=script&lang=js&\"\nexport * from \"./weituo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./weituo.vue?vue&type=style&index=0&id=0bfbc2d0&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0bfbc2d0\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/warehouse/weituo.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./weituo.vue?vue&type=template&id=0bfbc2d0&scoped=true&\"","var components\ntry {\n components = {\n uSwitch: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-switch/u-switch\" */ \"@/uni_modules/uview-ui/components/u-switch/u-switch.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./weituo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./weituo.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<!-- 订单商品 -->\n\t\t<view class=\"order-goods\">\n\t\t\t<view class=\"goods-list\">\n\t\t\t\t<view v-for=\"(item,index) in orderInfo\" :key=\"index\">\n\t\t\t\t\t<view class=\"orderNum\">\n\t\t\t\t\t\t订单编号:{{orderDetails.order_sn}}\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"list\">\n\t\t\t\t\t\t<view class=\"thumb\">\n\t\t\t\t\t\t\t<image :src=\"item.goods_image\" mode=\"aspectFill\"></image>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view class=\"item\">\n\t\t\t\t\t\t\t<view class=\"title\">\n\t\t\t\t\t\t\t\t<text class=\"one-omit\">{{item.goods_name}}</text>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<view class=\"price\">\n\t\t\t\t\t\t\t\t<text>购买价格:¥{{item.goods_price}}</text>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</view>\n\t\t\t\t\t\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t\n\t\t</view>\n\t\t<!-- 订单信息 -->\n\t\t<view class=\"order-info\">\n\t\t\t<view class=\"weituotitle\">\n\t\t\t\t委托价格\n\t\t\t</view>\n\t\t\t<view class=\"priceContent\">\n\t\t\t\t¥{{orderDetails.order_amount}}\n\t\t\t</view>\n\t\t\t\n\t\t\t<view class=\"slide\">\n\t\t\t\t<slider :value=\"value\" @changing=\"sliderChange\" :min=\"min\" disabled :max=\"max\"/>\n\t\t\t\t\n\t\t\t</view>\n\t\t\t<view class=\"numContent\">\n\t\t\t\t<view class=\"\">\n\t\t\t\t\t{{min}}\n\t\t\t\t</view>\n\t\t\t\t<view class=\"\">\n\t\t\t\t\t{{max}}\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"order-info\">\n\t\t\t<view class=\"info-list\">\n\t\t\t\t<view class=\"list\" @click=\"goyhq\">\n\t\t\t\t\t<view class=\"title\">优惠券:</view>\n\t\t\t\t\t<view class=\"content\">\n\t\t\t\t\t\t<text>{{couponNumOrgin}}</text>\n\t\t\t\t\t\t<text class=\"iconfont icon-more\"></text>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"list\">\n\t\t\t\t\t<view class=\"title\">上架手续费:</view>\n\t\t\t\t\t<view class=\"content\">\n\t\t\t\t\t\t<text>¥{{sxf}}</text>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t\n\t\t\t</view>\n\t\t</view>\n\t\t\n\t\t<!-- 订单明细 -->\n\t\t<view class=\"order-details\">\n\t\t\t<view class=\"details-list\">\n\t\t\t\t<view class=\"list\">\n\t\t\t\t\t<view class=\"title\">\n\t\t\t\t\t\t<text>使用佣金</text>\n\t\t\t\t\t\t<text class=\"yongjin\">¥{{available_commission_amount}}</text>\n\t\t\t\t\t</view>\n\t\t\t\t\t<view class=\"price\">\n\t\t\t\t\t\t<u-switch v-model=\"switchValue\" \n\t\t\t\t\t\t:activeValue=\"1\"\n\t\t\t\t\t\t@change=\"changeYongjin\"\n\t\t\t\t\t\t:inactiveValue=\"0\"\n\t\t\t\t\t></u-switch>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"btnContainer\">\n\t\t\t<view class=\"heji\">\n\t\t\t\t合计:¥{{total}}\n\t\t\t</view>\n\t\t\t<view class=\"btnItem\" @click=\"submitHandle\">\n\t\t\t\t确认上架\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\timport jweixin from 'jweixin-module'\n\t// Vue.use(jweixin)\n\timport {orderDetail,payUpGoods,getUserCommissionStatistic} from '@/common/api.js'\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\torderInfo:[],\n\t\t\t\twarehouse:[],\n\t\t\t\torderDetails:{},\n\t\t\t\tvalue:30,\n\t\t\t\tmin:0,\n\t\t\t\tmax:0,\n\t\t\t\tcoupon_id:null,\n\t\t\t\tsxfRadio:null,\n\t\t\t\tsxf:null,\n\t\t\t\tswitchValue:1,\n\t\t\t\ttotal:0,\n\t\t\t\tenough:0,\n\t\t\t\tcouponNumOrgin:0,\n\t\t\t\tavailable_commission_amount:0,\n\t\t\t};\n\t\t},\n\t\tmethods:{\n\t\t\tchangeYongjin(val){\n\t\t\t\tconsole.log(val)\n\t\t\t\tif(val){\n\t\t\t\t\tlet total = (Number(this.sxf) - Number(this.couponNumOrgin) - Number(this.available_commission_amount)).toFixed(2);\n\t\t\t\t\tif(total>0){\n\t\t\t\t\t\tthis.total = total\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthis.total = 0\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif((Number(this.sxf) - Number(this.couponNumOrgin)).toFixed(2)>0){\n\t\t\t\t\t\tthis.total = (Number(this.sxf) - Number(this.couponNumOrgin)).toFixed(2);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthis.total = 0\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t},\n\t\t\t\n\t\t\tsubmitHandle(){\n\t\t\t\tlet params={\n\t\t\t\t\torder_id:this.id,\n\t\t\t\t\tcoupon_id:this.coupon_id,\n\t\t\t\t\tuse_commission:this.switchValue,\n\t\t\t\t}\n\t\t\t\tpayUpGoods(params).then(res=>{\n\t\t\t\t\tlet self = this;\n\t\t\t\t\tif(res.data.pay_data==1){\n\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\ttitle:\"支付成功\",\n\t\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t\t});\n\t\t\t\t\t\tuni.redirectTo({\n\t\t\t\t\t\t\turl:\"/pages/qianggou/productList\"\n\t\t\t\t\t\t})\n\t\t\t\t\t}else{\n\t\t\t\t\t\tjweixin.config({\n\t\t\t\t\t\t\tdebug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。\n\t\t\t\t\t\t\tappId: res.data.pay_data.appId, // 必填,公众号的唯一标识\n\t\t\t\t\t\t\ttimestamp: res.data.pay_data.timeStamp, // 必填,生成签名的时间戳\n\t\t\t\t\t\t\tnonceStr: res.data.pay_data.nonceStr, // 必填,生成签名的随机串\n\t\t\t\t\t\t\tsignature: res.data.pay_data.signType, // 必填,签名,见附录1\n\t\t\t\t\t\t\tjsApiList: ['chooseWXPay'] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2\n\t\t\t\t\t\t});\n\t\t\t\t\t\tjweixin.ready(function() {\n\t\t\t\t\t\t\tjweixin.checkJsApi({\n\t\t\t\t\t\t\t\tjsApiList: ['chooseWXPay'], // 需要检测的JS接口列表,所有JS接口列表见附录2,\n\t\t\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\t\t\tconsole.log('checkjsapi Success');\n\t\t\t\t\t\t\t\t\tconsole.log(res);\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfail: function(res) {\n\t\t\t\t\t\t\t\t\tconsole.log('res');\n\t\t\t\t\t\t\t\t\tconsole.log(res);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tjweixin.chooseWXPay({\n\t\t\t\t\t\t\t\ttimestamp: res.data.pay_data.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符\n\t\t\t\t\t\t\t\tnonceStr: res.data.pay_data.nonceStr, // 支付签名随机串,不长于 32 位\n\t\t\t\t\t\t\t\tpackage: res.data.pay_data.package, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=***)\n\t\t\t\t\t\t\t\tsignType: res.data.pay_data.signType, // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'\n\t\t\t\t\t\t\t\tpaySign: res.data.pay_data.paySign, // 支付签名\n\t\t\t\t\t\t\t\tsuccess: function(res) {\n\t\t\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\t\t\ttitle:\"支付成功\",\n\t\t\t\t\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tuni.redirectTo({\n\t\t\t\t\t\t\t\t\t\turl:\"/pages/qianggou/productList\"\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t// uni.redirectTo({\n\t\t\t\t\t\t\t\t\t// \turl:\"/pages/warehouse/buy\"\n\t\t\t\t\t\t\t\t\t// })\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tcancel: function(res) {\n\t\t\t\t\t\t\t\t\t console.log(res)\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tfail: function(res) {\n\t\t\t\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\t\t\t\ttitle:\"支付失败\",\n\t\t\t\t\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\tjweixin.error(function(res) {\n\t\t\t\t\t\t\tconsole.log(res);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.getOrderDetails()\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t// if (typeof WeixinJSBridge != \"undefined\") {\n\t\t\t\t\t// \tWeixinJSBridge.invoke(\n\t\t\t\t\t// \t'getBrandWCPayRequest', {\n\t\t\t\t\t// \t\t\"appId\": rea.data.pay_data.appId, \n\t\t\t\t\t// \t\t\"timeStamp\": rea.data.pay_data.timeStamp, \n\t\t\t\t\t// \t\t\"nonceStr\": rea.data.pay_data.nonceStr,\n\t\t\t\t\t// \t\t\"package\": rea.data.pay_data.package,\n\t\t\t\t\t// \t\t\"signType\": rea.data.pay_data.signType, \n\t\t\t\t\t// \t\t\"paySign\": rea.data.pay_data.paySign\n\t\t\t\t\t// \t},\n\t\t\t\t\t// \t(res)=> {\n\t\t\t\t\t// \t\tif (res.err_msg == \"get_brand_wcpay_request:ok\") {\n\t\t\t\t\t// \t\t\tuni.showToast({\n\t\t\t\t\t// \t\t\t\ttitle:\"支付成功\",\n\t\t\t\t\t// \t\t\t\ticon:'none'\n\t\t\t\t\t// \t\t\t});\n\t\t\t\t\t// \t\t} else {\n\t\t\t\t\t// \t\t\tuni.showToast({\n\t\t\t\t\t// \t\t\t\ttitle:\"支付失败\",\n\t\t\t\t\t// \t\t\t\ticon:'none'\n\t\t\t\t\t// \t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t// \t\t}\n\t\t\t\t\t// \t})\n\t\t\t\t\t// }\n\t\t\t\t\t\n\t\t\t\t})\n\t\t\t\t\n\t\t\t},\n\t\t\tgoyhq(){\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:\"/pages/MyCoupon/MyCoupon?id=\"+this.id\n\t\t\t\t})\n\t\t\t},\n\t\t\tgopay(){\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:\"/pages/warehouse/pay?num=\"+this.orderDetails.order_amount+'&id='+this.orderDetails.id\n\t\t\t\t})\n\t\t\t},\n\t\t\tgetOrderDetails(){\n\t\t\t\torderDetail({id:this.id,custom: { auth: true }}).then(res=>{\n\t\t\t\t\tgetUserCommissionStatistic().then(result=>{\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.available_commission_amount = result.data.available_commission_amount\n\t\t\t\t\t\t// this.available_commission_amount = 10\n\t\t\t\t\t\n\t\t\t\t\t\tthis.min = Number(res.data.order_amount).toFixed(2)\n\t\t\t\t\t\tthis.orderDetails = Object.assign({},this.orderDetails,res.data);\n\t\t\t\t\t\tthis.orderInfo = res.data.order_goods\n\t\t\t\t\t\tthis.warehouse = res.data.warehouse\n\t\t\t\t\t\tthis.sxfRadio = res.data.entrustment_ratio\n\t\t\t\t\t\tthis.max =Number((Number(this.min)*(1+(Number(res.data.entrusted_ratio)/100)))).toFixed(2)\n\t\t\t\t\t\tthis.value = this.max\n\t\t\t\t\t\tconsole.log(this.max)\n\t\t\t\t\t\tlet sxf = Number(res.data.order_amount)*(Number(this.sxfRadio)/100)\n\t\t\t\t\t\tthis.sxf = sxf.toFixed(2)\n\t\t\t\t\t\t// if(this.sxf>this.enough){\n\t\t\t\t\t\t\tif(this.switchValue==1){\n\t\t\t\t\t\t\t\tthis.total = (Number(this.sxf) - Number(this.couponNumOrgin) - Number(this.available_commission_amount)).toFixed(2);\n\t\t\t\t\t\t\t\tconsole.log(Number(this.available_commission_amount))\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tthis.total = (Number(this.sxf) - Number(this.couponNumOrgin)).toFixed(2);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(this.total<0){\n\t\t\t\t\t\t\t\tthis.total = 0\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t// }else{\n\t\t\t\t\t\t// \tthis.total = (Number(this.sxf)).toFixed(2);\n\t\t\t\t\t\t// \tthis.couponNum = 0\n\t\t\t\t\t\t// }\n\t\t\t\t\t})\n\t\t\t\t\t\n\t\t\t\t})\n\t\t\t},\n\t\t\tsliderChange(val){\n\t\t\t\tthis.orderDetails.order_amount = val.detail.value;\n\t\t\t\tlet sxf = Number(val.detail.value)*(Number(this.sxfRadio)/100)\n\t\t\t\tthis.sxf = sxf.toFixed(2)\n\t\t\t\tthis.total = (Number(this.orderDetails.order_amount)+ Number(this.sxf) - Number(this.couponNum)).toFixed(2);\n\t\t\t},\n\t\t\n\t\t\t\n\t\t},\n\t\tonLoad(option) {\n\t\t\tif(option.coupon){\n\t\t\t\tthis.coupon_id = option.coupon_id;\n\t\t\t\tthis.couponNumOrgin = Number(option.num);\n\t\t\t\tthis.enough = Number(option.enough)\n\t\t\t}else{\n\t\t\t\tthis.couponNumOrgin = 0;\n\t\t\t}\n\t\t\tthis.id = option.id;\n\t\t\tthis.getOrderDetails()\n\t\t\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import 'weituo.scss';\n\t.numContent{\n\t\tdisplay: flex;\n\t\twidth:100%;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t\tpadding:0 24rpx 24rpx 24rpx;\n\t\tcolor:gray;\n\t}\n\t.yongjin{\n\t\tcolor:$base;\n\t\tmargin-left:40rpx;\n\t}\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./weituo.vue?vue&type=style&index=0&id=0bfbc2d0&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./weituo.vue?vue&type=style&index=0&id=0bfbc2d0&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1697873050572\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |