8.15提交
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
item.exchange_content_video.length > 0
|
||||
"
|
||||
>
|
||||
<view class="videomask"></view>
|
||||
<video
|
||||
:key="index"
|
||||
v-for="(videoCell, index) in item.exchange_content_video.slice(0,1)"
|
||||
@@ -160,12 +161,12 @@
|
||||
import navTo from "@/utils/navTo.js";
|
||||
import api from "@/api/api";
|
||||
import { reactive,ref } from 'vue';
|
||||
import { onShow } from "@dcloudio/uni-app";
|
||||
import { onShow,onLoad } from "@dcloudio/uni-app";
|
||||
const numInfo=reactive({})
|
||||
const most_read_articles=ref([]);
|
||||
const new_articles=ref([]);
|
||||
|
||||
|
||||
const hasUse=ref(false);
|
||||
const formatdate = (date) => {
|
||||
return dayjs(date).format('YYYY-MM-DD')
|
||||
};
|
||||
@@ -206,7 +207,7 @@ const goDetail = (id) => {
|
||||
const searchList = async () => {
|
||||
let searchForm = {
|
||||
page: 1,
|
||||
page_size: 10,
|
||||
page_size: 20,
|
||||
order:{
|
||||
push_date:'desc'
|
||||
}
|
||||
@@ -255,6 +256,21 @@ const goPublish=()=>{
|
||||
url:'/pages/publish/publish'
|
||||
})
|
||||
}
|
||||
onLoad((options)=>{
|
||||
console.log(options.from && !hasUse.value)
|
||||
if(options.from && !hasUse.value){
|
||||
|
||||
setTimeout(()=>{
|
||||
uni.showToast({
|
||||
duration:2000,
|
||||
title: "提交成功,请耐心等待审核",
|
||||
icon: "none",
|
||||
})
|
||||
hasUse.value=true;
|
||||
},300)
|
||||
}
|
||||
|
||||
})
|
||||
onShow(()=>{
|
||||
getStatic();
|
||||
goodList();
|
||||
@@ -380,7 +396,13 @@ onShow(()=>{
|
||||
.imgbox {
|
||||
display: flex;
|
||||
margin-top: 24rpx;
|
||||
|
||||
position: relative;
|
||||
.videomask{
|
||||
position: absolute;
|
||||
width:100%;
|
||||
height:100%;
|
||||
z-index:2;
|
||||
}
|
||||
.imgcell {
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
@@ -396,6 +418,7 @@ onShow(()=>{
|
||||
}
|
||||
|
||||
.special {
|
||||
background-color: #fff;
|
||||
padding-top: 30rpx;
|
||||
|
||||
.list {
|
||||
|
||||
Reference in New Issue
Block a user