Commit b4ed7840 by 李伟康

commit 本店方案开关

1 parent 122ffcee
...@@ -61,12 +61,28 @@ ...@@ -61,12 +61,28 @@
>{{ i.text }}</view> >{{ i.text }}</view>
</template> </template>
</view> </view>
<view class="btn-list flex">
<view
class="merchant-btn flex"
@click="allMerchantSwitch"
>
<view :class="['check-box flex',{'checked':!allMerchantStatus}]">
<uni-icons
type="checkmarkempty"
:size="12"
color="#fff"
></uni-icons>
</view>
仅展示本店方案
</view>
<view <view
class="search-btn flex" class="search-btn flex"
@click="$refs.customerTagstVisible.open()" @click="$refs.customerTagstVisible.open()"
>标签筛选</view> >标签筛选</view>
</view> </view>
</view>
<scroll-view <scroll-view
:class="['record-list', recordClass]" :class="['record-list', recordClass]"
scroll-y scroll-y
...@@ -275,6 +291,7 @@ export default { ...@@ -275,6 +291,7 @@ export default {
status: 1, status: 1,
showChannel: 2, showChannel: 2,
}, },
allMerchantStatus: true
} }
}, },
...@@ -463,7 +480,7 @@ export default { ...@@ -463,7 +480,7 @@ export default {
mask: true mask: true
}) })
let { shopMerchantId } = uni.$storage.get("userInfo"), let { shopMerchantId } = uni.$storage.get("userInfo"),
{ pageSize, pageNum, caseParams, tagsList } = this, { pageSize, pageNum, caseParams, tagsList, allMerchantStatus } = this,
customerLabelList = [] customerLabelList = []
tagsList.map(e => customerLabelList.push({ tagsList.map(e => customerLabelList.push({
labelId: e.labelId labelId: e.labelId
...@@ -472,9 +489,9 @@ export default { ...@@ -472,9 +489,9 @@ export default {
currentPage: pageNum, currentPage: pageNum,
pageSize, pageSize,
customerLabelList, customerLabelList,
merchantId: shopMerchantId,
...caseParams ...caseParams
} }
if (!allMerchantStatus) params.merchantId = shopMerchantId
const { list, total } = await uni.$api.customerApi.getMaterialResponsePage(params) const { list, total } = await uni.$api.customerApi.getMaterialResponsePage(params)
uni.hideLoading() uni.hideLoading()
list.map(e => { list.map(e => {
...@@ -502,6 +519,10 @@ export default { ...@@ -502,6 +519,10 @@ export default {
handleSelect (list) { handleSelect (list) {
this.tagsList = list this.tagsList = list
this.refresh() this.refresh()
},
allMerchantSwitch () {
this.allMerchantStatus = !this.allMerchantStatus
this.refresh()
} }
} }
} }
...@@ -834,8 +855,11 @@ export default { ...@@ -834,8 +855,11 @@ export default {
background: #2d66f71a; background: #2d66f71a;
} }
} }
.search-btn { .btn-list {
margin-left: auto; margin-left: auto;
gap: 0 48rpx;
line-height: 48rpx;
.search-btn {
&::after { &::after {
content: ''; content: '';
border: 12rpx solid transparent; border: 12rpx solid transparent;
...@@ -844,6 +868,25 @@ export default { ...@@ -844,6 +868,25 @@ export default {
transform: translateY(-2rpx); transform: translateY(-2rpx);
} }
} }
.check-box {
width: 32rpx;
height: 32rpx;
background: #ffffff;
border: 1.5px solid #999;
border-radius: 6rpx;
box-sizing: border-box;
margin-right: 16rpx;
justify-content: center;
overflow: hidden;
transition: all 0.25s;
flex-shrink: 0;
transform: translateY(-2rpx);
}
.checked {
background: #2c66f7;
border-color: #2c66f7;
}
}
} }
.nothing { .nothing {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!