Просмотр исходного кода

[首页][修改][改版]

tags/湖南版5.1.4
luqc 6 лет назад
Родитель
Сommit
ac269b8d72
14 измененных файлов: 98 добавлений и 76 удалений
  1. +4
    -3
      app.json
  2. +1
    -3
      components/banner/index.wxml
  3. +5
    -4
      components/banner/index.wxss
  4. +1
    -0
      pages/main/bargain/index.js
  5. +2
    -1
      pages/main/bargain/index.wxml
  6. +20
    -6
      pages/main/bargain/index.wxss
  7. +4
    -1
      pages/main/index.js
  8. +8
    -41
      pages/main/index.wxml
  9. +25
    -9
      pages/main/index.wxss
  10. +1
    -0
      pages/main/spellGroup/index.js
  11. +1
    -1
      pages/main/spellGroup/index.wxml
  12. +10
    -5
      pages/main/spellGroup/index.wxss
  13. +2
    -0
      project.config.json
  14. +14
    -2
      utils/imgurl.js

+ 4
- 3
app.json Просмотреть файл

@@ -71,8 +71,8 @@
}
},
"tabBar": {
"color": "#B5BAC6",
"selectedColor": "#273238",
"color": "#B5BAC6",
"selectedColor": "#273238",
"list": [
{
"pagePath": "pages/main/index",
@@ -104,5 +104,6 @@
"request": 30000,
"downloadFile": 10000
},
"debug": false
"debug": false,
"sitemapLocation": "sitemap.json"
}

+ 1
- 3
components/banner/index.wxml Просмотреть файл

@@ -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">
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false">
<block wx:for="{{list}}" wx:key="unique">


+ 5
- 4
components/banner/index.wxss Просмотреть файл

@@ -1,9 +1,9 @@
.index-slide-view{
position: relative;
width: 750rpx;
height: 390rpx;
height: 300rpx;
overflow: hidden;
margin:-166rpx auto 0;
margin:0 auto;
/* border-radius:16rpx; */
/* box-shadow: 0 6px 20px 0 rgba(0,0,0,0.15); */
}
@@ -11,9 +11,10 @@
swiper-item
.index-slide-image {
display: block;
width: 750rpx;
height: 390rpx;
width: 690rpx;
height: 300rpx;
margin: 0 auto;
border-radius:16rpx;
/* border-radius:16rpx; */
overflow: hidden;
position: relative;


+ 1
- 0
pages/main/bargain/index.js Просмотреть файл

@@ -15,6 +15,7 @@ Component({
*/
data: {
jianUrl: imgurl.jian.url,
barginicon: imgurl.barginicon.url,
list: [],
total:''
},


+ 2
- 1
pages/main/bargain/index.wxml Просмотреть файл

@@ -1,5 +1,6 @@
<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">
<view class="commodity" wx:for="{{list}}" wx:key="unique">
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}">


+ 20
- 6
pages/main/bargain/index.wxss Просмотреть файл

@@ -1,7 +1,10 @@
.index-rushToBuy {
width: 100%;
width: 690rpx;
margin: 30rpx auto;
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 {
@@ -10,21 +13,20 @@
font-weight:bold;
color: #333333;
letter-spacing: 1.16rpx;
padding-top: 20rpx;
padding-left: 30rpx;
}
.useprice{
font-size: 28rpx;
}
.index-rushToBuy-title text{
float: right;
.morebargin{
float: right;
margin-right: 20rpx;
color: #999999;
font-size: 24rpx;
margin-top: 8rpx;
font-weight: normal;
}
.index-rushToBuy-title image{
.listimage{
position: absolute;
right: 18rpx;
width: 20px;
@@ -99,3 +101,15 @@
.commodity-info-price{
line-height: 36rpx;
}
.barginicon{
width: 24rpx;
height: 22rpx;
}
.barginiconimg{
width: 24rpx;
height: 22rpx;
margin-right: 2rpx;
}
.text-red{
color:#F12643;
}

+ 4
- 1
pages/main/index.js Просмотреть файл

@@ -25,6 +25,9 @@ Page({
newbargain: imgurl.newbargain.url,
newgroup: imgurl.newgroup.url,
product: imgurl.product.url,
barginicon: imgurl.barginicon.url,
pintuan: imgurl.pintuan.url,
duihuan: imgurl.duihuan.url,
market: app.globalData.market,
list: [],
loading: true,
@@ -97,7 +100,7 @@ Page({
TYPE: "memberCode",
ID: that.data.memberId,
});
that.createQrCode(url, "mycanvas2", size.w, size.h);
that.createQrCode(url, "mycanvas2", size.w, size.h);;
that.setData({
maskHidden: true
});


+ 8
- 41
pages/main/index.wxml Просмотреть файл

@@ -1,26 +1,5 @@
<view class="container">
<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="user-avatar" bindtap='gotograde'>
@@ -29,35 +8,23 @@
<view class="user-data" bindtap='gotograde'>
<open-data type="userNickName"></open-data>
<text class='chengzhang'>{{levelName}}</text>
<text class='jifen'>积分</text>
<text class='jifenNumber'>5000</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 class='barcode'>
<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>
<!-- 砍价专场 -->
<c-bargain id="bargain"/>
<!-- 专题 -->
<view class='product' wx:if="{{showTopic}}">
<image src='{{cover}}' bindtap='gotoTopic' mode='aspectFill'></image>
</view>
<!-- 砍价专场 -->
<c-bargain id="bargain"/>
<!-- 拼团专场 -->
<c-spellGroup id="spellGroup"/>
<!-- 小游戏暂时注释 -->
@@ -75,7 +42,7 @@
<view class='showQrcode' bindtap='hideQrcode' wx:if="{{showQrcode}}">
<view class="canvas-box">
<text class='memberIds' wx:if="{{levelName!='无'}}">{{levelName}}</text>
<canvas canvas-id="barcode" />
<canvas canvas-id="mycanvas2" />
<button class='button' bindtap='mySpecial'>特享礼遇</button>
</view>


+ 25
- 9
pages/main/index.wxss Просмотреть файл

@@ -50,13 +50,13 @@ page {

.userinfo{
position:relative;
margin: 0 auto 38rpx;
margin: 30rpx auto 35rpx;
width: 690rpx;
height: 120rpx;
height: 124rpx;
background:rgba(255,255,255,1);
border:1rpx solid rgba(56, 56, 56, 0.11);
box-shadow:0rpx 6rpx 8rpx 1rpx rgba(56,56,56,0.08);
border-radius:50rpx;
border-radius:16rpx;
}
.section {
padding: 0 20rpx;
@@ -199,7 +199,7 @@ height:100%;
margin-left: 116rpx;
letter-spacing: 0.64rpx;
line-height: 44rpx;
margin-top: 25rpx;
margin-top: 15rpx;
font-size: 30rpx;
color: #333;
font-weight: bold;
@@ -210,6 +210,16 @@ height:100%;
color: #AF6E34;
margin-left:9rpx;
}
.jifen{
margin-left: 70rpx;
color: #999999;
font-size: 23rpx;
}
.jifenNumber{
color:#D18B4C;
font-size: 34rpx;
margin-left: 10rpx;
}
.view {
font-size: 24rpx;
color: #999999;
@@ -223,11 +233,17 @@ height:100%;
}
.barcodeimg{
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{
position: absolute;


+ 1
- 0
pages/main/spellGroup/index.js Просмотреть файл

@@ -15,6 +15,7 @@ Component({
*/
data: {
jianUrl: imgurl.jian.url,
pintuan: imgurl.pintuan.url,
list: [],
total:''
},


+ 1
- 1
pages/main/spellGroup/index.wxml Просмотреть файл

@@ -1,5 +1,5 @@
<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">
<view class="commodity" wx:for="{{list}}" wx:key="unique">
<view bindtap="gotodetail" data-couponChannelId="{{item.id}}" data-couponId="{{item.couponId}}" data-targetAd="{{item.targetAd}}">


+ 10
- 5
pages/main/spellGroup/index.wxss Просмотреть файл

@@ -1,7 +1,6 @@
.index-rushToBuy {
width: 100%;
font-family: PingFangSC-Semibold;
margin-top: 26rpx;
}

.index-rushToBuy-title {
@@ -13,8 +12,7 @@
padding-left: 30rpx;
font-weight: bold;
}

.index-rushToBuy-title text{
.moregroup{
float: right;
margin-right: 20rpx;
color: #999999;
@@ -22,7 +20,7 @@
margin-top: 8rpx;
font-weight: normal;
}
.index-rushToBuy-title image{
.listimage{
position: absolute;
right: 18rpx;
width: 20px;
@@ -95,4 +93,11 @@
.commodity-info-price{
line-height: 36rpx;
}

.barginiconimg{
width: 24rpx;
height: 22rpx;
margin-right: 2rpx;
}
.text-red{
color:#F12643;
}

+ 2
- 0
project.config.json Просмотреть файл

@@ -16,6 +16,8 @@
"appid": "wxb11603577a84a86d",
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,


+ 14
- 2
utils/imgurl.js Просмотреть файл

@@ -510,8 +510,8 @@ module.exports = {
'name': '左箭头'
},
'barcode': {
'url': baseUrl + 'barcode.png',
'name': '条形码'
'url': baseUrl + 'lqcbarcode.png',
'name': '二维码'
},
'newgroup': {
'url': baseUrl + 'newgroup.png',
@@ -533,4 +533,16 @@ module.exports = {
'url': baseUrl + 'product.png',
'name': '新UI产品栏'
},
'barginicon': {
'url': baseUrl + 'lqcbarginicon.png',
'name': '砍价小图标'
},
'pintuan': {
'url': baseUrl + 'lqcpintuan.png',
'name': '拼团小图标'
},
'duihuan': {
'url': baseUrl + 'lqcduihuan.png',
'name': '兑换小图标'
},
}

Загрузка…
Отмена
Сохранить