| | |
| | | <input type="password" v-model="formData.pass" placeholder="请输入密码" /> |
| | | </view> |
| | | <view class="login-item" v-if="formData.loginType == 2"> |
| | | <input type="tel" v-model="formData.code" maxlength="4" placeholder="请输入验证码" /> |
| | | <input type="number" v-model="formData.code" maxlength="4" placeholder="请输入验证码" /> |
| | | <text class="code2" v-if="leftTime < 60">{{leftTime}}S后获取</text> |
| | | <text class="code" @click="sendCode" v-else>获取验证码</text> |
| | | </view> |
| | |
| | | |
| | | // 登录接口 |
| | | const res = await t.$util.post('User/Login', this.formData) |
| | | console.log('res', res) |
| | | |
| | | if (res.code == 1) { |
| | | |
| | |
| | | // qxgLogin接口 |
| | | const ygxRes = await new Promise((resolve, reject) => { |
| | | uni.request({ |
| | | url: t.$webHost + '/api/v2/auth/qxgIosUnionLogin?phone=' + t.$util.getUserInfo().phone, |
| | | url: t.$webHost + '/api/v2/auth/iosShopUnionLogin?phone=' + t.$util.getUserInfo().phone+'&configureToDomain=11', |
| | | success: resolve, |
| | | fail: reject |
| | | }) |
| | | }) |
| | | console.log(ygxRes); |
| | | // if(!ygxRes.data.data.boughtEquity){ |
| | | // goUrl = '/pages/quanyi/index' |
| | | // // t.$util.goPages(goUrl) |
| | | // uni.navigateTo({ |
| | | // url: '/pages/quanyi/index' |
| | | // }) |
| | | // return |
| | | // } |
| | | if(!ygxRes.data.data.boughtEquity){ |
| | | goUrl = '/pages/quanyi/index' |
| | | // t.$util.goPages(goUrl) |
| | | uni.navigateTo({ |
| | | url: '/pages/quanyi/index' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | t.ygxLogin = ygxRes.data.data |
| | | uni.setStorageSync('ygxLogin', t.ygxLogin) |