Commit e420f8b4 by 前端

记录

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