更新打包配置
This commit is contained in:
@@ -1,95 +1,95 @@
|
||||
<template>
|
||||
<view class="shop-view" @click="onClick">
|
||||
<view class="shop-left-view">
|
||||
<image :src="obj.url"></image>
|
||||
</view>
|
||||
<view class="shop-right-view">
|
||||
<view class="right-top-view text-overflow1">
|
||||
<text class="text-32 text-bold text-zu text-overflow1">{{obj.title}}</text>
|
||||
</view>
|
||||
<view class="right-bottom-view">
|
||||
<text class="text-28 text-zi text-bold">¥{{obj.price}}兑换券</text>
|
||||
<MyBtn @ok="onClick" mh="64rpx" text="立即兑换" br="8rpx" bg="linear-gradient( 270deg, #B164FB 0%, #7934F6 100%)" wd="200rpx"></MyBtn>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MyBtn from '@/components/common/my-btn.vue'
|
||||
export default {
|
||||
components:{MyBtn},
|
||||
props:{
|
||||
obj:{
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods: {
|
||||
onClick(){
|
||||
this.$emit('ok',this.obj.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.shop-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 12rpx;
|
||||
.shop-left-view{
|
||||
min-width:216rpx;
|
||||
min-height:216rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
image{
|
||||
width:216rpx;
|
||||
height:216rpx;
|
||||
}
|
||||
}
|
||||
.shop-right-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
min-height:216rpx;
|
||||
margin-left:24rpx;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
.right-top-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
|
||||
}
|
||||
.right-bottom-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
.right-bottom-panel{
|
||||
width:284rpx;
|
||||
height:104rpx;
|
||||
min-height:104rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #F0E7FE;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
<template>
|
||||
<view class="shop-view" @click="onClick">
|
||||
<view class="shop-left-view">
|
||||
<image :src="obj.url"></image>
|
||||
</view>
|
||||
<view class="shop-right-view">
|
||||
<view class="right-top-view text-overflow1">
|
||||
<text class="text-32 text-bold text-zu text-overflow1">{{obj.title}}</text>
|
||||
</view>
|
||||
<view class="right-bottom-view">
|
||||
<text class="text-28 text-zi text-bold">¥{{obj.price}}兑换券</text>
|
||||
<MyBtn @ok="onClick" mh="64rpx" text="立即兑换" br="8rpx" bg="linear-gradient( 270deg, #B164FB 0%, #7934F6 100%)" wd="200rpx"></MyBtn>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MyBtn from '@/components/common/my-btn.vue'
|
||||
export default {
|
||||
components:{MyBtn},
|
||||
props:{
|
||||
obj:{
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods: {
|
||||
onClick(){
|
||||
this.$emit('ok',this.obj.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.shop-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 12rpx;
|
||||
.shop-left-view{
|
||||
min-width:216rpx;
|
||||
min-height:216rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
image{
|
||||
width:216rpx;
|
||||
height:216rpx;
|
||||
}
|
||||
}
|
||||
.shop-right-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
min-height:216rpx;
|
||||
margin-left:24rpx;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
.right-top-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
|
||||
}
|
||||
.right-bottom-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
.right-bottom-panel{
|
||||
width:284rpx;
|
||||
height:104rpx;
|
||||
min-height:104rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 12rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #F0E7FE;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -1,89 +1,89 @@
|
||||
<template>
|
||||
<view class="ping-item" @click.stop="onClick">
|
||||
<image
|
||||
class="top-img"
|
||||
:src="obj.url"
|
||||
mode="widthFix"
|
||||
lazy-load
|
||||
/>
|
||||
<view class="shop-bottom-panel">
|
||||
<text class="title text-30 text-zu text-overflow">
|
||||
{{ obj.title }}
|
||||
</text>
|
||||
<view class="flex-r-lr price-line">
|
||||
<text class="text-28 text-zi text-bold">¥{{ obj.price }}</text>
|
||||
<text class="text-24 sold">已售{{ obj.sales }}件</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PingItem',
|
||||
props: {
|
||||
obj: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$emit('ok', this.obj.id);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ping-item {
|
||||
width: 332rpx;
|
||||
background: #fff;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0; /* 瀑布流父层控制间距,这里清零 */
|
||||
}
|
||||
|
||||
.top-img {
|
||||
width: 332rpx;
|
||||
display: block;
|
||||
border-radius: 12rpx 12rpx 0 0;
|
||||
}
|
||||
|
||||
.shop-bottom-panel {
|
||||
padding: 12rpx 16rpx 16rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
line-height: 40rpx;
|
||||
max-width: 300rpx;
|
||||
}
|
||||
|
||||
.price-line {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.sold {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 通用工具类(如已全局引入可删除) */
|
||||
.text-overflow {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text-30 { font-size: 30rpx; }
|
||||
.text-28 { font-size: 28rpx; }
|
||||
.text-24 { font-size: 24rpx; }
|
||||
.text-zu { color: #333; }
|
||||
.text-zi { color: #7A35F6; }
|
||||
.text-bold { font-weight: bold; }
|
||||
.flex-r-lr {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
<template>
|
||||
<view class="ping-item" @click.stop="onClick">
|
||||
<image
|
||||
class="top-img"
|
||||
:src="obj.url"
|
||||
mode="widthFix"
|
||||
lazy-load
|
||||
/>
|
||||
<view class="shop-bottom-panel">
|
||||
<text class="title text-30 text-zu text-overflow">
|
||||
{{ obj.title }}
|
||||
</text>
|
||||
<view class="flex-r-lr price-line">
|
||||
<text class="text-28 text-zi text-bold">¥{{ obj.price }}</text>
|
||||
<text class="text-24 sold">已售{{ obj.sales }}件</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PingItem',
|
||||
props: {
|
||||
obj: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$emit('ok', this.obj.id);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ping-item {
|
||||
width: 332rpx;
|
||||
background: #fff;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0; /* 瀑布流父层控制间距,这里清零 */
|
||||
}
|
||||
|
||||
.top-img {
|
||||
width: 332rpx;
|
||||
display: block;
|
||||
border-radius: 12rpx 12rpx 0 0;
|
||||
}
|
||||
|
||||
.shop-bottom-panel {
|
||||
padding: 12rpx 16rpx 16rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
line-height: 40rpx;
|
||||
max-width: 300rpx;
|
||||
}
|
||||
|
||||
.price-line {
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
|
||||
.sold {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
/* 通用工具类(如已全局引入可删除) */
|
||||
.text-overflow {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.text-30 { font-size: 30rpx; }
|
||||
.text-28 { font-size: 28rpx; }
|
||||
.text-24 { font-size: 24rpx; }
|
||||
.text-zu { color: #333; }
|
||||
.text-zi { color: #7A35F6; }
|
||||
.text-bold { font-weight: bold; }
|
||||
.flex-r-lr {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
+109
-109
@@ -1,109 +1,109 @@
|
||||
<template>
|
||||
<view class="shop-view" @click="onClick">
|
||||
<view class="shop-left-view">
|
||||
<image :src="obj.url"></image>
|
||||
</view>
|
||||
<view class="shop-right-view">
|
||||
<view class="shop-top-img">
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/xyx.png" style="width: 122rpx;height: 28rpx;margin-right: 12rpx;"></image>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/xs.png" v-if="obj.limitedTime " style="width: 52rpx;height: 28rpx;margin-right: 12rpx;"></image>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/tg.png" v-if="obj.tag" style="width: 80rpx;height: 28rpx;"></image>
|
||||
</view>
|
||||
<view class="right-top-view text-overflow1">
|
||||
<text class="text-32 text-bold text-zu text-overflow1">{{obj.title}}</text>
|
||||
</view>
|
||||
<view class="shop-price" @ok.stop="onClick" >
|
||||
<view class="price-left"><text style="font-size: 24rpx;">¥</text>{{obj.price}}</view>
|
||||
<view class="price-center">专区立省{{ Number(obj.adPrice) - Number(obj.price) }}元</view>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/qiang.png" style="width: 80rpx;height: 80rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MyBtn from '@/components/common/my-btn.vue'
|
||||
export default {
|
||||
components:{MyBtn},
|
||||
props:{
|
||||
obj:{
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods: {
|
||||
onClick(){
|
||||
this.$emit('ok',this.obj.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.shop-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
.shop-left-view{
|
||||
min-width:216rpx;
|
||||
min-height:216rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
image{
|
||||
width:220rpx;
|
||||
height:220rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
}
|
||||
.shop-right-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
min-height:216rpx;
|
||||
margin-left:24rpx;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
.shop-top-img{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.right-top-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
|
||||
}
|
||||
.shop-price{
|
||||
background: linear-gradient( 270deg, #F0E7FE 0%, rgba(240,231,254,0) 100%);
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.price-left{
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #7934F6;
|
||||
}
|
||||
.price-center{
|
||||
font-size: 20rpx;
|
||||
color: #7934F6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
<template>
|
||||
<view class="shop-view" @click="onClick">
|
||||
<view class="shop-left-view">
|
||||
<image :src="obj.url"></image>
|
||||
</view>
|
||||
<view class="shop-right-view">
|
||||
<view class="shop-top-img">
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/xyx.png" style="width: 122rpx;height: 28rpx;margin-right: 12rpx;"></image>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/xs.png" v-if="obj.limitedTime " style="width: 52rpx;height: 28rpx;margin-right: 12rpx;"></image>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/tg.png" v-if="obj.tag" style="width: 80rpx;height: 28rpx;"></image>
|
||||
</view>
|
||||
<view class="right-top-view text-overflow1">
|
||||
<text class="text-32 text-bold text-zu text-overflow1">{{obj.title}}</text>
|
||||
</view>
|
||||
<view class="shop-price" @ok.stop="onClick" >
|
||||
<view class="price-left"><text style="font-size: 24rpx;">¥</text>{{obj.price}}</view>
|
||||
<view class="price-center">专区立省{{ Number(obj.adPrice) - Number(obj.price) }}元</view>
|
||||
<image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/home/qiang.png" style="width: 80rpx;height: 80rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MyBtn from '@/components/common/my-btn.vue'
|
||||
export default {
|
||||
components:{MyBtn},
|
||||
props:{
|
||||
obj:{
|
||||
type:Object,
|
||||
default:()=>{}
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
methods: {
|
||||
onClick(){
|
||||
this.$emit('ok',this.obj.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.shop-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
border-radius: 16rpx;
|
||||
.shop-left-view{
|
||||
min-width:216rpx;
|
||||
min-height:216rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
image{
|
||||
width:220rpx;
|
||||
height:220rpx;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
}
|
||||
.shop-right-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
min-height:216rpx;
|
||||
margin-left:24rpx;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
.shop-top-img{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
image{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.right-top-view{
|
||||
width:100%;
|
||||
display: flex;
|
||||
|
||||
}
|
||||
.shop-price{
|
||||
background: linear-gradient( 270deg, #F0E7FE 0%, rgba(240,231,254,0) 100%);
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.price-left{
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #7934F6;
|
||||
}
|
||||
.price-center{
|
||||
font-size: 20rpx;
|
||||
color: #7934F6;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user