|
|
@@ -6,7 +6,7 @@
|
|
|
<div class="app-size-28">今日概况</div>
|
|
|
<view class="open-bt_bx">
|
|
|
<button
|
|
|
- @tap="getMyMall"
|
|
|
+ @tap="getMyMall('pages/home/index')"
|
|
|
class="admin-button-com"
|
|
|
>
|
|
|
<i class="iconfont iconfenxiang"></i>
|
|
|
@@ -98,7 +98,7 @@
|
|
|
v-for="(item, index) in tabsData"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <div @click="pageTo(item)">
|
|
|
+ <div @click="goPage(item)">
|
|
|
<div class="tabs-img">
|
|
|
<img
|
|
|
:src="item.img"
|
|
|
@@ -313,6 +313,14 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ goPage (item) {
|
|
|
+ console.log(item.url)
|
|
|
+ if (item.url === '/admin/billing/priceChange') {
|
|
|
+ this.getMyMall('pages/pay/index')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$util.pageTo(item)
|
|
|
+ },
|
|
|
init () {
|
|
|
getUser().then(res => {
|
|
|
uni.setNavigationBarTitle({
|
|
|
@@ -364,11 +372,11 @@ export default {
|
|
|
type: 2
|
|
|
});
|
|
|
},
|
|
|
- getMyMall () {
|
|
|
+ getMyMall (url) {
|
|
|
getWeixinId().then(res => {
|
|
|
uni.navigateToMiniProgram({
|
|
|
appId: res.data.mall.miniAppId,
|
|
|
- path: 'pages/home/index?account=' + this.loginInfo.shopId,
|
|
|
+ path: url + '?account=' + this.loginInfo.shopId, //
|
|
|
//develop 开发板 trial 体验版 release 正式版
|
|
|
envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
extraData: {
|