修改支付

This commit is contained in:
zpc 2025-05-03 13:35:46 +08:00
parent 66fed95370
commit 8c995b5bf5
12 changed files with 1478 additions and 1426 deletions

View File

@ -190,7 +190,7 @@ class ConfigManager {
});
}
return goodType.filter(item => item.is_show === 1).map(item => {
console.log(item);
// console.log(item);
return {
id: item.value,

View File

@ -95,7 +95,7 @@ class RequestManager {
requestUrl = baseUrlWithSlash + path
}
console.log('请求URL:', requestUrl)
// console.log('请求URL:', requestUrl)
// 使用正则表达式从URL中提取主机名
const hostRegex = /^(?:https?:\/\/)?([^\/]+)/i
@ -133,7 +133,7 @@ class RequestManager {
// 添加密钥并去除最后的&
signStr = signStr.substring(0, signStr.length - 1) + appSecret
console.log('签名字符串:', signStr)
// console.log('签名字符串:', signStr)
// 使用MD5生成签名
const sign = md5(signStr)
@ -166,7 +166,7 @@ class RequestManager {
// 添加密钥并去除最后的&
signStr = signStr.substring(0, signStr.length - 1) + appSecret
console.log('签名字符串:', signStr)
// console.log('签名字符串:', signStr)
// 使用MD5生成签名
const sign = md5(signStr)

View File

@ -1,6 +1,6 @@
{
"name" : "友达赏",
"appid" : "__UNI__2E6CB39",
"appid" : "__UNI__0BC0425",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,

File diff suppressed because it is too large Load Diff

View File

@ -811,9 +811,9 @@
this.close('buyPop')
if (res.data.status == 1) {
const status = await this.$c.wxMpPay({
data: res.data.res
})
const status = await this.$platform.pay({
data: res.data.res
})
if (status == 'success') {
this.getPrize(res.data.order_num)

View File

@ -364,6 +364,13 @@
{
"navigationStyle": "custom"
}
},
{
"path" : "pages/other/choose_address",
"style" :
{
"navigationStyle": "custom"
}
}
],
"subPackages": [{

View File

@ -381,8 +381,8 @@ export default {
this.close("buyPop");
if (res.data.status == 1) {
const status = await this.$c.wxMpPay({
data: res.data.res,
const status = await this.$platform.pay({
data: res.data.res
});
if (status == "success") {

View File

@ -326,7 +326,8 @@ export default {
that.close('pop')
if (res.data.status == 1) {
const status = await that.$c.wxMpPay({
const status = await this.$platform.pay({
data: res.data.res
})
if (status == 'success') {
@ -391,7 +392,7 @@ export default {
that.close('pop')
if (res.data.status == 1) {
const status = await that.$c.wxMpPay({
const status = await this.$platform.pay({
data: res.data.res
})
if (status == 'success') {

View File

@ -0,0 +1,44 @@
<template>
<page-container title="选择地址" :showBack="true">
</page-container>
</template>
<script>
import PageContainer from '@/components/page-container/page-container.vue'
export default {
components: {
PageContainer
},
data() {
return {}
},
onLoad() {
this.load();
// test.vue
onLoad: function(option) {
const eventChannel = this.getOpenerEventChannel();
eventChannel.emit('acceptDataFromOpenedPage', {
data: 'data from test page'
});
eventChannel.emit('someEvent', {
data: 'data from test page for someEvent'
});
// acceptDataFromOpenerPageeventChannel
eventChannel.on('acceptDataFromOpenerPage', function(data) {
console.log(data)
})
},
}
methods: {
async load() {
},
}
}
</script>
<style lang="scss">
</style>

View File

@ -709,7 +709,7 @@ export default {
this.remark = ''
if (res.data.status == 1) {
const status = await this.$c.wxMpPay({
const status = await this.$platform.pay({
data: res.data.res
})

View File

@ -470,9 +470,9 @@ export default {
this.close("buyPop");
if (res.data.status == 1) {
const status = await this.$c.wxMpPay({
data: res.data.res,
});
const status = await this.$platform.pay({
data: res.data.res
})
if (status == "success") {
this.getPrize(res.data.order_num);

View File

@ -832,8 +832,8 @@ export default {
}
if (status == 1) {
if (data.status == 1) {
const status = await this.$c.wxMpPay({
data: data.res
const status = await this.$platform.pay({
data: res.data.res
})
if (status == 'success') {