| xqd
@@ -4,8 +4,8 @@
|
|
|
<!-- <image src="/static/image/icon/goods-detail.png"></image> -->
|
|
|
<view class="detail-title">
|
|
|
<view class="detail-text" :class="{'active':tab==1}" @click="tab=1">图文详情</view>
|
|
|
- <view class="detail-text" :class="{'active':tab==2}" @click="tab=2">详细参数</view>
|
|
|
- <view class="detail-text" :class="{'active':tab==3}" @click="tab=3">售后保障</view>
|
|
|
+ <view class="detail-text" v-if="showTab" :class="{'active':tab==2}" @click="tab=2">详细参数</view>
|
|
|
+ <view class="detail-text" v-if="showTab" :class="{'active':tab==3}" @click="tab=3">售后保障</view>
|
|
|
</view>
|
|
|
<app-rich-text v-if="tab==1"
|
|
|
:content="newDetail"
|
| xqd
@@ -46,6 +46,12 @@ export default {
|
|
|
goodsId:{
|
|
|
default:null
|
|
|
},
|
|
|
+ showTab: {
|
|
|
+ type: Boolean,
|
|
|
+ default() {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ },
|
|
|
detail: {
|
|
|
type: String,
|
|
|
default() {
|