|
@@ -12,12 +12,22 @@
|
|
|
<productConSwiper :imgUrls="storeInfo.slider_image" :videoCoverImg="videoCoverImg" :videoline="storeInfo.video_link"></productConSwiper>
|
|
<productConSwiper :imgUrls="storeInfo.slider_image" :videoCoverImg="videoCoverImg" :videoline="storeInfo.video_link"></productConSwiper>
|
|
|
<view class="wrapper">
|
|
<view class="wrapper">
|
|
|
<view class="share acea-row row-between row-bottom">
|
|
<view class="share acea-row row-between row-bottom">
|
|
|
|
|
+ <!-- #ifndef MP-TOUTIAO -->
|
|
|
<view class="money font-color">
|
|
<view class="money font-color">
|
|
|
¥
|
|
¥
|
|
|
<text class="num">{{ storeInfo.price }}</text>
|
|
<text class="num">{{ storeInfo.price }}</text>
|
|
|
<text class="vip-money" v-if="storeInfo.vip_price && storeInfo.vip_price > 0">¥{{ storeInfo.vip_price }}</text>
|
|
<text class="vip-money" v-if="storeInfo.vip_price && storeInfo.vip_price > 0">¥{{ storeInfo.vip_price }}</text>
|
|
|
<image v-if="storeInfo.vip_price && storeInfo.vip_price > 0" src="/static/images/vip.png"></image>
|
|
<image v-if="storeInfo.vip_price && storeInfo.vip_price > 0" src="/static/images/vip.png"></image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
+ <view class="money font-color" v-if="power">
|
|
|
|
|
+ ¥
|
|
|
|
|
+ <text class="num">{{ storeInfo.price }}</text>
|
|
|
|
|
+ <text class="vip-money" v-if="storeInfo.vip_price && storeInfo.vip_price > 0">¥{{ storeInfo.vip_price }}</text>
|
|
|
|
|
+ <image v-if="storeInfo.vip_price && storeInfo.vip_price > 0" src="/static/images/vip.png"></image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
<view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view>
|
|
<view class="iconfont icon-fenxiang" @click="listenerActionSheet"></view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="introduce">
|
|
<view class="introduce">
|
|
@@ -25,7 +35,12 @@
|
|
|
{{ storeInfo.store_name ? storeInfo.store_name : '' }}
|
|
{{ storeInfo.store_name ? storeInfo.store_name : '' }}
|
|
|
</view>
|
|
</view>
|
|
|
<view class="label acea-row row-between-wrapper" :style="{ 'padding-bottom': coupon.list.length ? 0 : 10 + 'px' }">
|
|
<view class="label acea-row row-between-wrapper" :style="{ 'padding-bottom': coupon.list.length ? 0 : 10 + 'px' }">
|
|
|
|
|
+ <!-- #ifndef MP-TOUTIAO -->
|
|
|
<view>原价:¥{{ storeInfo.ot_price ? storeInfo.ot_price : '' }}</view>
|
|
<view>原价:¥{{ storeInfo.ot_price ? storeInfo.ot_price : '' }}</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
+ <view v-if="power">原价:¥{{ storeInfo.ot_price ? storeInfo.ot_price : '' }}</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
<view>库存:{{ storeInfo.stock ? storeInfo.stock : 0 }}{{ storeInfo.unit_name ? storeInfo.unit_name : '' }}</view>
|
|
<view>库存:{{ storeInfo.stock ? storeInfo.stock : 0 }}{{ storeInfo.unit_name ? storeInfo.unit_name : '' }}</view>
|
|
|
<view>销量:{{ storeInfo.sales ? storeInfo.sales : 0 }}{{ storeInfo.unit_name ? storeInfo.unit_name : '' }}</view>
|
|
<view>销量:{{ storeInfo.sales ? storeInfo.sales : 0 }}{{ storeInfo.unit_name ? storeInfo.unit_name : '' }}</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -71,6 +86,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #ifndef MP-TOUTIAO -->
|
|
|
<view class="attribute acea-row row-between-wrapper" @click="selecAttr">
|
|
<view class="attribute acea-row row-between-wrapper" @click="selecAttr">
|
|
|
<view class="acea-row row-between-wrapper">
|
|
<view class="acea-row row-between-wrapper">
|
|
|
{{ attrTxt }}:
|
|
{{ attrTxt }}:
|
|
@@ -78,7 +94,32 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="iconfont icon-jiantou"></view>
|
|
<view class="iconfont icon-jiantou"></view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
+ <view class="attribute acea-row row-between-wrapper" @click="selecAttr" v-if="power">
|
|
|
|
|
+ <view class="acea-row row-between-wrapper">
|
|
|
|
|
+ {{ attrTxt }}:
|
|
|
|
|
+ <text class="atterTxt">{{ attrValue }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="iconfont icon-jiantou"></view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
+ <view class="userEvaluation" id="past1" v-if="replyCount > 0 && power">
|
|
|
|
|
+ <view class="title acea-row row-between-wrapper">
|
|
|
|
|
+ <view>用户评价({{ replyCount }})</view>
|
|
|
|
|
+ <navigator class="praise" hover-class="none" :url="'/pages/users/goods_comment_list/index?product_id=' + id">
|
|
|
|
|
+ <text class="font-color">{{ replyChance }}</text>
|
|
|
|
|
+ 好评率
|
|
|
|
|
+ <text class="iconfont icon-jiantou"></text>
|
|
|
|
|
+ </navigator>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <block v-if="replyCount > 0"><userEvaluation :reply="reply"></userEvaluation></block>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifndef MP-TOUTIAO -->
|
|
|
<view class="userEvaluation" id="past1" v-if="replyCount > 0">
|
|
<view class="userEvaluation" id="past1" v-if="replyCount > 0">
|
|
|
<view class="title acea-row row-between-wrapper">
|
|
<view class="title acea-row row-between-wrapper">
|
|
|
<view>用户评价({{ replyCount }})</view>
|
|
<view>用户评价({{ replyCount }})</view>
|
|
@@ -90,7 +131,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
<block v-if="replyCount > 0"><userEvaluation :reply="reply"></userEvaluation></block>
|
|
<block v-if="replyCount > 0"><userEvaluation :reply="reply"></userEvaluation></block>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
<!-- 商铺信息 -->
|
|
<!-- 商铺信息 -->
|
|
|
|
|
+ <!-- #ifndef MP-TOUTIAO -->
|
|
|
<view class="store-wrapper" v-if="storeInfo.merchant && hide_mer_status != 1">
|
|
<view class="store-wrapper" v-if="storeInfo.merchant && hide_mer_status != 1">
|
|
|
<view class="store-hd">
|
|
<view class="store-hd">
|
|
|
<view class="store-info">
|
|
<view class="store-info">
|
|
@@ -135,6 +178,53 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
|
|
+ <!-- #ifdef MP-TOUTIAO -->
|
|
|
|
|
+ <view class="store-wrapper" v-if="storeInfo.merchant && hide_mer_status != 1 && power">
|
|
|
|
|
+ <view class="store-hd">
|
|
|
|
|
+ <view class="store-info">
|
|
|
|
|
+ <view class="logo"><image :src="storeInfo.merchant.mer_avatar" mode=""></image></view>
|
|
|
|
|
+ <view class="info">
|
|
|
|
|
+ <view class="name">
|
|
|
|
|
+ {{ storeInfo.merchant.mer_name ? storeInfo.merchant.mer_name : '' }}
|
|
|
|
|
+ <text v-if="storeInfo.merchant.is_trader" class="font-bg-red ml8">自营</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="txt">{{ storeInfo.merchant.care_count ? storeInfo.merchant.care_count : 0 }}人关注</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <navigator v-if="hide_mer_status != 1" :url="'/pages/store/home/index?id=' + storeInfo.merchant.mer_id" class="link" hover-class="none">进店</navigator>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="score-wrapper">
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ 商品描述
|
|
|
|
|
+ <text>{{ storeInfo.merchant.product_score }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ 卖家服务
|
|
|
|
|
+ <text>{{ storeInfo.merchant.service_score }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ 物流服务
|
|
|
|
|
+ <text>{{ storeInfo.merchant.postage_score }}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="storeInfo.merchant.recommend && storeInfo.merchant.recommend.length > 0" class="con-box">
|
|
|
|
|
+ <view class="title">店铺推荐</view>
|
|
|
|
|
+ <view class="img-box">
|
|
|
|
|
+ <view class="img-item" v-for="(item, index) in storeInfo.merchant.recommend" :key="index" @click="goProDetail(item)">
|
|
|
|
|
+ <image :src="item.image" mode=""></image>
|
|
|
|
|
+ <view class="txt">
|
|
|
|
|
+ <view class="title line1">{{ item.store_name }}</view>
|
|
|
|
|
+ <view class="price">
|
|
|
|
|
+ <text>¥</text>
|
|
|
|
|
+ {{ item.price }}
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- #endif -->
|
|
|
<view class="product-intro" id="past3">
|
|
<view class="product-intro" id="past3">
|
|
|
<view class="title">产品介绍</view>
|
|
<view class="title">产品介绍</view>
|
|
|
<view class="conter" v-if="description">
|
|
<view class="conter" v-if="description">
|
|
@@ -383,6 +473,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed: mapGetters(['isLogin', 'uid']),
|
|
computed: mapGetters(['isLogin', 'uid']),
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
|
|
+ getPower({
|
|
|
|
|
+ path: 'https://sos.liuniu946.com/index/#/pages/index/index'
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log(res,'getPower------------')
|
|
|
|
|
+ })
|
|
|
let that = this;
|
|
let that = this;
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
// that.ppower = uni.getStorageSync('power')
|
|
// that.ppower = uni.getStorageSync('power')
|
|
@@ -717,6 +812,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
that.$set(that, 'storeInfo', storeInfo);
|
|
that.$set(that, 'storeInfo', storeInfo);
|
|
|
that.$set(that, 'description', storeInfo.content);
|
|
that.$set(that, 'description', storeInfo.content);
|
|
|
|
|
+ console.log(storeInfo.content,'storeInfo.content+++++++++++')
|
|
|
that.$set(that, 'reply', res.data.topReply ? [res.data.topReply] : []);
|
|
that.$set(that, 'reply', res.data.topReply ? [res.data.topReply] : []);
|
|
|
that.$set(that, 'replyCount', res.data.replayData.count);
|
|
that.$set(that, 'replyCount', res.data.replayData.count);
|
|
|
that.$set(that, 'replyChance', res.data.replayData.rate);
|
|
that.$set(that, 'replyChance', res.data.replayData.rate);
|