提交 4e33924a 作者: 王定

feat: 屏蔽Ai和金融相关及农场相关的功能

上级 c5078865
......@@ -418,7 +418,7 @@
</view>
</navigator>
</view>
<view class="codefun-flex-col codefun-mt-24">
<!-- <view class="codefun-flex-col codefun-mt-24">
<view class="codefun-flex-row codefun-justify-between codefun-items-center group_11">
<text class="font_5 text_18">助农金融</text>
<text class="font_6 text_19" @click="onViewAllFinancialProducts">全部</text>
......@@ -463,7 +463,7 @@
/>
</template>
</view>
</view>
</view> -->
<view class="codefun-flex-col codefun-mt-24">
<text class="codefun-self-start font_5 text_26">农资交易</text>
<view class="codefun-flex-col codefun-self-stretch section_6 codefun-mt-16">
......
......@@ -23,9 +23,14 @@
let scale:any = 0;
for(let i = 0; i < records.length;i++){
if(records[i].width){
scale = (340 / records[i].width).toFixed(1);
records[i].videoWidth = 340;
records[i].videoHeight = Math.floor(records[i].height * scale);
}else{
records[i].videoWidth = 0;
records[i].videoHeight = 0;
}
}
if (model.params.pageNo === 1) {
......
......@@ -115,7 +115,7 @@
},
},
{
/* {
title: '问题意见反馈',
icon: 'feedback',
disabled: false,
......@@ -125,7 +125,7 @@
url: '/pages/common/feedback/index',
})
},
},
}, */
{
title: '系统缓存清除',
icon: 'clean',
......
......@@ -433,15 +433,21 @@ const toDevice = (device)=>{
<view class="box-2-right">
<view class="box-2-right-item">
<text class="box-2-right-text1">15°-19°</text>
<view class="weather-view">
<image class="weather-icon" src="/static/images/test/yin.png" />
<text class="box-2-right-text2">今天 阴</text>
</view>
</view>
<view class="box-2-right-interval" />
<view class="box-2-right-item">
<text class="box-2-right-text1">17°-21°</text>
<view class="weather-view">
<image class="weather-icon" src="/static/images/test/cloudy.png" />
<text class="box-2-right-text2">明天 多云</text>
</view>
</view>
</view>
</view>
<view class="box-3">
<view class="box-3-tags">
<view
......@@ -786,7 +792,16 @@ page {
font-weight: bold;
color: #333333;
}
.weather-view{
display: flex;
align-items: center;
justify-content: center;
}
.weather-icon{
height: 40rpx;
width: 54rpx;
margin-right: 8rpx;
}
.box-2-right-text2 {
font-size: 24rpx;
color: #555555;
......
......@@ -253,9 +253,14 @@ function getAgricultureClassList() {
const { records } = res
let scale:any = 0;
for(let i = 0; i < records.length;i++){
if(records[i].width){
scale = (340 / records[i].width).toFixed(1);
records[i].videoWidth = 340;
records[i].videoHeight = Math.floor(records[i].height * scale);
}else{
records[i].videoWidth = 0;
records[i].videoHeight = 0;
}
}
pageData.agricultureClass.videoList = records
})
......
......@@ -335,7 +335,20 @@ function getServiceStatsList() {
function getAgricultureClassList() {
getVideoList({ pageNo: 1, pageSize: 10, status: 1 }).then((res) => {
const { records } = res;
/*
/* let scale:any = 0;
for(let i = 0; i < records.length;i++){
if(records[i].width){
scale = (340 / records[i].width).toFixed(1);
records[i].videoWidth = 340;
records[i].videoHeight = Math.floor(records[i].height * scale);
}else{
records[i].videoWidth = 0;
records[i].videoHeight = 0;
}
} */
pageData.videoDataLen = records.length;
if(pageData.isApp){
let videwHtmlList = '';
......@@ -343,16 +356,8 @@ function getAgricultureClassList() {
videwHtmlList += '<video class="htmlvideo" data-index="'+i+'" src="'+records[i].url+'"></video>'
}
pageData.videwHtmlList = videwHtmlList;
} */
let scale:any = 0;
for(let i = 0; i < records.length;i++){
scale = (340 / records[i].width).toFixed(1);
records[i].videoWidth = 340;
records[i].videoHeight = Math.floor(records[i].height * scale);
}
console.log("农技课堂***************")
console.log(records);
pageData.agricultureClass.videoList = records;
})
}
......@@ -587,11 +592,11 @@ export default {
<!-- <text class="text" style="font-family: alimamashuheiti">湖南省</text> -->
</view>
<!-- ai助手 -->
<FuiMovableView direction="vertical" top="650" right="-12" zIndex="99999">
<!-- <FuiMovableView direction="vertical" top="650" right="-12" zIndex="99999">
<view class="h-80rpx flex items-center" @click="openAITools">
<image class="w-117rpx h-118rpx" src="/static/images/codefun/ai.png" alt="" />
</view>
</FuiMovableView>
</FuiMovableView> -->
<view class="codefun-flex-col codefun-relative group_3">
<view class="codefun-flex-col">
<view class="codefun-flex-col codefun-self-stretch group_4">
......@@ -777,7 +782,7 @@ export default {
<text class="font_7 text_33" @click="onViewMoreClass">查看全部</text>
</view>
<!-- <view v-if="pageData.videoListIsShow" class="codefun-flex-col section_13 !relative rounded-lg" style="margin-left: -28rpx;">
<view v-if="pageData.videoListIsShow" class="codefun-flex-col section_13 !relative rounded-lg" style="margin-left: -28rpx;">
<fui-waterfall topGap="20" leftGap="20" rightGap="20" bottomGap="20">
<fui-waterfall-item :imgWidth="video.videoWidth" :imgHeight="video.videoHeight" v-for="(video, index) in pageData.agricultureClass.videoList" :key="index"
:src="video.thumbnailPath" @click="playVideo(index)">
......@@ -806,10 +811,10 @@ export default {
</view>
<view v-else style="width:0px;height:0px;display:none;" v-for="(video, index) in pageData.agricultureClass.videoList" :key="index">
<video :src="video.url" @loadedmetadata="handleMetadataLoaded($event, video)"></video>
</view> -->
</view>
<view class="codefun-flex-col section_13 !relative rounded-lg" style="margin-left: -28rpx;">
<!-- <view class="codefun-flex-col section_13 !relative rounded-lg" style="margin-left: -28rpx;">
<fui-waterfall topGap="20" leftGap="20" rightGap="20" bottomGap="20">
<fui-waterfall-item :imgWidth="video.videoWidth" :imgHeight="video.videoHeight" v-for="(video, index) in pageData.agricultureClass.videoList" :key="index"
:src="video.thumbnailPath" @click="playVideo(index)">
......@@ -831,7 +836,7 @@ export default {
@fullscreenchange="handleFullscreenChange($event, index)" class="!hidden"></video>
</fui-waterfall-item>
</fui-waterfall>
</view>
</view> -->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论