|
@@ -34,7 +34,7 @@
|
|
<view class="item-btn-text">自助采摘</view>
|
|
<view class="item-btn-text">自助采摘</view>
|
|
<view class="iconfont iconfangxiang"></view>
|
|
<view class="iconfont iconfangxiang"></view>
|
|
</view>
|
|
</view>
|
|
- <view class="item-btn" @click="authorizeClick()">
|
|
|
|
|
|
+ <view class="item-btn" @click="authorizeClick()" v-if="userData.isMaster">
|
|
<view class="iconfont iconguanyu item-btn-icon"></view>
|
|
<view class="iconfont iconguanyu item-btn-icon"></view>
|
|
<view class="item-btn-text">授权</view>
|
|
<view class="item-btn-text">授权</view>
|
|
<view class="iconfont iconfangxiang"></view>
|
|
<view class="iconfont iconfangxiang"></view>
|
|
@@ -78,6 +78,7 @@
|
|
userId: '',
|
|
userId: '',
|
|
userName: '',
|
|
userName: '',
|
|
headImage: '',
|
|
headImage: '',
|
|
|
|
+ isMaster: 0,
|
|
},
|
|
},
|
|
manageInfo: {},
|
|
manageInfo: {},
|
|
modalShow: false
|
|
modalShow: false
|
|
@@ -85,6 +86,7 @@
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
this.userData = uni.getStorageSync("userData")
|
|
this.userData = uni.getStorageSync("userData")
|
|
|
|
+ console.log('是否授权', this.userData.isMaster)
|
|
NET.request(API.getManageInfo, {}, 'POST').then(res => {
|
|
NET.request(API.getManageInfo, {}, 'POST').then(res => {
|
|
this.manageInfo = res.data
|
|
this.manageInfo = res.data
|
|
}).catch(error => {
|
|
}).catch(error => {
|