Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
cauchy-ui
Commits
3903cd87
Commit
3903cd87
authored
Aug 17, 2021
by
FE-安焕焕
👣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'link' into 'master'
fix(回首页): 修改首页的地址 See merge request
!8
parents
a0ea3f12
7e9b19c4
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
9 deletions
+22
-9
routes.js
src/router/routes.js
+1
-1
module.js
src/store/module.js
+10
-0
RechargeList.vue
src/views/home/components/RechargeList.vue
+3
-2
RechargeTop.vue
src/views/home/components/RechargeTop.vue
+1
-0
index.vue
src/views/home/index.vue
+2
-2
index.vue
src/views/orderDetail/index.vue
+2
-1
index.vue
src/views/orderList/index.vue
+1
-1
extends.js
src/views/pay/extends.js
+1
-1
index.vue
src/views/vipLife/index.vue
+1
-1
No files found.
src/router/routes.js
View file @
3903cd87
export
default
[
export
default
[
{
{
path
:
'
/
'
,
path
:
'
/
'
,
redirect
:
'
/
hom
e
'
redirect
:
'
/
vipLif
e
'
},
},
{
{
path
:
'
/home
'
,
path
:
'
/home
'
,
...
...
src/store/module.js
View file @
3903cd87
...
@@ -41,6 +41,16 @@ const mutations = {
...
@@ -41,6 +41,16 @@ const mutations = {
state
.
title
=
title
;
state
.
title
=
title
;
}
}
document
.
title
=
state
.
title
;
document
.
title
=
state
.
title
;
// 如果是 iOS 设备,则使用如下 hack 的写法实现页面标题的更新
if
(
/ip
(
hone|od|ad
)
/i
.
test
(
navigator
.
userAgent
.
toLowerCase
()))
{
const
hackIframe
=
document
.
createElement
(
'
iframe
'
);
hackIframe
.
style
.
display
=
'
none
'
;
hackIframe
.
src
=
'
/public/fixIosTitle.html?r=
'
+
Math
.
random
();
document
.
body
.
appendChild
(
hackIframe
);
setTimeout
(()
=>
{
document
.
body
.
removeChild
(
hackIframe
);
},
300
);
}
},
},
[
types
.
CHANGE_META
](
state
,
meta
)
{
[
types
.
CHANGE_META
](
state
,
meta
)
{
for
(
let
i
in
meta
)
{
for
(
let
i
in
meta
)
{
...
...
src/views/home/components/RechargeList.vue
View file @
3903cd87
...
@@ -64,10 +64,11 @@ export default {
...
@@ -64,10 +64,11 @@ export default {
this
.
phoneRecharge
[
`
${
name
}
Type`
]
this
.
phoneRecharge
[
`
${
name
}
Type`
]
);
);
this
.
$emit
(
'
changeRechargetype
'
,
name
);
this
.
$emit
(
'
changeRechargetype
'
,
name
);
this
.
rechargeList
[
name
]
=
[...
data
?.
rechargeList
]
||
[];
const
rechargeList
=
data
?.
rechargeList
||
[];
this
.
rechargeList
[
name
]
=
[...
rechargeList
]
||
[];
this
.
selectedRechargeInfo
=
this
.
rechargeList
[
name
][
0
];
this
.
selectedRechargeInfo
=
this
.
rechargeList
[
name
][
0
];
this
.
rechargeList
[
name
].
forEach
(
element
=>
{
this
.
rechargeList
[
name
].
forEach
(
element
=>
{
if
(
element
.
salePrice
===
'
100.00
'
)
{
if
(
element
?
.
salePrice
===
'
100.00
'
)
{
this
.
selectedRechargeInfo
=
{
...
element
};
this
.
selectedRechargeInfo
=
{
...
element
};
}
}
});
});
...
...
src/views/home/components/RechargeTop.vue
View file @
3903cd87
...
@@ -70,6 +70,7 @@ export default {
...
@@ -70,6 +70,7 @@ export default {
},
},
async
goOrderList
(
type
)
{
async
goOrderList
(
type
)
{
if
(
type
===
'
cs
'
)
{
if
(
type
===
'
cs
'
)
{
this
.
$store
.
commit
(
'
CHANGE_TITLE
'
,
'
客服中心
'
);
// 改变title
window
.
location
.
href
=
window
.
location
.
href
=
'
https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html
'
;
'
https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html
'
;
return
;
return
;
...
...
src/views/home/index.vue
View file @
3903cd87
...
@@ -57,7 +57,7 @@ export default {
...
@@ -57,7 +57,7 @@ export default {
return
(
return
(
this
.
rechargePhoneInfo
.
phoneNo
&&
this
.
rechargePhoneInfo
.
phoneNo
&&
checkPhoneFormat
(
this
.
rechargePhoneInfo
.
phoneNo
)
&&
checkPhoneFormat
(
this
.
rechargePhoneInfo
.
phoneNo
)
&&
this
.
selectedRechargeInfo
.
salePrice
this
.
selectedRechargeInfo
?
.
salePrice
);
);
}
}
}
,
}
,
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
}
,
}
,
methods
:
{
methods
:
{
throttle
,
throttle
,
selectedRecharge
({
rechargeInfo
}
)
{
selectedRecharge
({
rechargeInfo
=
{
}
}
)
{
this
.
selectedRechargeInfo
=
rechargeInfo
;
this
.
selectedRechargeInfo
=
rechargeInfo
;
}
,
}
,
async
goOrderApi
()
{
async
goOrderApi
()
{
...
...
src/views/orderDetail/index.vue
View file @
3903cd87
...
@@ -189,6 +189,7 @@ export default {
...
@@ -189,6 +189,7 @@ export default {
this
.
orderInfo
=
res
;
this
.
orderInfo
=
res
;
},
},
contractCS
()
{
contractCS
()
{
this
.
$store
.
commit
(
'
CHANGE_TITLE
'
,
'
客服中心
'
);
// 改变title
window
.
location
.
href
=
window
.
location
.
href
=
'
https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html
'
;
'
https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html
'
;
},
},
...
@@ -220,7 +221,7 @@ export default {
...
@@ -220,7 +221,7 @@ export default {
},
},
toGoods
()
{
toGoods
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
this
.
isKeyChange
?
'
/vipLife
'
:
'
/hom
e
'
path
:
'
/vipLif
e
'
});
});
},
},
orderNotify
()
{
orderNotify
()
{
...
...
src/views/orderList/index.vue
View file @
3903cd87
...
@@ -113,7 +113,7 @@ export default {
...
@@ -113,7 +113,7 @@ export default {
},
},
toGoods
()
{
toGoods
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
this
.
isKeyChange
?
'
/vipLife
'
:
'
/hom
e
'
path
:
'
/vipLif
e
'
});
});
},
},
orderNotify
()
{
orderNotify
()
{
...
...
src/views/pay/extends.js
View file @
3903cd87
...
@@ -15,7 +15,7 @@ export const goUrlExtends = {
...
@@ -15,7 +15,7 @@ export const goUrlExtends = {
window
.
location
.
replace
(
`
${
returnUrl
}
`
);
window
.
location
.
replace
(
`
${
returnUrl
}
`
);
return
;
return
;
}
}
this
.
$router
.
replace
({
name
:
'
hom
e
'
});
this
.
$router
.
replace
({
name
:
'
vipLif
e
'
});
},
500
);
},
500
);
},
},
goOrderList
(
payStatus
)
{
goOrderList
(
payStatus
)
{
...
...
src/views/vipLife/index.vue
View file @
3903cd87
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
currentTab
=
+
this
.
$route
.
query
.
spuType
||
0
;
this
.
currentTab
=
+
this
.
$route
.
query
.
spuType
||
1
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
getList
();
this
.
getList
();
});
});
...
...
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