|
@@ -28,7 +28,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <button v-if="getLoginInfo.switchShop" @click="showAllShop" class="admin-button-com default chang-shop_btn" > <i class="iconfont iconqiehuan1"></i> 切换门店 </button>
|
|
|
|
|
|
|
+ <button v-if="getLoginInfo.switchShop" @click="modifyShop" class="admin-button-com default chang-shop_btn" > <i class="iconfont iconqiehuan1"></i> 切换门店 </button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
|
|
<view class="image-box" > <view class="dec"></view> <image :src="`${constant.imgUrl}/ghs/me/upgrade2.png`"></image> </view>
|
|
|
</view>
|
|
</view>
|
|
@@ -169,13 +169,11 @@
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
import { mainMy, applyCash } from "@/api/home";
|
|
import { mainMy, applyCash } from "@/api/home";
|
|
|
-import { toggleShop } from "@/api/common";
|
|
|
|
|
import { inMoney,outMoney } from "@/api/shop-money";
|
|
import { inMoney,outMoney } from "@/api/shop-money";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import { list } from "@/mixins";
|
|
import { list } from "@/mixins";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import NotLogin from "@/components/not-login";
|
|
import NotLogin from "@/components/not-login";
|
|
|
-import { getShopInfo } from "@/utils/auth";
|
|
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
export default {
|
|
export default {
|
|
|
name: "me",
|
|
name: "me",
|
|
@@ -301,8 +299,8 @@ export default {
|
|
|
plus.runtime.openURL('http://www.wixhb.com/main/xhb-privacy')
|
|
plus.runtime.openURL('http://www.wixhb.com/main/xhb-privacy')
|
|
|
// #endif
|
|
// #endif
|
|
|
},
|
|
},
|
|
|
- showAllShop () {
|
|
|
|
|
- this.$refs.shopSelectComponent.dropdownShow = true;
|
|
|
|
|
|
|
+ modifyShop () {
|
|
|
|
|
+ this.$util.pageTo({url:'/admin/shop/myShop'})
|
|
|
},
|
|
},
|
|
|
async init () {
|
|
async init () {
|
|
|
const { data } = await mainMy();
|
|
const { data } = await mainMy();
|
|
@@ -334,23 +332,6 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// #endif
|
|
// #endif
|
|
|
- async selectShopFn (val) {
|
|
|
|
|
- uni.showLoading({mask:true})
|
|
|
|
|
- await toggleShop({ shopId: val.id })
|
|
|
|
|
- uni.hideLoading()
|
|
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
|
|
- this.$store.commit("setLoginInfo", {})
|
|
|
|
|
- this.$store.commit("setMyShopInfo", {})
|
|
|
|
|
- this.$util.pageTo({url: "/admin/home/me",type: 3})
|
|
|
|
|
- // #endif
|
|
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
|
- this.$store.commit("setLoginInfo", {})
|
|
|
|
|
- this.$store.commit("setDictionariesInfo", {})
|
|
|
|
|
- this.$store.commit("setMyShopInfo", {})
|
|
|
|
|
- plus.runtime.restart()
|
|
|
|
|
- // #endif
|
|
|
|
|
- getShopInfo(true)
|
|
|
|
|
- },
|
|
|
|
|
outCash(){
|
|
outCash(){
|
|
|
|
|
|
|
|
},
|
|
},
|