Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
73a4816e
Commit
73a4816e
authored
Oct 22, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'提交时间'
parent
1e0e0bd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
8 deletions
+42
-8
financing-details.vue
src/pages/financingTrial/financing-details.vue
+2
-2
product-detailed.vue
src/pages/productQuery/product-detailed.vue
+40
-6
No files found.
src/pages/financingTrial/financing-details.vue
View file @
73a4816e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip""/>User Settings Edit
* @Descrip""/>User Settings Edit
* @Author: your name
* @Author: your name
* @Date: 2019-09-29 20:31:00
* @Date: 2019-09-29 20:31:00
* @LastEditTime: 2019-10-22
09:08:31
* @LastEditTime: 2019-10-22
10:40:02
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -122,7 +122,7 @@ export default {
...
@@ -122,7 +122,7 @@ export default {
showTime
(
format
)
{
showTime
(
format
)
{
let
vm
=
this
let
vm
=
this
hlsPopup
.
showTime
({
hlsPopup
.
showTime
({
nowDate
:
new
Date
().
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
),
// return date.replace(/\//g, '-')
nowDate
:
(
new
Date
()).
format
(
'yyyy-MM-dd'
),
format
:
format
,
format
:
format
,
callback
:
(
date
)
=>
{
callback
:
(
date
)
=>
{
// alert(date)
// alert(date)
...
...
src/pages/productQuery/product-detailed.vue
View file @
73a4816e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Descrip: 产品明细
* @Descrip: 产品明细
* @Author: your name
* @Author: your name
* @Date: 2019-10-15 14:30:00
* @Date: 2019-10-15 14:30:00
* @LastEditTime: 2019-10-2
1 18:30:14
* @LastEditTime: 2019-10-2
2 10:28:25
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
...
@@ -94,11 +94,11 @@
...
@@ -94,11 +94,11 @@
</h-content>
</h-content>
<bottom-tab
class=
"footer-button"
>
<bottom-tab
class=
"footer-button"
>
<tab-button
:class=
"
{bgcolor: bgc_flag}" class="butt" @click.native="goTrial(baseInfo.plan_price,baseInfo.price_date_to)">
<img
src=
"@/assets/productQuery/trial.png"
alt=
""
>
试算
</tab-button>
<tab-button
:class=
"
{bgcolor: bgc_flag}" class="butt" @click.native="goTrial(baseInfo.plan_price,baseInfo.price_date_to)">
<img
src=
"@/assets/productQuery/trial.png"
alt=
""
>
试算
</tab-button>
<tab-button
class=
"collect butt"
@
click
.
native=
"collect"
><img
:src=
"src"
alt=
""
>
收藏
</tab-button>
<tab-button
class=
"collect butt"
@
click
.
native=
"collect"
><img
:src=
"src"
alt=
""
>
{{
text
}}
</tab-button>
</bottom-tab>
</bottom-tab>
<div
v-if=
"collect_flag"
class=
"show-collect"
>
<div
v-if=
"collect_flag"
class=
"show-collect"
>
<img
src=
"@/assets/productQuery/success.png"
alt=
""
>
<img
src=
"@/assets/productQuery/success.png"
alt=
""
>
<p>
收藏成功
</p>
<p>
{{
show_text
}}
</p>
</div>
</div>
</h-view>
</h-view>
</
template
>
</
template
>
...
@@ -112,10 +112,12 @@ export default {
...
@@ -112,10 +112,12 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
text
:
''
,
tabNum
:
0
,
tabNum
:
0
,
baseInfo
:
{},
baseInfo
:
{},
detailInfo
:
{}
,
show_text
:
''
,
confgInfo
:
{},
confgInfo
:
{},
detailInfo
:
{},
bgc_flag
:
true
,
bgc_flag
:
true
,
collect_flag
:
false
,
collect_flag
:
false
,
}
}
...
@@ -141,8 +143,10 @@ export default {
...
@@ -141,8 +143,10 @@ export default {
console
.
log
(
'collect........'
,
window
.
sessionStorage
.
getItem
(
'collect_status'
))
console
.
log
(
'collect........'
,
window
.
sessionStorage
.
getItem
(
'collect_status'
))
if
(
window
.
sessionStorage
.
getItem
(
'collect_status'
)
===
'Y'
)
{
if
(
window
.
sessionStorage
.
getItem
(
'collect_status'
)
===
'Y'
)
{
this
.
src
=
require
(
'@/assets/productQuery/coll-success.png'
)
this
.
src
=
require
(
'@/assets/productQuery/coll-success.png'
)
this
.
text
=
'取消收藏'
}
else
{
}
else
{
this
.
src
=
require
(
'@/assets/productQuery/collect.png'
)
this
.
src
=
require
(
'@/assets/productQuery/collect.png'
)
this
.
text
=
'收藏'
}
}
},
},
methods
:
methods
:
...
@@ -155,8 +159,37 @@ export default {
...
@@ -155,8 +159,37 @@ export default {
collect
()
{
collect
()
{
console
.
log
(
'collect'
,
window
.
sessionStorage
.
getItem
(
'collect_status'
))
console
.
log
(
'collect'
,
window
.
sessionStorage
.
getItem
(
'collect_status'
))
if
(
window
.
sessionStorage
.
getItem
(
'collect_status'
)
===
'Y'
)
{
if
(
window
.
sessionStorage
.
getItem
(
'collect_status'
)
===
'Y'
)
{
hlsPopup
.
showLongCenter
(
'该产品已收藏过,请勿重复收藏'
)
let
vm
=
this
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
'您确认取消收藏吗?'
,
onConfirm
:
data
=>
{
console
.
log
(
data
)
if
(
data
)
{
let
url
=
$config
.
basePath
+
'delete_collection'
let
param
=
{
master
:
{
product_id
:
vm
.
product_id
,
user_phone
:
window
.
localStorage
.
user_phone
,
},
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
console
.
log
(
'取消收藏。。。。。。。。'
,
res
)
if
(
res
.
result
===
'S'
)
{
vm
.
show_text
=
'取消成功'
vm
.
collect_flag
=
true
vm
.
src
=
require
(
'@/assets/productQuery/collect.png'
)
setTimeout
(()
=>
{
vm
.
text
=
'收藏'
vm
.
collect_flag
=
false
},
1500
)
}
})
}
},
})
}
else
{
}
else
{
this
.
show_text
=
'收藏成功'
this
.
collect_flag
=
true
this
.
collect_flag
=
true
console
.
log
(
this
.
collect_flag
)
console
.
log
(
this
.
collect_flag
)
let
vm
=
this
let
vm
=
this
...
@@ -172,6 +205,7 @@ export default {
...
@@ -172,6 +205,7 @@ export default {
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
src
=
require
(
'@/assets/productQuery/coll-success.png'
)
vm
.
src
=
require
(
'@/assets/productQuery/coll-success.png'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
vm
.
text
=
'取消收藏'
vm
.
collect_flag
=
false
vm
.
collect_flag
=
false
},
1500
)
},
1500
)
}
else
{
}
else
{
...
@@ -302,7 +336,7 @@ export default {
...
@@ -302,7 +336,7 @@ export default {
img {
img {
height: 19px;
height: 19px;
width: 19px;
width: 19px;
margin-top: 2px;
//
margin-top: 2px;
margin-right: 3px;
margin-right: 3px;
}
}
.collect {
.collect {
...
...
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