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

优化

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