mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
跳转
This commit is contained in:
parent
c98990f728
commit
c9c50b3a63
@ -113,7 +113,7 @@
|
||||
<span>{{ curItem.categoryName }}</span>
|
||||
|
||||
</div>
|
||||
<div class="rc-button" v-if="!userbuy">
|
||||
<div class="rc-button" v-if="userloginbuy">
|
||||
<span @click="chuafangbuy()">立即购买</span>
|
||||
</div>
|
||||
|
||||
@ -284,7 +284,7 @@
|
||||
<span @click="usertanchu(curItem, 0)">加入购物车</span>
|
||||
<span @click="usertanchu(curItem, 1)">立即购买</span>
|
||||
</div>
|
||||
<div class="rc-button rc-md-down " v-if="(!userbuy)">
|
||||
<div class="rc-button rc-md-down " v-if="userloginbuy">
|
||||
<span @click="chuafangbuy()" style="margin-right: 20px">立即购买</span>
|
||||
</div>
|
||||
|
||||
@ -342,6 +342,10 @@ export default {
|
||||
let insertTmpObj = {id:1, attachmentType:1, sort:1, attachmentPath:newlist[0].picture};
|
||||
productAttachmentList = [insertTmpObj];
|
||||
userbuy = false;
|
||||
console.log(curItem);
|
||||
// debugger
|
||||
|
||||
|
||||
console.log('这是处方量数据')
|
||||
|
||||
|
||||
@ -379,7 +383,7 @@ export default {
|
||||
title: curItem.productName,
|
||||
}
|
||||
];
|
||||
console.log(curItem);
|
||||
|
||||
return {
|
||||
crumbs,
|
||||
activeIndexa,
|
||||
@ -401,6 +405,7 @@ export default {
|
||||
videoimg:'',
|
||||
videoshow: false,
|
||||
name: [],
|
||||
userloginbuy:false,
|
||||
userlist: [],
|
||||
drawlist: [], //用户可以领取的优惠券
|
||||
alldraw: [],
|
||||
@ -469,7 +474,14 @@ export default {
|
||||
|
||||
mounted() {
|
||||
this.checkIsLogin();
|
||||
// console.log(this.curItem);
|
||||
console.log(this.curItem);
|
||||
if(this.curItem.goodUrl.includes('pages')){
|
||||
this.userloginbuy=false
|
||||
console.log('------')
|
||||
}else{
|
||||
this.userloginbuy=true
|
||||
console.log('-22222222');
|
||||
}
|
||||
if (this.usermessage !== "" || this.usermessage.data !== undefined) {
|
||||
this.usermessage = this.$store.state.userInfo;
|
||||
this.productCode = this.$route.query.productCode;
|
||||
|
Loading…
Reference in New Issue
Block a user