|
@@ -5,7 +5,8 @@
|
|
<scroll-view scroll-y="true" class="scroll-view">
|
|
<scroll-view scroll-y="true" class="scroll-view">
|
|
<view class="list-scroll-view">
|
|
<view class="list-scroll-view">
|
|
<view class="one_1">
|
|
<view class="one_1">
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
|
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
|
|
|
|
+ indicator-active-color="#FB1438" :autoplay="true" :interval="3000" :duration="1000">
|
|
<swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
|
|
<swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
|
|
<image class="image" :src="item.url" mode="aspectFit">
|
|
<image class="image" :src="item.url" mode="aspectFit">
|
|
</image>
|
|
</image>
|
|
@@ -13,12 +14,15 @@
|
|
</swiper>
|
|
</swiper>
|
|
<!-- 是否关注商品 -->
|
|
<!-- 是否关注商品 -->
|
|
<view class="goodsColect">
|
|
<view class="goodsColect">
|
|
- <text @tap="toGoodscolect" :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
|
|
|
|
|
|
+ <text @tap="toGoodscolect"
|
|
|
|
+ :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="one_2">
|
|
<view class="one_2">
|
|
- <text class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].sell_money:0}}</text>
|
|
|
|
- <text class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].flow_money:0}}</text>
|
|
|
|
|
|
+ <text
|
|
|
|
+ class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].sell_money:0}}</text>
|
|
|
|
+ <text
|
|
|
|
+ class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].flow_money:0}}</text>
|
|
</view>
|
|
</view>
|
|
<view class="one_3">
|
|
<view class="one_3">
|
|
<view class="name">
|
|
<view class="name">
|
|
@@ -51,7 +55,9 @@
|
|
<view class="one_6">
|
|
<view class="one_6">
|
|
<view class="one_6_1">
|
|
<view class="one_6_1">
|
|
<view class="shop_1">
|
|
<view class="shop_1">
|
|
- <image class="image" :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''" mode="aspectFit"></image>
|
|
|
|
|
|
+ <image class="image"
|
|
|
|
+ :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''"
|
|
|
|
+ mode="aspectFit"></image>
|
|
</view>
|
|
</view>
|
|
<view class="shop_2">
|
|
<view class="shop_2">
|
|
<view class="name">{{info.shop.name}}</view>
|
|
<view class="name">{{info.shop.name}}</view>
|
|
@@ -86,7 +92,8 @@
|
|
</scroll-view>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
<view class="two">
|
|
<view class="two">
|
|
- <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft" @buttonClick="toNavright" />
|
|
|
|
|
|
+ <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft"
|
|
|
|
+ @buttonClick="toNavright" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<!-- 跳转菜单 -->
|
|
<!-- 跳转菜单 -->
|
|
@@ -94,7 +101,8 @@
|
|
<text @tap="toMenubar" class="iconfont icon-gengduo"></text>
|
|
<text @tap="toMenubar" class="iconfont icon-gengduo"></text>
|
|
</view>
|
|
</view>
|
|
<view class="bar_2" v-if="is_menu">
|
|
<view class="bar_2" v-if="is_menu">
|
|
- <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'" @click="toPath(item)">
|
|
|
|
|
|
+ <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'"
|
|
|
|
+ @click="toPath(item)">
|
|
<image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
|
|
<image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
|
|
<text class="name"> {{item.name}}</text>
|
|
<text class="name"> {{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
@@ -112,7 +120,9 @@
|
|
<view class="one">
|
|
<view class="one">
|
|
<view class="one_1">
|
|
<view class="one_1">
|
|
<view class="l">
|
|
<view class="l">
|
|
- <image class="image" :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url" mode="aspectFill" @tap="imageView(specsInfo.file)"></image>
|
|
|
|
|
|
+ <image class="image"
|
|
|
|
+ :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url"
|
|
|
|
+ mode="aspectFill" @tap="imageView(specsInfo.file)"></image>
|
|
</view>
|
|
</view>
|
|
<view class="r">
|
|
<view class="r">
|
|
<view class="money">
|
|
<view class="money">
|
|
@@ -130,7 +140,9 @@
|
|
规格
|
|
规格
|
|
</view>
|
|
</view>
|
|
<view class="one_2_2">
|
|
<view class="one_2_2">
|
|
- <view :class="['list',`${item.num==0?'zero_list':''}`,`${is_specs==index?'one_list':''}`]" v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
|
|
|
|
|
|
+ <view
|
|
|
|
+ :class="['list',`${item.num==0?'zero_list':''}`,`${is_specs==index?'one_list':''}`]"
|
|
|
|
+ v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
|
|
<text>{{item.name}}</text>
|
|
<text>{{item.name}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -140,7 +152,8 @@
|
|
<text>数量</text>
|
|
<text>数量</text>
|
|
</view>
|
|
</view>
|
|
<view class="one_3_1">
|
|
<view class="one_3_1">
|
|
- <uni-number-box v-model="buy_num" @change="toCount" :min="1" :max="specsInfo.num">
|
|
|
|
|
|
+ <uni-number-box v-model="buy_num" @change="toCount" :min="1"
|
|
|
|
+ :max="specsInfo.num">
|
|
</uni-number-box>
|
|
</uni-number-box>
|
|
</view>
|
|
</view>
|
|
<view class="one_3_1">
|
|
<view class="one_3_1">
|
|
@@ -281,7 +294,7 @@
|
|
// 是否关注店铺
|
|
// 是否关注店铺
|
|
res = await that.$api(`/storeShop/check`, `GET`, {
|
|
res = await that.$api(`/storeShop/check`, `GET`, {
|
|
customer: user._id,
|
|
customer: user._id,
|
|
- shop: that.info.shop._id
|
|
|
|
|
|
+ shop: that.info?.shop?._id
|
|
});
|
|
});
|
|
if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
|
|
if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
|
|
|
|
|
|
@@ -297,7 +310,8 @@
|
|
});
|
|
});
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|
|
let data = res.data;
|
|
let data = res.data;
|
|
- if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi, '<img class="rich-img"');
|
|
|
|
|
|
+ if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
|
|
|
|
+ '<img class="rich-img"');
|
|
let specs = data.specs.sort((a, b) => {
|
|
let specs = data.specs.sort((a, b) => {
|
|
return a.sell_money - b.sell_money
|
|
return a.sell_money - b.sell_money
|
|
})
|
|
})
|