fix
This commit is contained in:
parent
597c6c6139
commit
e494c92d84
@ -1,16 +1,8 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="status_bar">
|
||||
<!-- 这里是状态栏 -->
|
||||
</view>
|
||||
<!-- 建议放在外层 -->
|
||||
<up-sticky>
|
||||
<up-navbar
|
||||
fixed
|
||||
@leftClick="backhandle"
|
||||
safeAreaInsetTop
|
||||
:placeholder="true"
|
||||
>
|
||||
<up-navbar @leftClick="backhandle" safeAreaInsetTop :placeholder="true">
|
||||
<template #left>
|
||||
<view class="uv-nav-slot">
|
||||
<uv-icon name="arrow-left" size="19" v-if="isShowLeft"></uv-icon>
|
||||
@ -51,6 +43,9 @@ root.style.setProperty(
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.status_bar {
|
||||
height: var(--status-bar-height);
|
||||
}
|
||||
:deep(.u-status-bar) {
|
||||
margin-top: var(--statusBarHeight);
|
||||
}
|
||||
@mixin flex($direction: row) {
|
||||
|
@ -67,7 +67,7 @@
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<text
|
||||
style="text-align: right; color: #e3af1c; margin-top: 20rpx"
|
||||
@click="toCode"
|
||||
@ -109,7 +109,7 @@ const state = reactive({
|
||||
Password: "",
|
||||
id: "",
|
||||
pid: "",
|
||||
code:"",
|
||||
code: "",
|
||||
});
|
||||
const { showMessage } = useToast();
|
||||
const loading = ref(false);
|
||||
@ -158,7 +158,10 @@ const paintingDetail = async () => {
|
||||
},
|
||||
});
|
||||
} else {
|
||||
if (res.data.boxRelBucketStatus == 3 && res.data.locateAddress == "公司内") {
|
||||
if (
|
||||
res.data.boxRelBucketStatus == 3 &&
|
||||
res.data.locateAddress == "公司内"
|
||||
) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/painting/index?id=" + state.id + "&pid=" + state.pid,
|
||||
success: () => {
|
||||
@ -207,12 +210,12 @@ const obtainCode = async () => {
|
||||
if (res.status === 0) {
|
||||
haveCode.value = true;
|
||||
showMessage({ type: "default", message: "验证码已发送" });
|
||||
|
||||
} else {
|
||||
if(res.msg == '已经发送过,验证码尚可用'){
|
||||
if (res.msg == "已经发送过,验证码尚可用") {
|
||||
haveCode.value = true;
|
||||
}else{showMessage({ type: "error", message: res.msg });}
|
||||
|
||||
} else {
|
||||
showMessage({ type: "error", message: res.msg });
|
||||
}
|
||||
}
|
||||
loading.value = false;
|
||||
};
|
||||
@ -227,7 +230,7 @@ const logining = async () => {
|
||||
const res = await userLogin({
|
||||
TelNum: state.TelNum ?? "",
|
||||
Password: state.Password ?? "",
|
||||
code:state.code ?? "",
|
||||
code: state.code ?? "",
|
||||
});
|
||||
if (res.status === 0) {
|
||||
uni.setStorageSync("token", res.data.Token);
|
||||
|
Loading…
Reference in New Issue
Block a user