Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-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 5587dda0
authored
Oct 20, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并代码
1 parent
95ba0670
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
11 deletions
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/components/merchant/mrechant.wxml
pages/tab/output/components/nothingTipsCon/nothingTipsCon.js
pages/tab/output/components/nothingTipsCon/nothingTipsCon.scss
pages/tab/output/components/nothingTipsCon/nothingTipsCon.wxml
utils/request/environment.js
pages/tab/output/components/merchant/mrechant.js
View file @
5587dda
...
...
@@ -85,7 +85,7 @@ Component({
let
key
=
res
.
tapIndex
==
0
?
'monthTime'
:
'todayTime'
let
merchantId
=
list
[
index
][
'merchantId'
]
let
params
=
{
partnerMerchantId
:
'44209468'
,
// userInfo.merchantId
partnerMerchantId
:
userInfo
.
merchantId
,
// userInfo.merchantId
merchantIdList
:
[
merchantId
],
...
dataObj
[
key
]
}
...
...
@@ -129,12 +129,14 @@ Component({
let
{
current
}
=
this
.
data
// let { merchantId } = userInfo.subLoginUser
// console.log('merchantId', merchantId)
console
.
log
(
'test'
,
userInfo
.
merchantId
)
// 默认返回2前两条的具体数据 剩下需要自己手动查询
// console.log(outputApi.partnerMerchantTotal)
outputApi
.
partnerMerchantTotal
({
merchantId
:
'44209468'
})
.
partnerMerchantTotal
({
merchantId
:
userInfo
.
merchantId
})
.
then
(
result
=>
{
// console.log(result)
debugger
console
.
log
(
result
)
let
{
dataList
,
yqMerchantIds
}
=
result
const
list
=
yqMerchantIds
.
reduce
((
list
,
item
,
index
)
=>
{
...
...
@@ -224,7 +226,7 @@ Component({
},
swiperChange
(
e
)
{
console
.
log
(
e
)
let
{
list
}
=
this
.
data
let
{
list
,
userInfo
}
=
this
.
data
let
{
current
}
=
e
.
detail
this
.
setData
({
totalMoney
:
list
[
current
].
totalMoney
,
...
...
@@ -237,7 +239,7 @@ Component({
let
merchantId
=
list
[
current
+
1
][
'merchantId'
]
console
.
log
(
merchantId
)
let
params
=
{
partnerMerchantId
:
'44209468'
,
partnerMerchantId
:
userInfo
.
merchantId
,
merchantIdList
:
[
merchantId
]
}
// console.log()
...
...
pages/tab/output/components/merchant/mrechant.wxml
View file @
5587dda
<!-- pages/tab/output/components/merchant/mrechant.wxml -->
<!-- hidden="{{true}}" -->
<view class="con">
<view class="con"
wx:if="{{list.length }}"
>
<view class="statistics">
<view class="totalOutputValue box">
<view class="num">¥{{totalMoney}}</view>
...
...
@@ -117,5 +117,5 @@
查看订单详情
</navigator>
</view>
<nothingTipsCon wx:if="{{
noProduct
}}" />
<nothingTipsCon wx:if="{{
!list.length
}}" />
pages/tab/output/components/nothingTipsCon/nothingTipsCon.js
View file @
5587dda
...
...
@@ -16,5 +16,9 @@ Component({
/**
* 组件的方法列表
*/
methods
:
{}
methods
:
{
nav
()
{
wx
.
$router
.
go
(
'pages.index'
)
}
}
})
pages/tab/output/components/nothingTipsCon/nothingTipsCon.scss
View file @
5587dda
/* pages/tab/output/components/nothingTipsCon/nothingTipsCon.wxss */
.nothingCon
{
box-sizing
:
border-box
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
background-color
:
#fff
;
// justify-content: center;
align-items
:
center
;
padding-top
:
80rpx
;
.link
{
color
:
rgba
(
54
,
102
,
254
,
1
);
font-size
:
26rpx
;
}
}
.img
{
...
...
pages/tab/output/components/nothingTipsCon/nothingTipsCon.wxml
View file @
5587dda
...
...
@@ -6,8 +6,10 @@
webp
src="{{nothingBg}}"
alt="" />
暂未开通,去
<text>了解产品</text>
开通门店
<view>
暂未开通,去
<text class="link" bind:tap="nav">了解产品</text>
开通门店
</view>
</view>
utils/request/environment.js
View file @
5587dda
...
...
@@ -7,6 +7,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
3生产
*/
const
index
=
1
const
secretKey
=
{
ip
:
{},
dev
:
{
...
...
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