XML
<view class="authorized-mobile"> <view class="contnet"> <view class="img"></view> <button class="btn" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">微信手机号码快捷登录</button> </view> <view class="user-agreement"> <view class="icon {{radioShow?'radio_2':'radio_1'}}" bindtap="radioChange"></view> <view>我已阅读、理解并同意 </view> <view bindtap="readAgreement" style="color:#1B88EE">《用户协议》</view> </view> </view>View Code
XSS
/* pages/authorizedmobile/index.wxss */ .authorized-mobile .contnet{ width: 750rpx; position: absolute; top: 50%; transform: translateY(-50%); text-align: center; display: flex; flex-direction: column; align-items: center; } .authorized-mobile .contnet .img{ width: 267rpx; height: 264rpx; margin-bottom: 80rpx; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADQCAYAAABlc6+AAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd0VFX6/903NXUyk4RAJqEjKr1KsaEouPZVAXXFvpbVVSwQdNXgKiRxdy2ru+5/sWEBUXcta0UEpAkIAQGlSUsmpM5M6kymvPs/9yWBJDOTmTfzpiXvncPxeHLvd7/7u/c39333fYVAfmQEWhEYWGDWOYhiKKX86RT8IBAum1BqBNAbgA5AKoAkAAoAHG3p10SARoA0ALSKglYQkHJKuCMcTw+B0EOldv1+5BNHTwSa9MRJy3MGkE+VRrV5AlEozqaUH0+BCYSQ/qA0HHuCketngBQT8Jspz68zPZZ5oCesQzjA7Am4xeUcs5+pyYWSXEEofkMJziFAShQncoIC6whPviAO7vPSfJ05irqEbWiZYGGDNjYE5xY2Zrup8wYOdA4FHQsg5tacAi4CrCcg/+WViuVlj6RWxwZ6oWsRc2CHPiVZAlZSRc4R65Wg9C4euJC02Exx8hAHBf85CPdmmS3tC+QTV5wo7lVNmWDxvHqddO//vCXN2UzvBcHdoMiN+6lRlFDg7zaC/7PkGWrjcT4yweJx1TrpnPVcfS+Vy/kQT3APabnp61YPBeoJyFIVpyo6Oj+5PJ4mJxMsnlark64ZhTRFw1sfBeEfAgi7Pu/eD6VNlCN/52yKo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EAywUJAMX9vZfJHNZvurNQcnWyjrqvrldXKWPMYiTeCEapkpCpxu5VLhzlG/WfjBWfvDWGJot5VJpiESzB7845LVru2naVR0eurSNUQp7Ix6vjGPsEITWnOdEDp/iC9Kfenga5hy1ZPH1Eh4bJEVVTUN0BUZx/GwSmlZNr339+wR/nTkCS18uoqvna4TWk9mR0rjEN3EB1rBFO6kmiaW1/VxDWu6OXoV5prG/Dh9zPOOhIpPCI9jkywCCJ+4bfbzzmsPHROXZKpj9alnV2tsKQ7FPVhJV20CEZ4NU126V2J0B40c+b/9rYNaDTyOVs3X3BuVOOzIrjcwlAywSKNeKfxLlqzZXwJTpx/XHM40aDQnufg3RNrubokh5LlxQw91CaMBKMKVxKS+BSXFuryeoX5K7i0pX2a+zVlU2Px+gum9Cgi+dpGMsGiTDBfw1++5seMGtTPLFdU5pYrTSqobBkpTv15PGhuM9ecbCdNSqfCBn9Oy6IIRhVUwauhomqqcWudGqKp5yhX3qSs39zodplS3Wm83mmwpfMZx1Jo8nerp59VE6PwxYxaMsFiZimCU+TCb7ekO92uYXaVK8fONaU5iD3BSXmFmzg5J3VySgUhr/e7hrh4Hs0uUDelvMsN91e1h527miqbtM7EukSaVKFwJ+7+8jdDqoLTQu7lC4H/B5F4IjRjgi+1AAAAAElFTkSuQmCC"); background-size:100% 100% ; background-repeat: no-repeat; } .authorized-mobile .contnet .btn{ padding: 0; margin: 0; width: 426rpx; height: 88rpx; line-height: 88rpx; background: linear-gradient(90deg, #1B88EE 0%, #4CA8FF 100%); border-radius: 44rpx; font-size: 30rpx; font-family: PingFangSC-Medium, PingFang SC; font-weight: 500; color: #FFFFFF; } .authorized-mobile .user-agreement{ position: fixed; bottom: 82rpx; width: 750rpx; display: flex; justify-content: center; align-items: center; font-size: 24rpx; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: #666666; } .authorized-mobile .user-agreement .icon{ width: 28rpx; height: 28rpx; background-size: 100% 100%; background-repeat: no-repeat; margin-right: 10rpx; } .authorized-mobile .user-agreement .radio_1{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAZ1JREFUSEvFlj1PwlAUht+3jTqbaGJjCDgQ8A8YHZDNRUdd/B86ObrID3HRURc3dYD4B2hhsEigRElc/aLHFCgpfl0tzbVDl/Px3HvuOfe+hOITEdabXgHCTYGsiTALyOwgjI+k1AmWQTnPpqxrkvJTSv5ktBveNkQOAeRUCxvaHZAH+bR1+p3/l0Db7SwJescEV38JGnMTSIUwd/OZhduP8Z+A9aZX7PUkWOFcHFgkpmua3M6mrMtonjHgEHYBYHpCWBj+YprciEJHwKCMgH+TwM4+rrULGCtheUfAqtsqxz0zVTWCM13OLK71+zr4DbvxRBU4kZ3cCbqXwZw5Da/6h9aPy3VyaWuZtbv7dd9/G+ukuBlVcYaBIm23VQK4p3JOwm6QJTqN9pUICkkkVOUgcU3b9TxAFlTOydjZoe22nwDMJJNQmeX5P4CaS6q9aWoN78gX2VdWPwGH/lhoH3ztV5v2yzs8Gq3PU3+Xuh/gAKpVYoSl1SqiQqhWmRidb21COAodSP2Hgu+/bpFc/Urqi0jFMKbOsql5pdR/ByJY5isIzBLqAAAAAElFTkSuQmCC"); } .authorized-mobile .user-agreement .radio_2{ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAnRJREFUSEu9lsFrE1EQxr95ialGTBObQ01S1IMWT4EetD3UntSDHitICuJV8Nqag0elm3gV/A+E1h71IiJohAYPRbxIKUWKxnio2dYUTUyyI2832ybbTTbZyO5x38z83pv3zbwhOH5MY8rONIOvgzClMc4RKCLdGKwKwgYYqwR6+TUdzgHE3UJSt8V45ucsmB4CGHfcl2GwDuIHhfsjK53sbYGnH++crTe0ZwAmewRZzfJ+n0htzYe/WBcOARNZdYY1ljuMuoSZbtskaPbbQuRta5w2oAHDK4ADA8Ka7vSXBK62QveBzTR++A8ns+512+8TF8307gPjSml1gDtzSki+kD45JY10YFONz528BlonvinVSwBTXFE/9yF9t9z1QjpygcYU9bIGblOSm4hnwgJ3JobwfquG15t12xACNEOJxVKWCfNuIKbP+ajA8q0TiB4XqDUYE092oVYONxwCspTIqO+YedotsBUmY5R+a7j0dBd/bA5JRDmKKaUiAaNugFbYryojtVTGx2LDNhwDP6RgKgAP2VnEQoTkqB9vNmuoWmL0CzPiU7Uj8JgfyN8dxkhQYO17HXPLeyhXjXtxB2sCO6U0cpSwdm8YR3xGb9ChS2WcCh0IRP53SmNr5vSUdhNNKhmAci0IQQb0U7GOWEjoauwXpp+PkKOEUsowsNBJNHPJABZboKZdPyczffSy6KXwrVA3MAnVC7/X1ibT++hKUBfO7ZW9jtLvUl5Ga5MGvTZvKaRKnW2L2rGOD5q3Yerp8ySBnj/AEurpiGHegadDlAn1dExsVZtng3C7xJujPvMNCJrUmC2jPm1A4zwRvehl1P8HWxpMs0wZ9lEAAAAASUVORK5CYII="); }View Code
JS
// pages/authorizedmobile/index.js const app = getApp(); const interfaces = require('../../utils/urlconfig'); Page({ /** * 页面的初始数据 */ data: { radioShow: false }, getPhoneNumber(e) { const that = this; console.log(e); //授权成功 if (e.detail.errMsg == "getPhoneNumber:ok") { let data = { type: 3, unionId: that.data.unionId, encryptedData: e.detail.encryptedData, iv: e.detail.iv, sessionKey: that.data.session_key } console.log(data) wx.request({ url: interfaces.getPhoneNumber, method: "POST", data, header: { "content-type": "application/x-www-form-urlencoded" }, success({data}) { if(data.state==200){ app.globalData.phoneNumber= data.others.phoneNumber; that.setData({ mobile:data.others.phoneNumber },()=>{ wx.switchTab({ url: '../tabar/frontpage/index', }) }) } }, fail(res) { console.log(res) }, }) } else { console.log(2) } }, readAgreement: function () { wx.navigateTo({ url: '../useragreement/index', }) this.setData({ radioShow: true }) }, radioChange: function () { this.setData({ radioShow: !this.data.radioShow }) }, /** * 生命周期函数--监听页面加载 */ onl oad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { const that = this; // console.log(app.globalData,'-----------') if (app.globalData.userInfo && app.globalData.userInfo.hasOwnProperty('studentList')) { that.setData({ unionId: app.globalData.userInfo.unionId, openId: app.globalData.openId, session_key: app.globalData.session_key, }) } else { //由于getuserinfo是一个网络请求,可能会在当前page.onload之后才返回 //为了防止这种情况发生,所以此处加入callback app.userInfoReadyCallback = res => { that.setData({ unionId: res.data.userInfo.unionId, openId: app.globalData.openId, session_key: app.globalData.session_key, }); } } }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { } })View Code