商品详情
This commit is contained in:
@@ -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>
|
||||
@@ -123,8 +118,11 @@
|
||||
},
|
||||
methods: {
|
||||
// 商品详情数据
|
||||
detailsInfo() {
|
||||
goods(this.$Route.query.id).then(res => {
|
||||
detailsInfo() {
|
||||
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
|
||||
@@ -314,17 +312,18 @@
|
||||
}
|
||||
|
||||
.exhibition-receive {
|
||||
position: fixed;
|
||||
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;
|
||||
@@ -334,7 +333,11 @@
|
||||
background-color: #d5d5d5;
|
||||
color: #a9a9a9;
|
||||
}
|
||||
}
|
||||
}
|
||||
.exhibition-receive-btn-50{
|
||||
width: 50%;
|
||||
margin: 0 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.site-btn button[size="mini"] {
|
||||
|
||||
@@ -200,7 +200,7 @@
|
||||
.content{
|
||||
overflow: hidden;
|
||||
background: #f3f4f6;
|
||||
min-height: 100vh;
|
||||
min-height: calc(100vh - 60px);
|
||||
}
|
||||
|
||||
.tabs{
|
||||
|
||||
Reference in New Issue
Block a user