@@ -1,20 +1,16 @@ | |||||
{ | { | ||||
"ext": { | "ext": { | ||||
"attr": { | "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", | "configUrl": "https://ctest.malls.iformall.com/C/api", | ||||
"etcpAppId": "wx192b7d2e8dcbefd0", | "etcpAppId": "wx192b7d2e8dcbefd0", | ||||
"etcpVersion": "release", | "etcpVersion": "release", | ||||
@@ -28,32 +24,27 @@ | |||||
}, | }, | ||||
"debug": false, | "debug": false, | ||||
"tabBar": { | "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", | "color": "#abb1be", | ||||
"selectedColor": "#b2743d" | "selectedColor": "#b2743d" | ||||
}, | }, | ||||
@@ -36,6 +36,7 @@ Page({ | |||||
mineFlag: "", | mineFlag: "", | ||||
flag: 'hidden', | flag: 'hidden', | ||||
score: '0', | score: '0', | ||||
curPhone: '', | |||||
name: "", | name: "", | ||||
birthdate: "", | birthdate: "", | ||||
sex: "", | sex: "", | ||||
@@ -62,6 +63,15 @@ Page({ | |||||
}) | }) | ||||
}) | }) | ||||
}, | }, | ||||
gotoPhoneInfo() { | |||||
/** | |||||
* 将值传到用户手机号授权的页面 | |||||
* | |||||
*/ | |||||
wx.redirectTo({ | |||||
url: `/pages/getphoneInfo/index?path=main` | |||||
}); | |||||
}, | |||||
/** | /** | ||||
* 跳转到成长值的页面 | * 跳转到成长值的页面 | ||||
*/ | */ | ||||
@@ -230,8 +240,21 @@ Page({ | |||||
showEdit: true | 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({ | that.setData({ | ||||
score: res.data.score, | score: res.data.score, | ||||
curPhone: curPhone, | |||||
levelName: res.data.levelName, | levelName: res.data.levelName, | ||||
}) | }) | ||||
if (res.data.nickName) { | if (res.data.nickName) { | ||||
@@ -21,6 +21,16 @@ | |||||
<text class='chengzhang '>{{levelName}}</text> | <text class='chengzhang '>{{levelName}}</text> | ||||
</view> | </view> | ||||
</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'> | <view class="user-phone" bindtap='gotograde'> | ||||
<text class="my">我的</text> | <text class="my">我的</text> | ||||
<text class="chengzhang_h" >成长值{{score}}</text> | <text class="chengzhang_h" >成长值{{score}}</text> | ||||
@@ -54,8 +54,9 @@ page{ | |||||
line-height: 44rpx; | line-height: 44rpx; | ||||
font-size: 36rpx; | font-size: 36rpx; | ||||
color: #000; | color: #000; | ||||
padding:20rpx; | |||||
padding: 0 20rpx 20rpx; | |||||
text-align: center; | text-align: center; | ||||
margin-top:20rpx; | |||||
} | } | ||||
.user-avatar { | .user-avatar { | ||||
position: absolute; | position: absolute; | ||||
@@ -76,6 +76,15 @@ Page({ | |||||
} | } | ||||
}).then(res=>{ | }).then(res=>{ | ||||
app.globalData.phone = res.data.phone; | app.globalData.phone = res.data.phone; | ||||
/** | |||||
* 来自我的 | |||||
*/ | |||||
if (that.data.path == 'main') { | |||||
wx.switchTab({ | |||||
url: `/index/user` | |||||
}) | |||||
return; | |||||
} | |||||
/** | /** | ||||
* 来自积分兑换 | * 来自积分兑换 | ||||
*/ | */ | ||||
@@ -4,7 +4,7 @@ | |||||
"ignore": [] | "ignore": [] | ||||
}, | }, | ||||
"setting": { | "setting": { | ||||
"urlCheck": true, | |||||
"urlCheck": false, | |||||
"es6": true, | "es6": true, | ||||
"enhance": false, | "enhance": false, | ||||
"postcss": true, | "postcss": true, | ||||