Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
cc3f53b8
Commit
cc3f53b8
authored
Jan 16, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6fcd69df
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
148 deletions
+110
-148
index.vue
pages/index/index.vue
+33
-30
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+77
-118
No files found.
pages/index/index.vue
View file @
cc3f53b8
...
...
@@ -105,7 +105,7 @@
<view
class=
"triangle-up"
:style=
"{ top: pagePaddingBottom }"
></view>
</view>
<coupon
v-if=
"showCoupons"
:coupon-message=
"couponMessage"
:cform=
"ComeFrom"
@
goLook=
"goLook"
@
closeBtn=
"closeBtn"
></coupon>
<
template
v-
show=
"setting&&
setting.is_show_auth==1"
>
<
template
v-
if=
"setting&&setting.is_show_auth&&
setting.is_show_auth==1"
>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
</
template
>
<!-- <official-account></official-account> -->
...
...
@@ -425,12 +425,14 @@
let
set
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
:
{};
this
.
setting
=
set
;
if
(
!
uni
.
getStorageSync
(
"add_top_app"
))
{
uni
.
setStorageSync
(
"add_top_app"
,
{
add_top_app_show
:
1
,
});
}
this
.
setting
=
set
;
this
.
add_show
=
uni
.
getStorageSync
(
"add_top_app"
)
?
uni
.
getStorageSync
(
"add_top_app"
).
add_top_app_show
:
1
;
...
...
@@ -537,34 +539,7 @@
},
methods
:
{
getunilogin
(
res
)
{
let
that
=
this
;
//静默登录操作
uni
.
login
({
provider
:
"weixin"
,
success
:
(
info
)
=>
{
let
obj
=
{
Name
:
res
.
userInfo
.
nickName
,
Photo
:
res
.
userInfo
.
avatarUrl
,
code
:
info
.
code
,
};
that
.
getCode
(
obj
);
},
fail
:
()
=>
{
uni
.
showToast
({
title
:
"微信登录授权失败"
,
icon
:
"none"
,
});
if
(
!
that
.
u
)
{
that
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
,
};
that
.
showAuth
=
true
;
}
},
});
},
//获取IsOpenReserve
getIsOpenReserve
()
{
this
.
request2
({
...
...
@@ -644,6 +619,34 @@
},
});
},
getunilogin
(
res
)
{
let
that
=
this
;
//静默登录操作
uni
.
login
({
provider
:
"weixin"
,
success
:
(
info
)
=>
{
let
obj
=
{
Name
:
res
.
userInfo
.
nickName
,
Photo
:
res
.
userInfo
.
avatarUrl
,
code
:
info
.
code
,
};
that
.
getCode
(
obj
);
},
fail
:
()
=>
{
uni
.
showToast
({
title
:
"微信登录授权失败"
,
icon
:
"none"
,
});
if
(
!
that
.
u
)
{
that
.
u
=
{
nickName
:
"未登录h"
,
avatarUrl
:
""
,
};
that
.
showAuth
=
true
;
}
},
});
},
//调用获取code
getCode
(
obj
)
{
var
that
=
this
;
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
cc3f53b8
This diff is collapsed.
Click to expand it.
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