Browse Source

fix: 修改环境配置为测试环境并启用微信分享调试

修改config/index.js中的环境配置从dev改为test
在utils/share.js中启用微信分享的debug模式
在cash.vue中添加H5平台特定的提现类型参数
清理promote.vue中冗余的商户号注释
hfll
主管理员 2 weeks ago
parent
commit
68890fdfe1
4 changed files with 6 additions and 3 deletions
  1. +1
    -1
      config/index.js
  2. +3
    -0
      subPages/user/cash.vue
  3. +1
    -1
      subPages/user/promote.vue
  4. +1
    -1
      utils/share.js

+ 1
- 1
config/index.js View File

@ -12,7 +12,7 @@ const envParam = {
prod: 'production',
}
const env = envParam['dev']
const env = envParam['test']
// 全局配置
const config = {


+ 3
- 0
subPages/user/cash.vue View File

@ -90,6 +90,9 @@ export default {
}
const subRes = await this.$api.promotion.withdraw({
// #ifdef H5
type : 'official',
// #endif
name: this.realName,
money: this.amount
})


+ 1
- 1
subPages/user/promote.vue View File

@ -200,7 +200,7 @@ export default {
}
//
wx.requestMerchantTransfer({
mchId: '1724993508',//
mchId: '1724993508',//
appId: wx.getAccountInfoSync().miniProgram.appId,
package: item.packageInfo,
success: async (res) => {


+ 1
- 1
utils/share.js View File

@ -20,7 +20,7 @@ function share() { //微信分享
timestamp
} = res.result
jWeixin.config({
debug: false,
debug: true,
appId: appId,
nonceStr: nonceStr,
signature: signature,


Loading…
Cancel
Save