Commit b8af7ee9 by 匡雅琴

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

2 parents 3221734f 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 {
......
...@@ -22,17 +22,18 @@ page { ...@@ -22,17 +22,18 @@ page {
height: 184rpx; height: 184rpx;
.image_text { .image_text {
box-sizing: border-box;
display: inline-block; display: inline-block;
margin-right: 16rpx; margin-right: 18rpx;
.box { .box {
border-radius: 16rpx; border-radius: 8rpx;
position: relative; position: relative;
.icon { .icon {
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
border-radius: 16rpx; border-radius: 8rpx;
} }
.icon_active { .icon_active {
...@@ -77,15 +78,59 @@ page { ...@@ -77,15 +78,59 @@ page {
.goods_ctnr_row { .goods_ctnr_row {
padding: 20rpx; padding: 20rpx;
.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 { .goods_box {
box-sizing: border-box;
padding: 16rpx;
margin-bottom: 32rpx; margin-bottom: 32rpx;
margin-top: -80rpx;
display: flex; display: flex;
width: 690rpx;
height: 204rpx;
background: #FFFFFF;
border-radius: 8rpx;
.cover { .cover {
border-radius: 16rpx; position: relative;
border-radius: 8rpx;
width: 196rpx; width: 196rpx;
height: 172rpx; height: 172rpx;
flex-shrink: 0; 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 { .info {
...@@ -183,7 +228,7 @@ page { ...@@ -183,7 +228,7 @@ page {
width: 344rpx; width: 344rpx;
.cover { .cover {
border-radius: 16rpx; border-radius: 8rpx;
flex-shrink: 0; flex-shrink: 0;
width: 344rpx; width: 344rpx;
height: 344rpx; height: 344rpx;
...@@ -292,7 +337,7 @@ page { ...@@ -292,7 +337,7 @@ page {
} }
.cover { .cover {
border-radius: 16rpx; border-radius: 8rpx;
flex-shrink: 0; flex-shrink: 0;
width: 344rpx; width: 344rpx;
} }
...@@ -382,7 +427,7 @@ page { ...@@ -382,7 +427,7 @@ page {
.publicity-img { .publicity-img {
width: 100%; width: 100%;
height: 540rpx; height: 540rpx;
border-radius: 16rpx; border-radius: 8rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
} }
...@@ -391,7 +436,7 @@ page { ...@@ -391,7 +436,7 @@ page {
display: flex; display: flex;
.cover { .cover {
border-radius: 16rpx; border-radius: 8rpx;
width: 240rpx; width: 240rpx;
height: 240rpx; height: 240rpx;
flex-shrink: 0; flex-shrink: 0;
......
...@@ -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!