Преглед изворни кода

[c端首页]

tags/湖南版5.1.4
luqc пре 6 година
родитељ
комит
c6432b98bf
5 измењених фајлова са 62 додато и 7 уклоњено
  1. +2
    -2
      ext.json
  2. +5
    -3
      pages/main/index.js
  3. +10
    -0
      pages/main/index.wxml
  4. +44
    -1
      pages/main/index.wxss
  5. +1
    -1
      project.config.json

+ 2
- 2
ext.json Прегледај датотеку

@@ -45,9 +45,9 @@
},
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#FFFFFF",
"navigationBarBackgroundColor": "#02C0FF",
"navigationBarTitleText": "WeChat",
"navigationBarTextStyle": "black"
"navigationBarTextStyle": "white"
},
"networkTimeout": {
"request": 30000,


+ 5
- 3
pages/main/index.js Прегледај датотеку

@@ -36,6 +36,7 @@ Page({
display: 'none',
display1:'none',
optionsData:null,
score: '0',
page: 1 // 刷新进入页面时已经加载了第一页数据,onReachBottom时 page++,从第2页开始加载
},
close:function(){
@@ -104,8 +105,8 @@ Page({
},
//跳往个人中心
gotouser:function(){
wx.navigateTo({
url: '/pages/user/czdetail',
wx.switchTab({
url: '/pages/user/index',
})
},
//搜索门店
@@ -272,7 +273,8 @@ Page({
}).then(res => {
console.log(res)
that.setData({
levelName: res.data.levelName
levelName: res.data.levelName,
score: res.data.score
})
if (res.data.nickName) {
that.setData({


+ 10
- 0
pages/main/index.wxml Прегледај датотеку

@@ -23,6 +23,16 @@
</view>
<!-- 会员信息 -->
<view class='userinfo'bindtap='gotouser'>
<view class="user-avatar" bindtap='gotograde'>
<open-data class="open" type="userAvatarUrl"></open-data>
</view>
<view class="user-data" bindtap='gotograde'>
<open-data type="userNickName"></open-data>
<text class='chengzhang'>{{levelName}}</text>
<view class="view">成长值<text class="score">{{score}}</text>
优惠劵<text class="score">{{score}}</text>
</view>
</view>
</view>
<!-- 砍价专场 -->
<c-bargain id="bargain"/>


+ 44
- 1
pages/main/index.wxss Прегледај датотеку

@@ -56,7 +56,8 @@ page {
height: 161rpx;
}
.userinfo{
margin: 0 auto;
position:relative;
margin: 0 auto 38rpx;
width: 690rpx;
height: 120rpx;
background:rgba(255,255,255,1);
@@ -174,4 +175,46 @@ border-radius:50rpx;
line-height: 50rpx;
color: #fff;
display: inline-block;
}
.user-avatar {
position: absolute;
left: 24rpx;
top:7rpx;
bottom: 0;
width: 66rpx;
height: 66rpx;
border-radius: 50%;
overflow: hidden;
margin: auto;
}
.user-avatar open-data {
display:block;
width:100%;
height:100%;
}
.user-data {
font-family: PingFangSC-Regular;
height: 120rpx;
margin-left: 116rpx;
letter-spacing: 0.64rpx;
line-height: 44rpx;
margin-top: 25rpx;
font-size: 30rpx;
color: #000;
}
.chengzhang {
font-size: 24rpx;
font-weight: 400;
color: #AF6E34;
margin-left: 10rpx;
}
.view {
font-size: 24rpx;
color: #999999;
}
.view>.score{
margin-left:9rpx;
color:#333333;
font-size:30rpx;
margin-right:23rpx;
}

+ 1
- 1
project.config.json Прегледај датотеку

@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.2.0",
"appid": "wx7413eea5344a1554",
"appid": "wxb11603577a84a86d",
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"isGameTourist": false,
"condition": {


Loading…
Откажи
Сачувај