Commit 9ca0104b authored by liwei's avatar liwei

Merge remote-tracking branch 'origin/master'

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