Commit ee77b987 authored by zhengxiuming's avatar zhengxiuming

修改分期标签

parent 148bea8c
No preview for this file type
{ {
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"version": "1.0.13", "version": "1.0.23",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
<template> <template>
<view> <view>
<view v-if="style_setting.rank === 1" class="rank rank1" :style="[{'background-image': `url(${style_setting.bg_url})`}, {'background-color': style_setting.bg_color},{'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto'}: null]"> <view v-if="style_setting.rank === 1" class="rank rank1" :style="[{'background-image': `url(${style_setting.bg_show ? style_setting.bg_url : ''})`}, {'background-color': style_setting.bg_color},{'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto'}: null]">
<view class="menuItem" v-for="(item, key) in menuArray" :key="key" :style="{'width': width,height: style_setting.menuHeight*2+'rpx'}" @click="$jump(item.img_href)"> <view class="menuItem" v-for="(item, key) in menuArray" :key="key" :style="{'width': width,height: style_setting.menuHeight*2+'rpx'}" @click="$jump(item.img_href)">
<image :src="item.img_url" class="icon_img" :style="[style_setting.spacing ? {'margin-bottom':style_setting.spacing * 2 + 'rpx'}:{'margin-bottom':'16rpx'}]"></image> <image :src="item.img_url" class="icon_img" :style="[style_setting.spacing ? {'margin-bottom':style_setting.spacing * 2 + 'rpx'}:{'margin-bottom':'16rpx'}]"></image>
<text v-if="style_setting.font_show" class="title" :style="{'color': style_setting.font_color}">{{item.title}}</text> <text v-if="style_setting.font_show" class="title" :style="{'color': style_setting.font_color}">{{item.title}}</text>
</view> </view>
</view> </view>
<swiper v-else indicator-dots="true" :style="[{'height': style_setting.rank*200+10+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto'}: null, {'background-image':`url(${style_setting.bg_url})`}, {'background-color': style_setting.bg_color}, {'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}]" class="swiper_view"> <swiper v-else indicator-dots="true" :style="[{'height': style_setting.rank*200+10+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto'}: null, {'background-image':`url(${style_setting.bg_show ? style_setting.bg_url : ''})`}, {'background-color': style_setting.bg_color}, {'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}]" class="swiper_view">
<swiper-item v-for="(item, key) in menuArray" :key="key" class="rank rank1"> <swiper-item v-for="(item, key) in menuArray" :key="key" class="rank rank1">
<view class="menuItem" v-for="(val, index) in item" :key="index" :style="{'width': width, height: style_setting.menuHeight*2+'rpx'}" @click="$jump(val.img_href)"> <view class="menuItem" v-for="(val, index) in item" :key="index" :style="{'width': width, height: style_setting.menuHeight*2+'rpx'}" @click="$jump(val.img_href)">
<image :src="val.img_url" class="icon_img" :style="[style_setting.spacing ? {'margin-bottom':style_setting.spacing * 2 + 'rpx'}:{'margin-bottom':'16rpx'}]"></image> <image :src="val.img_url" class="icon_img" :style="[style_setting.spacing ? {'margin-bottom':style_setting.spacing * 2 + 'rpx'}:{'margin-bottom':'16rpx'}]"></image>
......
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
<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}`)"> <view class="image-outer" @click="jumpPhpPage(`app=goods&id=${item._source.goods_id}`)">
<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>
</view> </view>
<view class="title">{{item._source.brand}} {{item._source.goods_name}}</view> <view class="title">{{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>
...@@ -384,7 +385,7 @@ ...@@ -384,7 +385,7 @@
width: 320rpx; width: 320rpx;
height: 320rpx; height: 320rpx;
position: relative; position: relative;
image{ .goods_image{
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -394,6 +395,13 @@ ...@@ -394,6 +395,13 @@
max-height: 100%; max-height: 100%;
margin: auto; margin: auto;
} }
.equipment_logo{
position: absolute;
left: 0;
top: 0;
width: 125rpx;
height: 45rpx;
}
} }
.title{ .title{
height: 38rpx; height: 38rpx;
......
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