@@ -1,20 +1,16 @@ | |||
{ | |||
"ext": { | |||
"attr": { | |||
"imgProxy": [ | |||
{ | |||
"newUrl": "https://ctest.malls.iformall.com/img", | |||
"orgUrl": "https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn" | |||
}, | |||
{ | |||
"newUrl": "https://ctest.malls.iformall.com/img1", | |||
"orgUrl": "https://s3.cn-northwest-1.amazonaws.com.cn" | |||
}, | |||
{ | |||
"newUrl": "https://ctest.malls.iformall.com/img2", | |||
"orgUrl": "https://wx.qlogo.cn" | |||
} | |||
], | |||
"imgProxy": [{ | |||
"newUrl": "https://ctest.malls.iformall.com/img", | |||
"orgUrl": "https://iformall-net.formall.oss-accelerate.aliyuncs.com" | |||
}, { | |||
"newUrl": "https://ctest.malls.iformall.com/img1", | |||
"orgUrl": "https://formall.oss-accelerate.aliyuncs.com" | |||
}, { | |||
"newUrl": "https://ctest.malls.iformall.com/img2", | |||
"orgUrl": "https://wx.qlogo.cn" | |||
}], | |||
"configUrl": "https://ctest.malls.iformall.com/C/api", | |||
"etcpAppId": "wx192b7d2e8dcbefd0", | |||
"etcpVersion": "release", | |||
@@ -28,32 +24,27 @@ | |||
}, | |||
"debug": false, | |||
"tabBar": { | |||
"list": [ | |||
{ | |||
"text": "首页", | |||
"iconPath": "assets/images/home.png", | |||
"pagePath": "index/index", | |||
"selectedIconPath": "assets/images/home-a.png" | |||
}, | |||
{ | |||
"text": "门店", | |||
"iconPath": "assets/images/mendian.png", | |||
"pagePath": "index/searchbar", | |||
"selectedIconPath": "assets/images/mendian-a.png" | |||
}, | |||
{ | |||
"text": "停车", | |||
"iconPath": "assets/images/park.png", | |||
"pagePath": "index/passCar", | |||
"selectedIconPath": "assets/images/park-a.png" | |||
}, | |||
{ | |||
"text": "我的", | |||
"iconPath": "assets/images/user.png", | |||
"pagePath": "index/user", | |||
"selectedIconPath": "assets/images/user-a.png" | |||
} | |||
], | |||
"list": [{ | |||
"text": "首页", | |||
"iconPath": "assets/images/home.png", | |||
"pagePath": "index/index", | |||
"selectedIconPath": "assets/images/home-a.png" | |||
}, { | |||
"text": "门店", | |||
"iconPath": "assets/images/mendian.png", | |||
"pagePath": "index/searchbar", | |||
"selectedIconPath": "assets/images/mendian-a.png" | |||
}, { | |||
"text": "停车", | |||
"iconPath": "assets/images/park.png", | |||
"pagePath": "index/passCar", | |||
"selectedIconPath": "assets/images/park-a.png" | |||
}, { | |||
"text": "我的", | |||
"iconPath": "assets/images/user.png", | |||
"pagePath": "index/user", | |||
"selectedIconPath": "assets/images/user-a.png" | |||
}], | |||
"color": "#abb1be", | |||
"selectedColor": "#b2743d" | |||
}, | |||
@@ -36,6 +36,7 @@ Page({ | |||
mineFlag: "", | |||
flag: 'hidden', | |||
score: '0', | |||
curPhone: '', | |||
name: "", | |||
birthdate: "", | |||
sex: "", | |||
@@ -62,6 +63,15 @@ Page({ | |||
}) | |||
}) | |||
}, | |||
gotoPhoneInfo() { | |||
/** | |||
* 将值传到用户手机号授权的页面 | |||
* | |||
*/ | |||
wx.redirectTo({ | |||
url: `/pages/getphoneInfo/index?path=main` | |||
}); | |||
}, | |||
/** | |||
* 跳转到成长值的页面 | |||
*/ | |||
@@ -230,8 +240,21 @@ Page({ | |||
showEdit: true | |||
}) | |||
} | |||
let curPhone = res.data.phone?res.data.phone:''; | |||
if (curPhone) { | |||
let curPhoneList = curPhone.split(''); | |||
let curPhoneList01 = []; | |||
curPhoneList.forEach((item,index) => { | |||
if (index>=3 && index<=6) { | |||
item = '*'; | |||
} | |||
curPhoneList01.push(item); | |||
}) | |||
curPhone = curPhoneList01.join(''); | |||
} | |||
that.setData({ | |||
score: res.data.score, | |||
curPhone: curPhone, | |||
levelName: res.data.levelName, | |||
}) | |||
if (res.data.nickName) { | |||
@@ -21,6 +21,16 @@ | |||
<text class='chengzhang '>{{levelName}}</text> | |||
</view> | |||
</view> | |||
<!-- --> | |||
<view class="user-name" wx:if="{{curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'> | |||
<text class="my">我的手机号:</text> | |||
<text class="chengzhang_h" >{{curPhone}}</text> | |||
<text class="view" style='color:#F64A16'>[微信授权手机号]</text> | |||
</view> | |||
<view class="user-name" wx:if="{{!curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'> | |||
<text class="view" style='color:#F64A16'>获取微信授权手机号</text> | |||
</view> | |||
<!-- --> | |||
<view class="user-phone" bindtap='gotograde'> | |||
<text class="my">我的</text> | |||
<text class="chengzhang_h" >成长值{{score}}</text> | |||
@@ -54,8 +54,9 @@ page{ | |||
line-height: 44rpx; | |||
font-size: 36rpx; | |||
color: #000; | |||
padding:20rpx; | |||
padding: 0 20rpx 20rpx; | |||
text-align: center; | |||
margin-top:20rpx; | |||
} | |||
.user-avatar { | |||
position: absolute; | |||
@@ -76,6 +76,15 @@ Page({ | |||
} | |||
}).then(res=>{ | |||
app.globalData.phone = res.data.phone; | |||
/** | |||
* 来自我的 | |||
*/ | |||
if (that.data.path == 'main') { | |||
wx.switchTab({ | |||
url: `/index/user` | |||
}) | |||
return; | |||
} | |||
/** | |||
* 来自积分兑换 | |||
*/ | |||
@@ -4,7 +4,7 @@ | |||
"ignore": [] | |||
}, | |||
"setting": { | |||
"urlCheck": true, | |||
"urlCheck": false, | |||
"es6": true, | |||
"enhance": false, | |||
"postcss": true, | |||