Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文虎
account-book
Commits
6c3e6e99
Commit
6c3e6e99
authored
Aug 20, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常记账输入框高度
parent
3fe0e2b2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
17 deletions
+26
-17
.env.js
.env.js
+1
-1
billing-daily.vue
components/billing-daily/billing-daily.vue
+23
-5
manifest.json
manifest.json
+1
-6
login.vue
pages/login/login.vue
+1
-1
common.js
utils/common.js
+0
-1
request-1.js
utils/request-1.js
+0
-2
request.js
utils/request.js
+0
-1
No files found.
.env.js
View file @
6c3e6e99
;(
function
()
{
;(
function
()
{
let
NODE_ENV
=
'
prod
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
NODE_ENV
=
'
test
'
// dev:开发环境 | test:测试环境 | prod:生产环境
let
ENV_VAR
=
null
let
ENV_VAR
=
null
let
VERSION
=
'v1.0.15'
let
VERSION
=
'v1.0.15'
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
if
(
process
.
env
.
NODE_ENV
===
'development'
)
{
...
...
components/billing-daily/billing-daily.vue
View file @
6c3e6e99
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<image
:src=
"takePhotoIcon"
mode=
""
v-else
></image>
<image
:src=
"takePhotoIcon"
mode=
""
v-else
></image>
</view>
</view>
<view
class=
"billing-remark-input"
>
<view
class=
"billing-remark-input"
>
<input
<
u-
input
type=
"text"
type=
"text"
v-model=
"form.remark"
v-model=
"form.remark"
placeholder-style=
"color: #02A074;"
placeholder-style=
"color: #02A074;"
...
@@ -37,12 +37,15 @@
...
@@ -37,12 +37,15 @@
:clearable=
"false"
:clearable=
"false"
class=
"form-input"
class=
"form-input"
maxlength=
"200"
maxlength=
"200"
@
blur=
"leaveInput"
@
focus=
"getHeight"
:adjust-position=
"true"
/>
/>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 计算器 -->
<!-- 计算器 -->
<view
class=
"billing-calculator"
><ab-calculator
ref=
"ab-calculator"
@
change=
"calculatorChange"
@
sure=
"calculatorSure"
></ab-calculator></view>
<view
class=
"billing-calculator"
:style=
"
{'padding-bottom':Height+'px'}"
>
<ab-calculator
ref=
"ab-calculator"
@
change=
"calculatorChange"
@
sure=
"calculatorSure"
></ab-calculator></view>
<!-- 日历 -->
<!-- 日历 -->
<calendar-popup
:date=
"form.happenTime"
ref=
"calendar-popup"
@
confirm=
"calendarChange"
></calendar-popup>
<calendar-popup
:date=
"form.happenTime"
ref=
"calendar-popup"
@
confirm=
"calendarChange"
></calendar-popup>
<bottom-choose
ref=
"bottom-choose"
@
choose=
"bottomChoose"
></bottom-choose>
<bottom-choose
ref=
"bottom-choose"
@
choose=
"bottomChoose"
></bottom-choose>
...
@@ -131,7 +134,9 @@ export default {
...
@@ -131,7 +134,9 @@ export default {
}
}
],
],
notification
:
'update-payments-setting'
,
notification
:
'update-payments-setting'
,
sourceType
:
[
'camera'
,
'album'
]
sourceType
:
[
'camera'
,
'album'
],
keyBoardHeight
:
0
,
Height
:
0
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -147,7 +152,7 @@ export default {
...
@@ -147,7 +152,7 @@ export default {
init
()
{
init
()
{
this
.
form
.
happenTime
=
this
.
parseTime
(
new
Date
(),
'{y}-{m}-{d}'
);
this
.
form
.
happenTime
=
this
.
parseTime
(
new
Date
(),
'{y}-{m}-{d}'
);
this
.
form
.
type
=
this
.
billType
;
this
.
form
.
type
=
this
.
billType
;
console
.
log
(
"checkToken"
,
checkToken
())
console
.
log
(
'checkToken'
,
checkToken
());
if
(
checkToken
())
{
if
(
checkToken
())
{
this
.
getBillTypeOptions
();
this
.
getBillTypeOptions
();
this
.
getQiniuToken
();
this
.
getQiniuToken
();
...
@@ -156,6 +161,16 @@ export default {
...
@@ -156,6 +161,16 @@ export default {
this
.
$refs
[
'ab-calculator'
].
clearAll
();
this
.
$refs
[
'ab-calculator'
].
clearAll
();
}
}
},
},
//离开输入框触发
leaveInput
(
e
)
{
this
.
Height
=
0
;
//输入框失去焦点时让距离底部距离为 0
},
//点击输入框触发
getHeight
(
e
)
{
console
.
log
(
e
,
'我是获取输入法高度的'
);
// this.Height = e.target.height; //获取输入法的高度,动态设置输入框距离顶部距离。
this
.
Height
=
36
;
//获取输入法的高度,动态设置输入框距离顶部距离。
},
async
getBillTypeOptions
()
{
async
getBillTypeOptions
()
{
try
{
try
{
let
{
data
}
=
await
getBillTypes
({
type
:
this
.
form
.
type
});
let
{
data
}
=
await
getBillTypes
({
type
:
this
.
form
.
type
});
...
@@ -250,7 +265,7 @@ export default {
...
@@ -250,7 +265,7 @@ export default {
chooseLocation
()
{
chooseLocation
()
{
uni
.
chooseLocation
({
uni
.
chooseLocation
({
// #ifdef APP-PLUS
// #ifdef APP-PLUS
keyword
:
"1"
,
keyword
:
'1'
,
// #endif
// #endif
success
:
res
=>
{
success
:
res
=>
{
console
.
log
(
'位置名称:'
+
res
.
name
);
console
.
log
(
'位置名称:'
+
res
.
name
);
...
@@ -488,6 +503,7 @@ export default {
...
@@ -488,6 +503,7 @@ export default {
}
}
&
-calculator
{
&
-calculator
{
margin-top
:
-10upx
;
margin-top
:
-10upx
;
background-color
:
#f6f7fa
;
}
}
&
-remark
{
&
-remark
{
display
:
flex
;
display
:
flex
;
...
@@ -524,6 +540,8 @@ export default {
...
@@ -524,6 +540,8 @@ export default {
}
}
.form-input
{
.form-input
{
width
:
100%
;
width
:
100%
;
height
:
72rpx
;
line-height
:
72rpx
;
}
}
}
}
}
}
...
...
manifest.json
View file @
6c3e6e99
...
@@ -96,12 +96,7 @@
...
@@ -96,12 +96,7 @@
"UniversalLinks"
:
""
"UniversalLinks"
:
""
}
}
},
},
"maps"
:
{
"maps"
:
{},
"baidu"
:
{
"appkey_ios"
:
"dFMUnxGBq8mB8CSotGMELp4EGUq9qlwo"
,
"appkey_android"
:
"32HwrFwjGUFno8GddnqSZtP72sDFucG1"
}
},
"geolocation"
:
{
"geolocation"
:
{
"baidu"
:
{
"baidu"
:
{
"__platform__"
:
[
"android"
],
"__platform__"
:
[
"android"
],
...
...
pages/login/login.vue
View file @
6c3e6e99
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<text>
{{
platform
==
'2'
||
platform
==
'3'
?
'授权登录'
:
'微信登录'
}}
</text>
<text>
{{
platform
==
'2'
||
platform
==
'3'
?
'授权登录'
:
'微信登录'
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"cancel-button"
><text
@
click
.
stop=
"toPhoneLogin"
>
手机验证码登录
</text></view>
<view
class=
"cancel-button"
v-if=
"platform === '4'"
><text
@
click
.
stop=
"toPhoneLogin"
>
手机验证码登录
</text></view>
<!--
<view
class=
"other-login"
>
<!--
<view
class=
"other-login"
>
<u-divider>
其他登录方式
</u-divider>
<u-divider>
其他登录方式
</u-divider>
<view
class=
"other-login-item"
>
<view
class=
"other-login-item"
>
...
...
utils/common.js
View file @
6c3e6e99
...
@@ -38,7 +38,6 @@ export function setTimetamp(date) {
...
@@ -38,7 +38,6 @@ export function setTimetamp(date) {
let
time
=
new
Date
().
getTime
()
let
time
=
new
Date
().
getTime
()
if
(
date
)
{
if
(
date
)
{
time
=
getTime
(
date
)
time
=
getTime
(
date
)
console
.
log
(
"setTimetamp"
,
time
)
}
}
uni
.
setStorageSync
(
TIMETAMP
,
time
);
uni
.
setStorageSync
(
TIMETAMP
,
time
);
}
}
...
...
utils/request-1.js
View file @
6c3e6e99
...
@@ -11,7 +11,6 @@ import {
...
@@ -11,7 +11,6 @@ import {
checkToken
,
checkToken
,
getUserinfo
,
getUserinfo
,
removeUserinfo
,
removeUserinfo
,
setTimetamp
,
removeTimetamp
,
removeTimetamp
,
showToast
showToast
}
from
"./common.js"
}
from
"./common.js"
...
@@ -68,7 +67,6 @@ function request({
...
@@ -68,7 +67,6 @@ function request({
responseType
,
responseType
,
success
:
res
=>
{
success
:
res
=>
{
// 重置时间戳
// 重置时间戳
// setTimetamp()
if
(
res
.
data
.
code
===
0
)
{
if
(
res
.
data
.
code
===
0
)
{
if
(
!
noLoading
)
{
if
(
!
noLoading
)
{
...
...
utils/request.js
View file @
6c3e6e99
...
@@ -13,7 +13,6 @@ import {
...
@@ -13,7 +13,6 @@ import {
checkToken
,
checkToken
,
getUserinfo
,
getUserinfo
,
removeUserinfo
,
removeUserinfo
,
setTimetamp
,
getTimetamp
,
getTimetamp
,
removeTimetamp
,
removeTimetamp
,
checkCodeTimetamp
,
checkCodeTimetamp
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment