微信支付

This commit is contained in:
THK3121 2023-06-21 09:19:13 +08:00
parent d8f3737fd9
commit 03f2047a09
4 changed files with 6 additions and 18 deletions
components/productWindow
config
manifest.json
pages/users/order_confirm

@ -59,7 +59,7 @@
-
</view>
<view class='item num'>
<input type="number" v-model="attr.productSelect.cart_num" data-name="productSelect.cart_num" @input="bindCode(attr.productSelect.cart_num)" @keydown.native="btKeyDown" @keyup.native="btKeyUp"></input>
<input type="number" v-model="attr.productSelect.cart_num" data-name="productSelect.cart_num" @input="bindCode(attr.productSelect.cart_num)" @keydown="btKeyDown" @keyup="btKeyUp"></input>
</view>
<view v-if="iSplus" class="item plus" :class=" attr.productSelect.cart_num >= attr.productSelect.stock || destri ? 'on' : ''"
@click="CartNumAdd">+</view>

@ -22,8 +22,8 @@ if (process.env.NODE_ENV === "development") {
// httpApiThree = 'baseUrlTest' // h5跨域配置
// #endif
} else if (process.env.NODE_ENV === 'production') {
// httpApi = 'https://shop.lihaink.cn' // 生产
httpApi = "https://crmeb-test.shop.lihaink.cn"
httpApi = 'https://shop.lihaink.cn' // 生产
// httpApi = "https://crmeb-test.shop.lihaink.cn"
httpApiTwo = 'https://nk.lihaink.cn' // 生产
httpApiThree = 'http://ceshi-oa.lihaink.cn' //生产
}

@ -2,8 +2,8 @@
"name" : "CRMEB",
"appid" : "__UNI__3A527D1",
"description" : "",
"versionName" : "1.0.6",
"versionCode" : 129,
"versionName" : "1.0.9",
"versionCode" : 132,
"transformPx" : false,
/* 5+App */
"app-plus" : {

@ -1430,19 +1430,7 @@
},
SubOrder: function(e) {
console.log(this.active);
if (this.active == 0) {
uni.requestPayment({
"provider": "wxpay", //"wxpay"
"orderInfo": '1231032132',
success: function(res) {
// var rawdata = JSON.parse(res.rawdata);
console.log(res);
},
fail: function(err) {
console.log(err);
}
});
}
let that = this,
data = {};
if (!that.payType) return that.$util.Tips({