适配新版本

master
gongfuxiang 2023-08-12 18:07:51 +08:00
parent 2f4842a41e
commit d2798893c3
4 changed files with 13 additions and 10 deletions

View File

@ -3,7 +3,6 @@
<view v-if="(data_base || null) != null">
<!-- 分类 -->
<scroll-view v-if="(brand_category_list || null) != null && brand_category_list.length > 0" class="nav-list scroll-view-horizontal bg-white oh" scroll-x="true">
<view :class="'item cr-gray dis-inline-block padding-horizontal-main ' + (nav_active_value == 0 ? 'cr-main' : '')" @tap="nav_event" data-value="0">全部</view>
<block v-for="(item, index) in brand_category_list" :key="index">
<view :class="'item cr-gray dis-inline-block padding-horizontal-main ' + (nav_active_value == item.id ? 'cr-main' : '')" @tap="nav_event" :data-value="item.id">{{item.name}}</view>
</block>

View File

@ -500,10 +500,15 @@
}
} else {
var status = true;
for(var i in temp_data.detail_list) {
if(temp_data.detail_list[i]['goods_id'] == goods['id']) {
status = false;
break;
if((temp_data.detail_list || null) == null) {
temp_data.detail_list = [];
}
if(temp_data.detail_list.length > 0) {
for(var i in temp_data.detail_list) {
if(temp_data.detail_list[i]['goods_id'] == goods['id']) {
status = false;
break;
}
}
}
//

View File

@ -39,11 +39,11 @@
</view>
<view class="data-list oh">
<view v-for="(item, index) in data_base.goods_exchange_data" :key="index" class="item padding-bottom-sm border-radius-main bg-white margin-bottom-main">
<navigator :url="item.goods.goods_url" hover-class="none">
<image class="goods-img dis-block" :src="item.goods.images" mode="aspectFit"></image>
<navigator :url="item.goods_url" hover-class="none">
<image class="goods-img dis-block" :src="item.images" mode="aspectFit"></image>
<view class="padding-horizontal-main margin-top-sm">
<view class="multi-text">{{item.goods.title}}</view>
<view class="single-text original-price margin-top-sm">{{currency_symbol}}{{item.goods.price}}</view>
<view class="multi-text">{{item.title}}</view>
<view class="single-text original-price margin-top-sm">{{currency_symbol}}{{item.price}}</view>
<view class="single-text">
<text class="sales-price text-size">{{item.integral}}</text>
<text class="cr-grey margin-left-xs">积分</text>

View File

@ -3,7 +3,6 @@
<view v-if="(data_base || null) != null">
<!-- 分类 -->
<scroll-view v-if="(shop_category || null) != null && shop_category.length > 0" class="nav-base scroll-view-horizontal bg-white oh" scroll-x="true">
<view :class="'item cr-gray dis-inline-block padding-horizontal-main ' + (nav_active_value == 0 ? 'cr-main' : '')" @tap="nav_event" data-value="0">全部</view>
<block v-for="(item, index) in shop_category" :key="index">
<view :class="'item cr-gray dis-inline-block padding-horizontal-main ' + (nav_active_value == item.id ? 'cr-main' : '')" @tap="nav_event" :data-value="item.id">{{item.name}}</view>
</block>