gukai 2 years ago
parent b2b0c4c862
commit d87ceeb7c2

@ -1,5 +1,5 @@
{
"name" : "佰因商城",
"name" : "门店收银",
"appid" : "__UNI__730E59B",
"description" : "",
"versionName" : "1.0.0",

@ -237,11 +237,6 @@
break;
case 2:
// return uni.showModal({
// title: '',
// content: '使',
// showCancel: false
// })
// #ifndef MP
await this.wechatPayNow({
payType,
@ -316,6 +311,7 @@
if (res.data == -1) {
return this.successSubmit();
}
let that = this
wxConfig.init(["chooseWXPay"]).then(wx => {
wx.chooseWXPay({
// jssdk使timestamp
@ -326,20 +322,22 @@
signType: res.data.signType, //
paySign: res.data.paySign, //
success: function(res) {
console.log(res, 'success')
if (res.err_msg == "get_brand_wcpay_request:ok" || res.err_Info ==
"success" || res.errMsg == "chooseWXPay:ok") {
this.successSubmit();
that.successSubmit();
} else {
this.failSubmit();
that.failSubmit();
}
},
complete: function(err) {
console.log(res, 'complete')
if (res.err_msg == "get_brand_wcpay_request:ok" || res.err_Info ==
"success" || res.errMsg == "chooseWXPay:ok" || res.errMsg ==
"getBrandWCPayRequest:ok") {
this.successSubmit();
that.successSubmit();
} else {
this.failSubmit();
that.failSubmit();
}
},
})
@ -473,7 +471,7 @@
setTimeout(() => {
this.toUrl('/subPackages/inPersonToPay/result/index?price=' + this.total_price + '&mch_id=' +
this.mch_id)
this.mch_id, 'reLaunch')
uni.removeStorageSync("支付" + this.mch_id)
this.total_price = ""
this.payCurrent = false

@ -1,5 +1,5 @@
<template>
<view class="page page-box">
<view class="page page-box" style="overflow: hidden;">
<view class="banner_inner"></view>
<view class="head">
@ -10,6 +10,14 @@
<view class="icon">
<image class="logo" :src="info.logo_url"></image>
</view>
<view class="wancehng" style="padding: 20rpx;margin-top: 20rpx;position: relative;z-index: 999;width: 100%;">
<view style="line-height: 100rpx;border-radius: 50rpx;background: #19be6b;text-align: center;color: #FFF;"
@click="toBack">
支付完成
</view>
</view>
<!-- <view class="goodsList">
@ -61,6 +69,11 @@
this.goodsList = res.data.rows
console.log(res);
},
toBack() {
uni.navigateBack({
delta: 1
})
}
}
}
</script>
@ -137,6 +150,13 @@
border-radius: 60rpx;
box-shadow: 0 0.3125rem 1.25rem 0px rgba(166, 199, 251, 0.12);
}
.wancehng {
position: absolute;
top: 45vh;
left: 0;
right: 0;
}
.goodsTitle {

@ -6,7 +6,7 @@ export default {
const jWeixin = require('@/static/h5/jweixin-sdk');
let url = window.location.href.split("#")[0];
if (process.env.NODE_ENV == 'development') url = 'https://saasdemo.byin.vip/h5'
if (process.env.NODE_ENV == 'development') url = 'https://saasdemo.byin.vip/pageh5'
const configData = await getConfigData(url);;
@ -29,7 +29,8 @@ async function getConfigData(url) {
// 从后端API获取微信H5相关信息
const res = await api.common.wechatH5({
url
url,
is_page: 1
});
console.log({
res

Loading…
Cancel
Save