diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 5474dee..e2142d0 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -540,7 +540,7 @@ import { getProductSkuBySelected } from '@/api/store' import { userBindParent } from '@/api/user' -import { handleQrCode, isWeixin } from '@/utils' +import { handleLoginFailure, handleQrCode, isWeixin } from '@/utils' import { getHomeData } from '@/api/public' import { getDailyGoods, @@ -878,6 +878,15 @@ export default { }) }, goRoom() { + if (!this.isLogin) { + uni.showToast({ + title: '请先登录后联系客服', + icon: 'none', + duration: 2000 + }) + handleLoginFailure() + return + } console.log(this.storeInfo); const params = { goodsId: this.id,