feat: 引入uView Plus组件库,新增部分静态页面
This commit is contained in:
@@ -4,12 +4,8 @@
|
||||
<!-- 标题栏 -->
|
||||
<view class="head-box ss-m-b-60">
|
||||
<view class="ss-m-b-20">
|
||||
<!-- <view class="head-title-active head-title-line" @tap="showAuthModal('smsLogin')">
|
||||
短信登录
|
||||
</view> -->
|
||||
<view class="head-title head-title-animation">登录账号</view>
|
||||
</view>
|
||||
<view class="head-subtitle">如无账号请联系平台开通</view>
|
||||
<!-- <view class="head-subtitle">如果未设置过密码,请点击忘记密码</view> -->
|
||||
</view>
|
||||
|
||||
@@ -24,11 +20,11 @@
|
||||
>
|
||||
<uni-forms-item name="mobile" label="账号">
|
||||
<uni-easyinput placeholder="请输入手机号" v-model="state.model.mobile" :inputBorder="false">
|
||||
<!-- <template v-slot:right>
|
||||
<template v-slot:right>
|
||||
<button class="ss-reset-button forgot-btn" @tap="showAuthModal('resetPassword')">
|
||||
忘记密码
|
||||
</button>
|
||||
</template> -->
|
||||
</template>
|
||||
</uni-easyinput>
|
||||
</uni-forms-item>
|
||||
|
||||
@@ -45,6 +41,14 @@
|
||||
</uni-easyinput>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
<view class="text-center">
|
||||
<text class="head-title-active head-title-line" @tap="showAuthModal('smsLogin')">
|
||||
验证码登录
|
||||
</text>
|
||||
<text class="head-title-active head-title-line" style="margin-left:25rpx;" @click="toRegister">
|
||||
骑手注册
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -69,7 +73,8 @@
|
||||
// 数据
|
||||
const state = reactive({
|
||||
model: {
|
||||
mobile: '', // 账号
|
||||
username: '', // 账号
|
||||
mobile: '',
|
||||
password: '', // 密码
|
||||
},
|
||||
rules: {
|
||||
@@ -97,10 +102,18 @@
|
||||
|
||||
// 提交数据
|
||||
const { code, data } = await AuthUtil.login(state.model);
|
||||
// const { code, data } = await AuthUtil.loginAccount(state.model);
|
||||
if (code === 0) {
|
||||
closeAuthModal();
|
||||
}
|
||||
}
|
||||
|
||||
const toRegister = () => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/registered/registerRiders'
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<view>
|
||||
<!-- 标题栏 -->
|
||||
<view class="head-box ss-m-b-60">
|
||||
<view class="head-title ss-m-b-20">重置密码</view>
|
||||
<view class="head-title ss-m-b-20 text-center">重置密码</view>
|
||||
<view class="head-subtitle">为了您的账号安全,设置密码前请先进行安全验证</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -3,11 +3,8 @@
|
||||
<view>
|
||||
<!-- 标题栏 -->
|
||||
<view class="head-box ss-m-b-60">
|
||||
<view class="ss-flex ss-m-b-20">
|
||||
<view class="ss-m-b-20 ">
|
||||
<view class="head-title head-title-line head-title-animation">短信登录</view>
|
||||
<view class="head-title-active ss-m-r-40" @tap="showAuthModal('accountLogin')">
|
||||
账号登录
|
||||
</view>
|
||||
</view>
|
||||
<view class="head-subtitle">未注册的手机号,验证后自动注册账号</view>
|
||||
</view>
|
||||
@@ -55,6 +52,10 @@
|
||||
</uni-easyinput>
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
|
||||
<view class="head-title-active ss-m-r-40 text-center" @tap="showAuthModal('accountLogin')">
|
||||
账号登录
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -154,3 +154,7 @@
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -10,23 +10,24 @@
|
||||
/>
|
||||
|
||||
<!-- 2. 短信登录 smsLogin -->
|
||||
<!-- <sms-login
|
||||
<smsLogin
|
||||
v-if="authType === 'smsLogin'"
|
||||
:agreeStatus="state.protocol"
|
||||
@onConfirm="onConfirm"
|
||||
/> -->
|
||||
|
||||
/>
|
||||
|
||||
|
||||
<!-- 3. 忘记密码 resetPassword-->
|
||||
<reset-password v-if="authType === 'resetPassword'" />
|
||||
|
||||
<!-- 4. 绑定手机号 changeMobile -->
|
||||
<change-mobile v-if="authType === 'changeMobile'" />
|
||||
<!-- <change-mobile v-if="authType === 'changeMobile'" /> -->
|
||||
|
||||
<!-- 5. 修改密码 changePassword-->
|
||||
<changePassword v-if="authType === 'changePassword'" />
|
||||
|
||||
<!-- 6. 微信小程序授权 -->
|
||||
<mp-authorization v-if="authType === 'mpAuthorization'" />
|
||||
<!-- <mp-authorization v-if="authType === 'mpAuthorization'" /> -->
|
||||
|
||||
<!-- 7. 第三方登录 -->
|
||||
<view
|
||||
@@ -34,8 +35,8 @@
|
||||
class="auto-login-box ss-flex ss-flex-col ss-row-center ss-col-center"
|
||||
>
|
||||
<!-- 7.1 微信小程序的快捷登录 -->
|
||||
<view v-if="sheep.$platform.name === 'WechatMiniProgram'" class="ss-flex register-box">
|
||||
<!-- <view class="register-title">还没有账号?</view> -->
|
||||
<!-- <view v-if="sheep.$platform.name === 'WechatMiniProgram'" class="ss-flex register-box">
|
||||
<view class="register-title">还没有账号?</view>
|
||||
<view class="register-title">已经拥有账号可以,</view>
|
||||
<button
|
||||
class="ss-reset-button login-btn"
|
||||
@@ -45,7 +46,7 @@
|
||||
快捷登录
|
||||
</button>
|
||||
<view class="circle"></view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- 7.2 微信的公众号、App、小程序的登录,基于 openid + code -->
|
||||
<!-- <button
|
||||
|
||||
Reference in New Issue
Block a user