|
@@ -15,30 +15,31 @@
|
|
|
<!-- 轮播图-end -->
|
|
<!-- 轮播图-end -->
|
|
|
|
|
|
|
|
<!-- 价格信息栏 -->
|
|
<!-- 价格信息栏 -->
|
|
|
- <!-- <view class="price_info flex_r flex_ac flex_jb">
|
|
|
|
|
- <view class="price" :class="type == 2 ? 'samll' : ''"><text v-if="type != 2">¥</text>{{type != 2 ? detail.price : detail.pfCombination}}</view>
|
|
|
|
|
|
|
+ <view class="price_info flex_r flex_ac flex_jb">
|
|
|
|
|
+ <view class="price" :class="type == 2 ? 'samll' : ''">¥{{detail.cost_price}}</view>
|
|
|
<view class="price_span flex_r flex_ac flex_je">
|
|
<view class="price_span flex_r flex_ac flex_je">
|
|
|
<view class="triangle"></view>
|
|
<view class="triangle"></view>
|
|
|
- <view class="span_conten flex_r flex_ac flex_jc">{{type == 1 ? '零售专区' : type == 2 ? '批发专区' : type == 3 ? '合伙人套餐' : type == 4 ? 'CHA专区' : '今日值得买'}}</view>
|
|
|
|
|
|
|
+ <view class="span_conten flex_r flex_ac flex_jc">{{goodsDa.type == 1 ? "零售专区" : goodsDa.type == 2 ? "批发专区" : goodsDa.type == 3 ? "精品专区" : "今日值买"}}</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ </view>
|
|
|
<!-- 价格信息栏-end -->
|
|
<!-- 价格信息栏-end -->
|
|
|
|
|
|
|
|
<!-- 标题信息栏 -->
|
|
<!-- 标题信息栏 -->
|
|
|
- <!-- <view class="title_info">
|
|
|
|
|
- <view class="goods_name">{{ type != 3 ? detail.goodsName : detail.title}}</view>
|
|
|
|
|
|
|
+ <view class="title_info">
|
|
|
|
|
+ <view class="goods_name">{{ detail.goods.goods_name}}</view>
|
|
|
<view class="goods_subName">{{detail.goodsMsg}}</view>
|
|
<view class="goods_subName">{{detail.goodsMsg}}</view>
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ </view>
|
|
|
<!-- 标题信息栏-end -->
|
|
<!-- 标题信息栏-end -->
|
|
|
|
|
|
|
|
<!-- 产品简介 -->
|
|
<!-- 产品简介 -->
|
|
|
- <!-- <view class="brief mar_t20">
|
|
|
|
|
|
|
+ <view class="brief mar_t20">
|
|
|
<view class="brief_title flex_r flex_ac">产品简介</view>
|
|
<view class="brief_title flex_r flex_ac">产品简介</view>
|
|
|
<view class="brief_con">
|
|
<view class="brief_con">
|
|
|
- <jyfParser :html="detail.goodsDesc" ref="jyf"></jyfParser>
|
|
|
|
|
- <image :lazy-load="true" style="width: 100%;display: block;" v-for="(item,index) in detail.goodsDetailesImage" :key="index" :src="item" mode="widthFix"></image>
|
|
|
|
|
|
|
+ <view v-html="detail.goods.goods_content"></view>
|
|
|
|
|
+ <!-- <jyfParser :html="detail.goods.goods_content" ref="jyf"></jyfParser> -->
|
|
|
|
|
+ <!-- <image :lazy-load="true" style="width: 100%;display: block;" v-for="(item,index) in detail.goodsDetailesImage" :key="index" :src="item" mode="widthFix"></image> -->
|
|
|
</view>
|
|
</view>
|
|
|
- </view> -->
|
|
|
|
|
|
|
+ </view>
|
|
|
<!-- 产品简介-end -->
|
|
<!-- 产品简介-end -->
|
|
|
|
|
|
|
|
<!-- 底部导航组件 -->
|
|
<!-- 底部导航组件 -->
|
|
@@ -138,10 +139,12 @@ import authorizeModule from '@/components/authorize-module/index'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
btnIndex : 0 ,// 用户点击按钮事件判断 0:加入购物车;1:立即购买
|
|
btnIndex : 0 ,// 用户点击按钮事件判断 0:加入购物车;1:立即购买
|
|
|
- type: null ,// 商品类型,1:零售,2:批发;3:套餐;
|
|
|
|
|
|
|
+ type: null ,// 商品类型,1零售 2批发 3精品 4今日值买
|
|
|
goodsId:'' ,// 商品ID
|
|
goodsId:'' ,// 商品ID
|
|
|
id:'' ,//合伙人套餐ID
|
|
id:'' ,//合伙人套餐ID
|
|
|
- detail:'' ,// 商品详情
|
|
|
|
|
|
|
+ detail: {
|
|
|
|
|
+ goods:{}
|
|
|
|
|
+ } ,// 商品详情
|
|
|
checked:false, //是否选中协议
|
|
checked:false, //是否选中协议
|
|
|
buyNum: 1 ,//购买数量
|
|
buyNum: 1 ,//购买数量
|
|
|
pfway: "0" ,// 批发
|
|
pfway: "0" ,// 批发
|
|
@@ -154,43 +157,9 @@ import authorizeModule from '@/components/authorize-module/index'
|
|
|
onLoad:function(e){
|
|
onLoad:function(e){
|
|
|
this.goodsDa = e;
|
|
this.goodsDa = e;
|
|
|
this.userinfo = uni.getStorageSync('userinfo');
|
|
this.userinfo = uni.getStorageSync('userinfo');
|
|
|
- // this.type=e.type
|
|
|
|
|
- // if(e.type == 3){
|
|
|
|
|
- // this.id = e.id
|
|
|
|
|
- // }else{
|
|
|
|
|
- // this.goodsId = e.id
|
|
|
|
|
- // }
|
|
|
|
|
- // if(e.type == 3 || e.type == 2 || e.type == 4 || e.type == 7){
|
|
|
|
|
- // this.buttonGroup.shift()
|
|
|
|
|
- // }
|
|
|
|
|
- // //推荐人ID
|
|
|
|
|
- // if (e.agentId) {
|
|
|
|
|
- // app.globalData.agentId = e.agentId;
|
|
|
|
|
- // }
|
|
|
|
|
- // if (e && e.scene){
|
|
|
|
|
- // var scene = decodeURIComponent(e.scene).split("&");
|
|
|
|
|
- // if (scene.length > 0) {
|
|
|
|
|
- // var agentId = scene[0].split(":");
|
|
|
|
|
- // app.globalData.agentId = agentId[1] && agentId[1] != '' ? agentId[1] : app.globalData.agentId;
|
|
|
|
|
- // var goodsId = scene[1].split(":");
|
|
|
|
|
- // this.goodsId = goodsId[1] && goodsId[1] != '' ? goodsId[1] : ''
|
|
|
|
|
- // }
|
|
|
|
|
- // }
|
|
|
|
|
this.loadData(e)
|
|
this.loadData(e)
|
|
|
},
|
|
},
|
|
|
- onShow:function(){
|
|
|
|
|
- // let that = this;
|
|
|
|
|
- // let userId = app.globalData.systemUserInfo && app.globalData.systemUserInfo.userId ? app.globalData.systemUserInfo.userId : '';
|
|
|
|
|
- // if (!userId || userId == '' || userId==undefined) {
|
|
|
|
|
- // that.showAuth=true
|
|
|
|
|
- // appEv.authorizeUserInfo(res=>{
|
|
|
|
|
- // if(res){
|
|
|
|
|
- // that.shopInfo=app.globalData.shopInfo
|
|
|
|
|
- // that.showAuth=false
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
- // }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ onShow:function(){},
|
|
|
methods:{
|
|
methods:{
|
|
|
// 商品详情信息
|
|
// 商品详情信息
|
|
|
loadData(da){
|
|
loadData(da){
|