Commit 6dbb72df authored by 罗林杰's avatar 罗林杰

修改实名弹窗

parent ab889a20
......@@ -3,7 +3,6 @@
<view class="bg"></view>
<view class="dialog_content">
<view class="bag">
<image class="pop-bgc" :src="img + '/img/home-pop-bg.png'"></image>
<view class="divss">
<view class="namne">{{tips}}</view>
<view class="namnes">{{ msg!=null&&msg!=''?msg:"网络异常" }}</view>
......
......@@ -55,6 +55,7 @@
</view>
</view>
</u-popup>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</z-paging-swiper>
</template>
......@@ -62,13 +63,15 @@
import ListVue from '../components/article/List.vue';
import login from '../../components/login/login.vue';
import {isStopAccount, userDetail} from "../../api/user";
import ELM from '@/components/elm-toast/index.vue';
export default {
options: {
styleIsolation: 'shared'
},
components: {
ListVue,
login
login,
ELM
},
data() {
return {
......@@ -95,6 +98,8 @@
isLoginPop: false,
//话题id
topicId: null,
tipMsg: '',
isConfirm: false,
};
},
onShow() {
......@@ -147,10 +152,9 @@
if (memInfo.memNickName != null && memInfo.memNickName != '' && memInfo.memBirthday != null && memInfo.memMaxEducation != null
&& memInfo.memCareer != '' && memInfo.memCareer != null && memInfo.memResidenceProvince != null && memInfo.memResidenceCity != null){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
uni.showToast({
title: '请先实名认证',
icon: 'none'
})
this.tipMsg = '当前用户未实名,请先实名认证';
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
//已完善个人资料 可以发布动态
......@@ -189,6 +193,12 @@
goMessage() {
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
//登录弹窗
getToLogin(e) {
if (e == 0) {
......
......@@ -67,6 +67,7 @@
</view>
</view>
</view>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view>
</template>
......@@ -77,9 +78,11 @@
import {isStopAccount, userDetail, userList} from '../../api/user/index'
import {getCity} from "../../common/options";
import {getOssUrl} from "../../api/article";
import ELM from '@/components/elm-toast/index.vue';
export default {
components: {
LsSwiper
LsSwiper,
ELM
},
data() {
return {
......@@ -96,6 +99,8 @@
},
//用户列表
userList: [],
tipMsg: '',
isConfirm: false,
};
},
onHide() {
......@@ -208,10 +213,9 @@
})
}else {
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
uni.showToast({
title: '请先实名认证',
icon: 'none'
})
this.tipMsg = '当前用户未实名,请先实名认证';
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
uni.navigateTo({
......@@ -220,6 +224,12 @@
}
})
}
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
},
};
......
......@@ -55,12 +55,17 @@
</view>
</view>
</u-popup>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view>
</template>
<script>
import {activityDetail, addApplication, isApplication, pay} from "../api/activity/index.js"
export default {
import ELM from '@/components/elm-toast/index.vue';
export default {
components: {
ELM
},
data() {
return {
//图片路径
......@@ -71,6 +76,8 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
buynum: 1, // 购买数量
totalprice: 0, //总价
isApplication: false,
tipMsg: '',
isConfirm: false,
}
},
onLoad(options) {
......@@ -110,10 +117,9 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
//校验token 如果没有token,跳到登录页进行登录
if (token && token !== '' && token != null){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
uni.showToast({
title: '请先实名认证',
icon: 'none'
})
this.tipMsg = '当前用户未实名,请先实名认证';
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
this.show = true
......@@ -227,6 +233,12 @@ import {activityDetail, addApplication, isApplication, pay} from "../api/activit
const price = this.activityDetail.applicationFee * this.buynum
this.totalprice = price
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
// 关闭报名弹窗
close() {
this.show = false
......
......@@ -109,6 +109,7 @@
</view>
<!-- 登录弹窗-->
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view>
</template>
......@@ -118,9 +119,11 @@ import {articleDetail, comment, getOssUrl, likeComment} from '../api/article/ind
import {getCity, getValue} from "../common/options";
import {calculateAge, parseDate} from "../common";
import {isStopAccount, userDetail} from "../api/user";
import ELM from '@/components/elm-toast/index.vue';
export default{
components: {
ArticleItem,
ELM
},
data () {
return {
......@@ -139,6 +142,8 @@ export default{
commentedUserId:null,
//上级评论ID
parentId:null,
tipMsg: '',
isConfirm: false,
}
},
onLoad(params){
......@@ -226,10 +231,9 @@ export default{
})
} else {
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
uni.showToast({
title: '请先实名认证',
icon: 'none'
})
this.tipMsg = '当前用户未实名,请先实名认证';
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
this.commentValue = ''
......@@ -331,6 +335,12 @@ export default{
}
})
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
//登录弹窗
getToLogin(e) {
if (e == 0) {
......
......@@ -181,7 +181,7 @@
</view>
<!-- 两个图标按钮 喜欢和不喜欢-->
<view v-if="showArrowDown">
<view>
<view class="footer-fixedlike" v-if="userData.selfMatchingStatus == null">
<view class="left">
<image :src="baseUrl+'/user/like.png'" @click="like(userData.userId,baseUrl+'/user/like.png')" style="width: 100%;height: 100%;;" mode="aspectFill"></image>
......@@ -206,14 +206,14 @@
</template>
<script>
import {addFollow, addMemTraffic, addMessage, deleteFollow, isFollow, likeUser, userDetail} from "../api/user";
import {addFollow, addMemTraffic, addMessage, deleteFollow, isFollow, likeUser, userDetail} from "../api/user";
import {getCity, getValue} from '../common/options'
import {parseDate,calculateAge} from '../common/index'
import LsSwiper from '../components/ls-swiper/index.vue';
import myPopup from '@/components/myPopup.vue'
import {getOssUrl} from "../api/article";
import {getDict} from "../api/system/dict/data";
import ELM from '@/components/elm-toast/index.vue';
import {getDict} from "../api/system/dict/data";
import ELM from '@/components/elm-toast/index.vue';
export default {
components: {
LsSwiper,
......
......@@ -36,6 +36,7 @@
</view>
</view>
</z-paging>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view>
</template>
......@@ -44,7 +45,11 @@ import {userDetail, userList} from "../api/user";
import {getCity, getValue} from "../common/options";
import {calculateAge, parseDate} from "../common";
import {getOssUrl} from "../api/article";
import ELM from '@/components/elm-toast/index.vue';
export default {
components: {
ELM
},
data() {
return {
//分页插件存储数据的变量
......@@ -63,6 +68,8 @@ export default {
memResidenceCity: '',
memConstellationList: ''
},
tipMsg: '',
isConfirm: false,
};
},
onLoad(options) {
......@@ -143,16 +150,21 @@ export default {
//跳转用户详情
gotoDetail(item){
if (uni.getStorageSync('userInfo').memRealAuthen != '1'){
uni.showToast({
title: '请先认证',
icon: 'none'
})
this.tipMsg = '当前用户未实名,请先实名认证';
this.isConfirm = true;
this.$refs.elm.showDialog();
return
}
uni.navigateTo({
url: '/pagesUser/userInfo?memberId='+item.businessId
})
},
confirm() {
this.isConfirm = false;
uni.navigateTo({
url: "/pagesme/me/doubleauth"
})
},
//返回按钮
backbar() {
uni.navigateBack({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment