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
3e2f2341
Commit
3e2f2341
authored
Jun 26, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消直接跳转赞羊
parent
a41321f8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
37 deletions
+7
-37
index.vue
components/auth/index.vue
+4
-17
index.vue
pages/index/index.vue
+1
-15
bind_Customer.vue
pages/jiuzhai/bind_Customer.vue
+2
-4
points.vue
pages/user-center/points.vue
+0
-1
No files found.
components/auth/index.vue
View file @
3e2f2341
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
import
coupon
from
"@/components/coupons/coupons"
;
import
coupon
from
"@/components/coupons/coupons"
;
export
default
{
export
default
{
props
:[
'zanYang'
],
components
:
{
components
:
{
coupon
,
coupon
,
},
},
...
@@ -299,26 +298,14 @@
...
@@ -299,26 +298,14 @@
that
.
$emit
(
"changeuserinfo"
);
that
.
$emit
(
"changeuserinfo"
);
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
uni
.
setStorageSync
(
"lastLogin"
,
new
Date
().
getTime
())
}
else
{
}
else
{
if
(
this
.
zanYang
){
uni
.
redirectTo
({
url
:
`/pages/jiuzhai/bind_Customer?zanYang=
${
this
.
zanYang
}
`
})
}
else
{
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
'/pages/jiuzhai/bind_Customer'
url
:
'/pages/jiuzhai/bind_Customer'
})
})
}
}
}
},
(
error2
)
=>
{
},
(
error2
)
=>
{
if
(
this
.
zanYang
){
uni
.
redirectTo
({
url
:
`/pages/jiuzhai/bind_Customer?zanYang=
${
this
.
zanYang
}
`
})
}
else
{
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
'/pages/jiuzhai/bind_Customer'
url
:
'/pages/jiuzhai/bind_Customer'
})
})
}
});
});
},
},
updateuserinfo
(
msg
)
{
updateuserinfo
(
msg
)
{
...
...
pages/index/index.vue
View file @
3e2f2341
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</template>
</template>
<coupon
v-if=
"showCoupons"
:coupon-message=
"couponMessage"
:cform=
"ComeFrom"
<coupon
v-if=
"showCoupons"
:coupon-message=
"couponMessage"
:cform=
"ComeFrom"
@
goLook=
"()=>showCoupons = false"
@
closeBtn=
"()=>showCoupons = false"
></coupon>
@
goLook=
"()=>showCoupons = false"
@
closeBtn=
"()=>showCoupons = false"
></coupon>
<auth
v-if=
"showAuth&&is_show_auth"
:zanYang=
"zanYang"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<auth
v-if=
"showAuth&&is_show_auth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
<official-account></official-account>
<official-account></official-account>
</view>
</view>
</view>
</view>
...
@@ -123,7 +123,6 @@
...
@@ -123,7 +123,6 @@
isNavPosition
:
0
,
isNavPosition
:
0
,
scrollTop
:
0
,
scrollTop
:
0
,
is_show_auth
:
0
,
is_show_auth
:
0
,
zanYang
:
0
};
};
},
},
components
:
{
components
:
{
...
@@ -178,10 +177,6 @@
...
@@ -178,10 +177,6 @@
this
.
showCoupons
=
true
;
this
.
showCoupons
=
true
;
this
.
couponMessage
=
uni
.
getStorageSync
(
'coupons'
);
this
.
couponMessage
=
uni
.
getStorageSync
(
'coupons'
);
}
}
if
(
options
.
zanYang
)
{
this
.
zanYang
=
options
.
zanYang
}
},
},
mounted
()
{
mounted
()
{
const
that
=
this
const
that
=
this
...
@@ -236,12 +231,6 @@
...
@@ -236,12 +231,6 @@
const
bu
=
uni
.
getStorageSync
(
'b2b_user'
)
const
bu
=
uni
.
getStorageSync
(
'b2b_user'
)
if
(
!
mu
||
!
bu
)
this
.
showAuth
=
true
if
(
!
mu
||
!
bu
)
this
.
showAuth
=
true
else
{
if
(
this
.
zanYang
){
this
.
$utils
.
goZanYangUrl
()
}
}
},
},
methods
:
{
methods
:
{
...
@@ -380,9 +369,6 @@
...
@@ -380,9 +369,6 @@
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
removeStorageSync
(
"LoginState"
)
uni
.
removeStorageSync
(
"LoginState"
)
},
1000
);
},
1000
);
if
(
this
.
zanYang
){
this
.
$utils
.
goZanYangUrl
()
}
},
},
gbAuth
()
{
gbAuth
()
{
this
.
showAuth
=
false
;
this
.
showAuth
=
false
;
...
...
pages/jiuzhai/bind_Customer.vue
View file @
3e2f2341
...
@@ -42,7 +42,6 @@
...
@@ -42,7 +42,6 @@
createBy
:
0
,
createBy
:
0
,
},
},
ShareLoginstatus
:
false
,
ShareLoginstatus
:
false
,
zanYang
:
0
,
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
@@ -59,7 +58,6 @@
...
@@ -59,7 +58,6 @@
}
}
})
})
}
}
if
(
option
.
zanYang
)
this
.
zanYang
=
option
.
zanYang
},
},
mounted
()
{
mounted
()
{
...
@@ -150,13 +148,13 @@
...
@@ -150,13 +148,13 @@
uni
.
setStorageSync
(
'coupons'
,[{
Name
:
tempData
.
CouponsName
,
Num
:
1
}])
uni
.
setStorageSync
(
'coupons'
,[{
Name
:
tempData
.
CouponsName
,
Num
:
1
}])
}
}
let
newUrl
=
this
.
zanYang
?
`/pages/index/index?zanYang=
${
this
.
zanYang
}
`
:
'/pages/index/index'
;
let
newUrl
=
'/pages/index/index'
;
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
newUrl
url
:
newUrl
})
})
}
else
{
}
else
{
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
this
.
zanYang
?
`/pages/index/index?zanYang=
${
this
.
zanYang
}
`
:
'/pages/index/index'
url
:
'/pages/index/index'
})
})
}
}
}
else
{
}
else
{
...
...
pages/user-center/points.vue
View file @
3e2f2341
...
@@ -240,7 +240,6 @@
...
@@ -240,7 +240,6 @@
methods
:
{
methods
:
{
goExchange
(){
goExchange
(){
this
.
$utils
.
goZanYangUrl
()
this
.
$utils
.
goZanYangUrl
()
console
.
log
(
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
,
'积分商场'
)
// uni.navigateToMiniProgram({
// uni.navigateToMiniProgram({
// appId: 'wxacd9f8cc3480d29e',
// appId: 'wxacd9f8cc3480d29e',
// path: `pages/index/index?jzTravelOpenId=${uni.getStorageSync('mall_UserInfo').OpenId}`, // 目标页面路径(可选)
// path: `pages/index/index?jzTravelOpenId=${uni.getStorageSync('mall_UserInfo').OpenId}`, // 目标页面路径(可选)
...
...
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