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
f95a8002
Commit
f95a8002
authored
Jul 25, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页cell跳转
parent
84df2036
Pipeline
#2927
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
index.vue
pages/index/index.vue
+16
-17
No files found.
pages/index/index.vue
View file @
f95a8002
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<!--
<view
class=
"weather-icon-view"
>
<!--
<view
class=
"weather-icon-view"
>
<image
:src=
"weather.icon"
></image>
<image
:src=
"weather.icon"
></image>
</view>
-->
</view>
-->
<view
class=
"weather-text"
>
{{
weather
.
weather
}}
</view>
<view
class=
"weather-text"
>
{{
weather
.
weather
}}
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
<view>
{{
weather
.
temp
}}
℃
</view>
</view>
</view>
</view>
</view>
...
@@ -138,7 +138,7 @@
...
@@ -138,7 +138,7 @@
@
confirm=
"handleComfirmDate"
@
confirm=
"handleComfirmDate"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
bottomTip=
"※ 体验会员,仅非会员用户领取,每个ID限领1次"
></u-picker>
></u-picker>
<PopNormal
:visible
.
sync=
"visible"
:isShare=
"true"
/>
<PopNormal
:visible
.
sync=
"visible"
:isShare=
"true"
/>
<u-toast
ref=
"uToast"
/>
<u-toast
ref=
"uToast"
/>
<mid-popup
ref=
"midPopup"
></mid-popup>
<mid-popup
ref=
"midPopup"
></mid-popup>
<u-tabbar
<u-tabbar
...
@@ -160,8 +160,8 @@ import BillList from '@/components/bill-list'
...
@@ -160,8 +160,8 @@ import BillList from '@/components/bill-list'
import
PopNormal
from
'@/components/pop-normal'
import
PopNormal
from
'@/components/pop-normal'
import
{
tabbar
}
from
'@/utils/settings.js'
import
{
tabbar
}
from
'@/utils/settings.js'
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
import
{
getWeather
,
bookRecord
,
monthRecord
}
from
'@/api/maintain/index.js'
import
{
checkVip
}
from
"@/utils/common.js"
import
{
checkVip
}
from
'@/utils/common.js'
import
{
mapGetters
}
from
'vuex'
;
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
components
:
{
components
:
{
MidPopup
,
MidPopup
,
...
@@ -181,12 +181,11 @@ export default {
...
@@ -181,12 +181,11 @@ export default {
income
:
'-'
,
income
:
'-'
,
expense
:
'-'
,
expense
:
'-'
,
},
},
list
:
[
list
:
[],
],
}
}
},
},
computed
:
{
computed
:
{
...
mapGetters
([
'userInfo'
]),
...
mapGetters
([
'userInfo'
]),
baseUrl
()
{
baseUrl
()
{
return
process
.
uniEnv
.
qn_base_url
return
process
.
uniEnv
.
qn_base_url
},
},
...
@@ -268,19 +267,17 @@ export default {
...
@@ -268,19 +267,17 @@ export default {
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
q
)
{
if
(
options
.
q
)
{
const
q
=
decodeURIComponent
(
options
.
q
)
// 获取到二维码原始链接内容
const
q
=
decodeURIComponent
(
options
.
q
)
// 获取到二维码原始链接内容
console
.
log
(
q
)
console
.
log
(
q
)
}
}
},
},
onShow
()
{
onShow
()
{
console
.
log
(
'----------------'
)
console
.
log
(
'----------------'
)
this
.
userInfo
this
.
getWeather
()
this
.
getWeather
()
this
.
monthRecord
()
this
.
monthRecord
()
this
.
bookRecord
()
this
.
bookRecord
()
},
},
onReady
()
{
onReady
()
{},
},
methods
:
{
methods
:
{
getWeather
()
{
getWeather
()
{
uni
.
getLocation
({
uni
.
getLocation
({
...
@@ -326,8 +323,7 @@ export default {
...
@@ -326,8 +323,7 @@ export default {
}
}
}
}
})
})
.
catch
((
res
)
=>
{
.
catch
((
res
)
=>
{})
})
},
},
bookRecord
()
{
bookRecord
()
{
bookRecord
({}).
then
((
res
)
=>
{
bookRecord
({}).
then
((
res
)
=>
{
...
@@ -350,11 +346,14 @@ export default {
...
@@ -350,11 +346,14 @@ export default {
},
},
handleSelectCell
(
id
)
{
handleSelectCell
(
id
)
{
console
.
log
(
'-----------'
,
id
)
console
.
log
(
'-----------'
,
id
)
uni
.
navigateTo
({
url
:
`/pages/bill/bill-detail/bill-detail?id=
${
id
}
`
,
})
},
},
checkVip
()
{
checkVip
()
{
// 测试数据
// 测试数据
return
true
return
true
if
(
checkVip
())
{
if
(
checkVip
())
{
return
true
return
true
}
else
{
}
else
{
...
@@ -382,7 +381,7 @@ export default {
...
@@ -382,7 +381,7 @@ export default {
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
imageUrl
:
this
.
shareImage
imageUrl
:
this
.
shareImage
,
}
}
},
},
// 好友
// 好友
...
@@ -390,7 +389,7 @@ export default {
...
@@ -390,7 +389,7 @@ export default {
return
{
return
{
title
:
'扳手记账'
,
title
:
'扳手记账'
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
path
:
`/pages/index/index?shareUserId=
${
this
.
userInfo
.
id
}
`
,
imageUrl
:
this
.
shareImage
imageUrl
:
this
.
shareImage
,
}
}
},
},
},
},
...
...
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