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