2d70f5ed
chenbiao
add gitignore
|
1
|
<template>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<view>
<view class="login-content">
<view>
<image class="logo" src="/static/logo.png"></image>
<view>
<view class="title">{{appName}}</view>
<view class="title-msg">{{apptitle}}</view>
</view>
</view>
<view class="uni-common-mt paddinglr30">
<view class="uni-form-item uni-column">
<input class="uni-input" type="text" v-model="username" placeholder="请输入用户名" />
</view>
<view class="uni-form-item uni-column">
<input class="uni-input" password type="text" v-model="password" placeholder="请输入密码" />
|
2d70f5ed
chenbiao
add gitignore
|
17
|
</view>
|
2d70f5ed
chenbiao
add gitignore
|
18
|
</view>
|
e133a83d
chenbiao
add 接口文档更新
|
19
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
20
21
|
<view class="paddinglr30 uni-common-mt">
<button type="primary" @click="login">登录</button>
|
2d70f5ed
chenbiao
add gitignore
|
22
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
23
24
|
<view class="uni-common-mt login-foot">
点击”登录“,即表示你同意《商户用户协议》
|
e133a83d
chenbiao
add 接口文档更新
|
25
|
</view>
|
2d70f5ed
chenbiao
add gitignore
|
26
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
27
28
29
30
31
32
33
|
<view class="bg-white" v-if="userIsLogin">
<view class="index-top">
<view>
<view style="z-index: 2;">
<image src="http://122.152.205.72:88/group1/M00/00/05/CpoxxFw_-5-AFyVyAABLIH8xBTw233.png"
class="face"></image>
<view class="username">张三</view>
|
2d70f5ed
chenbiao
add gitignore
|
34
|
</view>
|
e133a83d
chenbiao
add 接口文档更新
|
35
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
36
37
38
39
40
41
42
|
</view>
<view class="set-wapper">
<image src="../../static/me/settings.png" class="settings" @tap="toSetting"></image>
</view>
</view>
<view class="index-menu">
<view class="uni-padding-wrap uni-common-mt">
|
e133a83d
chenbiao
add 接口文档更新
|
43
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
44
45
46
47
48
49
|
<view class="uni-flex uni-row">
<view class="flex-item">
<view class="">
<image src="../../static/me/me-parkrecord.png" class="index-icon"></image>
</view>
<view class="index-title">停车缴费</view>
|
2d70f5ed
chenbiao
add gitignore
|
50
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
51
52
53
54
55
|
<view class="flex-item">
<view class="">
<image src="../../static/me/me-recoder.png" class="index-icon"></image>
</view>
<view class="index-title">停车记录</view>
|
2d70f5ed
chenbiao
add gitignore
|
56
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
57
58
59
60
61
|
<view class="flex-item">
<view class="">
<image src="../../static/me/me-balance.png" class="index-icon"></image>
</view>
<view class="index-title">我的钱包</view>
|
2d70f5ed
chenbiao
add gitignore
|
62
|
</view>
|
e133a83d
chenbiao
add 接口文档更新
|
63
|
|
2d70f5ed
chenbiao
add gitignore
|
64
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
65
66
67
68
69
70
|
<view class="uni-flex uni-row">
<view class="flex-item">
<view class="">
<image src="../../static/me/me-coupon.png" class="index-icon"></image>
</view>
<view class="index-title">卡券管理</view>
|
2d70f5ed
chenbiao
add gitignore
|
71
|
</view>
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
72
73
74
75
76
77
78
79
80
81
82
|
<view class="flex-item" @click="toInvoicePage">
<view class="">
<image src="../../static/me/me-fapao.png" class="index-icon"></image>
</view>
<view class="index-title">发票申领</view>
</view>
<view class="flex-item" @click="toRatingPage">
<view class="">
<image src="../../static/me/me-aboutus.png" class="index-icon"></image>
</view>
<view class="index-title">信用等级</view>
|
1b44ac51
chenbiao
add 信用等级 实名认证form表单
|
83
|
</view>
|
1b44ac51
chenbiao
add 信用等级 实名认证form表单
|
84
|
</view>
|
2d70f5ed
chenbiao
add gitignore
|
85
86
|
</view>
</view>
|
e133a83d
chenbiao
add 接口文档更新
|
87
|
|
2d70f5ed
chenbiao
add gitignore
|
88
|
</view>
|
2d70f5ed
chenbiao
add gitignore
|
89
|
</view>
|
e133a83d
chenbiao
add 接口文档更新
|
90
|
|
2d70f5ed
chenbiao
add gitignore
|
91
92
93
94
95
|
</template>
<script>
import common from "../../common/common.js";
|
2d70f5ed
chenbiao
add gitignore
|
96
97
98
|
export default {
data() {
return {
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
99
100
101
|
userIsLogin: false,
appName: '江阴慧停车',
apptitle: '江阴慧停车·智慧便捷',
|
e133a83d
chenbiao
add 接口文档更新
|
102
103
|
username: '',
password: '',
|
2d70f5ed
chenbiao
add gitignore
|
104
105
106
107
108
109
|
}
},
onLoad() {
},
methods: {
|
e133a83d
chenbiao
add 接口文档更新
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
login() {
let that = this;
if (that.username.trim() === "" || that.password.trim() === "") {
uni.showToast({
title: '用户名密码必填',
icon: 'error',
duration: 2000
})
return;
} else {
that.$myRequest({
url: common.userLogin,
method: 'POST',
data: {
userCode: that.username,
userPwd: that.password
}
}).then(res => {
console.log('使用.then()获取返回的参数', res);
})
}
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
134
|
},
|
2d70f5ed
chenbiao
add gitignore
|
135
136
137
138
139
|
toSetting() {
uni.navigateTo({
url: '../setting/setting'
});
|
7f3bad7f
chenbiao
add 发票抬头:查看 编辑 新增...
|
140
141
142
143
|
},
toInvoicePage() {
uni.navigateTo({
url: '../invoiceClaim/invoiceClaim'
|
1b44ac51
chenbiao
add 信用等级 实名认证form表单
|
144
|
|
7f3bad7f
chenbiao
add 发票抬头:查看 编辑 新增...
|
145
|
});
|
1b44ac51
chenbiao
add 信用等级 实名认证form表单
|
146
147
148
149
150
151
152
|
},
toRatingPage() {
uni.navigateTo({
url: '../creditRating/creditRating'
});
},
|
2d70f5ed
chenbiao
add gitignore
|
153
154
155
156
157
|
}
}
</script>
<style lang="scss">
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
158
159
160
161
162
163
|
.page {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
position: relative;
|
e133a83d
chenbiao
add 接口文档更新
|
164
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
165
|
}
|
e133a83d
chenbiao
add 接口文档更新
|
166
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
167
168
169
170
171
|
.login-content {
background-color: #f6f6f6;
text-align: center;
height: 100vh;
}
|
e133a83d
chenbiao
add 接口文档更新
|
172
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
173
174
175
176
177
|
.logo {
height: 200upx;
width: 200upx;
margin-top: 200upx;
}
|
e133a83d
chenbiao
add 接口文档更新
|
178
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
179
180
181
182
183
|
.title {
font-size: 32upx;
color: #000;
font-weight: 400;
}
|
e133a83d
chenbiao
add 接口文档更新
|
184
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
185
186
187
188
|
.title-msg {
font-size: 26upx;
color: #8d8d8d;
}
|
e133a83d
chenbiao
add 接口文档更新
|
189
190
|
.login-foot {
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
191
|
font-size: 26upx;
|
e133a83d
chenbiao
add 接口文档更新
|
192
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
193
|
}
|
e133a83d
chenbiao
add 接口文档更新
|
194
|
|
2f02d40c
chenbiao
add 登录页面数据接口联调
|
195
|
// 首页
|
2d70f5ed
chenbiao
add gitignore
|
196
197
|
.index-top {
height: 200upx;
|
48e03f64
chenbiao
add
|
198
|
background-color: #2d7bf7;
|
2d70f5ed
chenbiao
add gitignore
|
199
200
|
position: relative;
text-align: center;
|
48e03f64
chenbiao
add
|
201
|
z-index: 2;
|
2d70f5ed
chenbiao
add gitignore
|
202
203
204
205
206
207
208
209
210
211
212
|
}
.index-top:after {
width: 140%;
height: 300upx;
position: absolute;
left: -20%;
top: 0;
z-index: -1;
content: '';
border-radius: 0 0 50% 50%;
|
48e03f64
chenbiao
add
|
213
|
background: linear-gradient(#2d7bf7, #2d7bf7);
|
2d70f5ed
chenbiao
add gitignore
|
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
}
.face {
margin-top: 50upx;
width: 100upx;
height: 100upx;
border-radius: 50%;
}
.username {
height: 50upx;
line-height: 50upx;
text-align: center;
color: #fff;
|
48e03f64
chenbiao
add
|
230
|
z-index: 2;
|
2d70f5ed
chenbiao
add gitignore
|
231
232
233
234
235
236
237
|
}
.set-wapper {
height: 40rpx;
position: absolute;
top: 30upx;
right: 50upx;
|
48e03f64
chenbiao
add
|
238
|
z-index: 2;
|
2d70f5ed
chenbiao
add gitignore
|
239
240
241
242
243
244
245
246
247
|
}
.settings {
width: 40upx;
height: 40upx;
}
.index-menu {
width: 100%;
|
48e03f64
chenbiao
add
|
248
|
height: 440upx;
|
2d70f5ed
chenbiao
add gitignore
|
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
|
margin-top: 160upx;
}
.flex-item {
width: 33.3%;
height: 200upx;
text-align: center;
}
.index-icon {
width: 48upx;
height: 48upx;
// border: 50%;
}
.index-title {
height: 80upx;
line-height: 80upx;
// width: 80upx;
}
</style>
|