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 be9d0268
authored
Oct 20, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
代码更新
2 parents
363bb01f
42cf1d2b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
13 deletions
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
packageOutput/pages/summary/summary.js
pages/checkProduct/checkProduct.js
pages/tab/index/components/product/product.js
pages/tab/output/components/merchant/mrechant.js
utils/share.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
be9d026
...
...
@@ -78,7 +78,7 @@ Component({
methods
:
{
dealStaffList
()
{
var
list
=
this
.
data
.
orderObj
list
.
activityList
.
forEach
(
item
=>
{
list
&&
list
.
activityList
.
forEach
(
item
=>
{
item
.
showStaffList
=
item
.
staffList
.
length
>
10
?
item
.
staffList
.
slice
(
0
,
10
)
:
item
.
staffList
item
.
staffList
=
item
.
staffList
.
length
>
10
?
item
.
staffList
.
slice
(
10
)
:
[]
})
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
View file @
be9d026
...
...
@@ -4,7 +4,7 @@
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name]}}
{{orderObj[item.name]
|| 0
}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
...
...
packageOutput/pages/summary/summary.js
View file @
be9d026
...
...
@@ -93,7 +93,7 @@ Page({
this
.
setData
({
[
'searchForm.scene'
+
this
.
data
.
sceneActive
+
'Idx'
]:
res
.
tapIndex
})
this
.
getCustomerDetail
()
this
.
data
.
sceneActive
!=
4
?
this
.
getCustomerDetail
()
:
this
.
getActivityRevenue
()
console
.
log
(
'调接口---'
)
}
})
...
...
@@ -218,6 +218,7 @@ Page({
/** 查询场景4的产值 */
getActivityRevenue
()
{
wx
.
showLoading
()
var
params
=
this
.
dealSearchStatus
()
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
// console.log(res)
...
...
@@ -270,6 +271,8 @@ Page({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
actList
})
this
.
setCurActivity
()
}).
finally
(()
=>
{
wx
.
hideLoading
()
})
},
...
...
pages/checkProduct/checkProduct.js
View file @
be9d026
...
...
@@ -5,7 +5,6 @@ import { senceData } from "~/pages/tab/index/constant/data";
import
{
IMG_URL
}
from
"~/utils/constantData.js"
;
import
Draw
from
"~/utils/Draw.js"
;
import
{
createQrCodeApi
}
from
"~/api/checkProduct.js"
;
Page
({
/**
* 页面的初始数据
...
...
@@ -248,10 +247,16 @@ Page({
// 分享获取懂得用户数
authorizedFn(e) {
let res = e.detail;
this.setData({
isShare: res.isShare,
phone: res.phone,
});
this.onLoad(null)
wx.nextTick(()=>{
this.setData({
isShare: res.isShare,
// phone: res.phone,
});
})
},
/**
* 生命周期函数--监听页面加载 ()
...
...
pages/tab/index/components/product/product.js
View file @
be9d026
...
...
@@ -173,12 +173,12 @@ Component({
USERAPI
.
getUserProfile
(
this
.
loginToken
,
detail
)
.
then
((
result
)
=>
{
// console.log(result)
let
{
phone
}
=
result
;
//
let { phone } = result;
// let {
wx
.
$storage
.
set
(
"userPhone"
,
phone
);
wx
.
$storage
.
set
(
'wx_user_info'
,
result
);
// }
this
.
triggerEvent
(
"authorized"
,
{
phone
,
//
phone,
isShare
:
false
,
});
// this.
...
...
pages/tab/output/components/merchant/mrechant.js
View file @
be9d026
...
...
@@ -136,6 +136,7 @@ Component({
// debugger
// 默认返回2前两条的具体数据 剩下需要自己手动查询
// console.log(outputApi.partnerMerchantTotal)
<<<<<<<
HEAD
// 44211548
try
{
outputApi
...
...
@@ -143,6 +144,12 @@ Component({
.
then
(
result
=>
{
debugger
console
.
log
(
'result'
,
result
)
=======
outputApi
.
partnerMerchantTotal
({
merchantId
:
userInfo
.
merchantId
})
.
then
(
result
=>
{
console
.
log
(
result
)
>>>>>>>
42
cf1d2bd1a8f8485906f0034f063c6ccfeb1825
let
{
dataList
,
yqMerchantIds
}
=
result
const
list
=
yqMerchantIds
.
reduce
((
list
,
item
,
index
)
=>
{
...
...
utils/share.js
View file @
be9d026
...
...
@@ -96,7 +96,7 @@ class Share {
unionId
:
WXUSERINFO
.
unionId
||
''
,
nickName
:
WXUSERINFO
.
nickName
||
''
,
avatar
:
WXUSERINFO
.
avatarUrl
||
''
,
phone
:
USERINFO
.
phone
||
''
,
phone
:
WXUSERINFO
.
phone
||
USERINFO
.
phone
||
''
,
...
shareInfo
},
1
)
}
...
...
@@ -124,7 +124,7 @@ class Share {
WXUSERINFO
,
USERINFO
}
=
this
.
getCommonData
(),
thisPage
=
wx
.
$router
.
getPageInstance
()
thisPage
=
wx
.
$router
.
getPageInstance
()
.
options
reportData
({
openId
:
WXUSERINFO
.
openId
||
''
,
unionId
:
WXUSERINFO
.
unionId
||
''
,
...
...
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