商品列表修改
This commit is contained in:
@@ -75,6 +75,13 @@
|
|||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (this.amount <= 0) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '金额必须大于0',
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
}
|
||||||
let res = await this.api.paymemeberIn({
|
let res = await this.api.paymemeberIn({
|
||||||
shopId: this.shopId, // 判断显示哪家的作品,
|
shopId: this.shopId, // 判断显示哪家的作品,
|
||||||
amount: this.amount // 判断显示哪家的作品,
|
amount: this.amount // 判断显示哪家的作品,
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="panelthere flex-between">
|
<view class="panelthere flex-between">
|
||||||
<view class="paneltheretext">
|
<view class="paneltheretext">
|
||||||
营业时间:{{ shopInfo.storeInfo.businessStartDay +'至'+ shopInfo.storeInfo.businessEndDay +' '+ shopInfo.storeInfo.businessTime }}
|
营业时间:{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}}
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-start" @click="showShopClick">
|
<view class="flex-start" @click="showShopClick">
|
||||||
<view style="margin-right: 14rpx;">查看</view>
|
<view style="margin-right: 14rpx;">查看</view>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
<text>¥</text>
|
<text>¥</text>
|
||||||
<text>{{item.lowPrice}}</text>
|
<text>{{item.lowPrice}}</text>
|
||||||
<text>/份</text>
|
<text>/份</text>
|
||||||
<text>「{{item.suit}}份起点」</text>
|
<text v-if="item1.suit > 1">「{{item.suit}}份起点」</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- <u-icon name="plus-circle-fill" color="#E9AB7A" size="40"></u-icon> -->
|
<!-- <u-icon name="plus-circle-fill" color="#E9AB7A" size="40"></u-icon> -->
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
<scroll-view :scroll-into-view="leftIntoView" :scroll-with-animation="false">
|
<scroll-view :scroll-into-view="leftIntoView" :scroll-with-animation="false">
|
||||||
<view class="item" v-for="(item,index) in shopProductList.productInfo" :key="index"
|
<view class="item" v-for="(item,index) in shopProductList.productInfo" :key="index"
|
||||||
:class="{ 'active':index==leftIndex }" :id="'left-'+index" :data-index="index"
|
:class="{ 'active':index==leftIndex }" :id="'left-'+index" :data-index="index"
|
||||||
@click="leftTap(index)">{{item.name}}</view>
|
@click="leftTap(index)"><text>{{item.name}}</text></view>
|
||||||
<view class="items"></view>
|
<view class="items"></view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
@@ -108,8 +108,10 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="goods" @click="clickspecifications(item1,index,index1)"
|
<view class="goods" @click="clickspecifications(item1,index,index1)"
|
||||||
v-for="(item1,index1) in item.products" :key="index1">
|
v-for="(item1,index1) in item.products" :key="index1">
|
||||||
|
<!-- <image class="goodsImg" v-if="item1.coverImg!=null" :lazy-load="true"
|
||||||
|
:src="`${item1.coverImg}?x-oss-process=image/resize,m_lfit,w_150,h_150`" mode="aspectFill"></image> -->
|
||||||
<image class="goodsImg" v-if="item1.coverImg!=null" :lazy-load="true"
|
<image class="goodsImg" v-if="item1.coverImg!=null" :lazy-load="true"
|
||||||
:src="`${item1.coverImg}?x-oss-process=image/resize,m_lfit,w_90,h_90`"></image>
|
:src="`${item1.coverImg}`" mode="aspectFill"></image>
|
||||||
<image class="goodsImg" src="@/static/1.gif" mode="" v-else :lazy-load="true"></image>
|
<image class="goodsImg" src="@/static/1.gif" mode="" v-else :lazy-load="true"></image>
|
||||||
<view v-if="item.name=='热销'" class="topSort" :class="'c'+(index1+1)">TOP{{index1+1}}
|
<view v-if="item.name=='热销'" class="topSort" :class="'c'+(index1+1)">TOP{{index1+1}}
|
||||||
</view>
|
</view>
|
||||||
@@ -119,7 +121,7 @@
|
|||||||
<view class="describe"> {{item1.shortTitle?item1.shortTitle:''}} </view>
|
<view class="describe"> {{item1.shortTitle?item1.shortTitle:''}} </view>
|
||||||
<view class="monthlySale">月售{{item1.stockNumber}}</view>
|
<view class="monthlySale">月售{{item1.stockNumber}}</view>
|
||||||
<view class="money">¥<text class="money_num">{{ item1.lowPrice }}</text>/份<text
|
<view class="money">¥<text class="money_num">{{ item1.lowPrice }}</text>/份<text
|
||||||
class="suit">「{{item1.suit}}份起点」</text></view>
|
class="suit" v-if="item1.suit > 1">「{{item1.suit}}份起点」</text></view>
|
||||||
|
|
||||||
<view class="flex-end" v-if="item1.productSkuResult != null">
|
<view class="flex-end" v-if="item1.productSkuResult != null">
|
||||||
<view class="sku-wrap flex-center"
|
<view class="sku-wrap flex-center"
|
||||||
@@ -231,7 +233,7 @@
|
|||||||
<view class="col">
|
<view class="col">
|
||||||
<text class="l">营业时间:</text>
|
<text class="l">营业时间:</text>
|
||||||
<text
|
<text
|
||||||
class="t">{{ shopInfo.storeInfo.businessStartDay +'至'+ shopInfo.storeInfo.businessEndDay +' '+ shopInfo.storeInfo.businessTime }}</text>
|
class="t">{{ (shopInfo.storeInfo.businessStartDay || '——') +'至'+ (shopInfo.storeInfo.businessEndDay || '——') +' '+ (shopInfo.storeInfo.businessTime || '')}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="col">
|
<view class="col">
|
||||||
<text class="l">商家地址:</text>
|
<text class="l">商家地址:</text>
|
||||||
@@ -1630,16 +1632,18 @@
|
|||||||
|
|
||||||
// padding-bottom: 200rpx;
|
// padding-bottom: 200rpx;
|
||||||
.item {
|
.item {
|
||||||
padding: 0 30rpx;
|
padding: 30rpx 30rpx;
|
||||||
height: 92rpx;
|
// height: 92rpx;
|
||||||
line-height: 92rpx;
|
// line-height: 92rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
overflow: hidden;
|
display: flex;
|
||||||
text-overflow: ellipsis;
|
align-items: center;
|
||||||
white-space: nowrap;
|
// overflow: hidden;
|
||||||
|
// text-overflow: ellipsis;
|
||||||
|
// white-space: nowrap;
|
||||||
|
|
||||||
&+.item {
|
&+.item {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
|||||||
Reference in New Issue
Block a user