mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-07 06:22:27 +08:00
修复bug以及优化
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
|
||||
<!-- 底部导航栏 -->
|
||||
<assetBottomBar v-if="asset.status === '闲置中'" :assetId="assetId" :phone="managerPhone"
|
||||
@reserve="showReserve = true" btn-title="预约看资产" shareBtnTitle="分享资产"
|
||||
@reserve="showReservePopup()" btn-title="预约看资产" shareBtnTitle="分享资产"
|
||||
page-path="/pages-assets/assets/detail/assetsDetail" minicode-api="/pages-assets/assets/detail/assetsDetail"
|
||||
btnColor="#FF2F31" :query="assetId" />
|
||||
</view>
|
||||
@@ -224,6 +224,10 @@
|
||||
// this.navbarStyle.isTransparent = true;
|
||||
// }
|
||||
},
|
||||
showReservePopup(){
|
||||
this.$checkToken(this.$getToken());
|
||||
this.showReserve = true
|
||||
},
|
||||
getRandomColor() {
|
||||
const index = Math.floor(Math.random() * this.tagColors.length)
|
||||
return this.tagColors[index]
|
||||
|
||||
@@ -67,6 +67,20 @@
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
const userInfo = uni.getStorageSync('userInfo')
|
||||
if (!userInfo || !userInfo.oaAuth) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未实名认证,请先完成实名认证',
|
||||
showCancel: false,
|
||||
confirmText: '去认证',
|
||||
success: () => {
|
||||
uni.redirectTo({ url: '/pages-biz/profile/profile' })
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
// 👇 你的方法 1 行没改
|
||||
statusText(status) {
|
||||
switch (status) {
|
||||
@@ -161,6 +175,7 @@
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
},
|
||||
onLoad() {
|
||||
this.fetchApplys()
|
||||
|
||||
@@ -80,11 +80,26 @@
|
||||
},
|
||||
onShow() {
|
||||
this.$checkToken(this.$getToken())
|
||||
this.checkOaAuth()
|
||||
},
|
||||
onLoad() {
|
||||
this.fetchFallback();
|
||||
},
|
||||
methods: {
|
||||
checkOaAuth() {
|
||||
const userInfo = uni.getStorageSync('userInfo')
|
||||
if (!userInfo || !userInfo.oaAuth) {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '您还未实名认证,请先完成实名认证',
|
||||
showCancel: false,
|
||||
confirmText: '去认证',
|
||||
success: () => {
|
||||
uni.redirectTo({ url: '/pages-biz/profile/profile' })
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
navigateToDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: "/pages-assets/fallback/fallbackDetail?id=" + item.id
|
||||
|
||||
Reference in New Issue
Block a user