修改支付
This commit is contained in:
parent
66fed95370
commit
8c995b5bf5
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -364,6 +364,13 @@
|
|||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/other/choose_address",
|
||||
"style" :
|
||||
{
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [{
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
44
pages/other/choose_address.vue
Normal file
44
pages/other/choose_address.vue
Normal 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'
|
||||
});
|
||||
// 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
|
||||
eventChannel.on('acceptDataFromOpenerPage', function(data) {
|
||||
console.log(data)
|
||||
})
|
||||
},
|
||||
}
|
||||
methods: {
|
||||
async load() {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user