Commit fb561762 by 胡悦

提交

1 parent 6cf2b444
......@@ -5,9 +5,9 @@
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.icon-boutique-config-0 { width: 44rpx; height: 44rpx; background-position: -765rpx -621rpx;}
.icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;}
.icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;}
.icon-boutique-config-0 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;}
.icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;}
.icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -594rpx -853rpx;}
.icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;}
.icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -509rpx;}
......@@ -32,13 +32,13 @@
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -653rpx -853rpx;}
.icon-info_shield { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -735rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -782rpx -853rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -700rpx -853rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -747rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -794rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -841rpx -853rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;}
.icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;}
......@@ -51,7 +51,7 @@
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -829rpx -853rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -888rpx -853rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
......@@ -62,5 +62,6 @@
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -451rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -526rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -601rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -876rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1160rpx -668rpx;}
\ No newline at end of file
.icon-total { width: 32rpx; height: 32rpx; background-position: -935rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1160rpx -668rpx;}
.icon-arrow-bottom { width: 48rpx; height: 48rpx; background-position: -765rpx -621rpx;}
\ No newline at end of file

1.2 MB | W: | H:

1.2 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -2,6 +2,19 @@
<view class="container">
<view class="bg"></view>
<view class="box">
<view class="select-box">
<view class="select" @click="selectType">
全部
<view class="sprite-icon icon-arrow-bottom"></view>
</view>
<view class="pop-box" v-show="isSelect">
<view v-for="i in selectList" :key="i.label" class="type-item" :class="i.value == selectIndex ? 'active' : ''" @click="chooseType(i)">{{i.label}}</view>
<!-- <view class="type-item active">全部</view>
<view class="type-item">视频</view>
<view class="type-item">图片</view>
<view class="type-item">PDF</view> -->
</view>
</view>
<view class="input-box">
<input
type="text"
......@@ -115,7 +128,27 @@ export default {
popupShow: false,
isSearch: false,
videoSrc: '',
showPreview: false
showPreview: false,
isSelect: false,
selectIndex: 0,
selectList: [
{
label: '全部',
value: 0
},
{
label: '视频',
value: 1
},
{
label: '图片',
value: 2
},
{
label: 'PDF',
value: 3
}
]
}
},
props: {
......@@ -169,6 +202,13 @@ export default {
this.isSearch = false
this.list = this.views.filter(i => i.tabName.includes(this.name))
},
selectType() {
this.isSelect = !this.isSelect
},
chooseType(val) {
console.log(val)
this.selectIndex = val.value
}
},
}
</script>
......@@ -193,6 +233,42 @@ export default {
.box {
padding: 64rpx;
margin-top: 90rpx;
position: relative;
.select-box {
position: absolute;
right: 24rpx;
top: -18rpx;
z-index: 1;
.select {
display: flex;
align-items: center;
justify-content: flex-end;
margin-bottom: 8rpx;
}
.arrow-bottom {
width: 48rpx;
height: 48rpx;
}
.pop-box {
width: 368rpx;
// height: 248rpx;
background: #FFFFFF;
border-radius: 16rpx;
padding: 16rpx 0;
.type-item {
padding: 0 24rpx;
margin-bottom: 8rpx;
height: 48rpx;
line-height: 48rpx;
&:last-child {
margin-bottom: 0;
}
&.active {
background-color: #ECF1FF;
}
}
}
}
.input-box {
position: relative;
.input {
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-09-06 10:11:03
* @LastEditors: huyue
* @LastEditTime: 2024-09-12 15:25:12
* @LastEditTime: 2024-09-12 15:52:17
-->
<template>
<view>
......@@ -237,12 +237,14 @@ export default {
watchStatus: {
immediate: true,
handler(newval) {
// console.log('重新进入', this.pageParams)
// let item = this.couponList.find(e => e.couponType == 1),
// item2 = this.couponList.find(e => e.couponType == 18)
// if (item) this.chooseCoupon(item) //默认填入类型为「太阳膜」类型
// else if (item2) this.chooseCoupon(item2) //次选填入「精品」类型
// else this.chooseCoupon(this.couponList[0]) // 无此两种类型情况默认带入任意类型礼券
console.log('重新进入', this.pageParams)
if (this.couponList.length) {
let item = this.couponList.find(e => e.couponType == 1),
item2 = this.couponList.find(e => e.couponType == 18)
if (item) this.chooseCoupon(item) //默认填入类型为「太阳膜」类型
else if (item2) this.chooseCoupon(item2) //次选填入「精品」类型
else this.chooseCoupon(this.couponList[0]) // 无此两种类型情况默认带入任意类型礼券
}
}
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!