|
@@ -38,12 +38,13 @@
|
|
</uni-list>
|
|
</uni-list>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <button v-if="useUserStore.isLogin" class="send-button ss-m-b-30" @tap="handleLogout">退出登录</button>
|
|
|
|
|
|
+ <button v-if="useUserStore.isLogin" class="send-button" style="margin-bottom: 50px;" @tap="handleLogout">退出登录</button>
|
|
|
|
|
|
<uni-popup ref="popup" type="dialog">
|
|
<uni-popup ref="popup" type="dialog">
|
|
<uni-popup-dialog type="warn" cancelText="取消" confirmText="确定" title="系统提示" content="确认退出账号?" @confirm="handleLogoutConfirm"
|
|
<uni-popup-dialog type="warn" cancelText="取消" confirmText="确定" title="系统提示" content="确认退出账号?" @confirm="handleLogoutConfirm"
|
|
@close="handleLogoutClose"></uni-popup-dialog>
|
|
@close="handleLogoutClose"></uni-popup-dialog>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
+ <!-- 我的分享码 -->
|
|
<uni-popup ref="shareQrCodePopup" type="dialog">
|
|
<uni-popup ref="shareQrCodePopup" type="dialog">
|
|
<view class="shareQrCodePopupContent">
|
|
<view class="shareQrCodePopupContent">
|
|
<view class="color-primary text">邀请用户注册领50积分</view>
|
|
<view class="color-primary text">邀请用户注册领50积分</view>
|
|
@@ -58,6 +59,13 @@
|
|
<view v-if="shareUrl" class="saveImg">长按二维码保存图片</view>
|
|
<view v-if="shareUrl" class="saveImg">长按二维码保存图片</view>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
+
|
|
|
|
+ <uni-popup ref="inputDialog" type="dialog">
|
|
|
|
+ <view class="shareQrCodePopupContent">
|
|
|
|
+ <view>请前往网页版{{ dialogType ? '门墩儿招聘' : '门墩儿商城' }}</view>
|
|
|
|
+ <uni-link class="ss-m-t-10" :href="dialogType ? 'http://menduner.citupro.com:7878' : 'http://menduner.citupro.com:7878/mall'" text="点击复制网页地址" color="#00897B" fontSize="16" copyTips="已复制,请在电脑端打开"></uni-link>
|
|
|
|
+ </view>
|
|
|
|
+ </uni-popup>
|
|
</view>
|
|
</view>
|
|
</layout-page>
|
|
</layout-page>
|
|
</template>
|
|
</template>
|
|
@@ -81,6 +89,7 @@ onShow(() => {
|
|
currentTabBar?.setData({ selected: 4 });
|
|
currentTabBar?.setData({ selected: 4 });
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+const inputDialog = ref()
|
|
const useUserStore = userStore()
|
|
const useUserStore = userStore()
|
|
const baseInfo = computed(() => useUserStore?.baseInfo)
|
|
const baseInfo = computed(() => useUserStore?.baseInfo)
|
|
const userInfo = computed(() => useUserStore?.userInfo)
|
|
const userInfo = computed(() => useUserStore?.userInfo)
|
|
@@ -112,22 +121,27 @@ watch(
|
|
)
|
|
)
|
|
|
|
|
|
// 列表跳转
|
|
// 列表跳转
|
|
|
|
+const dialogType = ref('')
|
|
const handleToLink = (item) => {
|
|
const handleToLink = (item) => {
|
|
if (item.appId) {
|
|
if (item.appId) {
|
|
// uni.navigateToMiniProgram({
|
|
// uni.navigateToMiniProgram({
|
|
// appId: item.appId,
|
|
// appId: item.appId,
|
|
// })
|
|
// })
|
|
// return
|
|
// return
|
|
- uni.showToast({
|
|
|
|
- title: '请前往网页版门墩儿商城',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '请前往网页版门墩儿商城',
|
|
|
|
+ // icon: 'none'
|
|
|
|
+ // })
|
|
|
|
+ dialogType.value = 0
|
|
|
|
+ inputDialog.value.open()
|
|
}
|
|
}
|
|
if (item.key === 'recruit') {
|
|
if (item.key === 'recruit') {
|
|
- uni.showToast({
|
|
|
|
- title: '请前往网页版门墩儿招聘',
|
|
|
|
- icon: 'none'
|
|
|
|
- })
|
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: '请前往网页版门墩儿招聘',
|
|
|
|
+ // icon: 'none'
|
|
|
|
+ // })
|
|
|
|
+ dialogType.value = 1
|
|
|
|
+ inputDialog.value.open()
|
|
}
|
|
}
|
|
if (!item.path) return
|
|
if (!item.path) return
|
|
if (!getAccessToken()) {
|
|
if (!getAccessToken()) {
|
|
@@ -279,8 +293,8 @@ const handleLogoutConfirm = () => {
|
|
margin: 0 0 20rpx 30rpx;
|
|
margin: 0 0 20rpx 30rpx;
|
|
}
|
|
}
|
|
.shareQrCodePopupContent {
|
|
.shareQrCodePopupContent {
|
|
- width: 80vw;
|
|
|
|
- padding: 30rpx;
|
|
|
|
|
|
+ width: 75vw;
|
|
|
|
+ padding: 40rpx;
|
|
margin-bottom: 20rpx;
|
|
margin-bottom: 20rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
background-color: #fff;
|
|
background-color: #fff;
|