Browse Source

fix id1505

tid1509
刘嘉炜 8 months ago
parent
commit
57edb63fb9
  1. 14
      src/pages/index/index.vue
  2. 2
      src/pages/login/login.vue
  3. 2
      src/pages/merchant_login/merchant_login.vue
  4. 12
      src/pages/web_view/web_view.vue
  5. 2
      src/store/index.js
  6. 6
      src/subpackage/wallet/pages/baofu_withdraw/modules/baofu_item.vue
  7. 10
      src/subpackage/wallet/pages/index/index.vue
  8. 2
      src/subpackage/wallet/pages/index/modules/wallet_info.vue

14
src/pages/index/index.vue

@ -127,12 +127,12 @@
path: '/subpackage/retail/pages/index/index',
serverKey: 1011 //
},
{
id: 8,
name: '课程管理',
path: '/subpackage/course/pages/index/index',
serverKey: 1013 // 1013
},
// {
// id: 8,
// name: '',
// path: '/subpackage/course/pages/index/index',
// serverKey: 1013 // 1013
// },
{
id: 9,
name: '储值卡管理',
@ -147,7 +147,7 @@
},
{
id: 11,
name: '钱包',
name: '钱包提现',
path: '/subpackage/wallet/pages/index/index',
serverKey: 1017 // 1017
},

2
src/pages/login/login.vue

@ -121,7 +121,7 @@ export default {
}
},
toWebView(){
util.routeTo(`/pages/web_view/web_view`,'rL');
util.routeTo(`/pages/web_view/web_view?src=${encodeURIComponent("https://www.ouxuanzhineng.cn")}`,'rL');
}
},
}

2
src/pages/merchant_login/merchant_login.vue

@ -12,7 +12,7 @@ import util from '../../utils/util'
export default {
methods: {
toWebView(){
util.routeTo(`/pages/web_view/web_view`,'rL');
util.routeTo(`/pages/web_view/web_view?src=${encodeURIComponent("https://www.ouxuanzhineng.cn")}`,'rL');
}
}
}

12
src/pages/web_view/web_view.vue

@ -1,10 +1,16 @@
<template>
<web-view src="https://www.ouxuanzhineng.cn"></web-view>
<web-view :src="address"></web-view>
</template>
<script>
export default {
onLoad(){
data(){
return {
address: ''
}
},
onLoad(options){
console.log('web_view options', options);
this.address = decodeURIComponent(options?.src || 'https://www.ouxuanzhineng.cn');
}
}
</script>

2
src/store/index.js

@ -40,7 +40,7 @@ export default new Vuex.Store({
'1009': '场地管理',
'1010': '设备管理',
'1011': '商品零售',
'1013': '课程管理',
// '1013': '课程管理',
'1014': '储值卡管理',
'1015': '进场人数异常',
'1017': '钱包提现'

6
src/subpackage/wallet/pages/baofu_withdraw/modules/baofu_item.vue

@ -22,21 +22,21 @@
<view class="bb-btn" @click="$emit('click:extract')">提现</view>
</view>
<view class="bi-tip">
<view class="bt-txt">可提现资金()</view>
<view class="bt-txt" @click="showModalTip(0)">可提现资金()</view>
<image class="bt-icon" mode="aspect" src="/subpackage/wallet/static/images/question_mark.png" @click="showModalTip(0)"></image>
</view>
<view class="bi-mony-info">
<view class="bmi-item">
<view class="bi-num">{{ accountInfo.currBal || 0 }}</view>
<view class="bi-tip">
<view class="bt-txt">总资产()</view>
<view class="bt-txt" @click="showModalTip(1)">总资产()</view>
<image class="bt-icon" mode="aspect" src="/subpackage/wallet/static/images/question_mark.png" @click="showModalTip(1)"></image>
</view>
</view>
<view class="bmi-item">
<view class="bi-num">{{ accountInfo.pendingBal || 0 }}</view>
<view class="bi-tip">
<view class="bt-txt">在途资金()</view>
<view class="bt-txt" @click="showModalTip(2)">在途资金()</view>
<image class="bt-icon" mode="aspect" src="/subpackage/wallet/static/images/question_mark.png" @click="showModalTip(2)"></image>
</view>
</view>

10
src/subpackage/wallet/pages/index/index.vue

@ -4,6 +4,7 @@
:balance="balance"
@click:douyin="dyBtnClick"
@click:baofu="bfBtnClick"
@click:admin="toWebView"
></wallet-info>
<view class="wi-tips">
<view class="wt-tit">温馨提示</view>
@ -40,8 +41,17 @@ export default {
onLoad(options){
this.brand_id = options.brand_id ?? '';
this.getWalletBalance(options.brand_id);
console.log(uni.getAccountInfoSync().miniProgram)
},
methods: {
toWebView(){
routeTo(`/pages/web_view/web_view?src=${encodeURIComponent(this.getAdminAddress())}`,'nT');
},
getAdminAddress(){
let _appid = uni.getAccountInfoSync()?.miniProgram?.appId || '';
if(_appid === "wx7106e84614cf0060")return 'https://testadmin.ouxuanzhineng.cn'; //
return 'https://admin.ouxuanzhineng.cn'; //
},
copyBtn(){
uni.setClipboardData({
data: this.oxAddress,

2
src/subpackage/wallet/pages/index/modules/wallet_info.vue

@ -1,6 +1,6 @@
<template>
<view class="wallet-info">
<view class="wi-bar">
<view class="wi-bar" @click="$emit('click:admin')">
<view class="wb-txt">钱包查账可登录后台查阅</view>
<image class="wb-icon" mode="aspect" src="/subpackage/wallet/static/images/arrow_b2.png"></image>
</view>

Loading…
Cancel
Save