20 changed files with 2745 additions and 963 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,142 +1,211 @@ |
|||||||
<template> |
<template> |
||||||
<view class="promotionGood" v-if="benefit.length > 0"> |
<view> |
||||||
<view class="goods-box" v-for="(item, promotionGoodIndex) in benefit" :key="promotionGoodIndex" @tap="routerGo(item)"> |
<view class="sh-title-card mb10"> |
||||||
<view class="img-box"> |
<view class="title-box"> |
||||||
<!-- <image class="tag-img" :src="item.image" mode=""></image> --> |
<image class="title-bg" src="@/static/images/title1.png" mode="aspectFill"></image> |
||||||
<image class="img" :src="item.image" lazy-load mode="aspectFill"></image> |
<view class="title-text" :style="{ color: detail.color }">为你推荐</view> |
||||||
</view> |
</view> |
||||||
<view class="tip one-t">{{ item.storeName }}</view> |
</view> |
||||||
<view class="title more-t">{{ item.storeName }}</view> |
<view class="hot-goods mx20 mb10" v-if="benefit.length"> |
||||||
<view class="price-box"> |
<view class="goods-list x-f"> |
||||||
<view class="flex x-bc align-end"> |
<view class="goods-item" v-for="(item, promotionGoodIndex) in benefit" :key="promotionGoodIndex"> |
||||||
<view class="current">{{ item.activity_type === 'groupon' ? item.price : item.otPrice }}</view> |
<view class="goods-box" @tap="routerGo(item)"> |
||||||
<view class="sales miso-font">仅剩:{{ item.stock }}{{ item.unitName }}</view> |
<view class="img-box"> |
||||||
</view> |
<!-- <image class="tag-img" :src="item.image" mode=""></image> --> |
||||||
<view class="x-f tag-box"> |
<image class="img" :src="item.image" lazy-load mode="aspectFill"></image> |
||||||
<!-- <view class="discount">新人礼</view> |
</view> |
||||||
|
<view class="tip one-t">{{ item.storeName }}</view> |
||||||
|
<view class="title more-t">{{ item.storeName }}</view> |
||||||
|
<view class="price-box"> |
||||||
|
<view class="flex x-bc align-end"> |
||||||
|
<view class="current">{{ item.activity_type === 'groupon' ? item.price : item.otPrice }} |
||||||
|
</view> |
||||||
|
<view class="sales miso-font">仅剩:{{ item.stock }}{{ item.unitName }}</view> |
||||||
|
</view> |
||||||
|
<view class="x-f tag-box"> |
||||||
|
<!-- <view class="discount">新人礼</view> |
||||||
<view class="discount">满100减60</view> --> |
<view class="discount">满100减60</view> --> |
||||||
|
</view> |
||||||
|
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
</view> |
</view> |
||||||
|
</view> |
||||||
|
|
||||||
</template> |
</template> |
||||||
<script> |
<script> |
||||||
export default { |
export default { |
||||||
name: 'PromotionGood', |
name: 'PromotionGood', |
||||||
props: ['benefit'], |
props: ['benefit'], |
||||||
data: function() { |
data: function () { |
||||||
return {}; |
return {}; |
||||||
}, |
}, |
||||||
methods: { |
methods: { |
||||||
routerGo(item) { |
routerGo(item) { |
||||||
this.$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: item.id } }); |
this.$yrouter.push({ |
||||||
} |
path: '/pages/shop/GoodsCon/index', |
||||||
}, |
query: { |
||||||
mounted() { |
id: item.id |
||||||
} |
} |
||||||
}; |
}); |
||||||
|
} |
||||||
|
}, |
||||||
|
mounted() {} |
||||||
|
}; |
||||||
</script> |
</script> |
||||||
|
|
||||||
<style lang="scss"> |
<style lang="scss"> |
||||||
.goods-box { |
|
||||||
width: 345rpx; |
.sh-title-card { |
||||||
background: #fff; |
width: 750rpx; |
||||||
padding-bottom: 20rpx; |
} |
||||||
border-radius: 20rpx; |
.title-box { |
||||||
overflow: hidden; |
width: 710rpx; |
||||||
|
height: 88rpx; |
||||||
.img-box { |
margin: 0 auto; |
||||||
|
position: relative; |
||||||
|
border-radius: 30rpx; |
||||||
|
|
||||||
|
.title-bg { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
} |
||||||
|
.title-text { |
||||||
|
position: absolute; |
||||||
|
top: 50%; |
||||||
|
left: 50%; |
||||||
|
transform: translate(-50%, -50%); |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
} |
||||||
|
.goods-box { |
||||||
width: 345rpx; |
width: 345rpx; |
||||||
height: 345rpx; |
background: #fff; |
||||||
|
padding-bottom: 20rpx; |
||||||
|
border-radius: 20rpx; |
||||||
overflow: hidden; |
overflow: hidden; |
||||||
position: relative; |
|
||||||
|
|
||||||
.tag-img { |
|
||||||
position: absolute; |
|
||||||
left: 0; |
|
||||||
top: 0; |
|
||||||
z-index: 2; |
|
||||||
width: 80rpx; |
|
||||||
height: 40rpx; |
|
||||||
} |
|
||||||
|
|
||||||
.img { |
.img-box { |
||||||
width: 345rpx; |
width: 345rpx; |
||||||
height: 345rpx; |
height: 345rpx; |
||||||
background-color: #ccc; |
overflow: hidden; |
||||||
} |
position: relative; |
||||||
} |
|
||||||
|
|
||||||
.tip { |
.tag-img { |
||||||
width: 346rpx; |
position: absolute; |
||||||
line-height: 56rpx; |
left: 0; |
||||||
background: rgba(246, 242, 234, 1); |
top: 0; |
||||||
font-size: 22rpx; |
z-index: 2; |
||||||
font-family: PingFang SC; |
width: 80rpx; |
||||||
font-weight: 400; |
height: 40rpx; |
||||||
color: rgba(168, 112, 13, 1); |
} |
||||||
padding: 0 20rpx; |
|
||||||
} |
|
||||||
|
|
||||||
.title { |
.img { |
||||||
font-size: 24rpx; |
width: 345rpx; |
||||||
font-family: PingFang SC; |
height: 345rpx; |
||||||
font-weight: 500; |
background-color: #ccc; |
||||||
line-height: 36rpx; |
} |
||||||
height: 72rpx; |
} |
||||||
margin: 20rpx 20rpx 10rpx; |
|
||||||
} |
|
||||||
|
|
||||||
.price-box { |
.tip { |
||||||
padding: 10rpx 20rpx 0; |
width: 346rpx; |
||||||
width: 344rpx; |
line-height: 56rpx; |
||||||
.sales { |
background: rgba(246, 242, 234, 1); |
||||||
font-size: 20rpx; |
font-size: 22rpx; |
||||||
font-family: PingFang SC; |
font-family: PingFang SC; |
||||||
font-weight: 400; |
font-weight: 400; |
||||||
color: rgba(153, 153, 153, 1); |
color: rgba(168, 112, 13, 1); |
||||||
line-height: 20rpx; |
padding: 0 20rpx; |
||||||
margin-bottom: 20rpx; |
|
||||||
} |
} |
||||||
.current { |
|
||||||
font-size: 30rpx; |
.title { |
||||||
|
font-size: 24rpx; |
||||||
|
font-family: PingFang SC; |
||||||
font-weight: 500; |
font-weight: 500; |
||||||
color: rgba(225, 33, 43, 1); |
line-height: 36rpx; |
||||||
line-height: 30rpx; |
height: 72rpx; |
||||||
margin-bottom: 20rpx; |
margin: 20rpx 20rpx 10rpx; |
||||||
&:before { |
|
||||||
content: '¥'; |
|
||||||
font-size: 26rpx; |
|
||||||
} |
|
||||||
} |
} |
||||||
|
|
||||||
.original { |
.price-box { |
||||||
font-size: 22rpx; |
padding: 10rpx 20rpx 0; |
||||||
font-weight: 400; |
width: 344rpx; |
||||||
text-decoration: line-through; |
box-sizing: border-box; |
||||||
color: rgba(153, 153, 153, 1); |
|
||||||
margin-left: 14rpx; |
.sales { |
||||||
line-height: 22rpx; |
|
||||||
margin-bottom: 10rpx; |
|
||||||
&:before { |
|
||||||
content: '¥'; |
|
||||||
font-size: 20rpx; |
font-size: 20rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: 400; |
||||||
|
color: rgba(153, 153, 153, 1); |
||||||
|
line-height: 20rpx; |
||||||
|
margin-bottom: 20rpx; |
||||||
} |
} |
||||||
} |
|
||||||
|
|
||||||
.tag-box { |
.current { |
||||||
.discount { |
font-size: 30rpx; |
||||||
line-height: 28rpx; |
|
||||||
border: 1rpx solid rgba(225, 33, 43, 1); |
|
||||||
border-radius: 8rpx; |
|
||||||
font-size: 18rpx; |
|
||||||
font-family: PingFang SC; |
|
||||||
font-weight: 500; |
font-weight: 500; |
||||||
color: rgba(225, 33, 43, 1); |
color: rgba(225, 33, 43, 1); |
||||||
padding: 0 8rpx; |
line-height: 30rpx; |
||||||
margin-right: 10rpx; |
margin-bottom: 20rpx; |
||||||
|
|
||||||
|
&:before { |
||||||
|
content: '¥'; |
||||||
|
font-size: 26rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.original { |
||||||
|
font-size: 22rpx; |
||||||
|
font-weight: 400; |
||||||
|
text-decoration: line-through; |
||||||
|
color: rgba(153, 153, 153, 1); |
||||||
|
margin-left: 14rpx; |
||||||
|
line-height: 22rpx; |
||||||
|
margin-bottom: 10rpx; |
||||||
|
|
||||||
|
&:before { |
||||||
|
content: '¥'; |
||||||
|
font-size: 20rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tag-box { |
||||||
|
.discount { |
||||||
|
line-height: 28rpx; |
||||||
|
border: 1rpx solid rgba(225, 33, 43, 1); |
||||||
|
border-radius: 8rpx; |
||||||
|
font-size: 18rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: 500; |
||||||
|
color: rgba(225, 33, 43, 1); |
||||||
|
padding: 0 8rpx; |
||||||
|
margin-right: 10rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// 为你推荐 |
||||||
|
.hot-goods { |
||||||
|
background: linear-gradient(#fff 200rpx, #f6f6f6 500rpx, #f6f6f6); |
||||||
|
border-radius: 20rpx; |
||||||
|
|
||||||
|
.goods-list { |
||||||
|
flex-wrap: wrap; |
||||||
|
width: 710rpx; |
||||||
|
|
||||||
|
.goods-item { |
||||||
|
margin-right: 20rpx; |
||||||
|
margin-bottom: 20rpx; |
||||||
|
width: 345rpx; |
||||||
|
box-shadow: 0px 0px 10rpx 4rpx rgba(199, 199, 199, 0.22); |
||||||
|
border-radius: 20rpx; |
||||||
|
|
||||||
|
&:nth-child(2n) { |
||||||
|
margin-right: 0; |
||||||
|
} |
||||||
} |
} |
||||||
} |
} |
||||||
} |
} |
||||||
} |
|
||||||
</style> |
</style> |
||||||
|
@ -0,0 +1,84 @@ |
|||||||
|
<template> |
||||||
|
<view class="min-goods" @tap="jump('/pages/goods/detail/index', { id: detail.id })"> |
||||||
|
<view class="img-box"> |
||||||
|
<view class="tag" >{{ detail.people}}人团</view> |
||||||
|
<image class="img" :src="detail.image" mode="widthFix"></image> |
||||||
|
</view> |
||||||
|
<view class="price-box"> |
||||||
|
<view class="y-f"> |
||||||
|
<text class="seckill-current">¥{{ detail.price }}</text> |
||||||
|
<text class="original">{{ detail.browse }}人浏览</text> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="title"><slot name="titleText"></slot></view> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
export default { |
||||||
|
components: {}, |
||||||
|
data() { |
||||||
|
return {}; |
||||||
|
}, |
||||||
|
props: { |
||||||
|
detail: Object |
||||||
|
}, |
||||||
|
computed: {}, |
||||||
|
methods: { |
||||||
|
// 路由跳转 |
||||||
|
jump(path, parmas) { |
||||||
|
this.$Router.push({ path: path, query: parmas }); |
||||||
|
} |
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
.min-goods { |
||||||
|
width: 152rpx; |
||||||
|
background: #fff; |
||||||
|
.img-box { |
||||||
|
width: 152rpx; |
||||||
|
height: 152rpx; |
||||||
|
overflow: hidden; |
||||||
|
position: relative; |
||||||
|
.tag { |
||||||
|
position: absolute; |
||||||
|
left: 0; |
||||||
|
bottom: 0rpx; |
||||||
|
z-index: 2; |
||||||
|
line-height: 35rpx; |
||||||
|
background: linear-gradient(132deg, rgba(243, 223, 177, 1), rgba(243, 223, 177, 1), rgba(236, 190, 96, 1)); |
||||||
|
border-radius: 0px 18rpx 18rpx 0px; |
||||||
|
padding: 0 10rpx; |
||||||
|
font-size: 24rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: bold; |
||||||
|
color: rgba(120, 79, 6, 1); |
||||||
|
} |
||||||
|
.img { |
||||||
|
width: 100%; |
||||||
|
background-color: #ccc; |
||||||
|
} |
||||||
|
} |
||||||
|
.price-box { |
||||||
|
width: 100%; |
||||||
|
margin-top: 10rpx; |
||||||
|
.seckill-current { |
||||||
|
font-size: 30rpx; |
||||||
|
font-weight: 500; |
||||||
|
color: rgba(225, 33, 43, 1); |
||||||
|
} |
||||||
|
.original { |
||||||
|
font-size: 20rpx; |
||||||
|
font-weight: 400; |
||||||
|
text-decoration: line-through; |
||||||
|
color: rgba(153, 153, 153, 1); |
||||||
|
margin-left: 14rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
.title { |
||||||
|
font-size: 26rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,260 @@ |
|||||||
|
<template> |
||||||
|
<view class="adv-box mx20 mb10"> |
||||||
|
<!-- 模板1--> |
||||||
|
<view class="x-f" v-if="detail.style == 1"> |
||||||
|
<image style="width:710rpx;height: 220rpx;" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
<!-- 模板2--> |
||||||
|
<view class="type1 x-f" v-if="detail.style == 2"> |
||||||
|
<image class="type1-img" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
<image class="type1-img" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
</view> |
||||||
|
<!-- 模板3--> |
||||||
|
<view class="type2 x-bc" v-if="detail.style == 3"> |
||||||
|
<image class="type2-img1" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
<view class="y-f type2-box"> |
||||||
|
<image class="type2-img2" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" mode="aspectFill" |
||||||
|
style="border-bottom:1rpx solid #f6f6f6"></image> |
||||||
|
<image class="type2-img2" @tap="jump(detail.list[2].path)" :src="detail.list[2].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<!-- 模板4--> |
||||||
|
<view class="type3 x-bc" v-if="detail.style == 4"> |
||||||
|
<view class="type3-box y-f"> |
||||||
|
<image class="type3-img1" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
<image class="type3-img1" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
<image class="type3-img2" @tap="jump(detail.list[2].path)" :src="detail.list[2].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
</view> |
||||||
|
<!-- 模板5--> |
||||||
|
<view class="type4 y-f" v-if="detail.style == 5"> |
||||||
|
<view class="type4-box x-f"> |
||||||
|
<image class="type4-img1" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
<image class="type4-img1" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
<image class="type4-img2" @tap="jump(detail.list[2].path)" :src="detail.list[2].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
</view> |
||||||
|
<!-- 模板6--> |
||||||
|
<view class="type5 y-f" v-if="detail.style == 6"> |
||||||
|
<image class="type5-img1" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" mode="aspectFill"> |
||||||
|
</image> |
||||||
|
<view class="type5-box x-bc"> |
||||||
|
<image class="type5-img2" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" mode="aspectFill" |
||||||
|
style="border-bottom:1rpx solid #f6f6f6"></image> |
||||||
|
<image class="type5-img2" @tap="jump(detail.list[2].path)" :src="detail.list[2].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<!-- 模板7--> |
||||||
|
<view class="type6 y-f" v-if="detail.style == 7"> |
||||||
|
<view class="x-f type6-box1"> |
||||||
|
<image class="type6-img1" @tap="jump(detail.list[0].path)" :src="detail.list[0].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
<image class="type6-img1" @tap="jump(detail.list[1].path)" :src="detail.list[1].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
<view class="x-f type6-box2"> |
||||||
|
<image class="type6-img2" @tap="jump(detail.list[2].path)" :src="detail.list[2].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
<image class="type6-img2" @tap="jump(detail.list[3].path)" :src="detail.list[3].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
<image class="type6-img2" @tap="jump(detail.list[4].path)" :src="detail.list[4].image" |
||||||
|
mode="aspectFill"></image> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
export default { |
||||||
|
components: {}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
detail: { |
||||||
|
"list": [{ |
||||||
|
"image": "https:\/\/shopro-1253949872.file.myqcloud.com\/uploads\/20200704\/0669a6adec3f35d45ec66a082e03774f.png", |
||||||
|
"name": "", |
||||||
|
"path": "\/pages\/app\/coupon\/list", |
||||||
|
"path_name": "优惠券-优惠劵中心", |
||||||
|
"path_type": 1 |
||||||
|
}, { |
||||||
|
"image": "https:\/\/shopro-1253949872.file.myqcloud.com\/uploads\/20200704\/cddb5d90a4241f6235d16368534bc730.png", |
||||||
|
"name": "", |
||||||
|
"path": "\/pages\/activity\/groupon\/list", |
||||||
|
"path_name": "活动-今日必拼", |
||||||
|
"path_type": 1 |
||||||
|
}, { |
||||||
|
"image": "https:\/\/shopro-1253949872.file.myqcloud.com\/uploads\/20200704\/e047d312fb5930de972ae288b9b3bae7.png", |
||||||
|
"name": "", |
||||||
|
"path": "\/pages\/app\/score\/list", |
||||||
|
"path_name": "应用-积分商城", |
||||||
|
"path_type": 1 |
||||||
|
}], |
||||||
|
"name": "", |
||||||
|
"style": 3 |
||||||
|
} |
||||||
|
}; |
||||||
|
}, |
||||||
|
props: {}, |
||||||
|
computed: {}, |
||||||
|
created() {}, |
||||||
|
methods: { |
||||||
|
// 路由跳转 |
||||||
|
jump(path) { |
||||||
|
this.$yrouter.push({ |
||||||
|
path: '/pages/shop/GoodsCon/index', |
||||||
|
query: { |
||||||
|
id: item.id |
||||||
|
} |
||||||
|
}); |
||||||
|
this.$tools.routerTo(path); |
||||||
|
} |
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
.adv-box { |
||||||
|
background-color: #fff; |
||||||
|
border-radius: 20rpx; |
||||||
|
overflow: hidden; |
||||||
|
image{ |
||||||
|
width: 100%; |
||||||
|
} |
||||||
|
.type1 { |
||||||
|
.type1-img { |
||||||
|
flex: 1; |
||||||
|
height: 220rpx; |
||||||
|
|
||||||
|
&:first-child { |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type2 { |
||||||
|
.type2-img1 { |
||||||
|
width: (710rpx/2); |
||||||
|
height: 340rpx; |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
|
||||||
|
.type2-box { |
||||||
|
flex: 1; |
||||||
|
height: 340rpx; |
||||||
|
width: (710rpx/2); |
||||||
|
|
||||||
|
.type2-img2 { |
||||||
|
height: (340rpx/2); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type3 { |
||||||
|
.type3-box { |
||||||
|
width: (710rpx/2); |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
|
||||||
|
.type3-img1 { |
||||||
|
flex: 1; |
||||||
|
height: (340rpx/2); |
||||||
|
|
||||||
|
&:first-child { |
||||||
|
border-bottom: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type3-img2 { |
||||||
|
flex: 1; |
||||||
|
height: 340rpx; |
||||||
|
width: (710rpx/2); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type4 { |
||||||
|
.type4-box { |
||||||
|
border-bottom: 1rpx solid #f6f6f6; |
||||||
|
|
||||||
|
.type4-img1 { |
||||||
|
flex: 1; |
||||||
|
height: (340rpx/2); |
||||||
|
|
||||||
|
&:first-child { |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type4-img2 { |
||||||
|
flex: 1; |
||||||
|
height: (340rpx/2); |
||||||
|
width: 710rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type5 { |
||||||
|
.type5-img1 { |
||||||
|
width: 710rpx; |
||||||
|
height: (340rpx/2); |
||||||
|
border-bottom: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
|
||||||
|
.type5-box { |
||||||
|
flex: 1; |
||||||
|
height: (340rpx/2); |
||||||
|
width: 710rpx; |
||||||
|
|
||||||
|
.type5-img2 { |
||||||
|
height: (340rpx/2); |
||||||
|
|
||||||
|
&:first-child { |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type6 { |
||||||
|
.type6-box1 { |
||||||
|
.type6-img1 { |
||||||
|
width: (710rpx/2); |
||||||
|
height: (340rpx/2); |
||||||
|
|
||||||
|
&:first-child { |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.type6-box2 { |
||||||
|
border-top: 1rpx solid #f6f6f6; |
||||||
|
|
||||||
|
.type6-img2 { |
||||||
|
width: (710rpx/3); |
||||||
|
height: (340rpx/2); |
||||||
|
border-right: 1rpx solid #f6f6f6; |
||||||
|
|
||||||
|
&:last-child { |
||||||
|
border-right: 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
image { |
||||||
|
// background-color: #ccc; |
||||||
|
} |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,197 @@ |
|||||||
|
<template> |
||||||
|
<!-- 今日必拼 --> |
||||||
|
<view class="group-goods pa20 mx20 mb10"> |
||||||
|
<view class="title-box x-bc" @tap="jump('/pages/activity/GoodsGroup/index')"> |
||||||
|
<text class="title">超值拼团</text> |
||||||
|
<view class="group-people x-f"> |
||||||
|
<text class="tip">更多</text> |
||||||
|
<text class="cuIcon-right"></text> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="goods-box swiper-box x-f"> |
||||||
|
<swiper class="carousel" circular @change="swiperChange" :autoplay="true" duration="2000"> |
||||||
|
<swiper-item v-for="(goods, index) in goodsList" :key="index" class="carousel-item"> |
||||||
|
<view class="goods-list-box x-f"> |
||||||
|
<block v-for="mgoods in goods" :key="mgoods.id"> |
||||||
|
<sh-activity-goods :detail="mgoods" class="goods-item"> |
||||||
|
<!-- <block slot="titleText">立减¥8.5</block> --> |
||||||
|
</sh-activity-goods> |
||||||
|
</block> |
||||||
|
</view> |
||||||
|
</swiper-item> |
||||||
|
</swiper> |
||||||
|
<view class="swiper-dots" v-if="goodsList.length > 1"> |
||||||
|
<text :class="swiperCurrent === index ? 'dot-active' : 'dot'" v-for="(dot, index) in goodsList.length" |
||||||
|
:key="index"></text> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import shActivityGoods from './sh-activity-goods.vue'; |
||||||
|
export default { |
||||||
|
name: 'shGroupon', |
||||||
|
components: { |
||||||
|
shActivityGoods |
||||||
|
}, |
||||||
|
data() { |
||||||
|
return { |
||||||
|
goodsList: [], |
||||||
|
swiperCurrent: 0 |
||||||
|
}; |
||||||
|
}, |
||||||
|
props: { |
||||||
|
detail: Array |
||||||
|
}, |
||||||
|
computed: {}, |
||||||
|
created() {}, |
||||||
|
watch: { |
||||||
|
detail(next) { |
||||||
|
this.goodsList = this.sortData(next, 4); |
||||||
|
} |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
swiperChange(e) { |
||||||
|
this.swiperCurrent = e.detail.current; |
||||||
|
}, |
||||||
|
// 数据分层 |
||||||
|
sortData(oArr, length) { |
||||||
|
let arr = []; |
||||||
|
let minArr = []; |
||||||
|
oArr.forEach(c => { |
||||||
|
if (minArr.length === length) { |
||||||
|
minArr = []; |
||||||
|
} |
||||||
|
if (minArr.length === 0) { |
||||||
|
arr.push(minArr); |
||||||
|
} |
||||||
|
minArr.push(c); |
||||||
|
}); |
||||||
|
|
||||||
|
return arr; |
||||||
|
}, |
||||||
|
jump(path, query) { |
||||||
|
this.$yrouter.push({ |
||||||
|
path, |
||||||
|
query, |
||||||
|
}); |
||||||
|
}, |
||||||
|
} |
||||||
|
}; |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
.swiper-box, |
||||||
|
.carousel { |
||||||
|
width: 700rpx; |
||||||
|
height: 240upx; |
||||||
|
position: relative; |
||||||
|
border-radius: 20rpx; |
||||||
|
|
||||||
|
.carousel-item { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
// padding: 0 28upx; |
||||||
|
overflow: hidden; |
||||||
|
} |
||||||
|
|
||||||
|
.swiper-image { |
||||||
|
width: 100%; |
||||||
|
height: 100%; |
||||||
|
// border-radius: 10upx; |
||||||
|
background: #ccc; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.swiper-dots { |
||||||
|
display: flex; |
||||||
|
position: absolute; |
||||||
|
left: 50%; |
||||||
|
transform: translateX(-50%); |
||||||
|
bottom: 0rpx; |
||||||
|
z-index: 66; |
||||||
|
|
||||||
|
.dot { |
||||||
|
width: 45rpx; |
||||||
|
height: 3rpx; |
||||||
|
background: #eee; |
||||||
|
border-radius: 50%; |
||||||
|
margin-right: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.dot-active { |
||||||
|
width: 45rpx; |
||||||
|
height: 3rpx; |
||||||
|
background: #a8700d; |
||||||
|
border-radius: 50%; |
||||||
|
margin-right: 10rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
// 今日必拼+限时抢购 |
||||||
|
.group-goods { |
||||||
|
background: #fff; |
||||||
|
border-radius: 20rpx; |
||||||
|
overflow: hidden; |
||||||
|
|
||||||
|
.title-box { |
||||||
|
padding-bottom: 20rpx; |
||||||
|
|
||||||
|
.title { |
||||||
|
font-size: 32rpx; |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
|
||||||
|
.group-people { |
||||||
|
.time-box { |
||||||
|
font-size: 26rpx; |
||||||
|
color: #edbf62; |
||||||
|
|
||||||
|
.count-text-box { |
||||||
|
width: 30rpx; |
||||||
|
height: 34rpx; |
||||||
|
background: #edbf62; |
||||||
|
text-align: center; |
||||||
|
line-height: 34rpx; |
||||||
|
font-size: 24rpx; |
||||||
|
border-radius: 6rpx; |
||||||
|
color: rgba(#fff, 0.9); |
||||||
|
margin: 0 8rpx; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.head-box { |
||||||
|
.head-img { |
||||||
|
width: 40rpx; |
||||||
|
height: 40rpx; |
||||||
|
border-radius: 50%; |
||||||
|
background: #ccc; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tip { |
||||||
|
font-size: 28rpx; |
||||||
|
padding-left: 30rpx; |
||||||
|
color: #666; |
||||||
|
} |
||||||
|
|
||||||
|
.cuIcon-right { |
||||||
|
font-size: 30rpx; |
||||||
|
line-height: 28rpx; |
||||||
|
color: #666; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.goods-box { |
||||||
|
.goods-item { |
||||||
|
margin-right: 22rpx; |
||||||
|
|
||||||
|
&:nth-child(4n) { |
||||||
|
margin-right: 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</style> |
@ -1,5 +1,5 @@ |
|||||||
|
|
||||||
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
|
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
|
||||||
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api';
|
export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'; |
||||||
export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; |
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
|
||||||
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'; |
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'; |
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,219 +1,192 @@ |
|||||||
<template> |
<template> |
||||||
<view class="container"> |
<view class="container"> |
||||||
<view v-if="!token"> |
<!-- #ifdef MP-WEIXIN --> |
||||||
<!-- #ifdef MP-WEIXIN --> |
<view v-if="!token" class="force-login-wrap"> |
||||||
<view> |
<image class="logo-bg" src="@/static/images/logo_bg.png" mode="aspectFill"></image> |
||||||
<view class="getUserInfo"> |
<view class="force-login__content y-f"> |
||||||
<text>您还未允许微信登录授权,请点击下方按钮允许微信授权登录。</text> |
<open-data class="user-avatar" type="userAvatarUrl"></open-data> |
||||||
<button type="primary" open-type="getUserInfo" @getuserinfo="getUserInfo">允许微信登录授权</button> |
<open-data class="user-name" type="userNickName"></open-data> |
||||||
<view style="height:20rpx"></view> |
<view class="login-notice">为了提供更优质的服务,需要获取您的头像昵称</view> |
||||||
<button @click="back">取消微信登录授权</button> |
<button class="cu-btn author-btn" @getuserinfo="getUserInfo" open-type="getUserInfo">授权并查看</button> |
||||||
</view> |
<button class="cu-btn close-btn" @tap="back">暂不授权</button> |
||||||
</view> |
</view> |
||||||
<!-- #endif --> |
</view> |
||||||
<!-- #ifndef MP-WEIXIN --> |
<!-- #endif --> |
||||||
<view> |
<!-- #ifndef MP-WEIXIN --> |
||||||
<view class="getUserInfo"> |
<view> |
||||||
<text>请先登录</text> |
<view class="getUserInfo"> |
||||||
<button type="primary" @tap="toLogin">去登录</button> |
<text>请先登录</text> |
||||||
</view> |
<button type="primary" @tap="toLogin">去登录</button> |
||||||
</view> |
</view> |
||||||
<!-- #endif --> |
|
||||||
</view> |
</view> |
||||||
|
<!-- #endif --> |
||||||
</view> |
</view> |
||||||
</template> |
</template> |
||||||
|
|
||||||
<script> |
<script> |
||||||
import { mapState, mapMutations, mapActions } from "vuex"; |
import { |
||||||
import { wxappAuth, getUser } from "@/api/user"; |
mapState, |
||||||
import dayjs from "dayjs"; |
mapMutations, |
||||||
import cookie from "@/utils/store/cookie"; |
mapActions |
||||||
import { login, authorize } from "@/utils"; |
} from "vuex"; |
||||||
|
import { |
||||||
export default { |
wxappAuth, |
||||||
data() { |
getUser |
||||||
return { |
} from "@/api/user"; |
||||||
authorize: false, |
import dayjs from "dayjs"; |
||||||
}; |
import cookie from "@/utils/store/cookie"; |
||||||
}, |
import { |
||||||
computed: { |
login, |
||||||
...mapState(["isAuthorization", "$deviceType", "token"]), |
authorize |
||||||
}, |
} from "@/utils"; |
||||||
onShow() { |
|
||||||
// // 先校验用户是否授权,如果没有授权,显示授权按钮 |
export default { |
||||||
}, |
data() { |
||||||
onHide() { |
return { |
||||||
this.updateAuthorizationPage(false); |
authorize: false, |
||||||
this.changeAuthorization(false); |
}; |
||||||
}, |
}, |
||||||
onUnload() { |
computed: { |
||||||
this.updateAuthorizationPage(false); |
...mapState(["isAuthorization", "$deviceType", "token"]), |
||||||
this.changeAuthorization(false); |
}, |
||||||
}, |
onShow() { |
||||||
methods: { |
// // 先校验用户是否授权,如果没有授权,显示授权按钮 |
||||||
...mapActions(["changeAuthorization", "setUserInfo"]), |
}, |
||||||
...mapMutations(["updateAuthorizationPage"]), |
onHide() { |
||||||
toLogin() { |
this.updateAuthorizationPage(false); |
||||||
this.$yrouter.push({ |
this.changeAuthorization(false); |
||||||
path: "/pages/user/Login/index", |
|
||||||
query: {}, |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
back() { |
onUnload() { |
||||||
this.$yrouter.switchTab({ |
this.updateAuthorizationPage(false); |
||||||
path: "/pages/home/index", |
this.changeAuthorization(false); |
||||||
query: {}, |
|
||||||
}); |
|
||||||
}, |
}, |
||||||
getUserInfo(data) { |
methods: { |
||||||
if (data.detail.errMsg == "getUserInfo:fail auth deny") { |
...mapActions(["changeAuthorization", "setUserInfo"]), |
||||||
uni.showToast({ |
...mapMutations(["updateAuthorizationPage"]), |
||||||
title: "取消授权", |
toLogin() { |
||||||
icon: "none", |
this.$yrouter.push({ |
||||||
duration: 2000, |
path: "/pages/user/Login/index", |
||||||
|
query: {}, |
||||||
}); |
}); |
||||||
return; |
}, |
||||||
} |
back() { |
||||||
uni.showLoading({ |
this.$yrouter.switchTab({ |
||||||
title: "登录中", |
path: "/pages/home/index", |
||||||
}); |
query: {}, |
||||||
login() |
}); |
||||||
.then((res) => { |
}, |
||||||
this.$yrouter.replace({ path: cookie.get("redirect") }); |
getUserInfo(data) { |
||||||
}) |
if (data.detail.errMsg == "getUserInfo:fail auth deny") { |
||||||
.catch((error) => { |
|
||||||
console.log(error); |
|
||||||
uni.showToast({ |
uni.showToast({ |
||||||
title: error, |
title: "取消授权", |
||||||
icon: "none", |
icon: "none", |
||||||
duration: 2000, |
duration: 2000, |
||||||
}); |
}); |
||||||
|
return; |
||||||
|
} |
||||||
|
uni.showLoading({ |
||||||
|
title: "登录中", |
||||||
}); |
}); |
||||||
|
login() |
||||||
|
.then((res) => { |
||||||
|
this.$yrouter.replace({ |
||||||
|
path: cookie.get("redirect") |
||||||
|
}); |
||||||
|
}) |
||||||
|
.catch((error) => { |
||||||
|
console.log(error); |
||||||
|
uni.showToast({ |
||||||
|
title: error, |
||||||
|
icon: "none", |
||||||
|
duration: 2000, |
||||||
|
}); |
||||||
|
}); |
||||||
|
}, |
||||||
}, |
}, |
||||||
}, |
mounted() {}, |
||||||
mounted() {}, |
}; |
||||||
}; |
|
||||||
</script> |
</script> |
||||||
|
|
||||||
<style lang="less"> |
<style lang="less"> |
||||||
.sp-cell { |
.container { |
||||||
height: 20rpx; |
|
||||||
} |
|
||||||
|
|
||||||
.getUserInfo { |
|
||||||
display: flex; |
|
||||||
align-items: center; |
|
||||||
flex-direction: column; |
|
||||||
padding: 30px; |
|
||||||
|
|
||||||
text { |
|
||||||
font-size: 30rpx; |
|
||||||
text-align: center; |
|
||||||
margin-bottom: 20px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.container { |
|
||||||
flex: 1; |
|
||||||
display: flex; |
|
||||||
flex-direction: column; |
|
||||||
justify-content: flex-start; |
|
||||||
position: relative; |
|
||||||
} |
|
||||||
|
|
||||||
.tab-bar { |
|
||||||
font-size: 0; |
|
||||||
display: flex; |
|
||||||
align-items: center; |
|
||||||
background: rgba(255, 255, 255, 0.9); |
|
||||||
position: fixed; |
|
||||||
bottom: 0; |
|
||||||
left: 0; |
|
||||||
right: 0; |
|
||||||
z-index: 99; |
|
||||||
border-top: 1px solid rgba(248, 248, 248, 1); |
|
||||||
|
|
||||||
.tab-bar-item { |
|
||||||
flex: 1; |
flex: 1; |
||||||
height: 49px; |
|
||||||
display: flex; |
display: flex; |
||||||
justify-content: center; |
|
||||||
align-items: center; |
|
||||||
flex-direction: column; |
flex-direction: column; |
||||||
|
justify-content: flex-start; |
||||||
|
position: relative; |
||||||
|
} |
||||||
|
|
||||||
&.active { |
.force-login-wrap { |
||||||
text { |
position: fixed; |
||||||
color: #ee7559; |
width: 100vw; |
||||||
} |
height: 100vh; |
||||||
|
overflow: hidden; |
||||||
.tab-bar-pic { |
z-index: 11111; |
||||||
display: none; |
top: 0; |
||||||
background: #f9f9f9; |
background: linear-gradient(180deg, rgba(239, 196, 128, 1) 0%, rgba(248, 220, 165, 1) 25%, rgba(255, 255, 255, 1) 98%); |
||||||
|
|
||||||
|
.logo-bg { |
||||||
|
width: 640rpx; |
||||||
|
height: 300rpx; |
||||||
|
} |
||||||
|
|
||||||
&.active { |
.force-login__content { |
||||||
display: block; |
position: absolute; |
||||||
} |
left: 50%; |
||||||
|
top: 50%; |
||||||
|
transform: translate(-50%, -50%); |
||||||
|
|
||||||
|
.user-avatar { |
||||||
|
width: 160rpx; |
||||||
|
height: 160rpx; |
||||||
|
border-radius: 50%; |
||||||
|
overflow: hidden; |
||||||
|
margin-bottom: 40rpx; |
||||||
} |
} |
||||||
} |
|
||||||
|
|
||||||
.tab-bar-pic { |
.user-name { |
||||||
display: block; |
font-size: 35rpx; |
||||||
background: #f9f9f9; |
font-family: PingFang SC; |
||||||
|
font-weight: bold; |
||||||
|
color: rgba(132, 87, 8, 1); |
||||||
|
margin-bottom: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
&.active { |
.login-notice { |
||||||
display: none; |
font-size: 28rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: 400; |
||||||
|
color: rgba(200, 150, 61, 1); |
||||||
|
line-height: 44rpx; |
||||||
|
width: 400rpx; |
||||||
|
text-align: center; |
||||||
|
margin-bottom: 80rpx; |
||||||
} |
} |
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.tab-bar-pic { |
.author-btn { |
||||||
width: 25px; |
width: 630rpx; |
||||||
height: 25px; |
height: 80rpx; |
||||||
background: #f9f9f9; |
background: linear-gradient(90deg, rgba(233, 180, 97, 1), rgba(238, 204, 137, 1)); |
||||||
|
box-shadow: 0px 7rpx 6rpx 0px rgba(229, 138, 0, 0.22); |
||||||
|
border-radius: 40rpx; |
||||||
|
font-size: 30rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: 500; |
||||||
|
color: rgba(255, 255, 255, 1); |
||||||
|
} |
||||||
|
|
||||||
image { |
.close-btn { |
||||||
width: 25px; |
width: 630rpx; |
||||||
height: 25px; |
height: 80rpx; |
||||||
|
margin-top: 30rpx; |
||||||
|
border-radius: 40rpx; |
||||||
|
border: 2rpx solid rgba(233, 180, 97, 1); |
||||||
|
background: none; |
||||||
|
font-size: 30rpx; |
||||||
|
font-family: PingFang SC; |
||||||
|
font-weight: 500; |
||||||
|
color: rgba(233, 180, 97, 1); |
||||||
|
} |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
.tab-bar-pic-active { |
|
||||||
} |
|
||||||
|
|
||||||
text { |
|
||||||
font-size: 10px; |
|
||||||
color: rgb(160, 160, 160); |
|
||||||
line-height: 10px; |
|
||||||
margin-top: 5px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
.tab-bar-bg { |
|
||||||
padding-top: 46px; |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
|
|
||||||
.view-item { |
|
||||||
display: none; |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
|
|
||||||
.view-item-active { |
|
||||||
display: block; |
|
||||||
} |
|
||||||
|
|
||||||
.getUserInfo { |
|
||||||
display: flex; |
|
||||||
align-items: center; |
|
||||||
flex-direction: column; |
|
||||||
padding: 30px; |
|
||||||
|
|
||||||
p { |
|
||||||
margin-bottom: 20px; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
._van-dialog { |
|
||||||
z-index: 99999999999; |
|
||||||
} |
|
||||||
</style> |
</style> |
||||||
|
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 2.2 KiB |
@ -0,0 +1,510 @@ |
|||||||
|
@charset "UTF-8"; |
||||||
|
/** |
||||||
|
* 这里是uni-app内置的常用样式变量 |
||||||
|
* |
||||||
|
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 |
||||||
|
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App |
||||||
|
* |
||||||
|
*/ |
||||||
|
/** |
||||||
|
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 |
||||||
|
* |
||||||
|
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 |
||||||
|
*/ |
||||||
|
/* 颜色变量 */ |
||||||
|
/* 行为相关颜色 */ |
||||||
|
/* 文字基本颜色 */ |
||||||
|
/* 背景颜色 */ |
||||||
|
/* 边框颜色 */ |
||||||
|
/* 尺寸变量 */ |
||||||
|
/* 文字尺寸 */ |
||||||
|
/* 图片尺寸 */ |
||||||
|
/* Border Radius */ |
||||||
|
/* 水平间距 */ |
||||||
|
/* 垂直间距 */ |
||||||
|
/* 透明度 */ |
||||||
|
/* 文章场景相关 */ |
||||||
|
/* ================== |
||||||
|
自定义变量 |
||||||
|
==================== */ |
||||||
|
/*盒子模型*/ |
||||||
|
.mt2 { |
||||||
|
margin-top: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr2 { |
||||||
|
margin-right: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb2 { |
||||||
|
margin-bottom: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml2 { |
||||||
|
margin-left: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx2 { |
||||||
|
margin-left: 2rpx; |
||||||
|
margin-right: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my2 { |
||||||
|
margin-top: 2rpx; |
||||||
|
margin-bottom: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma2 { |
||||||
|
margin: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt4 { |
||||||
|
margin-top: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr4 { |
||||||
|
margin-right: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb4 { |
||||||
|
margin-bottom: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml4 { |
||||||
|
margin-left: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx4 { |
||||||
|
margin-left: 4rpx; |
||||||
|
margin-right: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my4 { |
||||||
|
margin-top: 4rpx; |
||||||
|
margin-bottom: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma4 { |
||||||
|
margin: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt8 { |
||||||
|
margin-top: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr8 { |
||||||
|
margin-right: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb8 { |
||||||
|
margin-bottom: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml8 { |
||||||
|
margin-left: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx8 { |
||||||
|
margin-left: 8rpx; |
||||||
|
margin-right: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my8 { |
||||||
|
margin-top: 8rpx; |
||||||
|
margin-bottom: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma8 { |
||||||
|
margin: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt10 { |
||||||
|
margin-top: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr10 { |
||||||
|
margin-right: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb10 { |
||||||
|
margin-bottom: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml10 { |
||||||
|
margin-left: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx10 { |
||||||
|
margin-left: 10rpx; |
||||||
|
margin-right: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my10 { |
||||||
|
margin-top: 10rpx; |
||||||
|
margin-bottom: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma10 { |
||||||
|
margin: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt15 { |
||||||
|
margin-top: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr15 { |
||||||
|
margin-right: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb15 { |
||||||
|
margin-bottom: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml15 { |
||||||
|
margin-left: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx15 { |
||||||
|
margin-left: 15rpx; |
||||||
|
margin-right: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my15 { |
||||||
|
margin-top: 15rpx; |
||||||
|
margin-bottom: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma15 { |
||||||
|
margin: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt20 { |
||||||
|
margin-top: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr20 { |
||||||
|
margin-right: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb20 { |
||||||
|
margin-bottom: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml20 { |
||||||
|
margin-left: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx20 { |
||||||
|
margin-left: 20rpx; |
||||||
|
margin-right: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my20 { |
||||||
|
margin-top: 20rpx; |
||||||
|
margin-bottom: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma20 { |
||||||
|
margin: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt24 { |
||||||
|
margin-top: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr24 { |
||||||
|
margin-right: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb24 { |
||||||
|
margin-bottom: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml24 { |
||||||
|
margin-left: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx24 { |
||||||
|
margin-left: 24rpx; |
||||||
|
margin-right: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my24 { |
||||||
|
margin-top: 24rpx; |
||||||
|
margin-bottom: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma24 { |
||||||
|
margin: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mt30 { |
||||||
|
margin-top: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mr30 { |
||||||
|
margin-right: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mb30 { |
||||||
|
margin-bottom: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ml30 { |
||||||
|
margin-left: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.mx30 { |
||||||
|
margin-left: 30rpx; |
||||||
|
margin-right: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.my30 { |
||||||
|
margin-top: 30rpx; |
||||||
|
margin-bottom: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.ma30 { |
||||||
|
margin: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt2 { |
||||||
|
padding-top: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr2 { |
||||||
|
padding-right: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb2 { |
||||||
|
padding-bottom: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl2 { |
||||||
|
padding-left: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px2 { |
||||||
|
padding-left: 2rpx; |
||||||
|
padding-right: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py2 { |
||||||
|
padding-top: 2rpx; |
||||||
|
padding-bottom: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa2 { |
||||||
|
padding: 2rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt4 { |
||||||
|
padding-top: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr4 { |
||||||
|
padding-right: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb4 { |
||||||
|
padding-bottom: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl4 { |
||||||
|
padding-left: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px4 { |
||||||
|
padding-left: 4rpx; |
||||||
|
padding-right: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py4 { |
||||||
|
padding-top: 4rpx; |
||||||
|
padding-bottom: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa4 { |
||||||
|
padding: 4rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt8 { |
||||||
|
padding-top: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr8 { |
||||||
|
padding-right: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb8 { |
||||||
|
padding-bottom: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl8 { |
||||||
|
padding-left: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px8 { |
||||||
|
padding-left: 8rpx; |
||||||
|
padding-right: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py8 { |
||||||
|
padding-top: 8rpx; |
||||||
|
padding-bottom: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa8 { |
||||||
|
padding: 8rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt10 { |
||||||
|
padding-top: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr10 { |
||||||
|
padding-right: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb10 { |
||||||
|
padding-bottom: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl10 { |
||||||
|
padding-left: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px10 { |
||||||
|
padding-left: 10rpx; |
||||||
|
padding-right: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py10 { |
||||||
|
padding-top: 10rpx; |
||||||
|
padding-bottom: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa10 { |
||||||
|
padding: 10rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt15 { |
||||||
|
padding-top: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr15 { |
||||||
|
padding-right: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb15 { |
||||||
|
padding-bottom: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl15 { |
||||||
|
padding-left: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px15 { |
||||||
|
padding-left: 15rpx; |
||||||
|
padding-right: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py15 { |
||||||
|
padding-top: 15rpx; |
||||||
|
padding-bottom: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa15 { |
||||||
|
padding: 15rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt20 { |
||||||
|
padding-top: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr20 { |
||||||
|
padding-right: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb20 { |
||||||
|
padding-bottom: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl20 { |
||||||
|
padding-left: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px20 { |
||||||
|
padding-left: 20rpx; |
||||||
|
padding-right: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py20 { |
||||||
|
padding-top: 20rpx; |
||||||
|
padding-bottom: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa20 { |
||||||
|
padding: 20rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt24 { |
||||||
|
padding-top: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr24 { |
||||||
|
padding-right: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb24 { |
||||||
|
padding-bottom: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl24 { |
||||||
|
padding-left: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px24 { |
||||||
|
padding-left: 24rpx; |
||||||
|
padding-right: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py24 { |
||||||
|
padding-top: 24rpx; |
||||||
|
padding-bottom: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa24 { |
||||||
|
padding: 24rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pt30 { |
||||||
|
padding-top: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pr30 { |
||||||
|
padding-right: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pb30 { |
||||||
|
padding-bottom: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pl30 { |
||||||
|
padding-left: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.px30 { |
||||||
|
padding-left: 30rpx; |
||||||
|
padding-right: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.py30 { |
||||||
|
padding-top: 30rpx; |
||||||
|
padding-bottom: 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.pa30 { |
||||||
|
padding: 30rpx; |
||||||
|
} |
||||||
|
/*# sourceMappingURL=uni.css.map */ |
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@ |
|||||||
|
.mt2{margin-top:2rpx}.mr2{margin-right:2rpx}.mb2{margin-bottom:2rpx}.ml2{margin-left:2rpx}.mx2{margin-left:2rpx;margin-right:2rpx}.my2{margin-top:2rpx;margin-bottom:2rpx}.ma2{margin:2rpx}.mt4{margin-top:4rpx}.mr4{margin-right:4rpx}.mb4{margin-bottom:4rpx}.ml4{margin-left:4rpx}.mx4{margin-left:4rpx;margin-right:4rpx}.my4{margin-top:4rpx;margin-bottom:4rpx}.ma4{margin:4rpx}.mt8{margin-top:8rpx}.mr8{margin-right:8rpx}.mb8{margin-bottom:8rpx}.ml8{margin-left:8rpx}.mx8{margin-left:8rpx;margin-right:8rpx}.my8{margin-top:8rpx;margin-bottom:8rpx}.ma8{margin:8rpx}.mt10{margin-top:10rpx}.mr10{margin-right:10rpx}.mb10{margin-bottom:10rpx}.ml10{margin-left:10rpx}.mx10{margin-left:10rpx;margin-right:10rpx}.my10{margin-top:10rpx;margin-bottom:10rpx}.ma10{margin:10rpx}.mt15{margin-top:15rpx}.mr15{margin-right:15rpx}.mb15{margin-bottom:15rpx}.ml15{margin-left:15rpx}.mx15{margin-left:15rpx;margin-right:15rpx}.my15{margin-top:15rpx;margin-bottom:15rpx}.ma15{margin:15rpx}.mt20{margin-top:20rpx}.mr20{margin-right:20rpx}.mb20{margin-bottom:20rpx}.ml20{margin-left:20rpx}.mx20{margin-left:20rpx;margin-right:20rpx}.my20{margin-top:20rpx;margin-bottom:20rpx}.ma20{margin:20rpx}.mt24{margin-top:24rpx}.mr24{margin-right:24rpx}.mb24{margin-bottom:24rpx}.ml24{margin-left:24rpx}.mx24{margin-left:24rpx;margin-right:24rpx}.my24{margin-top:24rpx;margin-bottom:24rpx}.ma24{margin:24rpx}.mt30{margin-top:30rpx}.mr30{margin-right:30rpx}.mb30{margin-bottom:30rpx}.ml30{margin-left:30rpx}.mx30{margin-left:30rpx;margin-right:30rpx}.my30{margin-top:30rpx;margin-bottom:30rpx}.ma30{margin:30rpx}.pt2{padding-top:2rpx}.pr2{padding-right:2rpx}.pb2{padding-bottom:2rpx}.pl2{padding-left:2rpx}.px2{padding-left:2rpx;padding-right:2rpx}.py2{padding-top:2rpx;padding-bottom:2rpx}.pa2{padding:2rpx}.pt4{padding-top:4rpx}.pr4{padding-right:4rpx}.pb4{padding-bottom:4rpx}.pl4{padding-left:4rpx}.px4{padding-left:4rpx;padding-right:4rpx}.py4{padding-top:4rpx;padding-bottom:4rpx}.pa4{padding:4rpx}.pt8{padding-top:8rpx}.pr8{padding-right:8rpx}.pb8{padding-bottom:8rpx}.pl8{padding-left:8rpx}.px8{padding-left:8rpx;padding-right:8rpx}.py8{padding-top:8rpx;padding-bottom:8rpx}.pa8{padding:8rpx}.pt10{padding-top:10rpx}.pr10{padding-right:10rpx}.pb10{padding-bottom:10rpx}.pl10{padding-left:10rpx}.px10{padding-left:10rpx;padding-right:10rpx}.py10{padding-top:10rpx;padding-bottom:10rpx}.pa10{padding:10rpx}.pt15{padding-top:15rpx}.pr15{padding-right:15rpx}.pb15{padding-bottom:15rpx}.pl15{padding-left:15rpx}.px15{padding-left:15rpx;padding-right:15rpx}.py15{padding-top:15rpx;padding-bottom:15rpx}.pa15{padding:15rpx}.pt20{padding-top:20rpx}.pr20{padding-right:20rpx}.pb20{padding-bottom:20rpx}.pl20{padding-left:20rpx}.px20{padding-left:20rpx;padding-right:20rpx}.py20{padding-top:20rpx;padding-bottom:20rpx}.pa20{padding:20rpx}.pt24{padding-top:24rpx}.pr24{padding-right:24rpx}.pb24{padding-bottom:24rpx}.pl24{padding-left:24rpx}.px24{padding-left:24rpx;padding-right:24rpx}.py24{padding-top:24rpx;padding-bottom:24rpx}.pa24{padding:24rpx}.pt30{padding-top:30rpx}.pr30{padding-right:30rpx}.pb30{padding-bottom:30rpx}.pl30{padding-left:30rpx}.px30{padding-left:30rpx;padding-right:30rpx}.py30{padding-top:30rpx;padding-bottom:30rpx}.pa30{padding:30rpx} |
Loading…
Reference in new issue