提交 7bf29349 authored 作者: 刘旭's avatar 刘旭

优化

上级 f13f7c48
<template>
<view class="login-container">
<image
src="https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png"
mode="scaleToFill"
class="title-iamge"
></image>
<image src="../../static/logo.png" mode="widthFix" class="title-iamge"></image>
<text class="login-text">欢迎登陆</text>
<view class="login-form">
......@@ -14,8 +10,6 @@
<button @tap="clickNextStep" class="getCaptcha">登录</button>
<!-- <image src="https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png" mode="" class="next-step" @click="clickNextStep"></image> -->
<text class="footer-text">定制管理平台</text>
</view>
</template>
......@@ -82,10 +76,16 @@ let initLogin = async (mobile: number, password: string) => {
key: 'mobile',
data: inputData.inputValue,
success() {
uni.showToast({
title: '登陆成功',
icon: 'none',
duration: 1000,
uni.setStorage({
key: 'nickName',
data: res.data.data.userInfo.nickName,
success() {
uni.showToast({
title: '登陆成功',
icon: 'none',
duration: 1000,
});
},
});
},
});
......@@ -104,8 +104,12 @@ let initLogin = async (mobile: number, password: string) => {
</script>
<style lang="scss" scoped>
page {
background-color: #fff;
}
.login-container {
min-height: 100vh;
padding-top: 40%;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
......@@ -122,8 +126,7 @@ let initLogin = async (mobile: number, password: string) => {
}
}
.title-iamge {
width: 300rpx;
height: 240rpx;
width: 400rpx;
}
.login-text {
margin-top: 10%;
......
......@@ -133,7 +133,7 @@ let confirmModel = () => {
uni.navigateBack({
delta: 1,
});
}, 50);
}, 2000);
}
});
......@@ -171,7 +171,7 @@ let addressSave = () => {
uni.navigateBack({
delta: 1,
});
}, 50);
}, 2000);
}
});
};
......
......@@ -2,9 +2,9 @@
<view class="profile-container">
<view class="profile-info" @tap="toLogin">
<view class="profile-avatar">
<image src="https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png" />
<image style="width: 220rpx;" src="../../static/logo.png" mode="scaleToFill"/>
</view>
<view class="profile-nickname"><text>Mr Tsui</text></view>
<view class="profile-nickname"><text>{{ nickName }}</text></view>
</view>
<view class="order-center">
......@@ -67,6 +67,8 @@ const toLogin = () => {
});
};
let nickName = uni.getStorageSync('nickName')
const orderBtnList = ref([
{
url: '/static/my/tuisongshezhi.png',
......
src/static/logo.png

3.9 KB | W: | H:

src/static/logo.png

114.2 KB | W: | H:

src/static/logo.png
src/static/logo.png
src/static/logo.png
src/static/logo.png
  • 2-up
  • Swipe
  • Onion skin
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论