商品详情

This commit is contained in:
唐明明
2022-07-15 15:49:01 +08:00
parent c0ac8b8f76
commit 3d03979622
2 changed files with 21 additions and 18 deletions

View File

@@ -4,17 +4,12 @@
<rich-text :nodes="detailsImg"></rich-text>
</view>
<view class="exhibition-receive">
<view class="exhibition-receive-btn" @click="popLogin" v-if="!detailsData.hasLogin">
参与活动
</view>
<block v-else>
<view class="exhibition-receive-btn" @click="popClick" v-if="canSample">
参与活动
</view>
<view class="exhibition-receive-btn active" v-else>
已参与
</view>
</block>
<view class="exhibition-receive-btn exhibition-receive-btn-50" @click="popClick">
记录三高
</view>
<view class="exhibition-receive-btn exhibition-receive-btn-50">
活动分享
</view>
</view>
<view class="popBack" v-if="popShow"></view>
@@ -124,7 +119,10 @@
methods: {
// 商品详情数据
detailsInfo() {
goods(this.$Route.query.id).then(res => {
goods(2).then(res => {
console.log(res)
this.detailsData = res
this.detailsImg = res.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"')
this.canSample = res.canSample
@@ -315,16 +313,17 @@
.exhibition-receive {
position: fixed;
display: flex;
bottom: 0;
left: 0;
width: 100%;
height: 120rpx;
background-color: #FFFFFF;
padding: 17rpx 30rpx;
padding: 17rpx 20rpx;
box-sizing: border-box;
z-index: 9;
.exhibition-receive-btn {
background-color: #ff8260;
background-color: $mian-color;
color: #FFFFFF;
height: 88rpx;
line-height: 88rpx;
@@ -335,6 +334,10 @@
color: #a9a9a9;
}
}
.exhibition-receive-btn-50{
width: 50%;
margin: 0 10px;
}
}
.site-btn button[size="mini"] {

View File

@@ -200,7 +200,7 @@
.content{
overflow: hidden;
background: #f3f4f6;
min-height: 100vh;
min-height: calc(100vh - 60px);
}
.tabs{