Commit 9ca0104b authored by liwei's avatar liwei

Merge remote-tracking branch 'origin/master'

parents 8a50f9af a7ab804f
...@@ -96,8 +96,6 @@ ...@@ -96,8 +96,6 @@
<!-- 右上角三个点的选项--> <!-- 右上角三个点的选项-->
<u-action-sheet :actions="list" :closeOnClickOverlay="true" :safeAreaInsetBottom="true" cancelText="取消" <u-action-sheet :actions="list" :closeOnClickOverlay="true" :safeAreaInsetBottom="true" cancelText="取消"
@select="selectClick" @close="show = false" :show="show"></u-action-sheet> @select="selectClick" @close="show = false" :show="show"></u-action-sheet>
<!-- 登录弹窗-->
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>
</view> </view>
</template> </template>
...@@ -132,8 +130,6 @@ ...@@ -132,8 +130,6 @@
}, },
data() { data() {
return { return {
//登录弹窗
isLoginPop: false,
//图片路径 //图片路径
baseUrl: this.$IMG_URL, baseUrl: this.$IMG_URL,
imgs: [], imgs: [],
...@@ -189,21 +185,16 @@ ...@@ -189,21 +185,16 @@
} }
}) })
} else { } else {
//未登录 //没登录 提示请先登录
this.isLoginPop = true uni.showToast({
} title: '请先登录',
}, icon: 'none',
//登录弹窗
getToLogin(e) {
if (e == 0) {
//取消登录
this.isLoginPop = false;
} else {
this.isLoginPop = false;
//立即登录
uni.navigateTo({
url: '/pageslogin/index'
}) })
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} }
}, },
// 删除 // 删除
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
</view> </view>
<empty v-if="firstLoaded && !dataList.length"/> <empty v-if="firstLoaded && !dataList.length"/>
</z-paging> </z-paging>
<!-- 登录弹窗-->
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>
</view> </view>
</template> </template>
...@@ -40,8 +38,6 @@ ...@@ -40,8 +38,6 @@
}, },
data() { data() {
return { return {
//登录弹窗
isLoginPop:'',
//话题id //话题id
topicId: 0, topicId: 0,
//当前的tab //当前的tab
...@@ -89,15 +85,32 @@ ...@@ -89,15 +85,32 @@
if (res.data.data == '0') { if (res.data.data == '0') {
uni.removeStorageSync('userInfo') uni.removeStorageSync('userInfo')
uni.removeStorageSync('token') uni.removeStorageSync('token')
this.isLoginPop = true //没登录 提示请先登录
uni.showToast({
title: '请先登录',
icon: 'none',
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
}else { }else {
//关注 //关注
this.articleType = '0' this.articleType = '0'
} }
}) })
} else { } else {
//未登录 //没登录 提示请先登录
this.isLoginPop = true uni.showToast({
title: '请先登录',
icon: 'none',
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} }
} }
if (newVal === 1){ if (newVal === 1){
...@@ -305,20 +318,7 @@ ...@@ -305,20 +318,7 @@
let idx = this.dataList.findIndex(obj => obj.businessId == item.businessId) let idx = this.dataList.findIndex(obj => obj.businessId == item.businessId)
this.dataList.splice(idx, 1, item) this.dataList.splice(idx, 1, item)
}) })
},
//登录弹窗
getToLogin(e) {
if (e == 0) {
//取消登录
this.isLoginPop = false;
} else {
this.isLoginPop = false;
//立即登录
uni.navigateTo({
url: '/pageslogin/index'
})
} }
},
} }
} }
</script> </script>
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
<ListVue ref="listItem" :tabIndex="index" :currentIndex="current" @topicId="handleTopicId"/> <ListVue ref="listItem" :tabIndex="index" :currentIndex="current" @topicId="handleTopicId"/>
</swiper-item> </swiper-item>
</swiper> </swiper>
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>
<!-- 完善个人信息弹窗--> <!-- 完善个人信息弹窗-->
<u-popup u-popup :show="tipsShow" mode="center" round="12" :safeAreaInsetBottom="false"> <u-popup u-popup :show="tipsShow" mode="center" round="12" :safeAreaInsetBottom="false">
<view class="popup-container"> <view class="popup-container">
...@@ -94,8 +93,6 @@ ...@@ -94,8 +93,6 @@
//当前tab //当前tab
current: 1, current: 1,
num: 0, num: 0,
//登录弹窗
isLoginPop: false,
//话题id //话题id
topicId: null, topicId: null,
tipMsg: '', tipMsg: '',
...@@ -174,8 +171,16 @@ ...@@ -174,8 +171,16 @@
} }
}) })
} else { } else {
//未登录 //没登录 提示请先登录
this.isLoginPop = true uni.showToast({
title: '请先登录',
icon: 'none',
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} }
}, },
//完善个人信息 确认按钮 //完善个人信息 确认按钮
...@@ -197,20 +202,7 @@ ...@@ -197,20 +202,7 @@
uni.navigateTo({ uni.navigateTo({
url: "/pagesme/me/doubleauth" url: "/pagesme/me/doubleauth"
}) })
},
//登录弹窗
getToLogin(e) {
if (e == 0) {
//取消登录
this.isLoginPop = false;
} else {
this.isLoginPop = false;
//立即登录
uni.navigateTo({
url: '/pageslogin/index'
})
} }
},
} }
} }
</script> </script>
......
...@@ -125,9 +125,16 @@ export default { ...@@ -125,9 +125,16 @@ export default {
this.show = true this.show = true
this.countprice() this.countprice()
} else { } else {
uni.navigateTo({ //没登录 提示请先登录
url: '/pageslogin/index' uni.showToast({
title: '请先登录',
icon: 'none',
}) })
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} }
}, },
// 可使用优惠券弹窗取消按钮 // 可使用优惠券弹窗取消按钮
......
...@@ -107,8 +107,6 @@ ...@@ -107,8 +107,6 @@
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
</view> </view>
<!-- 登录弹窗-->
<login @change="getToLogin" :isLoginPop="isLoginPop" class="my-select"></login>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM> <ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" @confirm="confirm"></ELM>
</view> </view>
</template> </template>
...@@ -137,7 +135,6 @@ export default{ ...@@ -137,7 +135,6 @@ export default{
articleId:'', articleId:'',
//动态详情 //动态详情
articleInfo:{}, articleInfo:{},
isLoginPop:false,
//被评论人 //被评论人
commentedUserId:null, commentedUserId:null,
//上级评论ID //上级评论ID
...@@ -198,8 +195,16 @@ export default{ ...@@ -198,8 +195,16 @@ export default{
} }
}) })
} else { } else {
//未登录 //没登录 提示请先登录
this.isLoginPop = true uni.showToast({
title: '请先登录',
icon: 'none',
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
} }
}, },
//评论回车事件 //评论回车事件
...@@ -207,8 +212,16 @@ export default{ ...@@ -207,8 +212,16 @@ export default{
const token = uni.getStorageSync("token") const token = uni.getStorageSync("token")
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
if (token == null || token == ''){ if (token == null || token == ''){
//未登录 //没登录 提示请先登录
this.isLoginPop = true uni.showToast({
title: '请先登录',
icon: 'none',
})
setTimeout(() => {
uni.switchTab({
url: '/pages/tab/my'
});
}, 500)
return; return;
} }
if (this.commentValue === ''){ if (this.commentValue === ''){
...@@ -341,19 +354,6 @@ export default{ ...@@ -341,19 +354,6 @@ export default{
url: "/pagesme/me/doubleauth" url: "/pagesme/me/doubleauth"
}) })
}, },
//登录弹窗
getToLogin(e) {
if (e == 0) {
//取消登录
this.isLoginPop = false;
} else {
this.isLoginPop = false;
//立即登录
uni.navigateTo({
url: '/pageslogin/index'
})
}
},
} }
} }
</script> </script>
......
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