|
|
@@ -2,17 +2,18 @@
|
|
|
<view class="page">
|
|
|
|
|
|
<!-- #ifdef H5-->
|
|
|
- <uni-nav-bar v-if="!$isWxBrowser()" :fixed="true" background-color="#FFE05C" :border="false" :statusBar="false" title="首页"/>
|
|
|
+ <uni-nav-bar v-if="!$isWxBrowser()" :fixed="true" background-color="#FFE05C" :border="false" :statusBar="false"
|
|
|
+ title="首页" />
|
|
|
<!-- #endif -->
|
|
|
|
|
|
- <manager v-if="isManager == '1'"></manager>
|
|
|
- <attach v-else-if="isManager == '0' && (roleTag == '0' || roleTag == '2')"></attach>
|
|
|
+ <manager v-if="isManager == '1'"></manager>
|
|
|
+ <attach v-else-if="isManager == '0' && (roleTag == '0' || roleTag == '2')"></attach>
|
|
|
|
|
|
- <view :style="{height:height}" v-else-if="isManager == '0' && roleTag == '1'" class="flex-col justify-center">
|
|
|
- <view class="flex-row justify-center">
|
|
|
- <text>合作伙伴相关功能正在建设中...</text>
|
|
|
- </view>
|
|
|
+ <view :style="{height:height}" v-else-if="isManager == '0' && roleTag == '1'" class="flex-col justify-center">
|
|
|
+ <view class="flex-row justify-center">
|
|
|
+ <text>合作伙伴相关功能正在建设中...</text>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -27,8 +28,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- isManager:'',
|
|
|
- roleTag:'',
|
|
|
+ isManager: '',
|
|
|
+ roleTag: '',
|
|
|
height: '',
|
|
|
ruleList: [],
|
|
|
roleList: [],
|
|
|
@@ -38,15 +39,18 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
let sysInfo = uni.getSystemInfoSync()
|
|
|
- this.height = sysInfo.windowHeight + 'px'
|
|
|
+ this.height = sysInfo.windowHeight + 'px'
|
|
|
+
|
|
|
|
|
|
- this.userInfo = uni.getStorageSync('spreadUserInfo')
|
|
|
- this.isManager = this.userInfo.isManager
|
|
|
- this.roleTag = this.userInfo.roleTag
|
|
|
},
|
|
|
onShow() {
|
|
|
this.userInfo = uni.getStorageSync('spreadUserInfo')
|
|
|
console.log('时间戳', new Date().getTime())
|
|
|
+
|
|
|
+ this.userInfo = uni.getStorageSync('spreadUserInfo')
|
|
|
+ this.isManager = this.userInfo.isManager
|
|
|
+ this.roleTag = this.userInfo.roleTag
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
// 微信支付
|
|
|
@@ -87,4 +91,4 @@
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
@import './index.rpx.css';
|
|
|
-</style>
|
|
|
+</style>
|