Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
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 97e7a4f8
authored
Jul 03, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
f0f69e14
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
20 deletions
package-lock.json
package.json
packagesList/outDetail/components/OutputWork/index.js
packagesList/outDetail/components/OutputWork/index.wxml
packagesList/outDetail/components/activityOverview/activityOverview.js
packagesList/outDetail/components/activityOverview/activityOverview.scss
pages/tab/discovery/discovery.js
pages/tab/discovery/discovery.scss
pages/tab/discovery/discovery.wxml
package-lock.json
View file @
97e7a4f
...
@@ -10,9 +10,9 @@
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-swM4k3pVwt/6Tnijvq86paLiKE1CzbrBQ4lR7+9uRhwKOM0HS3ooK1Q4IjSEyxQ59ZFKmYYvZln77RZcnSDqmA=="
"integrity"
:
"sha512-swM4k3pVwt/6Tnijvq86paLiKE1CzbrBQ4lR7+9uRhwKOM0HS3ooK1Q4IjSEyxQ59ZFKmYYvZln77RZcnSDqmA=="
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.1.1
5
"
,
"version"
:
"1.1.1
6
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.1
5
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.1
6
.tgz"
,
"integrity"
:
"sha512-
9GD/zvrkTnsQ+sjfGE7BDZXqeLbW7/PBTHnK2PcBnnCAd5VFw9KNe3XdvS/HKZkDEZBFk013Su8sIOtDs0HraA
=="
"integrity"
:
"sha512-
XlBqP5ja4TqGB0nTW4dW6fdSQ9m/hAspbBKTJZ9CNUGVCKorkyjv/RfY85ta4OU5PiQCKTFZBbTELtz5MoxaVQ
=="
}
}
}
}
}
}
package.json
View file @
97e7a4f
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"dependencies"
:
{
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.7"
,
"@vant/weapp"
:
"^1.10.7"
,
"glsx-applet-component"
:
"^1.1.1
5
"
"glsx-applet-component"
:
"^1.1.1
6
"
},
},
"devDependencies"
:
{},
"devDependencies"
:
{},
"scripts"
:
{
"scripts"
:
{
...
...
packagesList/outDetail/components/OutputWork/index.js
View file @
97e7a4f
...
@@ -81,15 +81,15 @@ Component({
...
@@ -81,15 +81,15 @@ Component({
}],
}],
todayOutiqueOutputValue
:
[{
todayOutiqueOutputValue
:
[{
label
:
'发券量/张'
,
label
:
'发券量/张'
,
name
:
'sendCouponCountTo
day
'
,
name
:
'sendCouponCountTo
tal
'
,
unit
:
''
unit
:
''
},
{
},
{
label
:
'升级订单/单'
,
label
:
'升级订单/单'
,
name
:
'upgradeCountTo
day
'
,
name
:
'upgradeCountTo
tal
'
,
unit
:
''
unit
:
''
},
{
},
{
label
:
'营业额(总)/元'
,
label
:
'营业额(总)/元'
,
name
:
'orderMoneyTotal
Today
'
,
name
:
'orderMoneyTotal'
,
unit
:
''
unit
:
''
}],
}],
todayOutputValue
:
[{
todayOutputValue
:
[{
...
@@ -224,15 +224,21 @@ Component({
...
@@ -224,15 +224,21 @@ Component({
const
{
const
{
type
,
type
,
}
=
this
.
data
}
=
this
.
data
let
apiName
=
'boutiquecouponOutputValue'
console
.
log
(
type
)
let
apiName
=
'merchantsOutput'
let
params
=
{
let
params
=
{
merchantId
:
thisPage
.
data
.
merchantId
merchantId
s
:
[
thisPage
.
data
.
merchantId
]
}
}
if
([
2
].
includes
(
type
))
{
if
([
1
].
includes
(
type
))
{
apiName
=
'
merchantsOutput
'
apiName
=
'
boutiquecouponOutputValue
'
params
=
{
params
=
{
merchantId
s
:
[
thisPage
.
data
.
merchantId
]
merchantId
:
thisPage
.
data
.
merchantId
}
}
ActivityApi
.
boutiquecouponOutputValue
({
merchantId
:
thisPage
.
data
.
merchantId
,
startDate
:
new
Date
().
format
(
'yyyy-MM-dd'
),
endDate
:
new
Date
().
format
(
'yyyy-MM-dd'
)}).
then
(
res
=>
{
this
.
setData
({
outputTodayData
:
res
})
})
}
}
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
thisPage
.
setData
({
loading
:
false
})
thisPage
.
setData
({
loading
:
false
})
...
...
packagesList/outDetail/components/OutputWork/index.wxml
View file @
97e7a4f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<view class="output-title">当日新增</view>
<view class="output-title">当日新增</view>
<view class="output-value today">
<view class="output-value today">
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-num">{{
outputData[item.name]|| 0
}} </view>
<view class="output-num">{{
entranceType ==2?(outputData[item.name]|| 0):(outputTodayData[item.name]|| 0)
}} </view>
<view class="output-label">{{item.label}}</view>
<view class="output-label">{{item.label}}</view>
</view>
</view>
</view>
</view>
...
...
packagesList/outDetail/components/activityOverview/activityOverview.js
View file @
97e7a4f
...
@@ -76,7 +76,7 @@ Component({
...
@@ -76,7 +76,7 @@ Component({
},
},
// 价格格式化
// 价格格式化
priceFormat
(
num
,
point
=
2
)
{
priceFormat
(
num
,
point
=
2
)
{
let
numStr
=
(
num
/
100
).
toString
()
.
split
(
'.'
)[
0
]
let
numStr
=
(
num
/
100
).
toString
()
return
numStr
;
return
numStr
;
},
},
// priceFormat(num, point = 2) {
// priceFormat(num, point = 2) {
...
...
packagesList/outDetail/components/activityOverview/activityOverview.scss
View file @
97e7a4f
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
}
}
.number
{
.number
{
color
:
#2D2D33
;
color
:
#2D2D33
;
font-size
:
44
rpx
;
font-size
:
36
rpx
;
font-weight
:
600
;
font-weight
:
600
;
text
{
text
{
font-size
:
28rpx
;
font-size
:
28rpx
;
...
...
pages/tab/discovery/discovery.js
View file @
97e7a4f
...
@@ -20,7 +20,7 @@ Component({
...
@@ -20,7 +20,7 @@ Component({
},
},
behaviors
:
[
imgUrlMixin
],
behaviors
:
[
imgUrlMixin
],
data
:
{
data
:
{
navList
:
[
"增值服务"
,
"客户数字化"
],
//
navList: ["增值服务", "客户数字化"],
// myTabIdx: 0,
// myTabIdx: 0,
IMG_URL
,
IMG_URL
,
// subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
// subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
...
@@ -98,7 +98,12 @@ Component({
...
@@ -98,7 +98,12 @@ Component({
// 获取场景
// 获取场景
let
systemItem
=
this
.
data
.
systemData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
systemItem
=
this
.
data
.
systemData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
productItem
=
this
.
data
.
productData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
productItem
=
this
.
data
.
productData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
const
id
=
systemItem
?.
productList
[
0
].
id
||
productItem
?.
productList
[
0
].
id
let
id
=
''
if
(
systemItem
)
{
id
=
systemItem
.
subList
.
length
?
systemItem
.
subList
[
0
].
productList
[
0
]?.
id
:
systemItem
.
productList
[
0
].
id
}
else
{
id
=
productItem
.
subList
.
length
?
productItem
.
subList
[
0
].
productList
[
0
]?.
id
:
productItem
.
productList
[
0
].
id
}
if
(
!
id
)
return
if
(
!
id
)
return
wx
.
$router
.
go
(
'/packagesList/packageDiscovery/pages/productDetail/productDetail'
,
{
wx
.
$router
.
go
(
'/packagesList/packageDiscovery/pages/productDetail/productDetail'
,
{
hasPhoneNumber
,
hasPhoneNumber
,
...
@@ -161,7 +166,7 @@ Component({
...
@@ -161,7 +166,7 @@ Component({
systemDataId
:
res
[
1
].
id
,
systemDataId
:
res
[
1
].
id
,
productData
,
productData
,
productDataId
:
res
[
0
].
id
,
productDataId
:
res
[
0
].
id
,
})
})
})
})
},
},
emitUserInfo
(
options
)
{
emitUserInfo
(
options
)
{
...
...
pages/tab/discovery/discovery.scss
View file @
97e7a4f
...
@@ -61,7 +61,7 @@ page{
...
@@ -61,7 +61,7 @@ page{
}
}
.tab-item-active
{
.tab-item-active
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
3
6
rpx
;
font-size
:
3
4
rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
}
}
...
...
pages/tab/discovery/discovery.wxml
View file @
97e7a4f
<view class="container" style="padding-bottom: calc(100rpx + {{isFullSucreen ? '34' : 0}}px);">
<view class="container" style="padding-bottom: calc(100rpx + {{isFullSucreen ? '34' : 0}}px);">
<navigation-bar bindnavbarReady="navbarReady">
<navigation-bar bindnavbarReady="navbarReady">
<view class="my-tab">
<view class="my-tab">
<view wx:for="{{
navList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item
}}</view>
<view wx:for="{{
tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name
}}</view>
</view>
</view>
</navigation-bar>
</navigation-bar>
<view class="topBg" style="height:{{headerHeight}}px; background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/mine_center_bg.png?v=1.0.3')"></view>
<view class="topBg" style="height:{{headerHeight}}px; background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/mine_center_bg.png?v=1.0.3')"></view>
...
...
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