@@ -71,8 +71,8 @@ | |||||
} | } | ||||
}, | }, | ||||
"tabBar": { | "tabBar": { | ||||
"color": "#B5BAC6", | |||||
"selectedColor": "#273238", | |||||
"color": "#B5BAC6", | |||||
"selectedColor": "#273238", | |||||
"list": [ | "list": [ | ||||
{ | { | ||||
"pagePath": "pages/main/index", | "pagePath": "pages/main/index", | ||||
@@ -104,5 +104,6 @@ | |||||
"request": 30000, | "request": 30000, | ||||
"downloadFile": 10000 | "downloadFile": 10000 | ||||
}, | }, | ||||
"debug": false | |||||
"debug": false, | |||||
"sitemapLocation": "sitemap.json" | |||||
} | } |
@@ -1,6 +1,4 @@ | |||||
<view wx:if="{{list.length!=0}}" class='bannerbg'> | |||||
<image src='{{bannerUrl}}' mode="widthFix"></image> | |||||
</view> | |||||
<view wx:if="{{list.length!=0}}" class="index-slide-view"> | <view wx:if="{{list.length!=0}}" class="index-slide-view"> | ||||
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false"> | <swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false"> | ||||
<block wx:for="{{list}}" wx:key="unique"> | <block wx:for="{{list}}" wx:key="unique"> | ||||
@@ -1,9 +1,9 @@ | |||||
.index-slide-view{ | .index-slide-view{ | ||||
position: relative; | position: relative; | ||||
width: 750rpx; | width: 750rpx; | ||||
height: 390rpx; | |||||
height: 300rpx; | |||||
overflow: hidden; | overflow: hidden; | ||||
margin:-166rpx auto 0; | |||||
margin:0 auto; | |||||
/* border-radius:16rpx; */ | /* border-radius:16rpx; */ | ||||
/* box-shadow: 0 6px 20px 0 rgba(0,0,0,0.15); */ | /* box-shadow: 0 6px 20px 0 rgba(0,0,0,0.15); */ | ||||
} | } | ||||
@@ -11,9 +11,10 @@ | |||||
swiper-item | swiper-item | ||||
.index-slide-image { | .index-slide-image { | ||||
display: block; | display: block; | ||||
width: 750rpx; | |||||
height: 390rpx; | |||||
width: 690rpx; | |||||
height: 300rpx; | |||||
margin: 0 auto; | margin: 0 auto; | ||||
border-radius:16rpx; | |||||
/* border-radius:16rpx; */ | /* border-radius:16rpx; */ | ||||
overflow: hidden; | overflow: hidden; | ||||
position: relative; | position: relative; | ||||
@@ -15,6 +15,7 @@ Component({ | |||||
*/ | */ | ||||
data: { | data: { | ||||
jianUrl: imgurl.jian.url, | jianUrl: imgurl.jian.url, | ||||
barginicon: imgurl.barginicon.url, | |||||
list: [], | list: [], | ||||
total:'' | total:'' | ||||
}, | }, | ||||
@@ -1,5 +1,6 @@ | |||||
<view class="index-rushToBuy" wx:if="{{list.length>0}}"> | <view class="index-rushToBuy" wx:if="{{list.length>0}}"> | ||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">砍价专场<text bindtap="gotomore">更多砍价></text></view> | |||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title"> | |||||
<image src="{{barginicon}}" class='barginiconimg' mode='widthFix'/><text class='text-red'>砍价</text>专场<text bindtap="gotomore" class='morebargin'>更多砍价></text></view> | |||||
<scroll-view scroll-x class="index-scroll-view"> | <scroll-view scroll-x class="index-scroll-view"> | ||||
<view class="commodity" wx:for="{{list}}" wx:key="unique"> | <view class="commodity" wx:for="{{list}}" wx:key="unique"> | ||||
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | ||||
@@ -1,7 +1,10 @@ | |||||
.index-rushToBuy { | .index-rushToBuy { | ||||
width: 100%; | |||||
width: 690rpx; | |||||
margin: 30rpx auto; | |||||
font-family: PingFangSC-Semibold; | font-family: PingFangSC-Semibold; | ||||
/* background:linear-gradient(94deg,rgba(255,143,0,1) 0%,rgba(255,87,0,1) 100%); */ | |||||
border:1rpx solid rgba(56, 56, 56, 0.11); | |||||
box-shadow:6rpx 6rpx 8rpx 1rpx rgba(56,56,56,0.08); | |||||
border-radius:16rpx; | |||||
} | } | ||||
.index-rushToBuy-title { | .index-rushToBuy-title { | ||||
@@ -10,21 +13,20 @@ | |||||
font-weight:bold; | font-weight:bold; | ||||
color: #333333; | color: #333333; | ||||
letter-spacing: 1.16rpx; | letter-spacing: 1.16rpx; | ||||
padding-top: 20rpx; | |||||
padding-left: 30rpx; | padding-left: 30rpx; | ||||
} | } | ||||
.useprice{ | .useprice{ | ||||
font-size: 28rpx; | font-size: 28rpx; | ||||
} | } | ||||
.index-rushToBuy-title text{ | |||||
float: right; | |||||
.morebargin{ | |||||
float: right; | |||||
margin-right: 20rpx; | margin-right: 20rpx; | ||||
color: #999999; | color: #999999; | ||||
font-size: 24rpx; | font-size: 24rpx; | ||||
margin-top: 8rpx; | margin-top: 8rpx; | ||||
font-weight: normal; | font-weight: normal; | ||||
} | } | ||||
.index-rushToBuy-title image{ | |||||
.listimage{ | |||||
position: absolute; | position: absolute; | ||||
right: 18rpx; | right: 18rpx; | ||||
width: 20px; | width: 20px; | ||||
@@ -99,3 +101,15 @@ | |||||
.commodity-info-price{ | .commodity-info-price{ | ||||
line-height: 36rpx; | line-height: 36rpx; | ||||
} | } | ||||
.barginicon{ | |||||
width: 24rpx; | |||||
height: 22rpx; | |||||
} | |||||
.barginiconimg{ | |||||
width: 24rpx; | |||||
height: 22rpx; | |||||
margin-right: 2rpx; | |||||
} | |||||
.text-red{ | |||||
color:#F12643; | |||||
} |
@@ -25,6 +25,9 @@ Page({ | |||||
newbargain: imgurl.newbargain.url, | newbargain: imgurl.newbargain.url, | ||||
newgroup: imgurl.newgroup.url, | newgroup: imgurl.newgroup.url, | ||||
product: imgurl.product.url, | product: imgurl.product.url, | ||||
barginicon: imgurl.barginicon.url, | |||||
pintuan: imgurl.pintuan.url, | |||||
duihuan: imgurl.duihuan.url, | |||||
market: app.globalData.market, | market: app.globalData.market, | ||||
list: [], | list: [], | ||||
loading: true, | loading: true, | ||||
@@ -97,7 +100,7 @@ Page({ | |||||
TYPE: "memberCode", | TYPE: "memberCode", | ||||
ID: that.data.memberId, | ID: that.data.memberId, | ||||
}); | }); | ||||
that.createQrCode(url, "mycanvas2", size.w, size.h); | |||||
that.createQrCode(url, "mycanvas2", size.w, size.h);; | |||||
that.setData({ | that.setData({ | ||||
maskHidden: true | maskHidden: true | ||||
}); | }); | ||||
@@ -1,26 +1,5 @@ | |||||
<view class="container"> | <view class="container"> | ||||
<c-banner wx:key="unique" list="{{list}}" /> | <c-banner wx:key="unique" list="{{list}}" /> | ||||
<!-- 折扣卡 --> | |||||
<view class='section'> | |||||
<view bindtap='searchbar'> | |||||
<image src='{{icon0005}}'></image> | |||||
<text>门店</text> | |||||
</view> | |||||
<view bindtap='qrcode'> | |||||
<image src='{{icon0008}}'></image> | |||||
<text>会员权益</text> | |||||
</view> | |||||
<view bindtap='mycard'> | |||||
<image src='{{icon0006}}'></image> | |||||
<i class="red" style="display:{{display1}}"></i> | |||||
<text>我的卡包</text> | |||||
</view> | |||||
<view bindtap='mycoupon'> | |||||
<image src='{{icon0007}}'></image> | |||||
<i class="red" style="display:{{display}}"></i> | |||||
<text>我的券包</text> | |||||
</view> | |||||
</view> | |||||
<!-- 会员信息 --> | <!-- 会员信息 --> | ||||
<view class='userinfo' bindtap='gotouser'> | <view class='userinfo' bindtap='gotouser'> | ||||
<view class="user-avatar" bindtap='gotograde'> | <view class="user-avatar" bindtap='gotograde'> | ||||
@@ -29,35 +8,23 @@ | |||||
<view class="user-data" bindtap='gotograde'> | <view class="user-data" bindtap='gotograde'> | ||||
<open-data type="userNickName"></open-data> | <open-data type="userNickName"></open-data> | ||||
<text class='chengzhang'>{{levelName}}</text> | <text class='chengzhang'>{{levelName}}</text> | ||||
<text class='jifen'>积分</text> | |||||
<text class='jifenNumber'>5000</text> | |||||
<view class="view">成长值<text class="score">{{score}}</text> | <view class="view">成长值<text class="score">{{score}}</text> | ||||
优惠劵<text class="score">{{score}}</text> | |||||
<image src="{{duihuan}}" class='duihuanimg' mode='widthFix'></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='barcode'> | <view class='barcode'> | ||||
<image src="{{barcode}}" class='barcodeimg' mode='widthFix'></image> | <image src="{{barcode}}" class='barcodeimg' mode='widthFix'></image> | ||||
<image src="{{leftarrows}}" class='leftimg' mode='widthFix'></image> | |||||
</view> | |||||
</view> | |||||
<!-- 营销活动 --> | |||||
<view class='sellsection'> | |||||
<view bindtap='gobargain'> | |||||
<image src='{{newbargain}}'></image> | |||||
</view> | |||||
<view bindtap='gogroup'> | |||||
<image src='{{newgroup}}'></image> | |||||
</view> | |||||
<view bindtap='gotoRushBuy'> | |||||
<image src='{{newseckill}}'></image> | |||||
</view> | |||||
<view bindtap='gotodiscountcard'> | |||||
<image src='{{newcard}}'></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<!-- 砍价专场 --> | |||||
<c-bargain id="bargain"/> | |||||
<!-- 专题 --> | |||||
<view class='product' wx:if="{{showTopic}}"> | <view class='product' wx:if="{{showTopic}}"> | ||||
<image src='{{cover}}' bindtap='gotoTopic' mode='aspectFill'></image> | <image src='{{cover}}' bindtap='gotoTopic' mode='aspectFill'></image> | ||||
</view> | </view> | ||||
<!-- 砍价专场 --> | |||||
<c-bargain id="bargain"/> | |||||
<!-- 拼团专场 --> | <!-- 拼团专场 --> | ||||
<c-spellGroup id="spellGroup"/> | <c-spellGroup id="spellGroup"/> | ||||
<!-- 小游戏暂时注释 --> | <!-- 小游戏暂时注释 --> | ||||
@@ -75,7 +42,7 @@ | |||||
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}"> | <view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}"> | ||||
<view class="canvas-box"> | <view class="canvas-box"> | ||||
<text class='memberIds' wx:if="{{levelName!='无'}}">{{levelName}}</text> | <text class='memberIds' wx:if="{{levelName!='无'}}">{{levelName}}</text> | ||||
<canvas canvas-id="barcode" /> | |||||
<canvas canvas-id="mycanvas2" /> | |||||
<button class='button' bindtap='mySpecial'>特享礼遇</button> | <button class='button' bindtap='mySpecial'>特享礼遇</button> | ||||
</view> | </view> | ||||
@@ -50,13 +50,13 @@ page { | |||||
.userinfo{ | .userinfo{ | ||||
position:relative; | position:relative; | ||||
margin: 0 auto 38rpx; | |||||
margin: 30rpx auto 35rpx; | |||||
width: 690rpx; | width: 690rpx; | ||||
height: 120rpx; | |||||
height: 124rpx; | |||||
background:rgba(255,255,255,1); | background:rgba(255,255,255,1); | ||||
border:1rpx solid rgba(56, 56, 56, 0.11); | border:1rpx solid rgba(56, 56, 56, 0.11); | ||||
box-shadow:0rpx 6rpx 8rpx 1rpx rgba(56,56,56,0.08); | box-shadow:0rpx 6rpx 8rpx 1rpx rgba(56,56,56,0.08); | ||||
border-radius:50rpx; | |||||
border-radius:16rpx; | |||||
} | } | ||||
.section { | .section { | ||||
padding: 0 20rpx; | padding: 0 20rpx; | ||||
@@ -199,7 +199,7 @@ height:100%; | |||||
margin-left: 116rpx; | margin-left: 116rpx; | ||||
letter-spacing: 0.64rpx; | letter-spacing: 0.64rpx; | ||||
line-height: 44rpx; | line-height: 44rpx; | ||||
margin-top: 25rpx; | |||||
margin-top: 15rpx; | |||||
font-size: 30rpx; | font-size: 30rpx; | ||||
color: #333; | color: #333; | ||||
font-weight: bold; | font-weight: bold; | ||||
@@ -210,6 +210,16 @@ height:100%; | |||||
color: #AF6E34; | color: #AF6E34; | ||||
margin-left:9rpx; | margin-left:9rpx; | ||||
} | } | ||||
.jifen{ | |||||
margin-left: 70rpx; | |||||
color: #999999; | |||||
font-size: 23rpx; | |||||
} | |||||
.jifenNumber{ | |||||
color:#D18B4C; | |||||
font-size: 34rpx; | |||||
margin-left: 10rpx; | |||||
} | |||||
.view { | .view { | ||||
font-size: 24rpx; | font-size: 24rpx; | ||||
color: #999999; | color: #999999; | ||||
@@ -223,11 +233,17 @@ height:100%; | |||||
} | } | ||||
.barcodeimg{ | .barcodeimg{ | ||||
position: absolute; | position: absolute; | ||||
right: 80rpx; | |||||
top: 60rpx; | |||||
margin-top: -31rpx; | |||||
width: 80rpx; | |||||
height: 62rpx; | |||||
right: 21rpx; | |||||
top: 23rpx; | |||||
width: 84rpx; | |||||
height: 84rpx; | |||||
} | |||||
.duihuanimg{ | |||||
width: 86rpx; | |||||
height: 63rpx; | |||||
right:190rpx; | |||||
position:absolute; | |||||
top: 60rpx; | |||||
} | } | ||||
.leftimg{ | .leftimg{ | ||||
position: absolute; | position: absolute; | ||||
@@ -15,6 +15,7 @@ Component({ | |||||
*/ | */ | ||||
data: { | data: { | ||||
jianUrl: imgurl.jian.url, | jianUrl: imgurl.jian.url, | ||||
pintuan: imgurl.pintuan.url, | |||||
list: [], | list: [], | ||||
total:'' | total:'' | ||||
}, | }, | ||||
@@ -1,5 +1,5 @@ | |||||
<view class="index-rushToBuy" wx:if="{{list.length>0}}"> | <view class="index-rushToBuy" wx:if="{{list.length>0}}"> | ||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title">拼团专场<text bindtap="gotomore">更多拼团></text></view> | |||||
<view wx:if="{{list.length!=0}}" class="index-rushToBuy-title"><image src="{{pintuan}}" class='barginiconimg' mode='widthFix'/><text class='text-red'>拼团</text>专场<text bindtap="gotomore" class='moregroup'>更多拼团></text></view> | |||||
<scroll-view scroll-x class="index-scroll-view"> | <scroll-view scroll-x class="index-scroll-view"> | ||||
<view class="commodity" wx:for="{{list}}" wx:key="unique"> | <view class="commodity" wx:for="{{list}}" wx:key="unique"> | ||||
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | <view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}"> | ||||
@@ -1,7 +1,6 @@ | |||||
.index-rushToBuy { | .index-rushToBuy { | ||||
width: 100%; | width: 100%; | ||||
font-family: PingFangSC-Semibold; | font-family: PingFangSC-Semibold; | ||||
margin-top: 26rpx; | |||||
} | } | ||||
.index-rushToBuy-title { | .index-rushToBuy-title { | ||||
@@ -13,8 +12,7 @@ | |||||
padding-left: 30rpx; | padding-left: 30rpx; | ||||
font-weight: bold; | font-weight: bold; | ||||
} | } | ||||
.index-rushToBuy-title text{ | |||||
.moregroup{ | |||||
float: right; | float: right; | ||||
margin-right: 20rpx; | margin-right: 20rpx; | ||||
color: #999999; | color: #999999; | ||||
@@ -22,7 +20,7 @@ | |||||
margin-top: 8rpx; | margin-top: 8rpx; | ||||
font-weight: normal; | font-weight: normal; | ||||
} | } | ||||
.index-rushToBuy-title image{ | |||||
.listimage{ | |||||
position: absolute; | position: absolute; | ||||
right: 18rpx; | right: 18rpx; | ||||
width: 20px; | width: 20px; | ||||
@@ -95,4 +93,11 @@ | |||||
.commodity-info-price{ | .commodity-info-price{ | ||||
line-height: 36rpx; | line-height: 36rpx; | ||||
} | } | ||||
.barginiconimg{ | |||||
width: 24rpx; | |||||
height: 22rpx; | |||||
margin-right: 2rpx; | |||||
} | |||||
.text-red{ | |||||
color:#F12643; | |||||
} |
@@ -16,6 +16,8 @@ | |||||
"appid": "wxb11603577a84a86d", | "appid": "wxb11603577a84a86d", | ||||
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | "projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F", | ||||
"isGameTourist": false, | "isGameTourist": false, | ||||
"simulatorType": "wechat", | |||||
"simulatorPluginLibVersion": {}, | |||||
"condition": { | "condition": { | ||||
"search": { | "search": { | ||||
"current": -1, | "current": -1, | ||||
@@ -510,8 +510,8 @@ module.exports = { | |||||
'name': '左箭头' | 'name': '左箭头' | ||||
}, | }, | ||||
'barcode': { | 'barcode': { | ||||
'url': baseUrl + 'barcode.png', | |||||
'name': '条形码' | |||||
'url': baseUrl + 'lqcbarcode.png', | |||||
'name': '二维码' | |||||
}, | }, | ||||
'newgroup': { | 'newgroup': { | ||||
'url': baseUrl + 'newgroup.png', | 'url': baseUrl + 'newgroup.png', | ||||
@@ -533,4 +533,16 @@ module.exports = { | |||||
'url': baseUrl + 'product.png', | 'url': baseUrl + 'product.png', | ||||
'name': '新UI产品栏' | 'name': '新UI产品栏' | ||||
}, | }, | ||||
'barginicon': { | |||||
'url': baseUrl + 'lqcbarginicon.png', | |||||
'name': '砍价小图标' | |||||
}, | |||||
'pintuan': { | |||||
'url': baseUrl + 'lqcpintuan.png', | |||||
'name': '拼团小图标' | |||||
}, | |||||
'duihuan': { | |||||
'url': baseUrl + 'lqcduihuan.png', | |||||
'name': '兑换小图标' | |||||
}, | |||||
} | } |