Commit d2517509 by 张立顺

Merge branch 'dev_v4.22.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into dev_v4.22.0
2 parents 9944ac7b 9739762f
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/side_mine_icon.png"></image></view> <view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/side_mine_icon.png"></image></view>
<view class="label">个人中心</view> <view class="label">个人中心</view>
</view> </view>
<view class="right_icon">></view> <view class="right_icon"></view>
</view> </view>
</view> </view>
</van-popup> </van-popup>
...@@ -43,15 +43,24 @@ ...@@ -43,15 +43,24 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin: 0 -16rpx; margin: 0 -16rpx;
padding: 24rpx 16rpx; padding: 8rpx 32rpx 8rpx 16rpx;
background: #2C3255; background: #2C3255;
} }
.wrapper .mine .img{
width: 96rpx;
height: 96rpx;
}
.wrapper .mine .flex_box{ .wrapper .mine .flex_box{
display: flex; display: flex;
align-items: center; align-items: center;
} }
.right_icon{ .wrapper .mine .right_icon{
font-size: 36rpx; width: 12rpx;
color: #AEB2C2; height: 12rpx;
background-color: transparent; /* 模块背景为透明 */
border-color: #AEB2C2;
border-style: solid;
border-width: 4rpx 4rpx 0 0;
transform: rotate(45deg);
} }
\ No newline at end of file \ No newline at end of file
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
} }
.order_no_box{ .order_no_box{
height: calc(100% - 100rpx); height: calc(100% - 120rpx);
padding-top: 20rpx; padding: 20rpx 0;
} }
.order_no_item{ .order_no_item{
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
.order_no_item:first-child{ .order_no_item:first-child{
margin-top: 0; margin-top: 0;
} }
.order_no_item:last-child{
margin-bottom: 20rpx;
}
.message{ .message{
display: flex; display: flex;
......
...@@ -39,13 +39,14 @@ Component({ ...@@ -39,13 +39,14 @@ Component({
btnTxt: { btnTxt: {
0: '去支付', 0: '去支付',
1: '去退款', 1: '去退款',
3: '去退款' 4: '去退款'
}, },
orderStatusObj: { orderStatusObj: {
0: '待支付', 0: '待支付',
1: '已支付', 1: '已支付',
2: '已退款', 2: '已退款',
3: '退定金' 3: '预支付',
4: '退定金'
}, },
orderStatusList: [ orderStatusList: [
{ {
...@@ -210,7 +211,7 @@ Component({ ...@@ -210,7 +211,7 @@ Component({
list.forEach(val => { list.forEach(val => {
val.payedDateStr = val.payedDate ? wx.$util.tsFormatTime(val.payedDate, 'Y年M月D日 h:m:s') : '' val.payedDateStr = val.payedDate ? wx.$util.tsFormatTime(val.payedDate, 'Y年M月D日 h:m:s') : ''
val.tailPayedDateStr = val.tailPayedDate ? wx.$util.tsFormatTime(val.tailPayedDate, 'Y年M月D日 h:m:s') : '' val.tailPayedDateStr = val.tailPayedDate ? wx.$util.tsFormatTime(val.tailPayedDate, 'Y年M月D日 h:m:s') : ''
val.tailOrderStatus = val?.depositStatus == 1 ? 3 : val.tailOrderStatus // tailOrderStatus 1 退定金 val.tailOrderStatus = val?.depositStatus == 1 ? 4 : val.tailOrderStatus // depositStatus 1 退定金
}) })
let tempList = isReset ? list : this.data.list.concat(list) let tempList = isReset ? list : this.data.list.concat(list)
this.setData({ this.setData({
...@@ -285,7 +286,7 @@ Component({ ...@@ -285,7 +286,7 @@ Component({
// wx.$router.go('activityPay',{orderCode:target.subOrderCode}) // wx.$router.go('activityPay',{orderCode:target.subOrderCode})
} }
if (target.tailOrderStatus == 1 || target.tailOrderStatus == 3) { // 已支付或退定金状态 if (target.tailOrderStatus == 1 || target.tailOrderStatus == 4) { // 已支付或退定金状态
this.setData({ this.setData({
showRemark: true, showRemark: true,
}) })
......
...@@ -77,14 +77,14 @@ ...@@ -77,14 +77,14 @@
<span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span> <span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span>
</view> </view>
<view wx:else class="{{item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '3' ? 'blue-txt' : '') }}"> <view wx:else class="{{item.tailOrderStatus == '2' ? 'red-txt' : (item.tailOrderStatus == '4' ? 'blue-txt' : '') }}">
{{orderStatusObj[item.tailOrderStatus] || '--'}} {{orderStatusObj[item.tailOrderStatus] || '--'}}
</view> </view>
</view> </view>
</view> </view>
<!-- 内容 --> <!-- 内容 -->
<view class="order-list" style="padding-bottom: {{item.tailOrderStatus != '2' && !userInfo.isSuper && userInfo.userType == 2 ? 0 : 20}}rpx"> <view class="order-list" style="padding-bottom: {{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2 ? 0 : 20}}rpx">
<block wx:for="{{orderObj}}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i"> <block wx:for="{{orderObj}}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<block > <block >
<view class="order"> <view class="order">
...@@ -113,11 +113,13 @@ ...@@ -113,11 +113,13 @@
<!-- footer --> <!-- footer -->
<!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 --> <!-- 超管isSuper/商户号类型 userType 2(员工号)账号不可操作 -->
<view class="item-footer" wx:if="{{item.tailOrderStatus != '2' && !userInfo.isSuper && userInfo.userType == 2}}"> <view class="item-footer" wx:if="{{(item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4') && !userInfo.isSuper && userInfo.userType == 2}}">
<!-- 待支付 -->
<view wx:if="{{item.tailOrderStatus == '0'}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}"> <view wx:if="{{item.tailOrderStatus == '0'}}" class="order-btn default-btn mar-btn" bindtap="handlefinalPayment" data-target="{{item}}">
关联尾款单 关联尾款单
</view> </view>
<view class="order-btn" bindtap="handleClickBtn" data-target="{{item}}"> <!-- 待支付/已支付/退定金 -->
<view wx:if="{{item.tailOrderStatus == '0' || item.tailOrderStatus == '1' || item.tailOrderStatus == '4'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.tailOrderStatus]}} {{btnTxt[item.tailOrderStatus]}}
</view> </view>
</view> </view>
...@@ -138,7 +140,7 @@ ...@@ -138,7 +140,7 @@
title="退款备注" title="退款备注"
show="{{showRemark}}" show="{{showRemark}}"
required="{{true}}" required="{{true}}"
maxlength="15" maxlength="100"
bindcancel="remarkCancel" bindcancel="remarkCancel"
bindconfirm="remarkConfirm" bindconfirm="remarkConfirm"
placeholder="请填写退款备注" /> placeholder="请填写退款备注" />
......
...@@ -95,7 +95,6 @@ Page({ ...@@ -95,7 +95,6 @@ Page({
}, },
showMenuPopup() { showMenuPopup() {
console.log('123123')
this.setData({ this.setData({
shopSideSelectPopup: true shopSideSelectPopup: true
}) })
......
...@@ -18,7 +18,8 @@ Page({ ...@@ -18,7 +18,8 @@ Page({
2:'商户管理员', 2:'商户管理员',
3:'区域督导', 3:'区域督导',
4:'驻店员工' 4:'驻店员工'
} },
selectedUuid: ''
}, },
/** /**
...@@ -75,7 +76,12 @@ Page({ ...@@ -75,7 +76,12 @@ Page({
}, },
// 搜索过滤 // 搜索过滤
searchEvent() { searchEvent() {
let { searchValue, copyLoginUserInfoList } = this.data let { searchValue, copyLoginUserInfoList, selectedUuid } = this.data
copyLoginUserInfoList.map(val => {
val.active = false
if (val.uuid == selectedUuid) val.active = true
return val
})
let filterArr = copyLoginUserInfoList.filter(val => val.merchantName.includes(searchValue) || val.merchantId == searchValue) || [] let filterArr = copyLoginUserInfoList.filter(val => val.merchantName.includes(searchValue) || val.merchantId == searchValue) || []
this.setData({ this.setData({
loginUserInfoList: filterArr loginUserInfoList: filterArr
...@@ -191,13 +197,18 @@ Page({ ...@@ -191,13 +197,18 @@ Page({
}) })
}, },
chooseAccount(e) { chooseAccount(e) {
let { index } = e.currentTarget.dataset let { index, item } = e.currentTarget.dataset
let { loginUserInfoList } = this.data let { loginUserInfoList } = this.data
if (loginUserInfoList[index].active) return loginUserInfoList.map(i => {
loginUserInfoList.map(i => (i.active = false)) i.active = false
loginUserInfoList[index].active = true if (i.uuid == item?.uuid) {
i.active = true
}
return i
})
this.setData({ this.setData({
loginUserInfoList loginUserInfoList,
selectedUuid: item.uuid
}) })
}, },
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<block wx:if="{{flag}}"> <block wx:if="{{flag}}">
<block wx:if="{{loginUserInfoList}}"> <block wx:if="{{loginUserInfoList}}">
<block wx:for="{{loginUserInfoList}}" wx:key="index"> <block wx:for="{{loginUserInfoList}}" wx:key="index">
<view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}"> <view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}" data-item="{{item}}">
<view class="left"> <view class="left">
<view class="name"> <view class="name">
{{item.merchantName}} {{item.merchantName}}
......
...@@ -80,7 +80,8 @@ ...@@ -80,7 +80,8 @@
} }
.items .left .shop_no{ .items .left .shop_no{
font-weight: 400; font-weight: 400;
font-size: 22epx; font-size: 24rpx;
margin-top: 4rpx;
color: #9299AD; color: #9299AD;
} }
.items .right{ .items .right{
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
border-radius: 40rpx; border-radius: 40rpx;
font-size: 32rpx; font-size: 32rpx;
color: #fff; color: #fff;
letter-spacing: 13rpx; /* letter-spacing: 13rpx; */
} }
.isFullSucreen-btn { .isFullSucreen-btn {
......
...@@ -23,9 +23,9 @@ ...@@ -23,9 +23,9 @@
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
width: 24rpx; width: 28rpx;
height: 24rpx; height: 28rpx;
border-radius: 2rpx; border-radius: 50%;
box-sizing: border-box; box-sizing: border-box;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
...@@ -40,4 +40,6 @@ ...@@ -40,4 +40,6 @@
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
position: relative; position: relative;
z-index: 10;
margin-right: -18rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -63,7 +63,7 @@ page{ ...@@ -63,7 +63,7 @@ page{
text-align: center; text-align: center;
font-size: 32rpx; font-size: 32rpx;
color: #fff; color: #fff;
letter-spacing: 13.72rpx; /* letter-spacing: 13.72rpx; */
height: 100rpx; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
width: 594rpx; width: 594rpx;
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</view> </view>
</block> </block>
</block> </block>
<view class="box measure-box"> <view class="box measure-box" wx:if="{{tabIndex==0}}">
<view class="box-title">转化分析</view> <view class="box-title">转化分析</view>
<invert-analyse data="{{outputData}}"></invert-analyse> <invert-analyse data="{{outputData}}"></invert-analyse>
......
...@@ -101,7 +101,6 @@ Page({ ...@@ -101,7 +101,6 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
}, },
/** /**
......
...@@ -11,7 +11,7 @@ Page({ ...@@ -11,7 +11,7 @@ Page({
showStorePicker: false, showStorePicker: false,
userInfo: {}, userInfo: {},
navBarHeight: 0, navBarHeight: 0,
conversionList:{}, conversionList: {},
selectObj: { selectObj: {
key: 'merchantId', key: 'merchantId',
label: 'merchantName', label: 'merchantName',
...@@ -51,9 +51,9 @@ Page({ ...@@ -51,9 +51,9 @@ Page({
merchantId merchantId
} }
api.summaryOfOutputValueList(params).then(res => { api.summaryOfOutputValueList(params).then(res => {
if (res.code == 0){ if (res.code == 0) {
this.setData({ this.setData({
conversionList:res.data conversionList: res.data
}) })
} }
}) })
...@@ -137,7 +137,8 @@ Page({ ...@@ -137,7 +137,8 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
let {userInfo} = this.data
this.getOutputValue(userInfo?.default4SStoreInfo_newCarConversion?.merchantId)
}, },
/** /**
......
...@@ -20,6 +20,7 @@ Page({ ...@@ -20,6 +20,7 @@ Page({
pageNum: 1, pageNum: 1,
total: 0, total: 0,
navBarHeight:0, navBarHeight:0,
triggered:false,
orderStatusList: { orderStatusList: {
1: '待付款', 1: '待付款',
2: '已支付', 2: '已支付',
...@@ -50,6 +51,19 @@ Page({ ...@@ -50,6 +51,19 @@ Page({
activityId: options.activityId activityId: options.activityId
}) })
this.queryVisitorStatistics()
this.getOrderList(true)
},
search(){
this.setData({
nothing:false
})
this.queryVisitorStatistics()
this.getOrderList(true)
},
queryVisitorStatistics(){
const {activityId} = this.data const {activityId} = this.data
ActivityApi.queryVisitorStatistics({ ActivityApi.queryVisitorStatistics({
...@@ -62,8 +76,6 @@ Page({ ...@@ -62,8 +76,6 @@ Page({
}) })
} }
}) })
this.getOrderList(true)
}, },
onBottomRefresh() { onBottomRefresh() {
this.getOrderList() this.getOrderList()
...@@ -99,7 +111,8 @@ Page({ ...@@ -99,7 +111,8 @@ Page({
this.setData({ this.setData({
list: [], list: [],
nothing: false, nothing: false,
total: 0 total: 0,
triggered:false
}) })
wx.$util.showToast(res.message || '接口异常') wx.$util.showToast(res.message || '接口异常')
} }
......
...@@ -9,93 +9,6 @@ Page({ ...@@ -9,93 +9,6 @@ Page({
*/ */
data: { data: {
list: [ list: [
{
"customerUnionId": "oV6hWtyKQL-BTOf1RAcE5KMiGe48",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/umbyoicGRSunibJ8YjeW7AicNej8ITIyick8AzwC7gOp4cIBCgwcbsEh6uchRs0DmrgyP7ngclRFXytiaBeibILg1VWw/132",
"customerPhone": "17750020170",
"customerNickName": "stupid z.",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 3,
"orderStatus": 0,
"lastVisitTime": "2天前",
"lastVisitDate": 1683705816000,
"firstVisitDate": 1683705778000
}, {
"customerUnionId": "oV6hWt3f6-c36hpqcr3TwYvlfmNs",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKsrkKhApf2yFIkoeOy3CP2mtJLjJVDT4guibOpCYXUIk44c2tE0gTzSHfaW1WTvYuukEMicNDKFLBg/132",
"customerPhone": "18978849947",
"customerNickName": "专吃猴面包树的绵羊",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 1,
"orderStatus": 0,
"lastVisitTime": "4天前",
"lastVisitDate": 1683513213000,
"firstVisitDate": 1683513213000
},
{
"customerUnionId": "oV6hWtyKQL-BTOf1RAcE5KMiGe48",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/umbyoicGRSunibJ8YjeW7AicNej8ITIyick8AzwC7gOp4cIBCgwcbsEh6uchRs0DmrgyP7ngclRFXytiaBeibILg1VWw/132",
"customerPhone": "17750020170",
"customerNickName": "stupid z.",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 3,
"orderStatus": 0,
"lastVisitTime": "2天前",
"lastVisitDate": 1683705816000,
"firstVisitDate": 1683705778000
}, {
"customerUnionId": "oV6hWt3f6-c36hpqcr3TwYvlfmNs",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKsrkKhApf2yFIkoeOy3CP2mtJLjJVDT4guibOpCYXUIk44c2tE0gTzSHfaW1WTvYuukEMicNDKFLBg/132",
"customerPhone": "18978849947",
"customerNickName": "专吃猴面包树的绵羊",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 1,
"orderStatus": 0,
"lastVisitTime": "4天前",
"lastVisitDate": 1683513213000,
"firstVisitDate": 1683513213000
},
{
"customerUnionId": "oV6hWtyKQL-BTOf1RAcE5KMiGe48",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/umbyoicGRSunibJ8YjeW7AicNej8ITIyick8AzwC7gOp4cIBCgwcbsEh6uchRs0DmrgyP7ngclRFXytiaBeibILg1VWw/132",
"customerPhone": "17750020170",
"customerNickName": "stupid z.",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 3,
"orderStatus": 0,
"lastVisitTime": "2天前",
"lastVisitDate": 1683705816000,
"firstVisitDate": 1683705778000
}, {
"customerUnionId": "oV6hWt3f6-c36hpqcr3TwYvlfmNs",
"guestId": null,
"customerImageUrl": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKsrkKhApf2yFIkoeOy3CP2mtJLjJVDT4guibOpCYXUIk44c2tE0gTzSHfaW1WTvYuukEMicNDKFLBg/132",
"customerPhone": "18978849947",
"customerNickName": "专吃猴面包树的绵羊",
"customerType": 1,
"activityImg": "https://scrm.test.glsx.com.cn/group1/M00/04/B1/wKgD3mRYX0KAUczcAAUiRiy-Ug4173.jpg",
"activityName": "关联尾款单确认活动",
"visitCount": 1,
"orderStatus": 0,
"lastVisitTime": "4天前",
"lastVisitDate": 1683513213000,
"firstVisitDate": 1683513213000
}
], ],
allNum: 0, allNum: 0,
todayNum: 0, todayNum: 0,
...@@ -106,7 +19,9 @@ Page({ ...@@ -106,7 +19,9 @@ Page({
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
total: 0, total: 0,
navBarHeight: 0 navBarHeight: 0,
triggered:false,
nothing:false
}, },
/** /**
...@@ -126,6 +41,18 @@ Page({ ...@@ -126,6 +41,18 @@ Page({
activityId: options.activityId activityId: options.activityId
}) })
this.queryVisitorStatistics()
this.getVisitorList(true)
},
search(){
this.setData({
nothing:false
})
this.queryVisitorStatistics()
this.getVisitorList(true)
},
queryVisitorStatistics(){
const {activityId} = this.data const {activityId} = this.data
ActivityApi.queryVisitorStatistics({ ActivityApi.queryVisitorStatistics({
...@@ -138,8 +65,6 @@ Page({ ...@@ -138,8 +65,6 @@ Page({
}) })
} }
}) })
this.getVisitorList(true)
}, },
toCopyName(e) { toCopyName(e) {
const {name} = e.currentTarget.dataset const {name} = e.currentTarget.dataset
...@@ -173,17 +98,19 @@ Page({ ...@@ -173,17 +98,19 @@ Page({
pageNum: pageNum + 1, pageNum: pageNum + 1,
total, total,
nothing: total == tempList.length, nothing: total == tempList.length,
triggered:false
}) })
if (isReset) { if (isReset) {
this.setData({ this.setData({
scrollTop: 0 scrollTop: 0,
}) })
} }
} else { } else {
this.setData({ this.setData({
list: [], list: [],
nothing: false, nothing: false,
total: 0 total: 0,
triggered:false
}) })
wx.$util.showToast(res.message || '接口异常') wx.$util.showToast(res.message || '接口异常')
} }
...@@ -242,7 +169,6 @@ Page({ ...@@ -242,7 +169,6 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { onPullDownRefresh() {
}, },
/** /**
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
refresher-enabled="{{true}}" refresher-enabled="{{true}}"
bindscrolltolower="onBottomRefresh" bindscrolltolower="onBottomRefresh"
class="list" class="list"
bindrefresherrefresh="search"
style="height:calc(100vh - {{navBarHeight}}px - 208rpx);" style="height:calc(100vh - {{navBarHeight}}px - 208rpx);"
refresher-threshold="104" refresher-threshold="104"
refresher-triggered="{{triggered}}"> refresher-triggered="{{triggered}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!