Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e420f8b4
authored
Jun 04, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
记录
1 parent
a1546a24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
231 additions
and
123 deletions
pages/boutique/history.vue
pages/boutique/invitation.vue
pages/boutique/membranes.vue
pages/boutique/history.vue
View file @
e420f8b
...
...
@@ -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
,
...
...
pages/boutique/invitation.vue
View file @
e420f8b
...
...
@@ -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
],
merchantId
s
:
[
shopMerchantId
],
pageNum
,
pageSize
,
customerNameOrPhone
,
...
...
pages/boutique/membranes.vue
View file @
e420f8b
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-05-30 14:40:39
* @LastEditors: huyue
* @LastEditTime: 2024-0
5-31 18:06:10
* @LastEditTime: 2024-0
6-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
:
1296
rpx
;
box-sizing
:
border-box
;
}
//
filter
:
blur
(
8rpx
);
.first-tab
{
position
:
relative
;
...
...
@@ -219,10 +281,29 @@ export default {
font-weight
:
500
;
font-size
:
40
rpx
;
color
:
#1f2133
;
.text
{
position
:
relative
;
text-align
:
center
;
width
:
400
rpx
;
}
.active
{
position
:
absolute
;
top
:
0
;
z-index
:
-1
;
font-weight
:
700
;
font-size
:
40
rpx
;
color
:
#2c66f7
;
&::after
{
content
:
""
;
position
:
absolute
;
bottom
:
0
;
left
:
50%
;
transform
:
translateX
(
-50%
);
width
:
48
rpx
;
height
:
8
rpx
;
background-color
:
#2c66f7
;
border-radius
:
16
rpx
;
}
}
}
}
...
...
@@ -230,16 +311,19 @@ export default {
position
:
relative
;
background-color
:
#fff
;
width
:
100%
;
padding
:
64
rpx
0
;
padding
-top
:
48
rpx
;
margin-top
:
-48
rpx
;
border-radius
:
48
rpx
;
height
:
calc
(
100%
-
128
rpx
);
overflow-x
:
hidden
;
.second-tab
{
display
:
inline-flex
;
background
:
#f2f2f2
;
border-radius
:
16
rpx
;
height
:
84
rpx
;
height
:
92
rpx
;
align-items
:
center
;
margin-left
:
64
rpx
;
margin-bottom
:
48
rpx
;
.tab-item
{
display
:
inline-block
;
height
:
100%
;
...
...
@@ -248,13 +332,14 @@ export default {
align-items
:
center
;
margin
:
4
rpx
;
width
:
auto
;
height
:
100%
;
height
:
84
rpx
;
padding
:
0
48
rpx
;
box-sizing
:
border-box
;
&.active
{
background-color
:
#fff
;
//
margin
:
4
rpx
0
;
border-radius
:
16
rpx
;
height
:
calc
(
100%
-
8
rpx
);
//
height
:
calc
(
100%
-
8
rpx
);
}
}
}
...
...
@@ -263,19 +348,19 @@ export default {
display
:
grid
;
grid-template-columns
:
repeat
(
4
,
1
fr
);
gap
:
48
rpx
;
margin-top
:
48
rpx
;
height
:
908
rpx
;
padding
:
0
64
rpx
;
//
height
:
998
rpx
;
//
height
:
908
rpx
;
padding
:
0
64
rpx
64
rpx
;
overflow-y
:
auto
;
.product-item
{
text-align
:
center
;
background
:
#ffffff
;
box-shadow
:
0
16
rpx
24
rpx
0
#2c66f71
a
;
border-radius
:
24
rpx
;
height
:
594
rpx
;
.product-img
{
width
:
486
rpx
;
height
:
486
rpx
;
height
:
594
rpx
;
border-radius
:
24
rpx
;
}
.product-name
{
padding-bottom
:
48
rpx
;
...
...
@@ -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
:
676
rpx
;
height
:
284
rpx
;
margin-bottom
:
24
rpx
;
}
}
@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
:
480
rpx
;
height
:
320
rpx
;
}
.left
{
animation
:
show-view-left
0.5s
;
}
.right
{
animation
:
show-view-right
0.3s
;
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment