From 6b4ede1806da26d93f5fad839199fe8b2e0641f5 Mon Sep 17 00:00:00 2001 From: zhao_js <349234519@qq.com> Date: 星期二, 28 十一月 2023 16:28:34 +0800 Subject: [PATCH] no message --- uniapp/components/indexPage.vue | 30 ++++++++++++++- uniapp/pages/login/setInviteCode.vue | 13 ++++-- uniapp/pages/mine/setting/modifyInfo.vue | 20 +++++++++- 3 files changed, 54 insertions(+), 9 deletions(-) diff --git a/uniapp/components/indexPage.vue b/uniapp/components/indexPage.vue index 021cf19..d375a0f 100644 --- a/uniapp/components/indexPage.vue +++ b/uniapp/components/indexPage.vue @@ -39,7 +39,7 @@ <swiper-item v-for="(sliderItem, index) in navbarShowList" :key="index"> <view class="slider_itemslist rowSta"> <view class="item colCen" v-for="(item, idx) in sliderItem" :key="idx" - @click="goUrl(item)"> + @click="perVerification(item)"> <image :src="item.image" :lazy-load="true" mode="aspectFit"></image> <view class="desc">{{ item.mname }}</view> </view> @@ -404,6 +404,9 @@ </view> </scroll-view> <slideTop v-if="scrollTop>1000" @toTop='scrolltoTops'></slideTop> + + <u-modal v-model="showConModel" show-cancel-button :content="conContent" @confirm="modConfirm" :async-close="true"> + </u-modal> </view> </template> @@ -505,6 +508,9 @@ wphbanner:[], haspreference:false, preferData:{}, + showConModel:false, + conContent:'', + urlInfo:{} } }, watch: { @@ -551,6 +557,26 @@ }, 1500) }, methods: { + perVerification(info) + { + this.urlInfo=info; + var mapPer="鏈湴鐢熸椿,鐢靛奖7鎶�" + var menuName=info.mname; + if(mapPer.indexOf(menuName)>-1) + { + this.conContent='搴旂敤灏嗙敵璇蜂綅缃潈闄愶紝鐢ㄤ簬蹇�熼�夊畾鎵�鍦ㄥ煄甯�'; + this.showConModel=true; + } + else + { + this.goUrl(info); + } + }, + modConfirm() + { + this.showConModel=false; + this.goUrl(this.urlInfo); + }, checkPreferenceGoods() {//鏄惁鏈夋帹鑽� var that = this; @@ -921,7 +947,7 @@ } }) }, - + goUrl(info) { utils.goUrl(info, this) }, diff --git a/uniapp/pages/login/setInviteCode.vue b/uniapp/pages/login/setInviteCode.vue index efa0c41..11fb697 100644 --- a/uniapp/pages/login/setInviteCode.vue +++ b/uniapp/pages/login/setInviteCode.vue @@ -1,5 +1,5 @@ -<template style="background:#fff"> - <view class="invite-code-container colCen borderBox"> +<template style="background:#fff"> + <view v-if="isshowpage" class="invite-code-container colCen borderBox"> <view class="model-title rowCenCen"> 璇疯緭鍏ラ個璇风爜 </view> @@ -66,17 +66,20 @@ data(){ return{ isShowCode:false, - inviteCode:'', + inviteCode:'DAFANGUAN', appInfo:'', inviterShow:false, platform:'', commonInvite:[], - inviteIndex:0 + inviteIndex:0, + isshowpage:false } }, onLoad() { - this.getInviter(); + //this.getInviter(); + //鍘婚櫎閭�璇风爜 + this.setCode(); }, mounted() { this.appInfo = uni.getStorageSync('appInfo'); diff --git a/uniapp/pages/mine/setting/modifyInfo.vue b/uniapp/pages/mine/setting/modifyInfo.vue index da768ca..990facf 100644 --- a/uniapp/pages/mine/setting/modifyInfo.vue +++ b/uniapp/pages/mine/setting/modifyInfo.vue @@ -2,7 +2,7 @@ <view class="modifyInfo-wrapper wrapperLayer"> <titleBar :titleText="'淇敼淇℃伅'" :pageForm='"modifyInfo"'></titleBar> <view class="pagebottom-container colCen"> - <view class="userAvator-bar pd30 rowCenBet" @tap="avatarChoose()"> + <view class="userAvator-bar pd30 rowCenBet" @tap="perVerification()"> <view class="leftkey"> 澶村儚 </view> @@ -27,7 +27,11 @@ </view> </view> </view> + <u-modal v-model="showConModel" show-cancel-button :content="conContent" @confirm="modConfirm" :async-close="true"> + </u-modal> </view> + + </template> <script> @@ -40,7 +44,9 @@ }, data() { return { - user:'' + user:'', + showConModel:false, + conContent:'', } }, onShow() { @@ -49,6 +55,16 @@ }) }, methods:{ + perVerification() + { + this.conContent='搴旂敤灏嗙敵璇峰瓨鍌ㄣ�佹媿鐓х殑鏉冮檺锛屼粎鐢ㄤ簬澶村儚鐨勫浘鐗囬�夊彇'; + this.showConModel=true; + }, + modConfirm() + { + this.showConModel=false; + this.avatarChoose(); + }, nickname(){ uni.navigateTo({ url:'./setNickname?nickName='+this.user.nickname -- Gitblit v1.9.3