|
|
@@ -18,12 +18,7 @@
|
|
|
<view class="buy-flower-container">
|
|
|
<button class="buy-material-btn" @click="buyProduct()">
|
|
|
<view class="btn-content">
|
|
|
- <text class="btn-text">🌸 花材绿植</text>
|
|
|
- </view>
|
|
|
- </button>
|
|
|
- <button class="buy-flower-btn" @click="buyAlbum()">
|
|
|
- <view class="btn-content">
|
|
|
- <text class="btn-text">📷 花束相册</text>
|
|
|
+ <text class="btn-text">🌸 绿植花材</text>
|
|
|
</view>
|
|
|
</button>
|
|
|
</view>
|
|
|
@@ -39,17 +34,18 @@
|
|
|
<!-- 搜索结果展示区域 -->
|
|
|
<scroll-view v-if="isSearchMode" scroll-y class="right-box" @scrolltolower="reachBottom">
|
|
|
<view class="page-view" v-if="!$util.isEmpty(list.data)" >
|
|
|
- <view class="goods-list" v-for="(items) in list.data" :key="items.id" @click="toBuy(items)" >
|
|
|
+ <view class="goods-list" v-for="(itemData) in list.data" :key="itemData.id" @click="toBuy(itemData)" >
|
|
|
<view class="img-blo">
|
|
|
- <image :src="items.smallCover" mode="aspectFill" ></image>
|
|
|
+ <image :src="itemData.smallCover" mode="aspectFill" ></image>
|
|
|
</view>
|
|
|
<view class="goods-det">
|
|
|
<view class="goods-det-top">
|
|
|
- <view class="goods-name">{{ items.name }}</view>
|
|
|
- <view class="goods-sales">已售 {{ items.totalSold }}</view>
|
|
|
+ <view class="goods-name">{{ itemData.name }}</view>
|
|
|
+ <view class="goods-sales">已售 {{ itemData.totalSold }}</view>
|
|
|
</view>
|
|
|
- <view class="goods-price">¥{{ items.price?parseFloat(items.price):0 }}</view>
|
|
|
- <view class="buy-btn">购买</view>
|
|
|
+ <view class="goods-price" v-if="Number(itemData.priceType) == 1">¥{{ itemData.price?parseFloat(itemData.price):0 }}</view>
|
|
|
+ <view class="goods-price" v-else>--</view>
|
|
|
+ <view class="buy-btn">购买{{ itemData.priceType }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -65,16 +61,17 @@
|
|
|
<block v-for="(item,index) in tabbar" :key="index" >
|
|
|
<scroll-view scroll-y class="right-box" @scrolltolower="reachBottom" v-if="!isSearchMode && currentTab==index" >
|
|
|
<view class="page-view" v-if="!$util.isEmpty(list.data)" >
|
|
|
- <view class="goods-list" v-for="(items) in list.data" :key="items.id" @click="toBuy(items)" >
|
|
|
+ <view class="goods-list" v-for="(itemData) in list.data" :key="itemData.id" @click="toBuy(itemData)" >
|
|
|
<view class="img-blo">
|
|
|
- <image :src="items.smallCover" mode="aspectFill" ></image>
|
|
|
+ <image :src="itemData.smallCover" mode="aspectFill" ></image>
|
|
|
</view>
|
|
|
<view class="goods-det">
|
|
|
<view class="goods-det-top">
|
|
|
- <view class="goods-name">{{ items.name }}</view>
|
|
|
- <view class="goods-sales">已售 {{ items.totalSold }}</view>
|
|
|
+ <view class="goods-name">{{ itemData.name }}</view>
|
|
|
+ <view class="goods-sales">已售 {{ itemData.totalSold }}</view>
|
|
|
</view>
|
|
|
- <view class="goods-price">¥{{ items.price?parseFloat(items.price):0 }}</view>
|
|
|
+ <view class="goods-price" v-if="Number(itemData.priceType) == 1">¥{{ itemData.price?parseFloat(itemData.price):0 }}</view>
|
|
|
+ <view class="goods-price" v-else>--</view>
|
|
|
<view class="buy-btn">购买</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -134,7 +131,7 @@ export default {
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
return {
|
|
|
- title: '花束商城',
|
|
|
+ title: '商城',
|
|
|
desc: "",
|
|
|
path: "pages/home/category?account="+this.option.account,
|
|
|
}
|