Commit 058eb1d1 authored by zhengxiuming's avatar zhengxiuming

分期商品

parent 40b9d2c7
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
<view class="goods-list" v-if="goods_list.length > 0"> <view class="goods-list" v-if="goods_list.length > 0">
<view class="goods-item" v-for="(item,index) in goods_list" :key="index"> <view class="goods-item" v-for="(item,index) in goods_list" :key="index">
<countDown v-if="item._source.is_pro === 1" :time="item._source.end_time"></countDown> <countDown v-if="item._source.is_pro === 1" :time="item._source.end_time"></countDown>
<view class="image-outer" @click="jumpPhpPage(`app=goods&id=${item._source.goods_id}`, item._source.equipment_id)"> <view class="image-outer" @click="jumpPhpPage(`app=goods&id=${item._source.goods_id}`, item._source.equipment_id, item._source.is_show)">
<image class="goods_image" :src="item._source.default_image || $noGoodsImg" lazy-load @error="$__reloadResource(item)" mode="aspectFit"></image> <image class="goods_image" :src="item._source.default_image || $noGoodsImg" lazy-load @error="$__reloadResource(item)" mode="aspectFit"></image>
<image v-if="item._source.equipment_id" src="https://dbc-static.oss-cn-beijing.aliyuncs.com/static/WechatIMG4.png" class="equipment_logo" mode="aspectFill"></image> <image v-if="item._source.equipment_id && item._source.is_show == 1" src="https://dbc-static.oss-cn-beijing.aliyuncs.com/static/WechatIMG4.png" class="equipment_logo" mode="aspectFill"></image>
</view> </view>
<view class="title">{{item._source.brand ? `【${item._source.brand}】` : ''}}{{item._source.goods_name}}</view> <view class="title">{{item._source.brand ? `【${item._source.brand}】` : ''}}{{item._source.goods_name}}</view>
<view class="sub-title">{{item._source.goods_subname}}</view> <view class="sub-title">{{item._source.goods_subname}}</view>
...@@ -166,9 +166,9 @@ ...@@ -166,9 +166,9 @@
}) })
}, },
// 跳转商品详情页 // 跳转商品详情页
jumpPhpPage(url, id) { jumpPhpPage(url, id, is_show) {
let link = url ? `${php}${url}` : php; let link = url ? `${php}${url}` : php;
if(id){ if(id && is_show == 1){
link = window.location.origin + `/uni/pages/installment/installmentinfo?id=${id}`; link = window.location.origin + `/uni/pages/installment/installmentinfo?id=${id}`;
} }
window.location.href = link; window.location.href = link;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment