商品详情页商品有送积分就显示

This commit is contained in:
952108534@qq.com 2022-01-28 11:14:43 +08:00
parent 564a4f9e6f
commit f52c13b63e
2 changed files with 25 additions and 0 deletions

View File

@ -54,6 +54,13 @@
color: #333333;
display:inline-block;
}
.ts-record {
font-size: 12px;
margin-left: 16px;
font-style: normal;
color: #333333;
display:inline-block;
}
.ts-row-title + i {
color: #666666;
display:inline-flex;
@ -297,6 +304,7 @@
}
.productdetails {
margin-top: 19px;
}
.rc-productdeta {
@ -367,11 +375,17 @@
.ts-row-title{
font-size: 16px;
width:82px;
}
.ts-row-title + i {
font-size: 16px;
max-width:596px;
}
.ts-row-record{
color: #999;
margin-left: 12px;
font-size: 12px;
}
}
.rc-button{
width: 100%;

View File

@ -124,6 +124,11 @@
<span class="ts-remove ts-ecprice"
>{{ curItem.rsp }}
</span>
<span class="ts-record" v-if="curItem.basePoint!==0">
购买该商品你将获得{{curItem.basePoint}}积分
</span>
<!-- <span class="rc-title">购买该商品你将得到22积分</span> -->
</div>
<div class="rc-productdetai" v-if="userbuy">
<div>
@ -374,6 +379,7 @@ export default {
title: curItem.productName,
}
];
console.log(curItem);
return {
crumbs,
activeIndexa,
@ -463,6 +469,7 @@ export default {
mounted() {
this.checkIsLogin();
// console.log(this.curItem);
if (this.usermessage !== "" || this.usermessage.data !== undefined) {
this.usermessage = this.$store.state.userInfo;
this.productCode = this.$route.query.productCode;
@ -535,6 +542,8 @@ export default {
async userquery() {
let data = await goodsmessage(this.productCode);
if (data) {
console.log(data)
debugger
this.newlist = data.data;
}
this.productAttachmentList = this.newlist[0].productAttachmentList;
@ -547,6 +556,8 @@ export default {
let data = await oncequery(this.productCode);
let outputObj = {};
if (data) {
console.log(data);
debugger
outputObj = data;
outputObj.productName = data.name;
outputObj.picture = 'https://royalcanincn.escase.cn/jc/royalcanin/'+outputObj.picture;