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 @@
<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>
<view class="right_icon">></view>
<view class="right_icon"></view>
</view>
</view>
</van-popup>
......@@ -43,15 +43,24 @@
align-items: center;
justify-content: space-between;
margin: 0 -16rpx;
padding: 24rpx 16rpx;
padding: 8rpx 32rpx 8rpx 16rpx;
background: #2C3255;
}
.wrapper .mine .img{
width: 96rpx;
height: 96rpx;
}
.wrapper .mine .flex_box{
display: flex;
align-items: center;
}
.right_icon{
font-size: 36rpx;
color: #AEB2C2;
.wrapper .mine .right_icon{
width: 12rpx;
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
......@@ -32,8 +32,8 @@
}
.order_no_box{
height: calc(100% - 100rpx);
padding-top: 20rpx;
height: calc(100% - 120rpx);
padding: 20rpx 0;
}
.order_no_item{
......@@ -50,6 +50,9 @@
.order_no_item:first-child{
margin-top: 0;
}
.order_no_item:last-child{
margin-bottom: 20rpx;
}
.message{
display: flex;
......
......@@ -39,13 +39,14 @@ Component({
btnTxt: {
0: '去支付',
1: '去退款',
3: '去退款'
4: '去退款'
},
orderStatusObj: {
0: '待支付',
1: '已支付',
2: '已退款',
3: '退定金'
3: '预支付',
4: '退定金'
},
orderStatusList: [
{
......@@ -210,7 +211,7 @@ Component({
list.forEach(val => {
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.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)
this.setData({
......@@ -285,7 +286,7 @@ Component({
// wx.$router.go('activityPay',{orderCode:target.subOrderCode})
}
if (target.tailOrderStatus == 1 || target.tailOrderStatus == 3) { // 已支付或退定金状态
if (target.tailOrderStatus == 1 || target.tailOrderStatus == 4) { // 已支付或退定金状态
this.setData({
showRemark: true,
})
......
......@@ -77,14 +77,14 @@
<span class="header-price">¥{{filter.priceFilter(item.supplementOrderFlag == 1 ? (item.crowdFundingPrice) : (item.tailPayment || 0))}}</span>
</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] || '--'}}
</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 >
<view class="order">
......@@ -113,11 +113,13 @@
<!-- footer -->
<!-- 超管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>
<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]}}
</view>
</view>
......@@ -138,7 +140,7 @@
title="退款备注"
show="{{showRemark}}"
required="{{true}}"
maxlength="15"
maxlength="100"
bindcancel="remarkCancel"
bindconfirm="remarkConfirm"
placeholder="请填写退款备注" />
......
......@@ -95,7 +95,6 @@ Page({
},
showMenuPopup() {
console.log('123123')
this.setData({
shopSideSelectPopup: true
})
......
......@@ -18,7 +18,8 @@ Page({
2:'商户管理员',
3:'区域督导',
4:'驻店员工'
}
},
selectedUuid: ''
},
/**
......@@ -75,7 +76,12 @@ Page({
},
// 搜索过滤
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) || []
this.setData({
loginUserInfoList: filterArr
......@@ -191,13 +197,18 @@ Page({
})
},
chooseAccount(e) {
let { index } = e.currentTarget.dataset
let { index, item } = e.currentTarget.dataset
let { loginUserInfoList } = this.data
if (loginUserInfoList[index].active) return
loginUserInfoList.map(i => (i.active = false))
loginUserInfoList[index].active = true
loginUserInfoList.map(i => {
i.active = false
if (i.uuid == item?.uuid) {
i.active = true
}
return i
})
this.setData({
loginUserInfoList
loginUserInfoList,
selectedUuid: item.uuid
})
},
......
......@@ -22,7 +22,7 @@
<block wx:if="{{flag}}">
<block wx:if="{{loginUserInfoList}}">
<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="name">
{{item.merchantName}}
......
......@@ -80,7 +80,8 @@
}
.items .left .shop_no{
font-weight: 400;
font-size: 22epx;
font-size: 24rpx;
margin-top: 4rpx;
color: #9299AD;
}
.items .right{
......@@ -145,7 +146,7 @@
border-radius: 40rpx;
font-size: 32rpx;
color: #fff;
letter-spacing: 13rpx;
/* letter-spacing: 13rpx; */
}
.isFullSucreen-btn {
......
......@@ -23,9 +23,9 @@
position: absolute;
top: 50%;
left: 50%;
width: 24rpx;
height: 24rpx;
border-radius: 2rpx;
width: 28rpx;
height: 28rpx;
border-radius: 50%;
box-sizing: border-box;
transform: translate(-50%, -50%);
}
......@@ -40,4 +40,6 @@
width: 80rpx;
height: 80rpx;
position: relative;
z-index: 10;
margin-right: -18rpx;
}
\ No newline at end of file
......@@ -63,7 +63,7 @@ page{
text-align: center;
font-size: 32rpx;
color: #fff;
letter-spacing: 13.72rpx;
/* letter-spacing: 13.72rpx; */
height: 100rpx;
line-height: 100rpx;
width: 594rpx;
......
......@@ -92,7 +92,7 @@
</view>
</block>
</block>
<view class="box measure-box">
<view class="box measure-box" wx:if="{{tabIndex==0}}">
<view class="box-title">转化分析</view>
<invert-analyse data="{{outputData}}"></invert-analyse>
......
......@@ -101,7 +101,6 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
......
......@@ -11,7 +11,7 @@ Page({
showStorePicker: false,
userInfo: {},
navBarHeight: 0,
conversionList:{},
conversionList: {},
selectObj: {
key: 'merchantId',
label: 'merchantName',
......@@ -20,9 +20,9 @@ Page({
defaultSelectInfo: {}
},
init(userInfo) {
init(userInfo) {
this.setData({userInfo})
this.getStoreList()
this.getStoreList()
},
......@@ -40,9 +40,9 @@ Page({
},
showMenuPopup() {
this.setData({
shopSideSelectPopup: true
})
this.setData({
shopSideSelectPopup: true
})
},
......@@ -51,9 +51,9 @@ Page({
merchantId
}
api.summaryOfOutputValueList(params).then(res => {
if (res.code == 0){
if (res.code == 0) {
this.setData({
conversionList:res.data
conversionList: res.data
})
}
})
......@@ -68,7 +68,7 @@ Page({
merchantName: e?.detail.value,
staffUUID: userInfo?.isSuper ? '' : userInfo?.uuid
}
this.setData({
defaultSelectInfo: userInfo?.default4SStoreInfo_newCarConversion
})
......@@ -137,7 +137,8 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow() {
let {userInfo} = this.data
this.getOutputValue(userInfo?.default4SStoreInfo_newCarConversion?.merchantId)
},
/**
......
......@@ -20,6 +20,7 @@ Page({
pageNum: 1,
total: 0,
navBarHeight:0,
triggered:false,
orderStatusList: {
1: '待付款',
2: '已支付',
......@@ -50,6 +51,19 @@ Page({
activityId: options.activityId
})
this.queryVisitorStatistics()
this.getOrderList(true)
},
search(){
this.setData({
nothing:false
})
this.queryVisitorStatistics()
this.getOrderList(true)
},
queryVisitorStatistics(){
const {activityId} = this.data
ActivityApi.queryVisitorStatistics({
......@@ -62,8 +76,6 @@ Page({
})
}
})
this.getOrderList(true)
},
onBottomRefresh() {
this.getOrderList()
......@@ -99,7 +111,8 @@ Page({
this.setData({
list: [],
nothing: false,
total: 0
total: 0,
triggered:false
})
wx.$util.showToast(res.message || '接口异常')
}
......
......@@ -9,93 +9,6 @@ Page({
*/
data: {
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,
todayNum: 0,
......@@ -106,7 +19,9 @@ Page({
pageSize: 10,
pageNum: 1,
total: 0,
navBarHeight: 0
navBarHeight: 0,
triggered:false,
nothing:false
},
/**
......@@ -126,6 +41,18 @@ Page({
activityId: options.activityId
})
this.queryVisitorStatistics()
this.getVisitorList(true)
},
search(){
this.setData({
nothing:false
})
this.queryVisitorStatistics()
this.getVisitorList(true)
},
queryVisitorStatistics(){
const {activityId} = this.data
ActivityApi.queryVisitorStatistics({
......@@ -138,8 +65,6 @@ Page({
})
}
})
this.getVisitorList(true)
},
toCopyName(e) {
const {name} = e.currentTarget.dataset
......@@ -173,17 +98,19 @@ Page({
pageNum: pageNum + 1,
total,
nothing: total == tempList.length,
triggered:false
})
if (isReset) {
this.setData({
scrollTop: 0
scrollTop: 0,
})
}
} else {
this.setData({
list: [],
nothing: false,
total: 0
total: 0,
triggered:false
})
wx.$util.showToast(res.message || '接口异常')
}
......@@ -242,7 +169,6 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
......
{
"usingComponents": {},
"navigationBarTitleText": "我的访客"
}
\ No newline at end of file
}
......@@ -18,6 +18,7 @@
refresher-enabled="{{true}}"
bindscrolltolower="onBottomRefresh"
class="list"
bindrefresherrefresh="search"
style="height:calc(100vh - {{navBarHeight}}px - 208rpx);"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!