Commit 1b9a40d8 by chenwq

申请开店列表接口;我的客户样式适配,次新车转化添加

1 parent 08127c91
......@@ -85,6 +85,17 @@ const deleteTechnician = data => {
)
}
// 查询开店申请列表
const getReviewList = data => {
return api.post(
{
method: 'scrm.api.busassistant.merchant.review.list',
...data
},
true
)
}
export default {
getAllServiceList,
getServiceList,
......@@ -93,5 +104,6 @@ export default {
getTechnicianList,
addTechnician,
updateTechnician,
deleteTechnician
deleteTechnician,
getReviewList
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"select-service-popup": "../../../components/selectServicePopup/selectServicePopup",
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index",
"store-apply": "../components/StoreApply/StoreApply"
"store-apply": "../../serviceManage/components/StoreApply/StoreApply"
}
}
\ No newline at end of file
......@@ -72,5 +72,5 @@
</view>
</view>
<!-- 开店申请 -->
<store-apply wx:else></store-apply>
<store-apply wx:else merchantType="2"></store-apply>
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="handleSearch" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" />
\ No newline at end of file
......@@ -6,7 +6,11 @@ Component({
* 组件的属性列表
*/
properties: {
// 1-服务中心(园区店) 2-客户(4s店)
merchantType: {
type: Number,
value: 1
}
},
/**
......@@ -15,11 +19,10 @@ Component({
data: {
IMG_URL,
bgUrl: `${IMG_URL}/personal/empty_tran.png`,
active: 'service',
serviceList: [],
total: -1,
pageCof: {
pageNum: 1,
currentPage: 1,
pageSize: 10
},
isAsk: false
......@@ -37,7 +40,7 @@ Component({
methods: {
handleSearch() {
this.setData({
['pageCof.pageNum']: 1,
['pageCof.currentPage']: 1,
total: -1
})
this.getList(true)
......@@ -48,22 +51,24 @@ Component({
},
getList(isReset = false) {
let { serviceList, pageCof, total, isAsk } = this.data
let { serviceList, pageCof, total, isAsk, merchantType } = this.data
let _this = this
if (total == serviceList.length || isAsk) {
return true
}
let params = {
...pageCof
...pageCof,
merchantType: merchantType
}
this.setData({
isAsk: true
})
mineServiceApi.getServiceList(params).then(res => {
// mineServiceApi.getServiceList(params).then(res => {
mineServiceApi.getReviewList(params).then(res => {
let { list, total } = res
this.setData({
serviceList: pageCof.pageNum == 1 ? (list || []) : serviceList.concat(list),
['pageCof.pageNum']: pageCof.pageNum + 1,
serviceList: pageCof.currentPage == 1 ? (list || []) : serviceList.concat(list),
['pageCof.currentPage']: pageCof.currentPage + 1,
triggered: false,
total
})
......
......@@ -73,4 +73,12 @@
margin-bottom: 16rpx;
}
}
.row-two {
width: 50%;
}
.row-four {
width: 25%;
}
}
\ No newline at end of file
......@@ -13,7 +13,7 @@
<view class="title">{{info.merchantName || info.merchantName4s || ''}}</view>
</view>
<view class="content">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="content-item">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="content-item {{sceneCode == -1 ? (fromPage == 'client' ?'row-two' : 'row-four') : ''}}">
<view wx:if="{{info[item.name] == '未开通'}}" class="price">{{info[item.name]}}</view>
<view wx:else="" class="price">
{{item.prefix || ''}}
......
......@@ -21,6 +21,11 @@ const clientFormObj = {
name: 'vdUpgrade',
prefix: '¥',
isNum: true
}, {
label: '次新车转化',
name: 'vdUpgrade',
prefix: '¥',
isNum: true
}],
'SC002': [{
label: '营业额',
......@@ -90,6 +95,11 @@ const staffFormObj = {
name: 'totalVdAmount',
prefix: '¥',
isNum: true
}, {
label: '次新车转化',
name: 'vdUpgrade',
prefix: '¥',
isNum: true
}],
'SC002': [{
label: '营业额',
......
......@@ -127,14 +127,21 @@ Component({
})
},
handleTimeChange() {
let { baseData: { timeList } } = this.data
handleTimeChange(e) {
let { scenecode } = e.currentTarget.dataset
let { baseData: { timeList, actStatusList } } = this.data
wx.showActionSheet({
itemList: timeList,
itemList: scenecode == 'SC003' ? actStatusList : timeList,
success: res => {
this.setData({
['formData.timeIdx']: res.tapIndex
})
if (scenecode == 'SC003') {
this.setData({
['formData.statusIdx']: res.tapIndex
})
} else {
this.setData({
['formData.timeIdx']: res.tapIndex
})
}
this.handleBusiSearch()
}
})
......@@ -240,7 +247,9 @@ Component({
'PC008': 4,
'PC009': 5
}
if (formData.busiIdx == 2 && formData?.proIdx) {
if (formData.sceneCode == 'SC003') {
params.activityStatusList = this.dealSearchStatus()
} else if (formData.busiIdx == 2 && formData?.proIdx) {
params.categoryList = [attrToNum[proList[formData?.proIdx].productCode] || '-1']
params.activityStatusList = this.dealSearchStatus()
}
......
......@@ -9,8 +9,9 @@
</view>
<view class="right-box" wx:if="{{tabActive =='business'}}">
<view wx:if="{{busiOptSceneCode[formData.busiIdx] == 'SC004'}}" bindtap="handleCrowdPopup">{{baseData.proList[formData.proIdx].productName}}</view>
<view wx:else bindtap="handleTimeChange">{{baseData.timeList[formData.timeIdx]}}</view>
<glsx-image src="output/icon-arrow.png" class="icon" bindtap="{{busiOptSceneCode[formData.busiIdx] == 'SC004' ? 'handleCrowdPopup' : 'handleTimeChange'}}"/>
<view wx:elif="{{busiOptSceneCode[formData.busiIdx] == 'SC003'}}" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}" bindtap="handleTimeChange">{{baseData.timeList[formData.timeIdx]}}</view>
<view wx:else bindtap="handleTimeChange" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}">{{baseData.timeList[formData.timeIdx]}}</view>
<glsx-image src="output/icon-arrow.png" class="icon" bindtap="{{busiOptSceneCode[formData.busiIdx] == 'SC004' ? 'handleCrowdPopup' : 'handleTimeChange'}}" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}"/>
</view>
</view>
<!-- 众筹-筛选 -->
......
......@@ -43,7 +43,7 @@
}
.merchant {
padding: 0 32rpx 32rpx;
padding: 0 0 32rpx;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
.head {
......@@ -51,15 +51,21 @@
position: relative;
display: flex;
align-items: center;
// height: 70rpx;
// line-height: 70rpx;
padding: 16rpx 0;
line-height: 40rpx;
font-size: 28rpx;
font-weight: 600;
border-bottom: 1rpx dashed #CCCED1;
margin-bottom: 16rpx;
.head-title {
box-sizing: border-box;
display: flex;
height: 60rpx;
line-height: 60rpx;
justify-content: space-between;
width: calc(100% - 40rpx);
border-bottom: 2rpx dotted #E0E0E0;
// padding-bottom: 14rpx;
}
.icon {
width: 40rpx;
height: 40rpx;
......@@ -110,7 +116,22 @@
}
}
.bf-blue {
padding: 0;
}
.bf-blue::before {
display: inline-block;
content: '';
width: 6rpx;
height: 28rpx;
background: #3666FE;
border-radius: 0 4rpx 4rpx 0;
margin: 0 16rpx 0 0;
}
.content {
padding: 0 32rpx;
&-title {
font-size: 28rpx;
......
......@@ -16,9 +16,9 @@
</view>
</view>
<view class="crowdfund-box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="head bf-blue">
<!-- text-hide -->
<glsx-image src="output/icon-head.png" class="icon" />
<!-- <glsx-image src="output/icon-head.png" class="icon" /> -->
<view class="head-title">{{item.merchantName}}</view>
</view>
<view class="content">
......
......@@ -20,7 +20,8 @@
.sort-scroll {
display: flex;
width: calc(100% - 196rpx);
width: 100%;
// width: calc(100% - 196rpx);
.item {
display: flex;
......
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<view class="sort-tab">
<ciew class="title">{{title}}</ciew>
<!-- <ciew class="title">{{title}}</ciew> -->
<scroll-view class="sort-scroll" scroll-x="true">
<view class="flex">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!