vip列表原价展示
This commit is contained in:
@@ -10,8 +10,8 @@ import router from '../router'
|
|||||||
|
|
||||||
// 基础配置
|
// 基础配置
|
||||||
const config = {
|
const config = {
|
||||||
apiUrl : 'https://api.gongli.vip/api/', // 正式环境
|
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境
|
||||||
// apiUrl : 'http://api.gl.shangkelian.cn/api/', // 测试
|
apiUrl : 'http://api.gl.shangkelian.cn/api/', // 测试
|
||||||
timeout : 60000
|
timeout : 60000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="goods-item">
|
<view class="goods-item">
|
||||||
|
<view class="bg"> {{item.shop_vip.message}} </view>
|
||||||
<image :src="item.cover" mode="aspectFill" class="goods-cover" />
|
<image :src="item.cover" mode="aspectFill" class="goods-cover" />
|
||||||
<view class="tags"> VIP </view>
|
<view class="tags"> VIP </view>
|
||||||
<view class="goods-info">
|
<view class="goods-info">
|
||||||
<view class="_title">{{item.name}}</view>
|
<view class="_title">{{item.name}}</view>
|
||||||
<view class="_des">
|
<view class="_des"> {{item.shop.name}} </view>
|
||||||
{{item.shop.name}}
|
|
||||||
</view>
|
|
||||||
<view class="_pin" v-if="item.sales>0">
|
<view class="_pin" v-if="item.sales>0">
|
||||||
<view class="_has"> <image src="/static/book/fire.png" mode="widthFix" class="fire" /> 已换购 {{item.sales}} 件 </view>
|
<view class="_has">
|
||||||
|
<image src="/static/book/fire.png" mode="widthFix" class="fire" /> 已换购 {{item.sales}} 件
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<view class="money">{{item.price.price_min}} <span>DT积分</span> </view>
|
<view class="money">
|
||||||
|
{{item.price.price_min}} <span>DT积分</span>
|
||||||
|
<span class='del'>{{item.original_price}} DT积分</span>
|
||||||
|
</view>
|
||||||
<view class="now-pin" @click="goPin(item.goods_id)">立即领取</view>
|
<view class="now-pin" @click="goPin(item.goods_id)">立即领取</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -47,7 +51,20 @@
|
|||||||
padding: $padding;
|
padding: $padding;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
.bg {
|
||||||
|
position: absolute;
|
||||||
|
top: -40rpx;
|
||||||
|
right: -10rpx;
|
||||||
|
opacity: 0.1;
|
||||||
|
font-size: 130rpx;
|
||||||
|
color: $main-color;
|
||||||
|
z-index: 1;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.tags {
|
.tags {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 6rpx;
|
top: 6rpx;
|
||||||
@@ -82,8 +99,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
._des {
|
._des {
|
||||||
font-size: 28rpx;
|
font-size: 26rpx;
|
||||||
padding: 6rpx 0;
|
padding: 10rpx 0;
|
||||||
|
margin-bottom: 4rpx;
|
||||||
color: #4f300a;
|
color: #4f300a;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -136,11 +154,20 @@
|
|||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #d81e06;
|
color: #d81e06;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.del {
|
||||||
|
text-decoration: line-through;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.now-pin {
|
.now-pin {
|
||||||
|
|||||||
@@ -56,6 +56,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="news-title nowrap">{{item.name}}</view>
|
<view class="news-title nowrap">{{item.name}}</view>
|
||||||
<view class="news-price nowrap">{{item.price.price_min}} <text>DT积分</text></view>
|
<view class="news-price nowrap">{{item.price.price_min}} <text>DT积分</text></view>
|
||||||
|
<!-- <view class="news-price nowrap through">{{item.original_price}} <text>DT积分</text></view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -70,7 +71,7 @@
|
|||||||
<view class="card-box-item" style="{'backgrond': #FFF}" v-if="index < 4"
|
<view class="card-box-item" style="{'backgrond': #FFF}" v-if="index < 4"
|
||||||
@click="$Router.push({name: 'ShopDetail', params: {ShopId: item.shop_id}})">
|
@click="$Router.push({name: 'ShopDetail', params: {ShopId: item.shop_id}})">
|
||||||
<view class="card-title">{{item.name}}</view>
|
<view class="card-title">{{item.name}}</view>
|
||||||
<view class="card-subtitle"> 优质店铺 </view>
|
<view class="card-subtitle"> {{item.type.code == 2 ? 'VIP优质店铺' : '优质店铺'}} </view>
|
||||||
<view class="card-btn">前往体验</view>
|
<view class="card-btn">前往体验</view>
|
||||||
<image class="card-cover" :src="item.cover" mode="aspectFill" />
|
<image class="card-cover" :src="item.cover" mode="aspectFill" />
|
||||||
</view>
|
</view>
|
||||||
@@ -367,6 +368,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.through{
|
||||||
|
text-decoration: line-through !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -407,6 +407,8 @@
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
position: relative;
|
||||||
|
top: 5rpx;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
margin-right: $margin/2;
|
margin-right: $margin/2;
|
||||||
|
|||||||
1836
unpackage/dist/dev/app-plus/app-service.js
vendored
1836
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
348
unpackage/dist/dev/app-plus/app-view.js
vendored
348
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user