Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwei1994 committed Dec 25, 2019
1 parent 9f301f8 commit 782a419
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 24 deletions.
3 changes: 3 additions & 0 deletions App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script>
import store from "@/config/store";
// #ifdef H5
import { h5Login } from "@/config/html5Utils";
// #endif
// #ifdef APP-PLUS
import APPUpdate from "@/utils/APPUpdate";
// #endif
Expand Down
6 changes: 6 additions & 0 deletions pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
"style": {
"navigationBarTitleText": "注册"
}
},
{
"path": "pages/user/login",
"style": {
"navigationBarTitleText": "登录"
}
}
],
"globalStyle": {
Expand Down
1 change: 1 addition & 0 deletions pages/user/bindPhone.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<view>
<nav-bar title="绑定手机号"></nav-bar>
<view class="bindAccountBox">
<image :src="logoUrl"></image>
<view><image src="../../static/icon/bindingIcon.png"></image></view>
Expand Down
1 change: 1 addition & 0 deletions pages/user/forget.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<view class="page">
<nav-bar></nav-bar>
<view class="title">忘记密码</view>
<view class="input_box"><input type="number" v-model="phone" placeholder="请输入手机号" /></view>
<view class="input_box">
Expand Down
31 changes: 21 additions & 10 deletions pages/user/login.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<view class="register_page">
<view class="title" v-if="type == 1000">验证码登录</view>
<view class="title" v-if="type == 2000">账号密码</view>
<nav-bar></nav-bar>
<view class="title">
<text :class="{active:type == 2000}" @click="type = 2000">密码登录</text>
<text :class="{active:type == 1000}" @click="type = 1000">验证码登录</text>
</view>
<view class="input_box"><input type="number" v-model="phone" placeholder="请输入您的手机号码" maxlength="11" /></view>
<view class="input_box" v-if="type == 1000">
<input type="number" v-model="code" placeholder="请输入手机验证码" maxlength="6" @confirm="onSubmit" />
Expand All @@ -20,10 +23,6 @@
<text class="color" @click="onPageJump('/pages/user/register')">去注册</text>
<text @click="onPageJump('/pages/user/forget')">忘记密码?</text>
</view>
<view class="password_register">
<text v-if="type == 1000" @click="type = 2000">账户密码登录</text>
<text v-if="type == 2000" @click="type = 1000">短信验证码登录</text>
</view>
<!-- #ifdef APP-PLUS -->
<view class="station"></view>
<view class="third_party_login_box">
Expand Down Expand Up @@ -229,9 +228,21 @@ export default {
background-color: #fff;
min-height: 100vh;
.title {
font-size: 54upx;
color: #333333;
margin-bottom: 50upx;
display: flex;
align-items: center;
text {
font-size: 36upx;
color: #999;
&.active {
font-size: 48upx;
color: #333333;
font-weight: bold;
}
&:nth-child(2){
margin-left: 70upx;
}
}
}
.input_box {
display: flex;
Expand Down Expand Up @@ -274,7 +285,7 @@ export default {
font-size: 24upx;
color: #999999;
> text {
@include theme('font');
color: $themeColor;
}
}
.password_register {
Expand All @@ -294,7 +305,7 @@ export default {
font-size: 24upx;
color: #333333;
&.color {
@include theme('font');
color: $themeColor;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions pages/user/protocol.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<view class="protocol_page">
<nav-bar title="协议"></nav-bar>
<view class="title">{{title}}</view>
<u-parse :content="protocol" />
</view>
Expand Down
1 change: 1 addition & 0 deletions pages/user/register.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<view class="page">
<nav-bar></nav-bar>
<view class="title">注册</view>
<view class="input_box"><input type="number" v-model="phone" placeholder="请输入手机号" /></view>
<view class="input_box">
Expand Down
Binary file removed static/icon/orderdetails_ads.png
Binary file not shown.
14 changes: 1 addition & 13 deletions style/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,14 @@
//主色
$themeColor: #85d764;
@mixin theme($type,$path:''){
@if $type == "font" {
color: $themeColor;
} @else if $type == "bg" {
background-color: $themeColor;
} @else if $type == "border" {
border: solid 2upx $themeColor;
} @else if $type == "gradient_bg" {
@if $type == "gradient_bg" {
background-image: linear-gradient(90deg, #ea552d 0%, #f19837 100%);
} @else if $type == "btn_bg" {
background-color: $themeColor;
} @else if $type == "address_img" {
background-image: url($path + "static/icon/orderdetails_ads.png");
} @else if $type == "unselected_img" {
background-image: url($path + "static/icon/ic_gender_unselected.png");
} @else if $type == "check_img" {
background-image: url($path + "static/icon/ic_agreed.png");
} @else if $type == "radio_img" {
background-image: url($path + "static/icon/ic_gender_selected.png");
} @else if $type == "my_head_img" {
background-image: url($path + "static/icon/mime_bg_top.png");
}
}
// 背景图片地址和大小
Expand Down
2 changes: 1 addition & 1 deletion utils/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import $http from '@/config/request'
import $http from '@/config/requestConfig'
import store from '@/config/store';
// #ifdef APP-PLUS
import { judgePermission } from '@/utils/permission'
Expand Down

0 comments on commit 782a419

Please sign in to comment.