Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c3e2ffb0
authored
Oct 24, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享修改
1 parent
3ba6ca09
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
17 deletions
pages/checkProduct/checkProduct.js
pages/tab/discovery/components/product/product.scss
pages/tab/discovery/components/product/product.wxml
pages/tab/discovery/discovery.scss
pages/checkProduct/checkProduct.js
View file @
c3e2ffb
...
@@ -57,6 +57,12 @@ Page({
...
@@ -57,6 +57,12 @@ Page({
},
},
setRouteParams
(
obj
){
setRouteParams
(
obj
){
const
{
actNum
,
activeNavIdx
,
fromLocal
}
=
obj
const
{
actNum
,
activeNavIdx
,
fromLocal
}
=
obj
let
name
=
wx
.
$storage
.
get
(
'userInfo'
)
?
wx
.
$storage
.
get
(
'userInfo'
).
name
:
''
this
.
shareTitle
=
`
${
name
}
给你分享一个
${
senceData
[
actNum
].
productList
[
activeNavIdx
].
proName
}
~`
this
.
shareQuery
=
`actNum=
${
actNum
}
&activeNavIdx=
${
activeNavIdx
}
`
wx
.
setNavigationBarTitle
({
title
:
senceData
[
actNum
].
name
||
'特色产品'
})
this
.
setData
({
this
.
setData
({
actNum
,
actNum
,
activeNavIdx
,
activeNavIdx
,
...
@@ -177,12 +183,6 @@ Page({
...
@@ -177,12 +183,6 @@ Page({
wx
.
nextTick
(()
=>
{
wx
.
nextTick
(()
=>
{
let
{
actNum
,
activeNavIdx
,
scene
}
=
this
.
options
let
{
actNum
,
activeNavIdx
,
scene
}
=
this
.
options
// let name = wx.$storage.get('staff_name') || (wx.$storage.get('userInfo') ? wx.$storage.get('userInfo').name : '')
// let name = wx.$storage.get('staff_name') || (wx.$storage.get('userInfo') ? wx.$storage.get('userInfo').name : '')
let
name
=
wx
.
$storage
.
get
(
'userInfo'
)
?
wx
.
$storage
.
get
(
'userInfo'
).
name
:
''
this
.
shareTitle
=
`
${
name
}
给你分享一个
${
senceData
[
actNum
].
productList
[
activeNavIdx
].
proName
}
~`
this
.
shareQuery
=
`actNum=
${
actNum
}
&activeNavIdx=
${
activeNavIdx
}
`
wx
.
setNavigationBarTitle
({
title
:
senceData
[
actNum
].
name
||
'特色产品'
})
if
(
scene
){
if
(
scene
){
let
qrcodeQuery
=
decodeURIComponent
(
scene
)
let
qrcodeQuery
=
decodeURIComponent
(
scene
)
let
id
=
qrcodeQuery
.
split
(
'='
).
pop
()
let
id
=
qrcodeQuery
.
split
(
'='
).
pop
()
...
...
pages/tab/discovery/components/product/product.scss
View file @
c3e2ffb
...
@@ -153,7 +153,6 @@
...
@@ -153,7 +153,6 @@
}
}
.project-img
{
.project-img
{
height
:
1200rpx
;
white-space
:
nowrap
;
white-space
:
nowrap
;
.img-item
{
.img-item
{
...
@@ -305,8 +304,7 @@
...
@@ -305,8 +304,7 @@
}
}
.video-item
video
{
.video-item
video
{
width
:
100%
;
width
:
100%
;
height
:
588rpx
;
height
:
590rpx
;
border
:
1rpx
dashed
#AFB0B2
;
}
}
.video-item
:nth-child
(
even
)
{
.video-item
:nth-child
(
even
)
{
margin-left
:
22rpx
;
margin-left
:
22rpx
;
...
...
pages/tab/discovery/components/product/product.wxml
View file @
c3e2ffb
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">
<text style="font-size: 24rpx; margin-right: 4rpx;">¥</text>
{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</text>
</view>
</view>
...
...
pages/tab/discovery/discovery.scss
View file @
c3e2ffb
...
@@ -27,17 +27,19 @@ page{
...
@@ -27,17 +27,19 @@ page{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
top
:
900rpx
;
top
:
900rpx
;
width
:
80px
;
height
:
80px
;
border-radius
:
50%
;
z-index
:
1
;
}
.applyAct
{
top
:
750rpx
;
width
:
64px
;
width
:
64px
;
height
:
64px
;
height
:
64px
;
border-radius
:
50%
;
z-index
:
1
;
right
:
15rpx
;
right
:
15rpx
;
}
}
.chat
{
top
:
650rpx
;
width
:
80px
;
height
:
80px
;
right
:
0
;
}
/* 测算 */
/* 测算 */
.calculate
{
.calculate
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment