This commit is contained in:
lnn19986213 2023-08-07 10:49:08 +08:00
parent 10549eb1f1
commit 356d143ca3
16 changed files with 1556 additions and 1192 deletions

View File

@ -1,117 +1,116 @@
{ {
"name": "yxx", "name" : "yxx",
"appid": "__UNI__77CA6BC", "appid" : "__UNI__77CA6BC",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
"app-plus": { "app-plus" : {
/* 5+App */ /* 5+App */
"usingComponents": true, "usingComponents" : true,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
"modules": {}, "modules" : {},
/* */ /* */
"distribute": { "distribute" : {
/* */ /* */
"android": { "android" : {
/* android */ /* android */
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>", "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>", "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>", "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>", "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
] ]
}, },
"ios": {}, "ios" : {},
/* ios */ /* ios */
"sdkConfigs": {} "sdkConfigs" : {}
} }
}, },
/* SDK */ /* SDK */
"quickapp": {}, "quickapp" : {},
/* */ /* */
"mp-weixin": { "mp-weixin" : {
"appid": "wx55b187e6ed92e2ac", "appid" : "wx55b187e6ed92e2ac",
"setting": { "setting" : {
"urlCheck": true, "urlCheck" : true,
"minified": true, "minified" : true,
"es6": true, "es6" : true,
"postcss": true "postcss" : true
}, },
"usingComponents": true, "usingComponents" : true,
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading" : "requiredComponents",
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"plugins": { "plugins" : {
"player": { "player" : {
"version": "2.1.1", "version" : "2.1.1",
"provider": "wxa75efa648b60994b" "provider" : "wxa75efa648b60994b"
} }
} }
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
},
"mp-qq" : {
"usingComponents" : true
},
"h5" : {
"router" : {
"mode" : "hash"
},
"title" : "艺象心",
"devServer" : {
"disableHostCheck" : true, // Host false
"proxy" : {
// vueproxyTable,
"/pre" : {
//
"target" : "http://192.168.1.3:8080/h5/api", //
}, // "target" : "https://yxx.ydool.net/h5/api", //
"mp-alipay": { "changeOrigin" : true, //
"usingComponents": true "secure" : false, // https
}, "pathRewrite" : {
"mp-baidu": { "^/pre" : ""
"usingComponents": true } // pathRewrite/api,/apitarget/api
}, },
"mp-toutiao": { "/sock" : {
"usingComponents": true //
}, "target" : "ws:// 10.0.0.5:8080/webSocket", //
"mp-qq": { "changeOrigin" : true //
"usingComponents": true }
}, }
"h5": { }
"router": { }
"mode": "hash"
},
"title": "艺象心",
"devServer": {
"disableHostCheck": true, // Host false
"proxy": {
// vueproxyTable,
"/pre": {
//
"target": "http://192.168.1.3:8080/h5/api", //
// "target" : "https://yxx.ydool.net/h5/api", //
"changeOrigin": true, //
"secure": false, // https
"pathRewrite": {
"^/pre": ""
} // pathRewrite/api,/apitarget/api
},
"/sock": {
//
"target": "ws:// 10.0.0.5:8080/webSocket", //
"changeOrigin": true //
}
}
}
}
} }

View File

@ -445,6 +445,20 @@
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{
"path": "DataSearch/addNew",
"style": {
"navigationBarTitleText": "新建文件夹",
"enablePullDownRefresh": false
}
},
{
"path": "DataSearch/upload",
"style": {
"navigationBarTitleText": "上传文件",
"enablePullDownRefresh": false
}
},
{ {
"path": "enjoy/enjoy", "path": "enjoy/enjoy",
"style": { "style": {

View File

@ -165,7 +165,7 @@
<u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty> <u-empty v-if="list2.length == 0" mode="data" icon="../../static/orderE.png" marginTop="120"></u-empty>
</view> </view>
<!-- 取消报名-原因 --> <!-- 取消报名-原因 -->
<u-popup :show="showB" mode="center" :round="10" @close="closeZ"> <u-popup :show="showB" mode="center" :round="10" @close="closeZ" :safeAreaInsetBottom="false">
<view style="width: 640rpx;"> <view style="width: 640rpx;">
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<view style="font-size: 36rpx; font-weight: 800;"> <view style="font-size: 36rpx; font-weight: 800;">
@ -188,7 +188,7 @@
</view> </view>
</u-popup> </u-popup>
<!-- 取消报名-确认 --> <!-- 取消报名-确认 -->
<u-popup :show="showS" mode="center" :round="10" @close="closeS"> <u-popup :show="showS" mode="center" :round="10" @close="closeS" :safeAreaInsetBottom="false">
<view style="width: 640rpx;"> <view style="width: 640rpx;">
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<view style="font-size: 32rpx; font-weight: 800;"> <view style="font-size: 32rpx; font-weight: 800;">
@ -208,7 +208,7 @@
</view> </view>
</u-popup> </u-popup>
<!-- 评分 --> <!-- 评分 -->
<u-popup :show="showH" mode="center" :round="10" @close="closeH"> <u-popup :show="showH" mode="center" :round="10" @close="closeH" :safeAreaInsetBottom="false">
<view> <view>
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<u-rate v-model="star" size='36'></u-rate> <u-rate v-model="star" size='36'></u-rate>

View File

@ -46,7 +46,7 @@
</u--input> </u--input>
</view> </view>
</view> </view>
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;"> <u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;" :safeAreaInsetBottom="false">
<u-radio-group @change="selectForm1" v-model="hdType" :borderBottom="true" placement="column" <u-radio-group @change="selectForm1" v-model="hdType" :borderBottom="true" placement="column"
iconPlacement="right"> iconPlacement="right">
<u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist1" :key="index" <u-radio :customStyle="{marginBottom: '16px' }" v-for="(item, index) in radiolist1" :key="index"

View File

@ -36,7 +36,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-popup :show="showStar" @close="close" closeOnClickOverlay mode="center" :round="5"> <u-popup :show="showStar" @close="close" closeOnClickOverlay mode="center" :round="5" :safeAreaInsetBottom="false">
<view style="padding: 100rpx 100rpx 40rpx 100rpx;"> <view style="padding: 100rpx 100rpx 40rpx 100rpx;">
<text>确认取消关注</text> <text>确认取消关注</text>
</view> </view>

View File

@ -7,7 +7,7 @@
<view class="topTabs"> <view class="topTabs">
<u-tabs :list="list1" @click="click" lineColor="#99241B"></u-tabs> <u-tabs :list="list1" @click="click" lineColor="#99241B"></u-tabs>
</view> </view>
<view class="art_race_itm" v-for="(v,i) in dataList" :key="i" @click="goRaceDetail(v.id)"> <view v-if="dataList.length > 0" class="art_race_itm" v-for="(v,i) in dataList" :key="i" @click="goRaceDetail(v.id)">
<image style="width: 100%; height: 296rpx;" :src="v.file" mode=""></image> <image style="width: 100%; height: 296rpx;" :src="v.file" mode=""></image>
<view class="art_race_bot"> <view class="art_race_bot">
<text class="art_title">{{v.name}}</text> <text class="art_title">{{v.name}}</text>
@ -17,6 +17,10 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else>
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
</u-empty>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -64,6 +68,7 @@
console.log('item', item); console.log('item', item);
this.type = item.value this.type = item.value
this.pages = 1 this.pages = 1
this.dataList = []
this.getData() this.getData()
}, },
getType() { getType() {

View File

@ -85,7 +85,7 @@
</view> </view>
</view> </view>
<u-popup :show="showStar" @close="close" closeOnClickOverlay mode="center" :round="10"> <u-popup :show="showStar" @close="close" closeOnClickOverlay mode="center" :round="10" :safeAreaInsetBottom="false">
<view style="padding: 100rpx 100rpx 40rpx 100rpx;"> <view style="padding: 100rpx 100rpx 40rpx 100rpx;">
<u-rate count=5 v-model="orStar" size='30'></u-rate> <u-rate count=5 v-model="orStar" size='30'></u-rate>
</view> </view>

View File

@ -119,7 +119,7 @@
</view> </view>
</view> </view>
<!-- 取消报名-原因 --> <!-- 取消报名-原因 -->
<u-popup :show="showB" mode="center" :round="10" @close="closeZ"> <u-popup :show="showB" mode="center" :round="10" @close="closeZ" :safeAreaInsetBottom="false">
<view style="width: 640rpx;"> <view style="width: 640rpx;">
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<view style="font-size: 36rpx; font-weight: 800;"> <view style="font-size: 36rpx; font-weight: 800;">
@ -142,7 +142,7 @@
</view> </view>
</u-popup> </u-popup>
<!-- 取消报名-确认 --> <!-- 取消报名-确认 -->
<u-popup :show="showS" mode="center" :round="10" @close="closeS"> <u-popup :show="showS" mode="center" :round="10" @close="closeS" :safeAreaInsetBottom="false">
<view style="width: 640rpx;"> <view style="width: 640rpx;">
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<view style="font-size: 32rpx; font-weight: 800;"> <view style="font-size: 32rpx; font-weight: 800;">
@ -162,7 +162,7 @@
</view> </view>
</u-popup> </u-popup>
<!-- 报名-确认 --> <!-- 报名-确认 -->
<u-popup :show="showH" mode="center" :round="10" @close="closeH"> <u-popup :show="showH" mode="center" :round="10" @close="closeH" :safeAreaInsetBottom="false">
<view style="width: 640rpx;"> <view style="width: 640rpx;">
<view style="padding: 32rpx;"> <view style="padding: 32rpx;">
<view style="font-size: 32rpx; font-weight: 800;"> <view style="font-size: 32rpx; font-weight: 800;">

View File

@ -1,188 +1,326 @@
<template> <template>
<view> <view class="">
<view class="">
<view class="search_box"> <u-loading-page :loading="load"></u-loading-page>
<u-search height=42 margin="12px 0" searchIconColor="black" bgColor="#f8f8f8" searchIconSize="40rpx"
shape="square" :showAction="false" v-model="dataVal" placeholder="请输入资料名称"></u-search>
<view class="car_box" v-if="false">
<image src="../../static/DataSearch/chexboxs.png" mode=""></image>
<text style="font-size: 20rpx;">选择</text>
</view>
</view> </view>
<view v-if="!load">
<view class="search_box">
<view style="width: 100rpx; text-align: center;" @click="backTo()">
<view class="itm" v-for="(v,i) in folderList" :key="i"> 返回
<view class="fileImg">
<image src="../../static/DataSearch/Floder.png" mode=""></image>
</view>
<view class="data_detail_box" @click="GofileDetail(i)">
<view class="file_title">
{{v.folderName}}
</view> </view>
<view class="file_time"> <u-search height=42 margin="12px 0" searchIconColor="black" bgColor="#f8f8f8" searchIconSize="40rpx"
2021-12-18 17:08 shape="square" :showAction="false" v-model="dataVal" placeholder="请输入资料名称"></u-search>
</view> <view class="car_box " @click="isSelect=false">
<view class="dd" v-if="isSelect">
</view> <image src="../../static/DataSearch/chexboxs.png" mode=""></image>
<view class="moreImg" @click="clickDot(i)" style="position: relative;" :ref="'tankuang'+String(i)">
<image src="../../static/DataSearch/moreFCUN.png" mode=""></image>
<view class="poup_edit_box" v-if="i===dotNum">
<view class="poup_edit" @click="editDir">
<image style="width: 32rpx;height: 32rpx; margin-right: 4rpx;"
src="../../static/DataSearch/dirEdit.png" mode="">
</image> 编辑目录
</view> </view>
<view class="poup_del" @click="delDir"> <view class="dd" v-if="!isSelect" @click="moreSelected">
<image style="width: 32rpx; height: 32rpx;margin-right: 4rpx;" <checkbox-group @change="allChoose">
src="../../static/DataSearch/dirDel.png" mode=""> <label class="wr"
</image> 删除目录 style="display: flex; flex-direction: column;align-items: center; justify-content: space-around;">
<checkbox value="all" :checked="allChecked?true:false" />
<text style="font-size: 15rpx;margin-top: 8rpx;">全选</text>
</label>
</checkbox-group>
</view> </view>
</view> </view>
</view> </view>
<view class="itm" v-for="(v,i) in folderList" :key="i">
<view class="moreImg" v-if="false"> <view class="fileImg">
<image src="../../static/DataSearch/radioImg.png" v-if="false" mode=""></image> <image src="../../static/DataSearch/Floder.png" mode=""></image>
</view>
<view class="data_detail_box" @click="GofileDetail(v.id)">
<view class="file_title">
{{ v.name }}
</view>
<view class="file_time">
{{ v.createdAt }}
</view>
</view>
<view class="moreImg" @click="clickDot(v.id)" style="position: relative;">
<image src="../../static/DataSearch/moreFCUN.png" mode=""></image>
</view>
</view> </view>
<checkbox-group @change="changeCheckbox">
<view class="itm" v-for="(item,index) in checkboxData" :key="item.id">
<view class="fileImg">
<image :src="item.url" mode="" v-if="item.type == 'photo'"></image>
<image src="../../static/DataSearch/TxtImg.png" mode="" v-else-if="item.type == 'txt'"></image>
<image src="../../static/DataSearch/musicImg.png" mode="" v-else-if="item.type == 'music'">
</image>
<image src="../../static/DataSearch/other.png" mode="" v-else></image>
</view>
<view class="data_detail_box">
<view class="file_title">
<!-- 资料查找 -->
{{ item.name }}
</view>
<view class="file_time">
{{ item.createdAt }}
</view>
</view>
<view class="moreImg" v-if="isSelect" @click="delFile(item.id)">
<image src="../../static/DataSearch/dirDel.png" mode=""></image>
</view>
<view class="moreImg" style="width: 32rpx;height: 32rpx;" v-if="!isSelect">
<label class="wr">
<checkbox :value="item.id" :checked="checkedArr.includes(item.id)" />
</label>
</view>
</view>
</checkbox-group>
<view class="bottm" @click="show=!show">
<image src="../../static/orderHall/addOrder.png" mode=""></image>
</view>
<!-- 底部对文件的操作栏 -->
<view class="bottom_tab" v-if="!isSelect">
<view class="bottom_yx">
<!-- <view class="bottom_tab_itm" @click="downLoadAll()">
<view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/dowmSelected.png" mode=""></image>
</view>
<view class="bottom_tab_itm_txt">
下载
</view>
</view> -->
<view class="bottom_tab_itm" @click="delAll()">
<view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/Deletselected.png" mode=""></image>
</view>
<view class="bottom_tab_itm_txt">
删除
</view>
</view>
</view>
</view>
<!-- 底部对文件的操作栏 ed -->
<!-- 加号弹出框 -->
<u-popup :show="show" closeOnClickOverlay @close="() => show = false" round=5>
<view class="tan_con">
<view class="tit">
新建/上传
</view>
<view class="up_itm_box">
<view class="img_itm" @click="addDir(0)">
<view class="img">
<image src="../../static/DataSearch/Floder.png" mode=""></image>
</view>
<view class="Up_tit">
新建文件夹
</view>
</view>
<view class="img_itm" @click="addDir(1)">
<view class="img">
<image src="../../static/DataSearch/UploadImg.png" mode=""></image>
</view>
<view class="Up_tit">
上传文件
</view>
</view>
</view>
</view>
</u-popup>
<!-- 加号 ed -->
<!-- 三个点 删除目录 的弹出确认删除 -->
<u-modal width="550rpx" confirmText="确认删除" confirmColor='#E34D59' :show="showModel" showCancelButton
@confirm="confirmModel" @cancel="() => showModel = false">
<text style="font-size: 32rpx; font-weight: 600;color: #251B1D;margin: 25rpx 0;">确认删除目录</text>
</u-modal>
<!-- 三个点ed -->
</view> </view>
<view class="bottm" @click="show=!show">
<image src="../../static/orderHall/addOrder.png" mode=""></image>
</view>
<!-- 加号弹出框 -->
<u-popup :show="show" closeOnClickOverlay @close="() => show = false" @open="open" round=5>
<view class="tan_con">
<view class="tit">
上传文件
</view>
<view class="up_itm_box">
<view class="img_itm">
<view class="img">
<image src="../../static/DataSearch/UploadImg.png" mode=""></image>
</view>
<view class="Up_tit">
上传图片
</view>
</view>
<view class="img_itm">
<view class="img">
<image src="../../static/DataSearch/uploadDoc.png" mode=""></image>
</view>
<view class="Up_tit">
上传文档
</view>
</view>
<view class="img_itm">
<view class="img">
<image src="../../static/DataSearch/UploadVideo.png" mode=""></image>
</view>
<view class="Up_tit">
上传视频
</view>
</view>
<view class="img_itm">
<view class="img">
<image src="../../static/DataSearch/UploadMusic.png" mode=""></image>
</view>
<view class="Up_tit">
上传音频
</view>
</view>
</view>
</view>
</u-popup>
<!-- 加号 ed -->
<!-- 三个点 删除目录 的弹出确认删除 -->
<u-modal width="550rpx" confirmText="确认删除" confirmColor='#E34D59' :show="showModel" showCancelButton
@confirm="confirmModel" @cancel="() => showModel = false">
<text style="font-size: 32rpx; font-weight: 600;color: #251B1D;margin: 25rpx 0;">确认删除目录</text>
</u-modal>
<!-- 三个点ed -->
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
load: true,
isSelect: true,
dirIds: '',
tempNum: '', tempNum: '',
dataVal: "", dataVal: "",
show: false, show: false,
showDir: false,
allChecked: false,
listDir: [{
name: '删除文件夹'
}],
dotNum: '', dotNum: '',
showModel: false, showModel: false,
folderList: [{ folderList: [],
id: 1, checkboxData: [],
folderName: "资料查找" pages: 1,
}, { size: 20,
id: 2, checkedArr: [], //
folderName: "珍贵资料" parentId: '',
}, { oldID: [],
id: 3,
folderName: "影音文件夹"
}, {
id: 4,
folderName: "怀旧文件夹"
}, {
id: 5,
folderName: "资料查找"
}]
}; };
}, },
// onLoad() {
// this.getList()
// },
onShow() {
this.folderList = []
this.checkboxData = []
this.getList()
},
methods: { methods: {
//
confirmModel() { confirmModel() {
this.showModel = false; this.http.request('/information/delete?ids=' + this.dotNum, "POST").then(res => {
console.log("++++++",this); if (res.code == 200) {
// this ref this.showModel = false
this.pages = 1
this.folderList = []
this.checkboxData = []
this.load = false
this.showDir = false
this.getList()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}, },
clickDot(num) { clickDot(num) {
this.dotNum = num this.dotNum = num
this.tempNum = Number(num) this.delDir()
// this.showDir = true
}, },
editDir() { delFile(index) {
this.dotNum = index
uni.showToast({
title: "编辑目录"
})
},
delDir() {
this.showModel = true this.showModel = true
}, },
selectClick(index) {
if (index.name == '编辑文件夹') {
} else {
this.delDir()
}
},
delDir() {
this.showModel = true
},
moreSelected() {
this.allSelect = !this.allSelect
},
//
changeCheckbox(e) {
this.checkedArr = e.detail.value;
//
if (this.checkedArr.length > 0 && this.checkedArr.length == this.checkboxData.length) {
this.allChecked = true;
} else {
this.allChecked = false;
}
},
//
allChoose(e) {
let chooseItem = e.detail.value;
//
if (chooseItem[0] == 'all') {
this.allChecked = true;
for (let item of this.checkboxData) {
let itemVal = item.id;
if (!this.checkedArr.includes(itemVal)) {
this.checkedArr.push(itemVal);
}
}
} else {
//
this.allChecked = false;
this.checkedArr = [];
}
},
//
// outList() {
// let urlPath = http.config.baseUrl + '/activityUser/sign_export/' + this.activityId + '/' + this.type
// const token = uni.getStorageSync('token')
// if (this.isWx) {
// wx.downloadFile({
// url: urlPath, //
// header: {
// 'Authorization': "Bearer " + token,
// 'x-token': token
// },
// success(res) {
// // success
// if (res.statusCode === 200) {
// const filePath = res.tempFilePath;
// wx.openDocument({
// filePath: filePath,
// showMenu: true,
// success: function(res) {
// console.log(res, '');
// }
// });
// }
// }
// })
// } else {
// window.location.href = urlPath
// }
// }
delAll() {
this.dotNum = this.checkedArr.join(',')
this.confirmModel()
},
GofileDetail(id) { GofileDetail(id) {
this.oldID.push(this.parentId)
uni.navigateTo({ console.log(this.oldID)
url: "/pagesC/folderDetail/folderDetail?id=" + String(id) this.parentId = id
this.dirIds = id
this.folderList = []
this.checkboxData = []
this.getList()
},
backTo(){
this.parentId = this.oldID.slice(-1).join(',')
this.dirIds = this.oldID.slice(-1).join(',')
this.oldID.splice(-1,1)
this.folderList = []
this.checkboxData = []
this.getList()
},
addDir(val) {
if (val == '0') {
uni.navigateTo({
url: "/pagesC/DataSearch/addNew?id=" + this.parentId
})
} else if (val == '1') {
uni.navigateTo({
url: "/pagesC/DataSearch/upload?id=" + this.parentId
})
}
},
getList() {
let that = this
let par = {
dirIds: this.dirIds,
name: this.dataVal
}
this.http.request('/information/list', par, "GET").then(res => {
if (res.code == 200) {
res.data.records.forEach(item => {
if (item.type == 'dir') {
that.folderList.push(item)
} else {
that.checkboxData.push(item)
}
})
this.load = false
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
}) })
} },
} }
} }
</script> </script>
@ -195,14 +333,19 @@
.search_box { .search_box {
padding: 32rpx; padding: 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
box-sizing: border-box;
.car_box { .car_box {
width: 24px; width: 48rpx;
height: 24px; height: 48rpx;
margin-left: 12px; margin-left: 24rpx;
.dd {
width: 48rpx;
height: 48rpx;
}
} }
} }
@ -279,6 +422,36 @@
overflow: hidden; overflow: hidden;
} }
.bottom_tab {
height: 170rpx;
// border: 1px solid red;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
.bottom_yx {
color: $black;
display: flex;
justify-content: space-around;
background-color: #F7F7F7;
height: 170rpx;
.bottom_tab_itm {
display: flex;
align-items: center;
.bottom_tab_itm_img {
width: 32rpx;
height: 32rpx;
margin-right: 8rpx;
}
}
}
}
.tan_con { .tan_con {

View File

@ -0,0 +1,64 @@
<template>
<view style="margin: 0rpx 48rpx;">
<view class="">
<u--input placeholder="请输入文件夹名称" clearable v-model="registInfo.name">
</u--input>
</view>
<view style="margin-top: 80rpx;">
<u-button text="确认" size="large" color="#99241B"
@click="submitNext"></u-button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tips: '',
registInfo: {
name: '',
userRole: 'zyz,wyrc',
parentId: '',
isExtent: '',
dirIds: '/',
}
};
},
onLoad(op) {
this.registInfo.parentId = op.id
if(op.id){
this.registInfo.dirIds = op.id
}else{
this.registInfo.dirIds = '/'
}
},
methods: {
submitNext() {
let data = {
name: this.registInfo.name,
userRole: this.registInfo.userRole,
parentId: this.registInfo.parentId,
dirIds: this.registInfo.dirIds,
}
this.http.request('/information/add', data, "POST").then(res => {
if (res.code == 200) {
uni.navigateBack()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
},
}
</script>
<style lang="scss">
.data_itm {
margin: 30rpx 0px;
}
</style>

View File

@ -0,0 +1,246 @@
<template>
<view class="">
<view class="form_line">
<view class="form_left">
名称
</view>
<view class="form_right">
<u--input placeholder="请输入名称" v-model="name" clearable border="none" inputAlign="right"
style="color: #251B1D;">
</u--input>
</view>
</view>
<view class="form_line">
<view class="form_left">
类型
</view>
<view class="form_right">
<u--input placeholder="请输入类型" v-model="text2" clearable border="none" inputAlign="right"
style="color: #251B1D;">
</u--input>
</view>
</view>
<view class="gap">
文件上传
</view>
<u-upload v-if="isWx" class="upload" width="172rpx" height="172rpx" :fileList="fileList3" accept="all"
@afterRead="afterRead" @delete="deletePic" name="3" multiple :maxCount="1">
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
<u-upload v-else class="upload" width="172rpx" height="172rpx" :fileList="fileList3" accept="file"
@afterRead="afterRead" @delete="deletePic" name="3" multiple :maxCount="1">
<image style="width: 172rpx;height: 172rpx;" src="../../static/improveData/jia.png"></image>
</u-upload>
<view class="operation" @click="next">
发布
</view>
</view>
</template>
<script>
import http from '../../request/interface.js'
export default {
data() {
return {
id: '',
name: '',
text2: '',
fileList3: [],
ok: true,
isWx: true,
}
},
onLoad(op){
if(op.id){
this.id = op.id
}else{
this.id = '/'
}
},
onReady() {
// #ifdef MP-WEIXIN
this.isWx = true
// #endif
// #ifndef MP-WEIXIN
//
this.isWx = false
// #endif
},
methods: {
//
deletePic(event) {
this[`fileList${event.name}`].splice(event.index, 1)
},
//
async afterRead(event) {
// mutiple true , file
let lists = [].concat(event.file)
let fileListLen = this[`fileList${event.name}`].length
lists.map((item) => {
this[`fileList${event.name}`].push({
...item,
status: 'uploading',
message: '上传中'
})
})
for (let i = 0; i < lists.length; i++) {
const result = await this.uploadFilePromise(lists[i].url)
let item = this[`fileList${event.name}`][fileListLen]
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
status: 'success',
message: '',
url: result
}))
fileListLen++
}
},
uploadFilePromise(url) {
let token = uni.getStorageSync('token');
return new Promise((resolve, reject) => {
let a = uni.uploadFile({
url: http.config.baseUrl + '/file/uploadUnlimited',
filePath: url,
name: 'file',
formData: {
user: 'test'
},
header: {
"X-Token": token
},
success: (res) => {
if (JSON.parse(res.data).code == 200) {
setTimeout(() => {
resolve(JSON.parse(res.data).data.path)
}, 1000)
} else {
uni.showToast({
title: JSON.parse(res.data).message,
icon: "none",
});
this.fileList3.pop()
}
}
});
})
},
next() {
this.ok = true
if(this.name == ''){
uni.showToast({
title: '请输入名称',
icon: "none",
});
this.ok = false
return
}
if(this.text2 == ''){
uni.showToast({
title: '请输入类型',
icon: "none",
});
this.ok = false
return
}
if(this.fileList3.length == 0){
uni.showToast({
title: '请上传文件',
icon: "none",
});
this.ok = false
return
}
if(this.ok){
let image = []
this.fileList3.forEach(function(item) {
image.push(item.url)
})
let data = image.join(',')
this.http.request('/information/upload?dirIds=' + this.id + '&type=' + this.text2 + '&name=' + this.name + '&url=' + data , {}, "POST").then(res => {
if (res.code == 200) {
uni.navigateBack()
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
}
}
}
}
</script>
<style>
</style>
<style lang="scss" scoped>
/deep/ .uni-icons{
display: none;
}
/deep/ .uni-date-x{
text-align: right;
padding: 0;
}
.form_line {
width: 686rpx;
padding: 0 32rpx;
display: flex;
align-items: center;
font-size: 32rpx;
justify-content: space-between;
height: 104rpx;
border-bottom: 1rpx solid #dadbde;
.form_right {
width: 450rpx;
}
}
.form_box {
width: 686rpx;
padding: 0 32rpx;
display: flex;
align-items: center;
font-size: 32rpx;
justify-content: space-between;
height: 104rpx;
}
.text_box {
width: 686rpx;
padding: 0 32rpx;
}
.gap {
color: #AFADB0;
background: #F5F5F5;
opacity: 1;
padding: 10rpx 32rpx;
font-size: 32rpx;
}
::v-deep .u-upload__wrap {
padding: 32rpx;
}
.upload {
padding: 32rpx;
}
.operation {
width: 654rpx;
height: 96rpx;
margin: 32rpx 48rpx 48rpx;
text-align: center;
line-height: 96rpx;
background-color: #99241B;
color: #fff;
font-size: 36rpx;
font-weight: 600;
}
</style>

View File

@ -1,8 +1,6 @@
<template> <template>
<view> <view>
<view class="search_box"> <view class="search_box">
<u-search height=42 margin="12px 0" searchIconColor="black" bgColor="#f8f8f8" searchIconSize="40rpx" <u-search height=42 margin="12px 0" searchIconColor="black" bgColor="#f8f8f8" searchIconSize="40rpx"
shape="square" :showAction="false" v-model="dataVal" placeholder="请输入资料名称"></u-search> shape="square" :showAction="false" v-model="dataVal" placeholder="请输入资料名称"></u-search>
<view class="car_box " @click="isSelect=false"> <view class="car_box " @click="isSelect=false">
@ -11,26 +9,21 @@
<text style="font-size: 20rpx;">选择</text> <text style="font-size: 20rpx;">选择</text>
</view> </view>
<view class="dd" v-if="!isSelect" @click="moreSelected"> <view class="dd" v-if="!isSelect" @click="moreSelected">
<checkbox-group @change="allChoose"> <checkbox-group @change="allChoose">
<label class="wr" style="display: flex; flex-direction: column;align-items: center; justify-content: space-around;"> <label class="wr" style="display: flex; flex-direction: column;align-items: center; justify-content: space-around;">
<checkbox value="all" :checked="allChecked?true:false" /> <checkbox value="all" :checked="allChecked?true:false" />
<text style="font-size: 15rpx;margin-top: 8rpx;">全选</text> <text style="font-size: 15rpx;margin-top: 8rpx;">全选</text>
</label> </label>
</checkbox-group> </checkbox-group>
</view> </view>
</view> </view>
</view> </view>
<checkbox-group @change="changeCheckbox"> <checkbox-group @change="changeCheckbox">
<view class="itm" v-for="(item,index) in checkboxData" :key="item.value"> <view class="itm" v-for="(item,index) in checkboxData" :key="item.value">
<view class="fileImg"> <view class="fileImg">
<image src="../../static/DataSearch/musicImg.png" mode=""></image> <image src="../../static/DataSearch/musicImg.png" mode=""></image>
</view> </view>
<view class="data_detail_box"> <view class="data_detail_box">
<view class="file_title"> <view class="file_title">
<!-- 资料查找 --> <!-- 资料查找 -->
{{item.label}} {{item.label}}
@ -38,27 +31,19 @@
<view class="file_time"> <view class="file_time">
2021-12-18 17:08 220KB 2021-12-18 17:08 220KB
</view> </view>
</view> </view>
<view class="moreImg" v-if="isSelect" @click="delFile(index)"> <view class="moreImg" v-if="isSelect" @click="delFile(index)">
<image src="../../static/DataSearch/dirDel.png" mode=""></image> <image src="../../static/DataSearch/dirDel.png" mode=""></image>
</view> </view>
<view class="moreImg" style="width: 32rpx;height: 32rpx;" v-if="!isSelect"> <view class="moreImg" style="width: 32rpx;height: 32rpx;" v-if="!isSelect">
<label class="wr"> <label class="wr">
<checkbox :value="String(item.value)" :checked="checkedArr.includes(String(item.value))" /> <checkbox :value="String(item.value)" :checked="checkedArr.includes(String(item.value))" />
</label> </label>
</view> </view>
</view> </view>
</checkbox-group> </checkbox-group>
<!-- 底部对文件的操作栏 --> <!-- 底部对文件的操作栏 -->
<view class="bottom_tab" v-if="!isSelect"> <view class="bottom_tab" v-if="!isSelect">
<view class="bottom_wx" v-if="checkedArr.length > 0 ? false: true"> <view class="bottom_wx" v-if="checkedArr.length > 0 ? false: true">
<view class="bottom_tab_itm"> <view class="bottom_tab_itm">
<view class="bottom_tab_itm_img"> <view class="bottom_tab_itm_img">
@ -68,8 +53,6 @@
下载 下载
</view> </view>
</view> </view>
<view class="bottom_tab_itm"> <view class="bottom_tab_itm">
<view class="bottom_tab_itm_img"> <view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/share.png" mode=""></image> <image src="../../static/DataSearch/share.png" mode=""></image>
@ -78,7 +61,6 @@
分享 分享
</view> </view>
</view> </view>
<view class="bottom_tab_itm"> <view class="bottom_tab_itm">
<view class="bottom_tab_itm_img"> <view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/Delet.png" mode=""></image> <image src="../../static/DataSearch/Delet.png" mode=""></image>
@ -88,8 +70,6 @@
</view> </view>
</view> </view>
</view> </view>
<view class="bottom_yx" v-if="checkedArr.length > 0"> <view class="bottom_yx" v-if="checkedArr.length > 0">
<view class="bottom_tab_itm"> <view class="bottom_tab_itm">
<view class="bottom_tab_itm_img"> <view class="bottom_tab_itm_img">
@ -100,16 +80,6 @@
</view> </view>
</view> </view>
<view class="bottom_tab_itm">
<view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/shareSelected.png" mode=""></image>
</view>
<view class="bottom_tab_itm_txt">
分享
</view>
</view>
<view class="bottom_tab_itm"> <view class="bottom_tab_itm">
<view class="bottom_tab_itm_img"> <view class="bottom_tab_itm_img">
<image src="../../static/DataSearch/Deletselected.png" mode=""></image> <image src="../../static/DataSearch/Deletselected.png" mode=""></image>
@ -121,17 +91,10 @@
</view> </view>
</view> </view>
<!-- 底部对文件的操作栏 ed --> <!-- 底部对文件的操作栏 ed -->
<view class="bottm" @click="zhanKai"> <view class="bottm" @click="zhanKai">
<image src="../../static/orderHall/addOrder.png" mode=""></image> <image src="../../static/orderHall/addOrder.png" mode=""></image>
</view> </view>
<!-- 弹出框 加号的弹出框--> <!-- 弹出框 加号的弹出框-->
<u-popup :show="show" closeOnClickOverlay @close="() => show = false" @open="open" round=5> <u-popup :show="show" closeOnClickOverlay @close="() => show = false" @open="open" round=5>
<view class="tan_con"> <view class="tan_con">
<view class="tit"> <view class="tit">
@ -147,8 +110,6 @@
上传图片 上传图片
</view> </view>
</view> </view>
<view class="img_itm"> <view class="img_itm">
<view class="img"> <view class="img">
<image src="../../static/DataSearch/uploadDoc.png" mode=""></image> <image src="../../static/DataSearch/uploadDoc.png" mode=""></image>
@ -157,7 +118,6 @@
上传文档 上传文档
</view> </view>
</view> </view>
<view class="img_itm"> <view class="img_itm">
<view class="img"> <view class="img">
<image src="../../static/DataSearch/UploadVideo.png" mode=""></image> <image src="../../static/DataSearch/UploadVideo.png" mode=""></image>
@ -166,7 +126,6 @@
上传视频 上传视频
</view> </view>
</view> </view>
<view class="img_itm"> <view class="img_itm">
<view class="img"> <view class="img">
<image src="../../static/DataSearch/UploadMusic.png" mode=""></image> <image src="../../static/DataSearch/UploadMusic.png" mode=""></image>
@ -184,9 +143,7 @@
@confirm="fileOprModelConfirm" @cancel="() => showModel = false"> @confirm="fileOprModelConfirm" @cancel="() => showModel = false">
<text style="font-size: 32rpx; font-weight: 600;color: #251B1D;margin: 25rpx 0;">确认删除文件</text> <text style="font-size: 32rpx; font-weight: 600;color: #251B1D;margin: 25rpx 0;">确认删除文件</text>
</u-modal> </u-modal>
<!-- 三个点ed --> <!-- 三个点ed -->
</view> </view>
</template> </template>

View File

@ -1,248 +1,277 @@
<template> <template>
<!-- 文艺下乡 --> <view class="wyxx">
<view class="wyxx"> <view class="forms">
<!-- <view class="tabTitle"> <view class="teamBox" v-for="item in list" :key="item.id">
<view :class="tabC == '0' ? 'tabsC' : 'tabs'" @click="toTab('0')"> <view class="teamBox-top">
<view> 分类 </view> <video id="myVideo" :src="item.file" @error="videoErrorCallback"
<view class="line"></view> style="width: 750rpx;height: 500rpx;" controls></video>
</view> </view>
<view :class="tabC == '1' ? 'tabsC' : 'tabs'" @click="toTab('1')"> <view class="teamBox-bottom">
<view> 分类1 </view> <view class="interactive">
<view class="line"></view> <image src="../../static/play-1.png" mode=""></image>
</view> <view class="title">{{ item.views }}</view>
<view :class="tabC == '2' ? 'tabsC' : 'tabs'" @click="toTab('2')"> </view>
<view> 分类2 </view> <view class="interactive">
<view class="line"></view> <image src="../../static/workDetail/heart2.png" class="bot_img" v-if="item.isGreat"
</view> @click="clickHeart()">
<view :class="tabC == '3' ? 'tabsC' : 'tabs'" @click="toTab('3')"> </image>
<view> 分类3 </view> <image src="../../static/workDetail/heart1.png" class="bot_img" v-else @click="clickHeart(item.isGreat,item.id)">
<view class="line"></view> </image>
</view> <view class="title" @click="clickHeart(item.isGreat,item.id)">
<view :class="tabC == '4' ? 'tabsC' : 'tabs'" @click="toTab('4')"> {{item.likes}}
<view> 分类4 </view> </view>
<view class="line"></view> </view>
</view> <view class="interactive">
</view> --> <image src="../../static/workDetail/star2.png" class="bot_img" v-if="item.isColl"
<view class="forms"> @click="clickStar()"></image>
<view <image src="../../static/workDetail/star1.png" class="bot_img" v-else @click="clickStar(item.isColl,item.id)">
class="teamBox" </image>
v-for="item in list" <view class="title" @click="clickStar(item.isColl,item.id)">
:key="item.id" {{item.collections}}
@click="skip({ id: item.id })" </view>
> </view>
<view class="teamBox-top"> </view>
<view class="content"> </view>
<view class="content-title"> </view>
<text>{{ item.name }}</text> </view>
</view>
<image
class="team-image"
src="https://cdn.uviewui.com/uview/album/1.jpg"
mode="scaleToFill"
/>
</view>
<view class="mask">
<view class="mask-play">
<image src="../../static/play.png"></image>
</view>
</view>
</view>
<view class="teamBox-bottom">
<view class="interactive">
<image src="../../static/play-1.png" mode=""></image>
<view class="title">{{ item.views }}</view>
</view>
<view class="interactive">
<image src="../../static/workDetail/heart1.png" mode=""></image>
<view class="title">{{ item.likes }}</view>
</view>
<view class="interactive">
<image src="../../static/workDetail/star1.png" mode=""></image>
<view class="title">{{ item.collections }}</view>
</view>
</view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
// tabC: "0", // tabC: "0",
videoList: [ list: [],
{ query: {
title: page: 1,
"美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学美丽科学", size: 20,
playback: "40.123", },
like: "8.112.490", };
collect: "8.112.490", },
// video: "../../static/a1.mp4", onShow() {
play: true, // this.getData();
}, this.get();
], },
list: [], mounted() {},
query: { methods: {
total: 1, toTab(val) {
page: 1, this.tabC = val;
size: 20, // this.getData()
}, },
}; //
}, clickHeart(val0,val1) {
onShow() { console.log(val1)
// this.getData(); if (val0) {
this.get(); this.http.request('/worksGreat/delGreat?type=3&workId=' + val1, "POST").then(res => {
}, if (res.code == 200) {
mounted() {}, this.get()
methods: { }
toTab(val) { }).catch(e => {
this.tabC = val; uni.showToast({
// this.getData() title: e.data.message,
}, icon: "none",
get() { });
this.http })
.request("/exhibition/list", this.query, "GET") } else {
.then((res) => { this.http.request('/worksGreat/addGreat?type=3&workId=' + val1, "POST").then(res => {
if (res.code == 200) { if (res.code == 200) {
this.list = res.data.records; this.get()
this.query.total = res.data.total; }
this.query.page = res.data.current; }).catch(e => {
this.query.size = res.data.size; uni.showToast({
} title: e.data.message,
}) icon: "none",
.catch((err) => { });
uni.showToast({ })
title: e.data.message, }
icon: "none", },
}); //
}); clickStar(val0,val1) {
}, if (val0) {
skip(query = {}) { this.http.request('/worksCollection/delCollection?workId=' + val1 + '&type=3', "POST").then(res => {
uni.navigateTo({ if (res.code == 200) {
// this.get()
url: "/pagesD/xskz/details", }
}); }).catch(e => {
}, uni.showToast({
playMask(obj) { title: e.data.message,
// this.videoList[index].play = false; icon: "none",
// var video = document.getElementById("video"); });
// // })
// video.addEventListener("pause", function (e) { } else {
// console.log(""); this.http.request('/worksCollection/addCollection?workId=' + val1 + '&type=3', "POST").then(res => {
// console.log(e); if (res.code == 200) {
// }); this.get()
// // 15ended }
// video.addEventListener("ended", function (e) { }).catch(e => {
// console.log(""); uni.showToast({
// console.log(e); title: e.data.message,
// }); icon: "none",
}, });
}, })
}; }
},
get() {
this.http
.request("/exhibition/list", this.query, "GET")
.then((res) => {
if (res.code == 200) {
this.list = res.data.records;
this.query.page = res.data.current;
this.query.size = res.data.size;
}
})
.catch((err) => {
uni.showToast({
title: e.data.message,
icon: "none",
});
});
},
skip(query = {}) {
uni.navigateTo({
//
url: "/pagesD/xskz/details",
});
},
videoErrorCallback: function(e) {
console.log(e.target.errMsg)
uni.showModal({
content: e.target.errMsg,
showCancel: false
})
},
playMask(obj) {
// this.videoList[index].play = false;
// var video = document.getElementById("video");
// //
// video.addEventListener("pause", function (e) {
// console.log("");
// console.log(e);
// });
// // 15ended
// video.addEventListener("ended", function (e) {
// console.log("");
// console.log(e);
// });
},
},
};
</script> </script>
<style lang="scss"> <style lang="scss">
.wyxx { .wyxx {
background-color: #fefefe; background-color: #fefefe;
} }
.tabTitle { .tabTitle {
display: flex; display: flex;
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
.tabs { .tabs {
width: 33.3%; width: 33.3%;
text-align: center; text-align: center;
padding: 32rpx 0 0rpx; padding: 32rpx 0 0rpx;
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
.line { .line {
width: 36rpx; width: 36rpx;
height: 4rpx; height: 4rpx;
margin: 10rpx auto 8rpx; margin: 10rpx auto 8rpx;
} }
} }
.tabsC { .tabsC {
width: 33.3%; width: 33.3%;
text-align: center; text-align: center;
padding: 32rpx 0 0; padding: 32rpx 0 0;
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
color: #000; color: #000;
.line { .line {
width: 44rpx; width: 44rpx;
height: 4rpx; height: 4rpx;
margin: 10rpx auto 8rpx; margin: 10rpx auto 8rpx;
background-color: #a02521; background-color: #a02521;
} }
} }
} }
.forms { .forms {
margin: 40rpx auto 0rpx; margin: 40rpx auto 0rpx;
.teamBox {
.teamBox-top { .teamBox {
position: relative; .teamBox-top {
.content { position: relative;
position: relative;
z-index: 4; .content {
.content-title { position: relative;
position: absolute; z-index: 4;
z-index: 10;
padding: 18rpx; .content-title {
text { position: absolute;
color: #fff; z-index: 10;
max-width: 500rpx; padding: 18rpx;
overflow: hidden; /* 超出一行文字自动隐藏 */
text-overflow: ellipsis; /*文字隐藏后添加省略号*/ text {
white-space: nowrap; color: #fff;
} max-width: 500rpx;
} overflow: hidden;
.team-image { /* 超出一行文字自动隐藏 */
width: 100%; text-overflow: ellipsis;
height: 400rpx; /*文字隐藏后添加省略号*/
} white-space: nowrap;
} }
.mask { }
position: absolute;
top: 0; .team-image {
left: 0; width: 100%;
right: 0; height: 400rpx;
bottom: 0; }
z-index: 12; }
display: flex;
align-items: center; .mask {
justify-content: center; position: absolute;
.mask-play { top: 0;
image { left: 0;
width: 60rpx; right: 0;
height: 60rpx; bottom: 0;
} z-index: 12;
} display: flex;
} align-items: center;
} justify-content: center;
.teamBox-bottom {
display: flex; .mask-play {
justify-content: space-between; image {
padding: 15rpx 32rpx; width: 60rpx;
background-color: #fff; height: 60rpx;
box-sizing: border-box; }
.interactive { }
display: flex; }
align-items: center; }
image {
width: 30rpx; .teamBox-bottom {
height: 30rpx; display: flex;
margin-right: 12rpx; justify-content: space-between;
} padding: 15rpx 32rpx;
} background-color: #fff;
} box-sizing: border-box;
}
} .interactive {
display: flex;
align-items: center;
image {
width: 30rpx;
height: 30rpx;
margin-right: 12rpx;
}
}
}
}
}
</style> </style>

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,10 @@
export default { export default {
config: { config: {
baseUrl: "http://192.168.1.3:8080/h5/api", //俞燕红-小程序不能配跨域 // baseUrl: "http://192.168.1.3:8080/h5/api", //俞燕红-小程序不能配跨域
// baseUrl: "/pre", //俞燕红-跨域 // baseUrl: "/pre", //俞燕红-跨域
// baseUrl: "https://yxx.ydool.net/h5/api", //线上 // baseUrl: "https://yxx.ydool.net/h5/api", //线上
// baseUrl: "/h5/api", //h5 baseUrl: "/h5/api", //h5
header: { header: {
'Content-Type': 'application/json;charset=UTF-8', 'Content-Type': 'application/json;charset=UTF-8',
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B