Commit e420f8b4 by 前端

记录

1 parent a1546a24
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
/> />
<div class="gradient-overlay"></div> <div class="gradient-overlay"></div>
<view class="name"> <view class="name">
{{ item.customerName || "-" }} {{ item.customerName.substring(0, 1) + "*" || "-" }}
</view> </view>
<view class="goods-name flex"> <view class="goods-name flex">
{{ {{
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</tr> </tr>
<tr v-for="i in goodsList"> <tr v-for="i in goodsList">
<td>{{ i.goodsName }}</td> <td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName }}</td> <td>{{ i.goodsPositionName || "-" }}</td>
<td>{{ i.number }}</td> <td>{{ i.number }}</td>
</tr> </tr>
</table> </table>
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
this.getList('historyDealOrderPage',{ this.getList('historyDealOrderPage',{
merchantId: [shopMerchantId], merchantIds: [shopMerchantId],
sceneTypes:[1], sceneTypes:[1],
pageNum, pageNum,
pageSize, pageSize,
......
...@@ -11,15 +11,14 @@ ...@@ -11,15 +11,14 @@
@blur="input($event)" @blur="input($event)"
@focus="focus" @focus="focus"
/> />
<view <view class="input-tips" v-if="!isSearch"
class="input-tips" >搜索客户姓名/电话<uni-icons
v-if="!isSearch"
>搜索客户姓名/电话<uni-icons
type="search" type="search"
class="icon" class="icon"
color="#999" color="#999"
size="20" size="20"
></uni-icons></view> ></uni-icons
></view>
</view> </view>
<scroll-view <scroll-view
...@@ -31,22 +30,20 @@ ...@@ -31,22 +30,20 @@
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length"> <template v-if="list.length">
<template v-for="item in list"> <template v-for="item in list">
<view <view class="item" :key="item.id" @click="reception(item)">
class="item" <view
:key="item.id" :class="['status flex', 'status_' + item.inviteStatus]"
@click="reception(item)" >{{ inviteStatus[item.inviteStatus] }}</view
> >
<view :class="['status flex', 'status_' + item.inviteStatus]">{{ inviteStatus[item.inviteStatus] }}</view>
<view class="name"> <view class="name">
{{ item.customerName }} {{ item.customerName }}
</view> </view>
<template v-for="(k, ind) in itemObject"> <template v-for="(k, ind) in itemObject">
<view <view class="info flex" :key="ind">
class="info flex"
:key="ind"
>
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view class="value">{{ item[k.key] || "-" }}</view> <view class="value">{{
k.format ? formatTime(item[k.key]) : item[k.key] || "-"
}}</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -78,6 +75,7 @@ ...@@ -78,6 +75,7 @@
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import dayjs from 'dayjs'
import Record from "@/mixin/record"; import Record from "@/mixin/record";
export default { export default {
mixins: [Record], mixins: [Record],
...@@ -95,7 +93,7 @@ export default { ...@@ -95,7 +93,7 @@ export default {
{ label: '客户电话', key: 'customerPhone' }, { label: '客户电话', key: 'customerPhone' },
{ label: '客户车型', key: 'carSeriesName' }, { label: '客户车型', key: 'carSeriesName' },
{ label: '礼券名称', key: 'couponName' }, { label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate' }, { label: '领券时间', key: 'receiveCouponDate',format:true },
{ label: '销售顾问', key: 'employeeName' }, { label: '销售顾问', key: 'employeeName' },
], ],
chooseItem: {} chooseItem: {}
...@@ -110,6 +108,9 @@ export default { ...@@ -110,6 +108,9 @@ export default {
this.getRecordList() this.getRecordList()
}, },
methods: { methods: {
formatTime(val) {
return dayjs(val).format("YYYY-MM-DD HH:mm:ss")
},
//下拉分页 //下拉分页
pageonReachBottom () { pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this let { pageNum, total, nothing, pageSize } = this
...@@ -135,7 +136,7 @@ export default { ...@@ -135,7 +136,7 @@ export default {
userInfo = uni.$storage.get("userInfo"), userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo; { shopMerchantId } = userInfo;
this.getList('customerInviteRecordPage', { this.getList('customerInviteRecordPage', {
merchantId: [shopMerchantId], merchantIds: [shopMerchantId],
pageNum, pageNum,
pageSize, pageSize,
customerNameOrPhone, customerNameOrPhone,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-05-30 14:40:39 * @Date: 2024-05-30 14:40:39
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-05-31 18:06:10 * @LastEditTime: 2024-06-04 16:23:51
--> -->
<template> <template>
<view style="position: relative"> <view style="position: relative">
...@@ -19,114 +19,160 @@ ...@@ -19,114 +19,160 @@
<view class="first-tab"> <view class="first-tab">
<view <view
class="tab-item" class="tab-item"
v-for="(i, index) in firstNav" v-for="(i, index) in views"
:key="index" :key="index"
@click="changeIndex(index, 'firstIndex')" @click="changeIndex(index, 'firstIndex')"
> >
<view <view
class="sprite-icon" class="sprite-icon"
:class="[firstIndex == index ? `icon-${i.class} active` : '']" :class="[
:style="{ left: i.left }" firstIndex == index ? `icon-${firstClass[index]} active` : '',
]"
:style="{ left: firstLeft[index] }"
></view> ></view>
{{ i.name }} <view class="text" :class="[firstIndex == index ? `active` : '']">{{
i.tabName
}}</view>
</view> </view>
</view> </view>
<view class="content"> <template v-if="madiaId == 8">
<view class="second-tab"> <!-- 套餐 无分组 -->
<view <view class="content" id="content">
v-for="(item, ind) in secondNav" <template
:key="ind" v-if="
class="tab-item" views[firstIndex].noGroupReceptionSourceDetailInfoList.length >
@click="changeIndex(ind, 'secondIndex')" 0
"
> >
<view <view
class="text" class="product-list"
:class="[secondIndex == ind ? 'active' : '']" :key="firstIndex"
>{{ item }}</view :class="direction"
style="height: 1120rpx"
> >
</view> <view
class="product-item"
v-for="(it, ids) in views[firstIndex]
.noGroupReceptionSourceDetailInfoList"
:key="ids"
@click="goDetail(it)"
>
<image
:src="it.thumbnail"
mode="scaleToFill"
class="product-img"
/>
</view>
</view>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/boutique/nothing.png"
/>
<view>暂无产品内容</view>
</view>
</template>
</view> </view>
<view class="product-list"> </template>
<view class="product-item"> <template v-else>
<image <!-- 其他 有分组 -->
:src="require('@/assets/images/boutique/product.png')" <view class="content" id="content">
mode="scaleToFill" <view
class="product-img" class="second-tab"
/> ref="secondTab"
<view class="product-name">AITO问界 3M车窗膜(M5)</view> v-if="views[firstIndex].receptionSourceDetailInfoList.length > 0"
</view> >
<view class="product-item"> <view
<image v-for="(item, ind) in views[firstIndex]
:src="require('@/assets/images/boutique/product.png')" .receptionSourceDetailInfoList"
mode="scaleToFill" :key="ind"
class="product-img" class="tab-item"
/> @click="changeIndex(ind, 'secondIndex')"
<view class="product-name">AITO问界 3M车窗膜(M5)</view> >
</view> <view
<view class="product-item"> class="text"
<image :class="[secondIndex == ind ? 'active' : '']"
:src="require('@/assets/images/boutique/product.png')" >{{ item.tabName }}</view
mode="scaleToFill" >
class="product-img" </view>
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view> </view>
<template
v-if="
views[firstIndex].receptionSourceDetailInfoList.length > 0 &&
views[firstIndex].receptionSourceDetailInfoList[secondIndex]
.receptionSourceDetailInfoList
"
>
<view
class="product-list"
:key="firstIndex + secondIndex"
:class="direction"
:style="{
height: views[firstIndex].receptionSourceDetailInfoList
? '962rpx'
: '1032rpx',
}"
>
<view
class="product-item"
v-for="(itm, idx) in views[firstIndex]
.receptionSourceDetailInfoList[secondIndex]
.receptionSourceDetailInfoList"
:key="idx"
@click="goDetail(itm)"
>
<image
:src="itm.thumbnail"
mode="scaleToFill"
class="product-img"
/>
</view>
</view>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../assets/images/boutique/nothing.png"
/>
<view>暂无产品内容</view>
</view>
</template>
</view> </view>
</view> </template>
</view> </view>
</view> </view>
<image <image
:src="animationList[firstIndex]" :src="animationList[firstIndex]"
mode="scaleToFill" mode="scaleToFill"
class="img-animate" class="img-animate"
:key="firstIndex" :key="imgKey"
/> />
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
export default { export default {
name: 'Membranes', name: 'Membranes',
props: {
views: {
type: Array,
default: () => []
},
madiaId: String,
show: Boolean
},
data () { data () {
return { return {
firstIndex: 0, firstIndex: 0,
firstNav: [ firstLeft: ['0rpx', '352rpx', '756rpx'],
{ firstClass: ['first-nav', 'second-nav', 'second-nav'],
name: '问界M5',
left: '0rpx',
class: 'first-nav'
},
{
name: '问界M7',
left: '352rpx',
class: 'second-nav'
},
{
name: '问界M9',
left: '756rpx',
class: 'second-nav'
}
],
secondIndex: 0, secondIndex: 0,
secondNav: ['车窗膜', '改色膜', '车衣', '天窗冰甲'], animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')],
// animationList: ['m5', 'm7', 'm9'] imgKey: Date.now(),
animationList: [require('@/assets/images/boutique/animation-m5.png'), require('@/assets/images/boutique/animation-m7.png'), require('@/assets/images/boutique/animation-m9.png')] direction: 'left',
productKey: Date.now()
} }
}, },
computed: { computed: {
...@@ -135,29 +181,46 @@ export default { ...@@ -135,29 +181,46 @@ export default {
}, },
}, },
watch: { watch: {
watchStatus () { show(val) {
if (val) this.imgKey = Date.now()
},
watchStatus() {
console.log(111)
this.firstIndex = 0 this.firstIndex = 0
this.secondIndex = 0
this.imgKey = Date.now()
} }
}, },
mounted () {
},
methods: { methods: {
changeIndex (index, name) { changeIndex(index, name) {
this.direction = ''
console.log(index, name, this[name])
if (this[name] < index) {
this.direction = 'right'
} else {
this.direction = 'left'
}
this[name] = index this[name] = index
console.log(index, name, this[name], '====')
if (name === 'firstIndex') {
this.secondIndex = 0
this.imgKey = Date.now()
}
}, },
async findSoureList () { async findSoureList () {
console.log(1111) console.log(1111)
const data = await uni.$api.boutiqueApi.findSoureList({}) const data = await uni.$api.boutiqueApi.findSoureList({})
console.log(data) console.log(data)
}, },
back () { goDetail(data) {
console.log('back') console.log(data)
uni.navigateTo({
url: `/pages/boutique/productDetail?detailUrl=${data.detailUrl}`
})
} }
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.nav-bar { .nav-bar {
position: fixed; position: fixed;
...@@ -202,7 +265,6 @@ export default { ...@@ -202,7 +265,6 @@ export default {
height: 1296rpx; height: 1296rpx;
box-sizing: border-box; box-sizing: border-box;
} }
// filter: blur(8rpx); // filter: blur(8rpx);
.first-tab { .first-tab {
position: relative; position: relative;
...@@ -219,10 +281,29 @@ export default { ...@@ -219,10 +281,29 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 40rpx; font-size: 40rpx;
color: #1f2133; color: #1f2133;
.text {
position: relative;
text-align: center;
width: 400rpx;
}
.active { .active {
position: absolute; position: absolute;
top: 0; top: 0;
z-index: -1; z-index: -1;
font-weight: 700;
font-size: 40rpx;
color: #2c66f7;
&::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 48rpx;
height: 8rpx;
background-color: #2c66f7;
border-radius: 16rpx;
}
} }
} }
} }
...@@ -230,16 +311,19 @@ export default { ...@@ -230,16 +311,19 @@ export default {
position: relative; position: relative;
background-color: #fff; background-color: #fff;
width: 100%; width: 100%;
padding: 64rpx 0; padding-top: 48rpx;
margin-top: -48rpx; margin-top: -48rpx;
border-radius: 48rpx; border-radius: 48rpx;
height: calc(100% - 128rpx);
overflow-x: hidden;
.second-tab { .second-tab {
display: inline-flex; display: inline-flex;
background: #f2f2f2; background: #f2f2f2;
border-radius: 16rpx; border-radius: 16rpx;
height: 84rpx; height: 92rpx;
align-items: center; align-items: center;
margin-left: 64rpx; margin-left: 64rpx;
margin-bottom: 48rpx;
.tab-item { .tab-item {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
...@@ -248,13 +332,14 @@ export default { ...@@ -248,13 +332,14 @@ export default {
align-items: center; align-items: center;
margin: 4rpx; margin: 4rpx;
width: auto; width: auto;
height: 100%; height: 84rpx;
padding: 0 48rpx; padding: 0 48rpx;
box-sizing: border-box;
&.active { &.active {
background-color: #fff; background-color: #fff;
// margin: 4rpx 0; // margin: 4rpx 0;
border-radius: 16rpx; border-radius: 16rpx;
height: calc(100% - 8rpx); // height: calc(100% - 8rpx);
} }
} }
} }
...@@ -263,19 +348,19 @@ export default { ...@@ -263,19 +348,19 @@ export default {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 48rpx; gap: 48rpx;
margin-top: 48rpx; // height: 908rpx;
height: 908rpx; padding: 0 64rpx 64rpx;
padding: 0 64rpx;
// height: 998rpx;
overflow-y: auto; overflow-y: auto;
.product-item { .product-item {
text-align: center; text-align: center;
background: #ffffff; background: #ffffff;
box-shadow: 0 16rpx 24rpx 0 #2c66f71a; box-shadow: 0 16rpx 24rpx 0 #2c66f71a;
border-radius: 24rpx; border-radius: 24rpx;
height: 594rpx;
.product-img { .product-img {
width: 486rpx; width: 486rpx;
height: 486rpx; height: 594rpx;
border-radius: 24rpx;
} }
.product-name { .product-name {
padding-bottom: 48rpx; padding-bottom: 48rpx;
...@@ -284,11 +369,26 @@ export default { ...@@ -284,11 +369,26 @@ export default {
} }
} }
} }
.nothing {
width: 100%;
flex-direction: column;
font-size: 14px;
color: #999999;
position: absolute;
top: 50%;
transform: translateY(-50%);
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
@keyframes moveAndFade { @keyframes moveAndFade {
0% { 0% {
transform: translate(100%, -100%) scale(0.2); /* 移动到右上角并缩小 */ transform: translate(30%, -30%) scale(0.5); /* 移动到右上角并缩小 */
filter: blur(2px); /* 设置模糊 */ // transform: translate(100%, -100%) scale(0.2);
opacity: 0; filter: blur(0.5px); /* 设置模糊 */
opacity: 0.3;
} }
100% { 100% {
transform: translate(0, 0) scale(1); /* 移动到正常位置并恢复大小 */ transform: translate(0, 0) scale(1); /* 移动到正常位置并恢复大小 */
...@@ -296,11 +396,18 @@ export default { ...@@ -296,11 +396,18 @@ export default {
opacity: 1; opacity: 1;
} }
} }
.img-animate { .img-animate {
animation: moveAndFade 2s ease-in-out forwards; /* 应用动画,持续时间2秒,缓动函数,停留在最后一帧 */ animation: moveAndFade 1.2s ease-in-out forwards; /* 应用动画,持续时间2秒,缓动函数,停留在最后一帧 */
position: absolute; /* 确保图片可以移动 */ position: absolute; /* 确保图片可以移动 */
top: 0; top: 0;
right: 0; right: 0;
width: 480rpx;
height: 320rpx;
}
.left {
animation: show-view-left 0.5s;
}
.right {
animation: show-view-right 0.3s;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!