Merge branch 'jie' into main

bak
lizijiee 2 years ago
commit fe4f9e0d15

@ -23,11 +23,15 @@ export const timeOptions = [
export const viewOptions = [ export const viewOptions = [
{ {
label: '平铺', label: '横版',
value: 'tile', value: 'horizontalVersion',
}, },
{ {
label: '竖版', label: '平铺',
value: 'masonry', value: 'masonry',
}, },
{
label: '3:4',
value: '3:4',
},
] ]

@ -60,7 +60,7 @@ const layout = debounce(() => {
return return
if (_masonry !== null) if (_masonry !== null)
(_masonry as any).destroy() (_masonry as any).addItems()
_masonry = new Masonry(masonryRef.value as any, { _masonry = new Masonry(masonryRef.value as any, {
itemSelector: '.grid-item', itemSelector: '.grid-item',
@ -161,7 +161,15 @@ async function loadMore() {
} }
const gridHeight = computed(() => { const gridHeight = computed(() => {
return viewMode.value !== 'masonry' ? '145px' : '' let height = ""
if(viewMode.value ==='masonry'){
height =''
}else if(viewMode.value ==='horizontalVersion'){
height ='145px'
}else if(viewMode.value ==='3:4'){
height ='240px'
}
return height
}) })
async function oneCheck() { async function oneCheck() {
@ -299,7 +307,7 @@ function sortHandler() {
> --> > -->
<n-image <n-image
class="img" :img-props="{ onClick: hideDownload }" class="img" :img-props="{ onClick: hideDownload }"
:class="{ 'img-fit': viewMode !== 'masonry' }" :preview-src="item.imgUrl" :src="item.thumburl" :class="{ 'img-fit': viewMode === 'horizontalVersion', 'img-full': viewMode === '3:4' }" :preview-src="item.imgUrl" :src="item.thumburl"
/> />
<div class="percent"> <div class="percent">
<SvgIcon size="42" name="tag" /> <SvgIcon size="42" name="tag" />
@ -389,6 +397,14 @@ function sortHandler() {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
} }
.img-full {
width: 100%;
overflow: hidden;
::v-deep(img) {
height: 100%;
width: 100%;
}
}
.info { .info {
display: flex; display: flex;

@ -31,16 +31,16 @@ const message = useMessage()
const loading = ref(false) const loading = ref(false)
const flag = ref(true) const flag = ref(true)
const formForget: FormForget = reactive({ const formForget: FormForget = reactive({
agentcode: '三方系统标识8', agentcode: '',
loginname: '13311111111', loginname: '',
phone: '13311111111', phone: '',
phonecode: '', phonecode: '',
}) })
const formInline: FormState = reactive({ const formInline: FormState = reactive({
enterprisecode: '三方系统标识8', enterprisecode: '',
username: '13311111111', username: '',
password: '123456', password: '',
captcha: '', captcha: '',
}) })
@ -157,8 +157,8 @@ async function sendCode(value) {
return return
flag.value = false flag.value = false
const res = await getCode({ const res = await getCode({
phone: 13311111111, phone: '',
agentcode: '三方系统标识8', agentcode: '',
}) })
startCount() startCount()
} }

@ -24,9 +24,9 @@ const router = useRouter()
const route = useRoute() const route = useRoute()
const formInline: FormState = reactive({ const formInline: FormState = reactive({
enterprisecode: '三方系统标识8', enterprisecode: '',
username: '13311111111', username: '',
password: '123456', password: '',
captcha: '', captcha: '',
}) })

Loading…
Cancel
Save