|
@@ -20,7 +20,7 @@
|
|
|
<view style='flex:1;text-align:center;border-right:1px solid #E8E9ED;'>忘记密码</view>
|
|
|
<view @click='gocode' style='flex:1;text-align:center;'>验证码登录</view>
|
|
|
</view>
|
|
|
- <button class='register'>手机号一键注册</button>
|
|
|
+ <button @click='goregister' class='register'>手机号一键注册</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -99,9 +99,9 @@
|
|
|
this.$api.doRequest('get','/commonUser/login',{phone:this.phone,password:this.password}).then(res => {
|
|
|
if(res.data.code==200){
|
|
|
uni.setStorageSync('userInfo', res.data.data)
|
|
|
- this.$api.doRequest('post','/auth/api/loginEnhanced',{companyName: "易粮易运",
|
|
|
+ this.$api.doRequest('post','/auth/api/loginEnhanced',{companyName: "佳屹农",
|
|
|
password: "y123456",
|
|
|
-username: "13333333333"}).then(res1 => {
|
|
|
+username: "jyn"}).then(res1 => {
|
|
|
uni.setStorageSync('pcUserInfo', res1.data.data)
|
|
|
})
|
|
|
that.$store.commit('login', res.data.data)
|
|
@@ -141,6 +141,11 @@ username: "13333333333"}).then(res1 => {
|
|
|
url:'/pages/public/reset'
|
|
|
})
|
|
|
},
|
|
|
+ goregister(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url:'/pages/public/register'
|
|
|
+ })
|
|
|
+ },
|
|
|
appleLogin(){
|
|
|
var that=this
|
|
|
uni.getProvider({
|
|
@@ -332,6 +337,7 @@ username: "13333333333"}).then(res1 => {
|
|
|
uni.navigateBack();
|
|
|
},
|
|
|
toRegist() {
|
|
|
+ console.log(11)
|
|
|
uni.redirectTo({
|
|
|
url: '/pages/public/register'
|
|
|
})
|