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 770a604d
authored
Nov 01, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增页面刷新
1 parent
34682514
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
104 additions
and
31 deletions
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/components/merchant/mrechant.wxml
utils/request/environment.js
密码.txt
pages/tab/index/index.js
View file @
770a604
...
@@ -650,7 +650,8 @@ Page({
...
@@ -650,7 +650,8 @@ Page({
})
})
let
arrinx
=
arr
.
findIndex
(
e
=>
e
.
clueType
==
1
&&
e
.
starTag
==
0
)
let
arrinx
=
arr
.
findIndex
(
e
=>
e
.
clueType
==
1
&&
e
.
starTag
==
0
)
this
.
setData
({
this
.
setData
({
disLikeFlagIdx
:
arrinx
disLikeFlagIdx
:
arrinx
,
triggered
:
false
})
})
}
}
},
},
...
@@ -750,6 +751,19 @@ Page({
...
@@ -750,6 +751,19 @@ Page({
})
})
this
.
getPageApi
(
params
)
this
.
getPageApi
(
params
)
},
},
// 下拉刷新
refreshList
()
{
// console.log('onPullDownRefresh: ');
let
{
clueParams
}
=
this
.
data
this
.
getClueInit
(
clueParams
)
// this.resetCluelist()
// this.onLoad()
wx
.
pro
.
showToast
({
title
:
'刷新成功'
,
icon
:
'loading'
,
duration
:
1500
})
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
...
@@ -763,18 +777,7 @@ Page({
...
@@ -763,18 +777,7 @@ Page({
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
:
function
()
{
onPullDownRefresh
:
function
()
{},
// console.log('onPullDownRefresh: ');
let
{
clueParams
}
=
this
.
data
this
.
getClueInit
(
clueParams
)
// this.resetCluelist()
// this.onLoad()
wx
.
pro
.
showToast
({
title
:
'刷新成功'
,
icon
:
'loading'
,
duration
:
1500
})
},
/**
/**
* 用户点击右上角分享
* 用户点击右上角分享
...
...
pages/tab/index/index.wxml
View file @
770a604
...
@@ -69,11 +69,22 @@
...
@@ -69,11 +69,22 @@
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
bindtap="filterTypeFn">
bindtap="filterTypeFn">
{{item[item['selectIndex']] }}
{{item[item['selectIndex']] }}
<image webp class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
<image
webp
class="point"
wx:if="{{index != 3}}"
src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
</view>
</view>
</view>
</view>
<!-- bindscrolltolower="scrolltolowerFn" -->
<!-- bindscrolltolower="scrolltolowerFn" -->
<scroll-view scroll-y="true" class="list-wrap" >
<scroll-view
scroll-y="true"
class="list-wrap"
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<view class="list" hover-class="none" hover-stop-propagation="false">
<view class="list" hover-class="none" hover-stop-propagation="false">
<view class="msg" wx:for="{{clueList}}" wx:key="index">
<view class="msg" wx:for="{{clueList}}" wx:key="index">
<!-- 门店助手 -->
<!-- 门店助手 -->
...
@@ -81,7 +92,11 @@
...
@@ -81,7 +92,11 @@
<view class="name-wrap">
<view class="name-wrap">
<view class="name" hover-class="none" hover-stop-propagation="false">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
{{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/man.png" wx:if="{{item.clueType != 3}}" />
<image
webp
class="avatar"
src="{{IMG_URL}}index/man.png"
wx:if="{{item.clueType != 3}}" />
</view>
</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view>
</view>
...
@@ -99,7 +114,8 @@
...
@@ -99,7 +114,8 @@
class="action"
class="action"
selectable="false"
selectable="false"
space="false"
space="false"
decode="false">访问页面:
decode="false">
访问页面:
</view>
</view>
<view
<view
class="detail"
class="detail"
...
@@ -175,10 +191,14 @@
...
@@ -175,10 +191,14 @@
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}">
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}">
标记为意向客户
标记为意向客户
</view>
</view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}"></view
>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}" /
>
<view class="name" hover-class="none" hover-stop-propagation="false">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
{{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
<image
webp
class="avatar"
src="{{IMG_URL}}index/avatar.png"
wx:if="{{item.clueType != 3}}" />
</view>
</view>
<view class="line" hover-class="none" hover-stop-propagation="false" />
<view class="line" hover-class="none" hover-stop-propagation="false" />
<!-- {{item.getMoreFlag?'height':'auto'}} -->
<!-- {{item.getMoreFlag?'height':'auto'}} -->
...
@@ -262,7 +282,6 @@
...
@@ -262,7 +282,6 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
</view>
</view>
<!-- 收藏、取消提示框 -->
<!-- 收藏、取消提示框 -->
...
@@ -276,7 +295,11 @@
...
@@ -276,7 +295,11 @@
src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
</view>
</view>
<!-- 在线客服 -->
<!-- 在线客服 -->
<image webp class="chat" src="{{IMG_URL}}index/contact.png" bindtap="goConsult" />
<image
webp
class="chat"
src="{{IMG_URL}}index/contact.png"
bindtap="goConsult" />
<!-- 预估产值 -->
<!-- 预估产值 -->
<image
<image
webp
webp
...
...
pages/tab/output/components/merchant/mrechant.js
View file @
770a604
...
@@ -84,6 +84,38 @@ Component({
...
@@ -84,6 +84,38 @@ Component({
})
})
this
.
getTotalMerchantCount
()
this
.
getTotalMerchantCount
()
},
},
refreshList
()
{
console
.
log
(
'refreshList'
)
let
{
dataObj
,
userInfo
,
list
,
current
}
=
this
.
data
let
merchantId
=
list
[
current
][
'merchantId'
]
let
selectName
=
list
[
current
][
'selectName'
]
||
'累计'
const
itemList
=
[
'本月'
,
'本日'
,
'累计'
]
let
index
=
itemList
.
findIndex
(
item
=>
{
return
item
==
selectName
})
const
keyName
=
{
0
:
'monthTime'
,
1
:
'todayTime'
,
2
:
'defaultTime'
}
let
params
=
{
partnerMerchantId
:
userInfo
.
merchantId
,
// userInfo.merchantId
merchantIdList
:
[
merchantId
],
...
dataObj
[
keyName
[
index
]]
}
console
.
log
(
'params'
,
params
)
this
.
getMerchantById
(
params
)
.
then
(
result
=>
{
console
.
log
(
result
)
this
.
setData
({
triggered
:
false
})
wx
.
$api
.
showToast
(
'刷新成功'
)
that
.
setMerchantObj
(
current
,
result
,
itemList
[
res
.
tapIndex
],
item
)
})
.
catch
(
err
=>
{})
},
pickSheet
(
e
)
{
pickSheet
(
e
)
{
let
that
=
this
let
that
=
this
let
{
index
,
item
}
=
e
.
currentTarget
.
dataset
let
{
index
,
item
}
=
e
.
currentTarget
.
dataset
...
@@ -247,7 +279,7 @@ Component({
...
@@ -247,7 +279,7 @@ Component({
}
else
if
([
1
,
2
].
includes
(
sceneIdx
))
{
}
else
if
([
1
,
2
].
includes
(
sceneIdx
))
{
// console.log(item['diagnoseList'])
// console.log(item['diagnoseList'])
// item['showList'][index]['diagnoseList']
// item['showList'][index]['diagnoseList']
if
(
item
[
'showList'
][
sceneIdx
]
[
'diagnoseList'
]
)
{
if
(
item
[
'showList'
][
sceneIdx
]
?.
diagnoseList
)
{
swiperHeight
=
735
swiperHeight
=
735
}
else
{
}
else
{
swiperHeight
=
686
swiperHeight
=
686
...
@@ -286,7 +318,7 @@ Component({
...
@@ -286,7 +318,7 @@ Component({
console
.
log
(
item
)
console
.
log
(
item
)
item
=
item
[
0
]
item
=
item
[
0
]
let
obj
=
{}
let
obj
=
{}
obj
.
selectName
=
selectName
obj
.
selectName
=
selectName
||
oldItem
.
selectName
obj
.
totalMoney
=
item
?.
totalMoney
||
0
obj
.
totalMoney
=
item
?.
totalMoney
||
0
obj
.
totalOrder
=
item
?.
totalOrder
||
0
obj
.
totalOrder
=
item
?.
totalOrder
||
0
obj
.
merchantName
=
item
?.
merchantName
obj
.
merchantName
=
item
?.
merchantName
...
@@ -324,7 +356,7 @@ Component({
...
@@ -324,7 +356,7 @@ Component({
}
else
if
([
1
,
2
].
includes
(
list
[
current
].
startInd
))
{
}
else
if
([
1
,
2
].
includes
(
list
[
current
].
startInd
))
{
let
subscript
=
list
[
current
][
'startInd'
]
let
subscript
=
list
[
current
][
'startInd'
]
let
item
=
list
[
current
][
'showList'
]
let
item
=
list
[
current
][
'showList'
]
if
(
item
[
subscript
]
[
'diagnoseList'
]
)
{
if
(
item
[
subscript
]
?.
diagnoseList
)
{
swiperHeight
=
735
swiperHeight
=
735
}
else
{
}
else
{
swiperHeight
=
686
swiperHeight
=
686
...
@@ -337,7 +369,8 @@ Component({
...
@@ -337,7 +369,8 @@ Component({
totalMoney
:
list
[
current
].
totalMoney
||
0
,
totalMoney
:
list
[
current
].
totalMoney
||
0
,
totalOrder
:
list
[
current
].
totalOrder
||
0
,
totalOrder
:
list
[
current
].
totalOrder
||
0
,
sceneIndx
:
list
[
current
].
startInd
,
sceneIndx
:
list
[
current
].
startInd
,
swiperHeight
swiperHeight
,
current
})
})
// list[current].startInd == 0? ''
// list[current].startInd == 0? ''
...
...
pages/tab/output/components/merchant/mrechant.wxml
View file @
770a604
<!-- pages/tab/output/components/merchant/mrechant.wxml -->
<!-- pages/tab/output/components/merchant/mrechant.wxml -->
<!-- hidden="{{true}}" -->
<!-- hidden="{{true}}" -->
<view class="con" wx:if="{{list.length }}">
<scroll-view
scroll-y="true"
class="list-wrap"
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<view class="con" wx:if="{{list.length }}">
<view class="statistics">
<view class="statistics">
<view class="totalOutputValue box">
<view class="totalOutputValue box">
<view class="num">¥{{totalMoney}}</view>
<view class="num">¥{{totalMoney}}</view>
...
@@ -65,7 +73,9 @@
...
@@ -65,7 +73,9 @@
wx:for-item="funneItem">
wx:for-item="funneItem">
<view class="funneItem">
<view class="funneItem">
<view class="label">{{funneItem['label']}}</view>
<view class="label">{{funneItem['label']}}</view>
<view class="num">{{item.showList[item.startInd][funneItem['key']]||0}}</view>
<view class="num">
{{item.showList[item.startInd][funneItem['key']]||0}}
</view>
</view>
</view>
</block>
</block>
</view>
</view>
...
@@ -80,7 +90,9 @@
...
@@ -80,7 +90,9 @@
</view>
</view>
<view class="customerUnitPrice">
<view class="customerUnitPrice">
<image class="img " webp src="{{IMAGES.paper}}" />
<image class="img " webp src="{{IMAGES.paper}}" />
<view class="num">{{item.showList[item.startInd]['custUnitPrice']||0}}</view>
<view class="num">
{{item.showList[item.startInd]['custUnitPrice']||0}}
</view>
<view class="label">客单价/¥</view>
<view class="label">客单价/¥</view>
</view>
</view>
</view>
</view>
...
@@ -127,6 +139,7 @@
...
@@ -127,6 +139,7 @@
<image src="{{IMAGES.link}}" webp class="linkImg" />
<image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情
查看订单详情
</navigator>
</navigator>
</view>
</view>
</scroll-view>
<nothingTipsCon wx:if="{{!list.length }}" />
<nothingTipsCon wx:if="{{!list.length }}" />
utils/request/environment.js
View file @
770a604
...
@@ -16,7 +16,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -16,7 +16,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
2
let
index
=
3
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
@@ -25,7 +25,7 @@ let index = 2
...
@@ -25,7 +25,7 @@ let index = 2
// console.log( systemInfo.platform);
// console.log( systemInfo.platform);
// console.log(accountInfo.miniProgram.envVersion);
// console.log(accountInfo.miniProgram.envVersion);
// 对比一下appkey
// 对比一下appkey
console
.
log
();
//
console.log();
if
(
systemInfo
.
platform
!=
'devtools'
)
{
if
(
systemInfo
.
platform
!=
'devtools'
)
{
// 判断预发布的appid 是强制锁定为4(预发布的地址)
// 判断预发布的appid 是强制锁定为4(预发布的地址)
if
(
accountInfo
.
miniProgram
.
appId
==
'wx24ebae5768e74138'
)
{
if
(
accountInfo
.
miniProgram
.
appId
==
'wx24ebae5768e74138'
)
{
...
...
密码.txt
View file @
770a604
...
@@ -4,3 +4,4 @@ csysfws a123456
...
@@ -4,3 +4,4 @@ csysfws a123456
生意助手小程序--生意助手2号
生意助手小程序--生意助手2号
账号:ssfwsa a123456
账号:ssfwsa a123456
csyfbfws01/a123456
csyfbfws01/a123456
(线上)glcsxsfwsgc a123456
\ No newline at end of file
\ No newline at end of file
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