|
@@ -83,11 +83,11 @@
|
|
|
<view class="body_box">
|
|
<view class="body_box">
|
|
|
<view class="box_title">常用工具</view>
|
|
<view class="box_title">常用工具</view>
|
|
|
<view class="box_list">
|
|
<view class="box_list">
|
|
|
- <view class="item_box" @click="handleShowCar" v-if="showFab">
|
|
|
|
|
|
|
+ <view class="item_box" @click="handleShowCar">
|
|
|
<img class="box_img" src="../../static/my/shopcar.png" />
|
|
<img class="box_img" src="../../static/my/shopcar.png" />
|
|
|
<view class="box_text">购物车</view>
|
|
<view class="box_text">购物车</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="item_box" @click="handleShowAddress" v-if="showFab">
|
|
|
|
|
|
|
+ <view class="item_box" @click="handleShowAddress">
|
|
|
<img class="box_img" src="../../static/my/address.png" />
|
|
<img class="box_img" src="../../static/my/address.png" />
|
|
|
<view class="box_text">收货地址</view>
|
|
<view class="box_text">收货地址</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -119,8 +119,7 @@ export default {
|
|
|
// 胶囊按钮栏高度
|
|
// 胶囊按钮栏高度
|
|
|
customBarH: 0,
|
|
customBarH: 0,
|
|
|
// 顶部页面标题栏显示隐藏控制
|
|
// 顶部页面标题栏显示隐藏控制
|
|
|
- headerType: false,
|
|
|
|
|
- showFab: true
|
|
|
|
|
|
|
+ headerType: false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -146,7 +145,6 @@ export default {
|
|
|
uni.$on('changeFlag', this.changeFlag)
|
|
uni.$on('changeFlag', this.changeFlag)
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
- this.getShow()
|
|
|
|
|
let openid = uni.getStorageSync('openid')
|
|
let openid = uni.getStorageSync('openid')
|
|
|
if (openid) {
|
|
if (openid) {
|
|
|
this.flag = true
|
|
this.flag = true
|
|
@@ -156,15 +154,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- async getShow() {
|
|
|
|
|
- const res = await this.$myRequest({
|
|
|
|
|
- url: '/mhotel/admintrueStr.action'
|
|
|
|
|
- })
|
|
|
|
|
- // console.log(res)
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- res.data == 0 ? (this.showFab = true) : (this.showFab = false)
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
// 跳转页面回调
|
|
// 跳转页面回调
|
|
|
handleGoPage(url) {
|
|
handleGoPage(url) {
|
|
|
if (this.isLogin()) {
|
|
if (this.isLogin()) {
|