11.29前端

This commit is contained in:
@QQNZX 2023-11-29 13:58:22 +08:00
parent b606908623
commit 36dce77987

View File

@ -8,7 +8,7 @@
</view>
<view class="top-box"></view>
<!-- 顶部区域 -->
<button class="dl-box" open-type='getPhoneNumber' @getphonenumber="getPhone">手机号快捷登录</button>
<button class="kk-box" @click="goback" >我再看看</button>
<view class="dbottom">
@ -23,7 +23,6 @@
</view>
</view>
</template>
<script>
export default {
data() {
@ -84,6 +83,27 @@
},
success: (rex) => {
console.log('请求成功', rex)
if (rex.data.code == 200) {
if (this.loginStatus) {
clearInterval(this.loginStatus)
}
uni.setStorageSync('App-Token', rex.data.token);
if (this.returnUrl) {
uni.navigateBack()
} else {
this.userinfo()
console.log('跳转');
}
}
if (rex.data.code == 500) {
uni.clearStorageSync();
uni.showToast({
icon: 'none',
title: rex.data.msg
})
console.log('走错误请求');
}
},
fail: (res) => {
console.log("fail", res);
@ -116,7 +136,7 @@
<style scoped lang="scss">
.content {
background: #ffffff;
}
.container {
@ -151,8 +171,8 @@
height: 40px;
background: #2F72F7;
border-radius: 50px;
}
.top-box{
width: 100%;
@ -190,7 +210,7 @@
align-items: center;
justify-content: center;
}
.quanzi {
width: 14px;
height: 14px;
@ -198,7 +218,7 @@
border-radius: 50%;
margin-right: 10px;
}
.lanquanzi {
width: 14px;
height: 14px;
@ -208,28 +228,28 @@
background: #0078FF;
color: white;
}
.lan {
color: #0078FF;
}
.jiuzhong {
width: 90%;
margin: 10px auto;
display: flex;
align-items: center;
}
.dist {
display: flex;
align-items: center;
margin: 0px 10px;
}
.d-zi {
font-size: 14px;
}
.d-qian {
width: 14px;
height: 14px;
@ -242,7 +262,7 @@
border: 1px solid #666666;
color: white;
}
.d-qian-lan {
width: 14px;
height: 14px;