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

修改实名弹窗

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