Commit b4ed7840 by 李伟康

commit 本店方案开关

1 parent 122ffcee
......@@ -61,10 +61,26 @@
>{{ i.text }}</view>
</template>
</view>
<view
class="search-btn flex"
@click="$refs.customerTagstVisible.open()"
>标签筛选</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
class="search-btn flex"
@click="$refs.customerTagstVisible.open()"
>标签筛选</view>
</view>
</view>
<scroll-view
......@@ -275,6 +291,7 @@ export default {
status: 1,
showChannel: 2,
},
allMerchantStatus: true
}
},
......@@ -463,7 +480,7 @@ export default {
mask: true
})
let { shopMerchantId } = uni.$storage.get("userInfo"),
{ pageSize, pageNum, caseParams, tagsList } = this,
{ pageSize, pageNum, caseParams, tagsList, allMerchantStatus } = this,
customerLabelList = []
tagsList.map(e => customerLabelList.push({
labelId: e.labelId
......@@ -472,9 +489,9 @@ export default {
currentPage: pageNum,
pageSize,
customerLabelList,
merchantId: shopMerchantId,
...caseParams
}
if (!allMerchantStatus) params.merchantId = shopMerchantId
const { list, total } = await uni.$api.customerApi.getMaterialResponsePage(params)
uni.hideLoading()
list.map(e => {
......@@ -502,6 +519,10 @@ export default {
handleSelect (list) {
this.tagsList = list
this.refresh()
},
allMerchantSwitch () {
this.allMerchantStatus = !this.allMerchantStatus
this.refresh()
}
}
}
......@@ -834,15 +855,37 @@ export default {
background: #2d66f71a;
}
}
.search-btn {
.btn-list {
margin-left: auto;
&::after {
content: '';
border: 12rpx solid transparent;
border-left-color: #000;
margin-left: 12rpx;
gap: 0 48rpx;
line-height: 48rpx;
.search-btn {
&::after {
content: '';
border: 12rpx solid transparent;
border-left-color: #000;
margin-left: 12rpx;
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;
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!