<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ### 登錄方法 ``` login() { // console.log(md5(this.password + 'app'));return; if (this.mobile.length != 11) { uni.showToast({ icon: 'none', title: '手機號不正確' }); return; } if (this.password.length < 6) { uni.showToast({ icon: 'none', title: '密碼不正確' }); return; } // uni.switchTab({ // url:'./user/index' // }) uni.request({ url: this.$url +'/api/v1.login/index', data: { mobile:this.mobile, password:md5(this.password) }, method: 'POST', dataType:'json', success: (res) => { // console.log(res.data.data.token); if(res.data.code!=1){ uni.showToast({title:res.data.msg,icon:'none'}); }else{ uni.setStorageSync('token', res.data.data.token); // var token =uni.getStorageSync('token'); // console.log(token); // this.login(); // uni.navigateBack(); uni.switchTab({ url:'./index/index' }) } } }); } ``` ### 注冊方法 ``` reg() { if (this.username == "" || this.username == null || this.username == undefined) { uni.showToast({ icon: 'none', title: '昵稱不能為空' }); return; } if (this.xieyi == false) { uni.showToast({ icon: 'none', title: '請先閱讀《軟件用戶協議》' }); return; } if (this.mobile.length != 11) { uni.showToast({ icon: 'none', title: '手機號不正確' }); return; } if (this.password.length < 6) { uni.showToast({ icon: 'none', title: '密碼長度必須6-20位' }); return; } if (this.username == "" || this.username == null || this.username == undefined) { uni.showToast({ icon: 'none', title: '請輸入驗證碼' }); return; } uni.request({ url: global.host +'/api/v1.login/reg', data: { username: this.username, mobile: this.mobile, password: md5(this.password), repassword: md5(this.repassword), pay_pwd: md5(this.pay_pwd), repay_pwd: md5(this.repay_pwd), code: this.code, p_mobile: this.p_mobile }, method: 'POST', dataType: 'json', success: (res) => { console.log(res); if (res.data.code != 1) { uni.showToast({ title: res.data.msg, icon: 'none' }); } else { uni.showToast({ title: res.data.msg }); setTimeout(function() { uni.navigateBack(); }, 1500) } } }); } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看