|
@@ -2,10 +2,12 @@
|
|
|
<mobile-frame>
|
|
|
<view class="main">
|
|
|
<view class="onemain">
|
|
|
- <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem" @scroll="handleScroll">
|
|
|
+ <scroll-view scroll-y="true" class="scroll-view" scroll-with-animation :scroll-into-view="topItem"
|
|
|
+ @scroll="handleScroll">
|
|
|
<view class="list-scroll-view" id="top">
|
|
|
<view class="one">
|
|
|
- <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 bannerList" :key="index">
|
|
|
<image class="image" :src="item.url" mode="">
|
|
|
</image>
|
|
@@ -16,17 +18,17 @@
|
|
|
<view class="two_1">
|
|
|
<view class="money_1">
|
|
|
<text>¥</text>
|
|
|
- <text>{{specs&&specs.length>0?specs[0].sell_money:''}}</text>
|
|
|
+ <text>{{specs&&specs.length>0?specs[0].sell_money:0}}</text>
|
|
|
</view>
|
|
|
<view class="money_2">
|
|
|
<text>¥</text>
|
|
|
- <text>{{specs&&specs.length>0?specs[0].flow_money:''}}</text>
|
|
|
+ <text>{{specs&&specs.length>0?specs[0].flow_money:0}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="two_2">{{info.name}}</view>
|
|
|
<view class="two_3">{{info.shot_brief}}</view>
|
|
|
<view class="two_4">
|
|
|
- <text>运费{{specs&&specs.length>0?specs[0].freight:''}}元</text>
|
|
|
+ <text>运费{{specs&&specs.length>0?specs[0].freight:0}}元</text>
|
|
|
<text>{{info.send_time}}内发货</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -71,7 +73,8 @@
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
<view class="foot">
|
|
|
- <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick" @buttonClick="buttonClick" />
|
|
|
+ <uni-goods-nav :options="options" :button-group="buttonGroup" @click="onClick"
|
|
|
+ @buttonClick="buttonClick" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="collect">
|
|
@@ -93,7 +96,8 @@
|
|
|
<uni-popup ref="popup" background-color="#fff" type="bottom">
|
|
|
<view class="content">
|
|
|
<view class="one">
|
|
|
- <image class="image" v-if="specsInfo.file&&specsInfo.file.length>0" :src="specsInfo.file&&specsInfo.file.length>0?specsInfo.file[0].url:''"></image>
|
|
|
+ <image class="image" v-if="specsInfo.file&&specsInfo.file.length>0"
|
|
|
+ :src="specsInfo.file&&specsInfo.file.length>0?specsInfo.file[0].url:''"></image>
|
|
|
<image class="image" v-else :src="info.file&&info.file.length>0?info.file[0].url:''"></image>
|
|
|
<view class="other">
|
|
|
<view class="money">
|
|
@@ -111,14 +115,16 @@
|
|
|
<view class="two">
|
|
|
<view class="two_1">规格</view>
|
|
|
<view class="two_2">
|
|
|
- <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)" :class="{ 'style': isActive==index}">{{item.name}}
|
|
|
+ <text v-for="(item,index) in specs" :key="index" @click="toStyle(item,index)"
|
|
|
+ :class="{ 'style': isActive==index}">{{item.name}}
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="thr">
|
|
|
<text>数量</text>
|
|
|
<view class="count">
|
|
|
- <uni-number-box :min="1" :max="specsInfo.num" :disabled="disabled" v-model="num" @change="toCount">
|
|
|
+ <uni-number-box :min="1" :max="specsInfo.num" :disabled="disabled" v-model="num"
|
|
|
+ @change="toCount">
|
|
|
</uni-number-box>
|
|
|
</view>
|
|
|
<text>库存{{specsInfo.num||0}}</text>
|
|
@@ -127,7 +133,8 @@
|
|
|
<text @click="toBuy(type)" :class="{ 'button': specsInfo._id&&specsInfo.can_group=='0'&&type=='1'}">
|
|
|
{{type=='0'?'加入购物车':'立即购买'}}
|
|
|
</text>
|
|
|
- <text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup" class="button2">参团</text>
|
|
|
+ <text v-if="specsInfo._id&&specsInfo.can_group=='0'&&type=='1'" @click="toGroup"
|
|
|
+ class="button2">参团</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|