Commit a0a8c674 by 胡悦

提交

1 parent e83cc8c0
...@@ -196,7 +196,9 @@ export default { ...@@ -196,7 +196,9 @@ export default {
async getCaseList(category = '', name = '') { async getCaseList(category = '', name = '') {
const userInfo = uni.$storage.get("userInfo"), const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; // 44217687 { shopMerchantId } = userInfo; // 44217687
const res = await uni.$api.boutiqueApi.getCaseList({merchantId: shopMerchantId, category, name}) const params = { merchantId: shopMerchantId, category }
if (name) params.materialName = name
const res = await uni.$api.boutiqueApi.getCaseList(params)
console.log(res) console.log(res)
this.list = res.list this.list = res.list
this.searchList = res.list this.searchList = res.list
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-09-06 10:11:03 * @Date: 2024-09-06 10:11:03
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-09-13 14:29:45 * @LastEditTime: 2024-09-13 17:46:06
--> -->
<template> <template>
<view> <view>
...@@ -85,10 +85,11 @@ ...@@ -85,10 +85,11 @@
<template v-if="customerType == 1"> <template v-if="customerType == 1">
<template v-if="pageParams.received"> <template v-if="pageParams.received">
<view class="ok"> <view class="ok">
<image <view class="ok-status"></view>
<!-- <image
class="ok-status" class="ok-status"
src="@/assets/images/boutique/ok-status.webp" src="@/assets/images/boutique/ok-status.webp"
/> /> -->
<view>客户领券成功</view> <view>客户领券成功</view>
</view> </view>
</template> </template>
...@@ -98,10 +99,11 @@ ...@@ -98,10 +99,11 @@
:src="pageParams.QRURL" :src="pageParams.QRURL"
/> />
<view v-else class="no-data"> <view v-else class="no-data">
<image <view class="no-data-img"></view>
<!-- <image
src="@/assets/images/boutique/no-data.webp" src="@/assets/images/boutique/no-data.webp"
class="no-data-img" class="no-data-img"
/> /> -->
<view>填写客户信息后点击</view> <view>填写客户信息后点击</view>
<view>生成专属二维码」生成券码</view> <view>生成专属二维码」生成券码</view>
</view> </view>
...@@ -638,6 +640,8 @@ export default { ...@@ -638,6 +640,8 @@ export default {
&-img { &-img {
width: 100%; width: 100%;
height: 138rpx; height: 138rpx;
background-image: url('@/assets/images/boutique/no-data.webp');
background-size: 100%;
} }
} }
.disabled { .disabled {
...@@ -657,6 +661,8 @@ export default { ...@@ -657,6 +661,8 @@ export default {
width: 96rpx; width: 96rpx;
height: 96rpx; height: 96rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
background-image: url('@/assets/images/boutique/ok-status.webp');
background-size: 100%;
} }
} }
.ok-tips { .ok-tips {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!