This commit is contained in:
952108534@qq.com 2022-01-28 14:05:04 +08:00
parent c98990f728
commit c9c50b3a63

View File

@ -113,7 +113,7 @@
<span>{{ curItem.categoryName }}</span> <span>{{ curItem.categoryName }}</span>
</div> </div>
<div class="rc-button" v-if="!userbuy"> <div class="rc-button" v-if="userloginbuy">
<span @click="chuafangbuy()">立即购买</span> <span @click="chuafangbuy()">立即购买</span>
</div> </div>
@ -284,7 +284,7 @@
<span @click="usertanchu(curItem, 0)">加入购物车</span> <span @click="usertanchu(curItem, 0)">加入购物车</span>
<span @click="usertanchu(curItem, 1)">立即购买</span> <span @click="usertanchu(curItem, 1)">立即购买</span>
</div> </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> <span @click="chuafangbuy()" style="margin-right: 20px">立即购买</span>
</div> </div>
@ -342,6 +342,10 @@ export default {
let insertTmpObj = {id:1, attachmentType:1, sort:1, attachmentPath:newlist[0].picture}; let insertTmpObj = {id:1, attachmentType:1, sort:1, attachmentPath:newlist[0].picture};
productAttachmentList = [insertTmpObj]; productAttachmentList = [insertTmpObj];
userbuy = false; userbuy = false;
console.log(curItem);
// debugger
console.log('这是处方量数据') console.log('这是处方量数据')
@ -379,7 +383,7 @@ export default {
title: curItem.productName, title: curItem.productName,
} }
]; ];
console.log(curItem);
return { return {
crumbs, crumbs,
activeIndexa, activeIndexa,
@ -401,6 +405,7 @@ export default {
videoimg:'', videoimg:'',
videoshow: false, videoshow: false,
name: [], name: [],
userloginbuy:false,
userlist: [], userlist: [],
drawlist: [], // drawlist: [], //
alldraw: [], alldraw: [],
@ -469,7 +474,14 @@ export default {
mounted() { mounted() {
this.checkIsLogin(); 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) { if (this.usermessage !== "" || this.usermessage.data !== undefined) {
this.usermessage = this.$store.state.userInfo; this.usermessage = this.$store.state.userInfo;
this.productCode = this.$route.query.productCode; this.productCode = this.$route.query.productCode;