|
@@ -108,16 +108,6 @@
|
|
<view :style="{height:safeAreaBottom+'px'}"></view>
|
|
<view :style="{height:safeAreaBottom+'px'}"></view>
|
|
</view>
|
|
</view>
|
|
</page-container>
|
|
</page-container>
|
|
-
|
|
|
|
- <!-- 去认证弹框 -->
|
|
|
|
- <u-popup v-model="showPopup" mode="center" :border-radius="20" closeable>
|
|
|
|
- <view style="background-color: #fff;padding: 1rem;">
|
|
|
|
- <u-image width="533" height="415" src="/static/authimg.jpg"></u-image>
|
|
|
|
- <view style="padding-top:1rem;" class="flex justify_center">
|
|
|
|
- <u-button @click="toAuthStore()" shape="circle" :custom-style="{background:'#066cff',color:'#fff',width:'350rpx'}">开始认证</u-button>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </u-popup>
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -129,11 +119,11 @@
|
|
import { addCart, getCartCount } from '@/api/cart.js'
|
|
import { addCart, getCartCount } from '@/api/cart.js'
|
|
import { getShopDetail } from '@/api/shop.js'
|
|
import { getShopDetail } from '@/api/shop.js'
|
|
import { purchaseSave, purchaseCheck } from '@/api/purchase.js'
|
|
import { purchaseSave, purchaseCheck } from '@/api/purchase.js'
|
|
|
|
+ import { toAuthStore, toLogin } from "@/utils/index.js"
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
showPopu: false, // 弹框
|
|
showPopu: false, // 弹框
|
|
- showPopup: false, // 去认证弹框
|
|
|
|
statusBarHeight: 0, // 状态栏高度
|
|
statusBarHeight: 0, // 状态栏高度
|
|
safeAreaBottom: 0, // 底部安全区域高度
|
|
safeAreaBottom: 0, // 底部安全区域高度
|
|
imgList: [],
|
|
imgList: [],
|
|
@@ -193,13 +183,6 @@
|
|
data: text,
|
|
data: text,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 去认证
|
|
|
|
- toAuthStore(){
|
|
|
|
- this.showPopup = false
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/storeManage/storeAuth'
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
// 产品详情
|
|
// 产品详情
|
|
getDetail(){
|
|
getDetail(){
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -238,7 +221,7 @@
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
// 游客未认证
|
|
// 游客未认证
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- this.showPopup = true
|
|
|
|
|
|
+ toAuthStore()
|
|
}else{
|
|
}else{
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加入中...',
|
|
title: '加入中...',
|
|
@@ -257,9 +240,7 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/login/login'
|
|
|
|
- })
|
|
|
|
|
|
+ toLogin()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 打开购物车
|
|
// 打开购物车
|
|
@@ -267,16 +248,14 @@
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
// 游客未认证
|
|
// 游客未认证
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- this.showPopup = true
|
|
|
|
|
|
+ toAuthStore()
|
|
}else{
|
|
}else{
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: '/pagesB/cart/index'
|
|
url: '/pagesB/cart/index'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/login/login'
|
|
|
|
- })
|
|
|
|
|
|
+ toLogin()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 立即购买
|
|
// 立即购买
|
|
@@ -284,7 +263,7 @@
|
|
if(this.hasLogin){
|
|
if(this.hasLogin){
|
|
// 游客未认证
|
|
// 游客未认证
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
if(this.userInfo.sysUserFlag == '0'){
|
|
- this.showPopup = true
|
|
|
|
|
|
+ toAuthStore()
|
|
}else{
|
|
}else{
|
|
if(this.detail.status==0 || this.detail.dealerScopeFlag==0){
|
|
if(this.detail.status==0 || this.detail.dealerScopeFlag==0){
|
|
uni.showToast({
|
|
uni.showToast({
|
|
@@ -302,9 +281,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/login/login'
|
|
|
|
- })
|
|
|
|
|
|
+ toLogin()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 去结算
|
|
// 去结算
|