注意事项图片
This commit is contained in:
parent
2e387bc71f
commit
0a8512f9e2
@ -5,7 +5,7 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBar":"custom",
|
"navigationBar":"custom",
|
||||||
"navigationBarTitleText":"",
|
"navigationBarTitleText":"",
|
||||||
"navigationBarBackgroundImage":"/static/style/bg.png"
|
"navigationStyle":"custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -154,9 +154,9 @@
|
|||||||
const handle_info = ref(null)
|
const handle_info = ref(null)
|
||||||
const handle_info_index = ref(0)
|
const handle_info_index = ref(0)
|
||||||
function handle_func(item,i) {
|
function handle_func(item,i) {
|
||||||
handle_info.value = item
|
// handle_info.value = item
|
||||||
handle_info_index.value = i
|
// handle_info_index.value = i
|
||||||
inputDialog.value.open()
|
// inputDialog.value.open()
|
||||||
}
|
}
|
||||||
function finishFunc() {
|
function finishFunc() {
|
||||||
// api.todoFinished
|
// api.todoFinished
|
||||||
@ -185,23 +185,33 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<view class="todoBox page-box">
|
<view class="todoBox page-box">
|
||||||
<cc-newsTabs :tabArr="tabArr" :o_index="c_index" @tabChange="tabChange"></cc-newsTabs>
|
<cc-newsTabs :tabArr="tabArr" :o_index="c_index" @tabChange="tabChange"></cc-newsTabs>
|
||||||
<swiper :current="c_index" @change="scroll_func" :style="{'--size':swiper_h+'px'}" class="swiper" circular :indicator-dots="false" :autoplay="false" >
|
<swiper :current="c_index" @change="scroll_func" :style="{'--size':swiper_h+'px'}" class="swiper" circular :indicator-dots="false" :autoplay="false" >
|
||||||
<swiper-item v-for="(item1,i1) in list_box">
|
<swiper-item v-for="(item1) in list_box" :key="item1">
|
||||||
<view class="todoBox">
|
<view class="todoBox">
|
||||||
<view v-for="(item,i) in item1.list" v-if="item1.list.length>0" @tap="handle_func(item,i)" class="td-item swiper-item uni-bg-green">
|
<template v-if="item1.list.length>0">
|
||||||
<view class="td-content text-ellipsis-2">
|
<view v-for="(item,i) in item1.list" @tap="handle_func(item,i)" :key="i" class="td-item swiper-item uni-bg-green">
|
||||||
{{item.content}}
|
<view class="td-content text-ellipsis-2">
|
||||||
|
<!-- {{item.content}} -->
|
||||||
|
<image
|
||||||
|
style="width: 100%;"
|
||||||
|
:src="item.content"
|
||||||
|
mode="widthFix"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<view class="td-info small-text">
|
||||||
|
{{util.timestampToDate(item.CreatedAt)}}
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="td-info small-text">
|
</template>
|
||||||
{{util.timestampToDate(item.CreatedAt)}}
|
<template v-else>
|
||||||
</view>
|
<emptyCard />
|
||||||
</view>
|
</template>
|
||||||
<emptyCard v-else></emptyCard>
|
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@ -226,8 +236,8 @@
|
|||||||
|
|
||||||
</view>
|
</view>
|
||||||
</uni-popup>
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.swiper{
|
.swiper{
|
||||||
height: var(--size);
|
height: var(--size);
|
||||||
@ -289,5 +299,5 @@
|
|||||||
.uni-popup__wrapper{
|
.uni-popup__wrapper{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -31,7 +31,7 @@
|
|||||||
const show_ = ref(false)
|
const show_ = ref(false)
|
||||||
// 函数
|
// 函数
|
||||||
function randomFunc() {
|
function randomFunc() {
|
||||||
bg_index.value = parseInt((Math.random()*3))
|
bg_index.value = parseInt((Math.random()*store.bgList.length))
|
||||||
uni.getImageInfo({
|
uni.getImageInfo({
|
||||||
// src:bg_imgs.value[bg_index.value],
|
// src:bg_imgs.value[bg_index.value],
|
||||||
src:bg_imgs.value[bg_index.value].url,
|
src:bg_imgs.value[bg_index.value].url,
|
||||||
|
Loading…
Reference in New Issue
Block a user