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({
async onLoad(options) {
let system = wx.getSystemInfoSync()
const authStatus = await wx.p.router.intercept(false)
// const { merchantId } = wx.p.storage.get('merchant_info')
// this.setData({
// merchantId
// })
const { merchantId } = wx.p.storage.get('merchant_info')
this.setData({
merchantId: options.merchantId
merchantId
})
wx.p.wxApi.showLoading()
const {
......
@import '/style/common.wxss';
page {
background-color: #fff;
padding-bottom: 20rpx;
background-color: #fff;
padding-bottom: 20rpx;
}
.category_wrapper {
height: 184rpx;
background: #F8F9FC;
box-sizing: border-box;
padding-left: 52rpx;
padding-top: 30rpx;
.inner {
width: calc(100% - 20rpx);
height: 184rpx;
background: #F8F9FC;
box-sizing: border-box;
padding-left: 52rpx;
padding-top: 30rpx;
overflow: hidden;
white-space: nowrap;
.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 {
width: calc(100% - 20rpx);
height: 184rpx;
overflow: hidden;
white-space: nowrap;
.scroll {
height: 184rpx;
.image_text {
display: inline-block;
margin-right: 16rpx;
.box {
border-radius: 16rpx;
position: relative;
.icon {
width: 120rpx;
height: 120rpx;
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;
}
.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;
}
}
}
}
.goods_ctnr_row {
padding: 20rpx;
padding: 20rpx;
.goods_box {
margin-bottom: 32rpx;
.titleBg {
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;
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 {
border-radius: 16rpx;
width: 196rpx;
height: 172rpx;
flex-shrink: 0;
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.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;
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;
}
.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;
}
}
}
}
.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;
flex-wrap: wrap;
justify-content: space-between;
}
align-items: center;
.goods_box {
margin-bottom: 32rpx;
display: block;
width: 344rpx;
.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;
}
.cover {
border-radius: 16rpx;
flex-shrink: 0;
width: 344rpx;
height: 344rpx;
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.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;
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;
}
.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;
}
}
}
}
.goods_ctnr_waterfall {
padding: 20rpx;
padding: 20rpx;
display: flex;
justify-content: space-between;
flex-wrap: nowrap;
align-items: flex-start;
.goods_wrap {
display: flex;
flex-wrap: wrap;
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;
flex-wrap: wrap;
justify-content: space-between;
}
align-items: center;
.goods_box {
margin-bottom: 32rpx;
display: block;
width: 344rpx;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
&:last-child {
margin-bottom: 0;
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
margin-top: 4rpx;
}
.cover {
border-radius: 16rpx;
flex-shrink: 0;
width: 344rpx;
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.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;
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;
}
.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;
}
}
}
}
.goods_ctnr_grass_B {
padding: 20rpx;
padding: 20rpx;
.publicity-img {
width: 100%;
height: 540rpx;
border-radius: 8rpx;
margin-bottom: 16rpx;
}
.publicity-img {
width: 100%;
height: 540rpx;
border-radius: 16rpx;
margin-bottom: 16rpx;
.goods_box {
margin-bottom: 32rpx;
display: flex;
.cover {
border-radius: 8rpx;
width: 240rpx;
height: 240rpx;
flex-shrink: 0;
}
.goods_box {
margin-bottom: 32rpx;
.info {
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;
justify-content: space-between;
align-items: center;
.cover {
border-radius: 16rpx;
width: 240rpx;
height: 240rpx;
flex-shrink: 0;
.price_tip {
font-weight: 400;
font-size: 22rpx;
color: #EC3C1F;
}
.info {
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;
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;
}
.unit {
font-weight: 600;
font-size: 24rpx;
color: #EC3C1F;
}
}
}
.flex_cccb {
position: relative;
.new_price {
font-weight: 600;
font-size: 38rpx;
color: #EC3C1F;
line-height: 52rpx;
}
.price_wrap {
width: calc(100% - 20rpx);
position: absolute;
left: 20rpx;
bottom: 0;
}
.old_price {
margin-left: 12rpx;
text-decoration: line-through;
font-weight: 400;
font-size: 24rpx;
color: #858A94;
}
.tip {
position: absolute;
left: 20rpx;
bottom: 56rpx;
.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 {
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
......@@ -18,6 +18,7 @@
</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==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">
<image mode="aspectFill" class="cover" src="{{item.commerceVideo ? item.coverUrl : item.goodsImage}}" />
<view class="info {{categoryStyle?'flex_cccb':''}}">
......
......@@ -19,9 +19,9 @@ page{
width: 690rpx;
height: 280rpx;
border-radius: 10rpx;
margin: 24rpx auto 0;
margin: 30rpx auto 0;
text-align: center;
}
.layout{
padding-top: 64px;
padding-top: 84px;
}
\ No newline at end of file
......@@ -47,7 +47,7 @@
<text class="member-price-text">{{memberInfo.goodPrice}}元</text>
/年
</view>
<view class="describe" wx:else>{{vipInfo.time}} 到期</view>
<view class="describe" wx:else>{{vipInfo.renewDay}} 天后到期</view>
</view>
</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!