Commit 2eb0d067 by 杨北旺

Merge branch 'v1.0.0' of http://192.168.3.233:8090/saas/mini-program/zhwy into v1.0.0

2 parents 4b1428df 6e8d6265
...@@ -191,12 +191,9 @@ Page({ ...@@ -191,12 +191,9 @@ Page({
async onLoad(options) { async onLoad(options) {
let system = wx.getSystemInfoSync() let system = wx.getSystemInfoSync()
const authStatus = await wx.p.router.intercept(false) const authStatus = await wx.p.router.intercept(false)
// const { merchantId } = wx.p.storage.get('merchant_info') const { merchantId } = wx.p.storage.get('merchant_info')
// this.setData({
// merchantId
// })
this.setData({ this.setData({
merchantId: options.merchantId merchantId
}) })
wx.p.wxApi.showLoading() wx.p.wxApi.showLoading()
const { const {
......
@import '/style/common.wxss'; @import '/style/common.wxss';
page { page {
background-color: #fff; background-color: #fff;
padding-bottom: 20rpx; padding-bottom: 20rpx;
} }
.category_wrapper { .category_wrapper {
height: 184rpx;
background: #F8F9FC;
box-sizing: border-box;
padding-left: 52rpx;
padding-top: 30rpx;
.inner {
width: calc(100% - 20rpx);
height: 184rpx; height: 184rpx;
background: #F8F9FC; overflow: hidden;
box-sizing: border-box; white-space: nowrap;
padding-left: 52rpx;
padding-top: 30rpx; .scroll {
height: 184rpx;
.image_text {
box-sizing: border-box;
display: inline-block;
margin-right: 18rpx;
.box {
border-radius: 8rpx;
position: relative;
.icon {
width: 120rpx;
height: 120rpx;
border-radius: 8rpx;
}
.icon_active {
position: absolute;
right: 0;
top: 0;
width: 26rpx;
height: 22rpx;
}
}
.inner { .box_active {
width: calc(100% - 20rpx); border: 2rpx solid #2B69FF;
height: 184rpx; }
overflow: hidden;
white-space: nowrap; .text {
height: 32rpx;
.scroll { line-height: 32rpx;
height: 184rpx; width: 112rpx;
overflow: hidden;
.image_text { white-space: nowrap;
display: inline-block; text-overflow: ellipsis;
margin-right: 16rpx; font-weight: 400;
font-size: 22rpx;
.box { color: #666666;
border-radius: 16rpx; margin-top: 8rpx;
position: relative; text-align: center;
}
.icon {
width: 120rpx; .text_active {
height: 120rpx; color: #2B69FF;
border-radius: 16rpx;
}
.icon_active {
position: absolute;
right: 0;
top: 0;
width: 26rpx;
height: 22rpx;
}
}
.box_active {
border: 2rpx solid #2B69FF;
}
.text {
height: 32rpx;
line-height: 32rpx;
width: 112rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: 400;
font-size: 22rpx;
color: #666666;
margin-top: 8rpx;
text-align: center;
}
.text_active {
color: #2B69FF;
}
}
.image_text:last-child {
margin-right: 0;
}
} }
}
.image_text:last-child {
margin-right: 0;
}
} }
}
} }
.goods_ctnr_row { .goods_ctnr_row {
padding: 20rpx; padding: 20rpx;
.goods_box { .titleBg {
margin-bottom: 32rpx; box-sizing: border-box;
width: 750rpx;
height: 160rpx;
margin-left: -20rpx;
background-image: url(https://img02.glsx.com.cn/weapp/resource/miniprogram/wuye/mall/goodsBg.png);
background-size: cover;
background-position: center;
font-family: PingFangSC-Medium;
padding: 8rpx 30rpx;
font-weight: 500;
font-size: 36rpx;
color: #333333;
line-height: 56rpx;
// border-radius: 16rpx 24rpx 16rpx 16rpx 0 0;
}
.goods_box {
box-sizing: border-box;
padding: 16rpx;
margin-bottom: 32rpx;
margin-top: -80rpx;
display: flex;
width: 690rpx;
height: 204rpx;
background: #FFFFFF;
border-radius: 8rpx;
.cover {
position: relative;
border-radius: 8rpx;
width: 196rpx;
height: 172rpx;
flex-shrink: 0;
&::after {
position: absolute;
left: 0;
top: 0rpx;
content: '爆款必入';
display: block;
clear: both;
width: 112rpx;
height: 36rpx;
background: #EC3C1F;
border-radius: 8rpx 0 8rpx 0;
text-align: center;
line-height: 36rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 22rpx;
color: #FFFFFF;
}
}
.info {
flex: 1;
padding: 16rpx 8rpx 8rpx 20rpx;
box-sizing: border-box;
height: 172rpx;
.name {
display: inline-block;
line-height: 40rpx;
max-height: 80rpx;
height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 32rpx;
display: flex; display: flex;
justify-content: space-between;
align-items: center;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
}
.cover { .old_price {
border-radius: 16rpx; margin-left: 12rpx;
width: 196rpx; text-decoration: line-through;
height: 172rpx; font-weight: 400;
flex-shrink: 0; font-size: 24rpx;
color: #858A94;
} }
.info { .add_btn {
flex: 1; width: 180rpx;
padding: 16rpx 8rpx 8rpx 20rpx; height: 60rpx;
box-sizing: border-box; background: #EC3C1F;
height: 172rpx; border-radius: 30rpx;
font-weight: 400;
.name { font-size: 26rpx;
display: inline-block; color: #FFFFFF;
line-height: 40rpx;
max-height: 80rpx;
height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
}
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.add_btn {
width: 180rpx;
height: 60rpx;
background: #EC3C1F;
border-radius: 30rpx;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
}
}
.tip {
margin-top: 18rpx;
height: 44rpx;
padding: 0 16rpx;
line-height: 44rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
border-radius: 22rpx;
}
} }
}
.tip {
margin-top: 18rpx;
height: 44rpx;
padding: 0 16rpx;
line-height: 44rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
border-radius: 22rpx;
}
} }
}
} }
.goods_ctnr_col { .goods_ctnr_col {
padding: 20rpx; padding: 20rpx;
.goods_wrap {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.goods_box {
margin-bottom: 32rpx;
display: block;
width: 344rpx;
.cover {
border-radius: 8rpx;
flex-shrink: 0;
width: 344rpx;
height: 344rpx;
}
.goods_wrap { .info {
flex: 1;
box-sizing: border-box;
height: 220rpx;
padding: 20rpx 18rpx 16rpx;
.name {
display: inline-block;
line-height: 40rpx;
max-height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 4rpx;
display: flex; display: flex;
flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} align-items: center;
.goods_box { .price_tip {
margin-bottom: 32rpx; font-weight: 400;
display: block; font-size: 22rpx;
width: 344rpx; color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
margin-top: 4rpx;
}
.cover { .old_price {
border-radius: 16rpx; margin-left: 12rpx;
flex-shrink: 0; text-decoration: line-through;
width: 344rpx; font-weight: 400;
height: 344rpx; font-size: 24rpx;
color: #858A94;
} }
.info { .add_btn {
flex: 1; width: 180rpx;
box-sizing: border-box; height: 60rpx;
height: 220rpx; background: #EC3C1F;
padding: 20rpx 18rpx 16rpx; border-radius: 30rpx;
font-weight: 400;
.name { font-size: 26rpx;
display: inline-block; color: #FFFFFF;
line-height: 40rpx;
max-height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 4rpx;
display: flex;
justify-content: space-between;
align-items: center;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
margin-top: 4rpx;
}
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.add_btn {
width: 180rpx;
height: 60rpx;
background: #EC3C1F;
border-radius: 30rpx;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
}
}
.tip {
padding: 0 16rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
height: 40rpx;
margin-top: 10rpx;
line-height: 40rpx;
border-radius: 20rpx;
}
} }
}
.tip {
padding: 0 16rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
height: 40rpx;
margin-top: 10rpx;
line-height: 40rpx;
border-radius: 20rpx;
}
} }
}
} }
.goods_ctnr_waterfall { .goods_ctnr_waterfall {
padding: 20rpx; padding: 20rpx;
display: flex;
justify-content: space-between;
flex-wrap: nowrap;
align-items: flex-start;
.goods_wrap {
display: flex; display: flex;
flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
flex-wrap: nowrap; }
align-items: flex-start;
.goods_box {
margin-bottom: 32rpx;
display: block;
width: 344rpx;
&:last-child {
margin-bottom: 0;
}
.cover {
border-radius: 8rpx;
flex-shrink: 0;
width: 344rpx;
}
.goods_wrap { .info {
flex: 1;
box-sizing: border-box;
padding: 20rpx 18rpx 16rpx;
.name {
display: inline-block;
line-height: 40rpx;
max-height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 4rpx;
display: flex; display: flex;
flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
} align-items: center;
.goods_box { .price_tip {
margin-bottom: 32rpx; font-weight: 400;
display: block; font-size: 22rpx;
width: 344rpx; color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
&:last-child { .new_price {
margin-bottom: 0; font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
margin-top: 4rpx;
} }
.cover { .old_price {
border-radius: 16rpx; margin-left: 12rpx;
flex-shrink: 0; text-decoration: line-through;
width: 344rpx; font-weight: 400;
font-size: 24rpx;
color: #858A94;
} }
.info { .add_btn {
flex: 1; width: 180rpx;
box-sizing: border-box; height: 60rpx;
padding: 20rpx 18rpx 16rpx; background: #EC3C1F;
border-radius: 30rpx;
.name { font-weight: 400;
display: inline-block; font-size: 26rpx;
line-height: 40rpx; color: #FFFFFF;
max-height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 4rpx;
display: flex;
justify-content: space-between;
align-items: center;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
margin-top: 4rpx;
}
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.add_btn {
width: 180rpx;
height: 60rpx;
background: #EC3C1F;
border-radius: 30rpx;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
}
}
.tip {
padding: 0 16rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
height: 40rpx;
margin-top: 10rpx;
line-height: 40rpx;
border-radius: 20rpx;
}
} }
}
.tip {
padding: 0 16rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
height: 40rpx;
margin-top: 10rpx;
line-height: 40rpx;
border-radius: 20rpx;
}
} }
}
} }
.goods_ctnr_grass_B { .goods_ctnr_grass_B {
padding: 20rpx; padding: 20rpx;
.publicity-img {
width: 100%;
height: 540rpx;
border-radius: 8rpx;
margin-bottom: 16rpx;
}
.publicity-img { .goods_box {
width: 100%; margin-bottom: 32rpx;
height: 540rpx; display: flex;
border-radius: 16rpx;
margin-bottom: 16rpx; .cover {
border-radius: 8rpx;
width: 240rpx;
height: 240rpx;
flex-shrink: 0;
} }
.goods_box { .info {
margin-bottom: 32rpx; flex: 1;
padding: 16rpx 8rpx 8rpx 20rpx;
box-sizing: border-box;
height: 240rpx;
.name {
display: inline-block;
line-height: 40rpx;
max-height: 80rpx;
height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 32rpx;
display: flex; display: flex;
justify-content: space-between;
align-items: center;
.cover { .price_tip {
border-radius: 16rpx; font-weight: 400;
width: 240rpx; font-size: 22rpx;
height: 240rpx; color: #EC3C1F;
flex-shrink: 0;
} }
.info { .unit {
flex: 1; font-weight: 600;
padding: 16rpx 8rpx 8rpx 20rpx; font-size: 24rpx;
box-sizing: border-box; color: #EC3C1F;
height: 240rpx;
.name {
display: inline-block;
line-height: 40rpx;
max-height: 80rpx;
height: 80rpx;
font-weight: 400;
font-size: 28rpx;
color: #0A0D14;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.price_wrap {
margin-top: 32rpx;
display: flex;
justify-content: space-between;
align-items: center;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
}
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.add_btn {
width: 180rpx;
height: 60rpx;
background: #EC3C1F;
border-radius: 30rpx;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
}
}
.tip {
margin-top: 18rpx;
height: 44rpx;
padding: 0 16rpx;
line-height: 44rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
border-radius: 22rpx;
}
} }
}
}
.flex_cccb { .new_price {
position: relative; font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
}
.price_wrap { .old_price {
width: calc(100% - 20rpx); margin-left: 12rpx;
position: absolute; text-decoration: line-through;
left: 20rpx; font-weight: 400;
bottom: 0; font-size: 24rpx;
} color: #858A94;
}
.tip { .add_btn {
position: absolute; width: 180rpx;
left: 20rpx; height: 60rpx;
bottom: 56rpx; background: #EC3C1F;
border-radius: 30rpx;
font-weight: 400;
font-size: 26rpx;
color: #FFFFFF;
}
}
.tip {
margin-top: 18rpx;
height: 44rpx;
padding: 0 16rpx;
line-height: 44rpx;
background: #FCECE9;
font-weight: 500;
font-size: 22rpx;
color: #FF6038;
border-radius: 22rpx;
}
} }
}
}
.flex_cccb {
position: relative;
.price_wrap {
width: calc(100% - 20rpx);
position: absolute;
left: 20rpx;
bottom: 0;
}
.tip {
position: absolute;
left: 20rpx;
bottom: 56rpx;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
</view> </view>
<view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}"> <view wx:if="{{categoryStyle>-1}}" class="{{ categoryStyle=='2' ? 'goods_ctnr_waterfall': categoryStyle=='3' ? 'goods_ctnr_grass_B' : categoryStyle=='1' ? 'goods_ctnr_row' : 'goods_ctnr_col' }}">
<view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap"> <view wx:if="{{categoryStyle==0 || categoryStyle==1}}" class="goods_wrap">
<view class="titleBg">热销爆款</view>
<view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box" wx:for="{{goodsList}}" wx:key="index"> <view catch:tap="toGoodsDetail" data-item="{{item}}" class="goods_box" wx:for="{{goodsList}}" wx:key="index">
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" /> <image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info {{categoryStyle?'flex_cccb':''}}"> <view class="info {{categoryStyle?'flex_cccb':''}}">
......
...@@ -19,9 +19,9 @@ page{ ...@@ -19,9 +19,9 @@ page{
width: 690rpx; width: 690rpx;
height: 280rpx; height: 280rpx;
border-radius: 10rpx; border-radius: 10rpx;
margin: 24rpx auto 0; margin: 30rpx auto 0;
text-align: center; text-align: center;
} }
.layout{ .layout{
padding-top: 64px; padding-top: 84px;
} }
\ No newline at end of file \ No newline at end of file
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<text class="member-price-text">{{memberInfo.goodPrice}}元</text> <text class="member-price-text">{{memberInfo.goodPrice}}元</text>
/年 /年
</view> </view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view> <view class="describe" wx:else>{{vipInfo.renewDay}} 天后到期</view>
</view> </view>
</view> </view>
<view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view> <view wx:if="{{!isMember}}" class="member-button" bindtap="toBuyMember">开通会员</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!