This commit is contained in:
kbing1981 2024-07-25 15:43:18 +08:00
parent 212186dbb3
commit 07d702fee2
7 changed files with 74 additions and 49 deletions

View File

@ -19,7 +19,7 @@
<view class="back-img"> <view class="back-img">
<image :src="avatar" class="head-port" @click="goNav('/pages/my/userinfo')"></image> <image :src="avatar" class="head-port" @click="goNav('/pages/my/userinfo')"></image>
<image class="popop-kuang" src="../../static/grade3.gif"></image> <image class="popop-kuang" :src="technicianType=='3'?'../../static/grade1.gif':technicianType=='4'?'../../static/grade2.gif':'../../static/grade3.gif'"></image>
</view> </view>
<view class="u-flex-1" v-if="isLogin && userName"> <view class="u-flex-1" v-if="isLogin && userName">
<view class="u-font-18"> <view class="u-font-18">

View File

@ -12,9 +12,11 @@
<view class="page-head-mian"> <view class="page-head-mian">
<view class="page-head-ft"> <view class="page-head-ft">
<view class="page-head-xuan" @click="xuanzhe"> <view class="page-head-xuan" @click="xuanzhe">
<image class="service-viedeimg" src="../../static/videoimg1.png"></image>
选择 选择
</view> </view>
<view class="" @click="setVideo"> <view class="page-head-xuan" @click="setVideo">
<image class="service-viedeimg" src="../../static/videoimg2.png"></image>
发布视频 发布视频
</view> </view>
@ -22,13 +24,13 @@
</view> </view>
</view> </view>
</view> </view>
<scroll-view :style="'width: 100%; height: '+ (windowHeight) +'px; background-color: #000000;'" :scroll-y="true" @scrolltolower="scrolltolower" :lower-threshold="lowerThreshold"> <scroll-view :style="'width: 100%; height: '+ (windowHeight) +'px; background-color: #f5f5f5;'" :scroll-y="true" @scrolltolower="scrolltolower" :lower-threshold="lowerThreshold">
<view style="display: flex; flex-direction: row; flex-wrap: wrap;padding-top: 70px;"> <view style="display: flex; flex-direction: row; flex-wrap: wrap;padding-top: 46px;">
<checkbox-group class="checkbox-group" @change="checkboxChange"> <checkbox-group class="checkbox-group" @change="checkboxChange">
<view class="checkbox-group-list" v-for="(list,index) in dataList" :key="index"> <view class="checkbox-group-list" v-for="(list,index) in dataList" :key="index">
<view class="data-list"> <view class="data-list">
<image v-if="checkboxShow==1" @click="towxh5Video(list)" :src="list.picPath" mode="aspectFill" style="width: 100%; height: 100%;"></image> <image v-if="checkboxShow==1" @click="towxh5Video(list)" :src="list.picPath" mode="aspectFill" style="width: 100%; height: 100%;border-radius: 10rpx;"></image>
<image v-if="checkboxShow==0" :src="list.picPath" mode="aspectFill" style="width: 100%; height: 100%;"></image> <image v-if="checkboxShow==0" :src="list.picPath" mode="aspectFill" style="width: 100%; height: 100%; border-radius: 10rpx;"></image>
<checkbox v-if="checkboxShow==0" class="check-list" style="border-radius:50%;" activeBackgroundColor="#029d88" color="#029d88" :value="list.id.toString()" :checked="checkbox"/> <checkbox v-if="checkboxShow==0" class="check-list" style="border-radius:50%;" activeBackgroundColor="#029d88" color="#029d88" :value="list.id.toString()" :checked="checkbox"/>
</view> </view>
</view> </view>
@ -36,6 +38,7 @@
</view> </view>
</scroll-view> </scroll-view>
<view class="shanchu" v-if="checkboxShow==0" @click="deleteVodeo"> <view class="shanchu" v-if="checkboxShow==0" @click="deleteVodeo">
<image class="service-deleimg" src="../../static/dele.png"></image>
<span>删除</span> <span>删除</span>
</view> </view>
<uni-popup style="width: 100%;height: 100vh;" type="center" ref="pinglun" @touchmove.stop.prevent="moveHandle"> <uni-popup style="width: 100%;height: 100vh;" type="center" ref="pinglun" @touchmove.stop.prevent="moveHandle">
@ -277,10 +280,13 @@
<style scoped> <style scoped>
.shanchu{ .shanchu{
width: 100%; width: 100%;
height: 30px; height: 48px;
line-height: 30px; position: fixed;
text-align: center; bottom: 0px;
background-color: #fff; display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
} }
.check-list{ .check-list{
position: absolute; position: absolute;
@ -290,10 +296,10 @@
margin-bottom: 5px; margin-bottom: 5px;
} }
.data-list{ .data-list{
padding:4rpx;
width:100%; width:100%;
height:100%; height:100%;
background-color: #000000; background-color: #fff;
} }
.checkbox-group-list{ .checkbox-group-list{
position: relative; position: relative;
@ -314,14 +320,18 @@
} }
/deep/.uni-checkbox-input{ /deep/.uni-checkbox-input{
border-radius: 50%; border-radius: 50%;
width: 26px; width: 23px;
height: 26px; height: 24px;
} }
.page-head-xuan{ .page-head-xuan{
margin-left: 10px; margin-left: 10px;
display: flex;
flex-direction: row;
align-items: center;
font-size: 24rpx;
color: #333;
} }
.page-head-mian{ .page-head-mian{
width: 60%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
@ -388,8 +398,6 @@
} }
.page-head-ft{ .page-head-ft{
display: -webkit-box;
display: -webkit-flex;
display: flex; display: flex;
-webkit-box-align: center; -webkit-box-align: center;
-webkit-align-items: center; -webkit-align-items: center;
@ -400,6 +408,7 @@
flex-direction: row-reverse; flex-direction: row-reverse;
font-size: 13px; font-size: 13px;
box-sizing: border-box; box-sizing: border-box;
margin-right: 20rpx;
} }
.btn-icon{ .btn-icon{
color: rgb(0, 0, 0); color: rgb(0, 0, 0);
@ -474,4 +483,12 @@
width: 120rpx; width: 120rpx;
height: 40rpx; height: 40rpx;
} }
.service-viedeimg{
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
.service-deleimg{
width: 40rpx;
height:40rpx;}
</style> </style>

View File

@ -1,12 +1,11 @@
<template> <template>
<view style="padding-bottom: 100upx; margin-top: 20rpx;"> <view>
<view class=" padding bg radius margin"> <view class="padding bg radius margin">
<view class="padding-top">发布内容</view> <view class="padding-top">发布内容</view>
<view class="margin-tb-sm"> <view class="margin-tb-sm">
<u-input v-model="form.describes" style="border-radius: 20rpx;" <u-input v-model="form.describes" style="border-radius: 20rpx;"
type="textarea" height="200" placeholde="请填写发布内容" maxlengt="200" :clearable="false" /> type="textarea" height="200" placeholde="请填写发布内容" maxlengt="200" :clearable="false" />
</view> </view>
<view style="height: 15rpx;"></view>
</view> </view>
<view class=" padding bg radius margin"> <view class=" padding bg radius margin">
<view class="margin-top-sm">上传视频</view> <view class="margin-top-sm">上传视频</view>
@ -21,12 +20,10 @@
</view> </view>
</view> </view>
<view class="margin-top" @click="addvideo" v-if="videosList.length<=0"> <view class="margin-top" @click="addvideo" v-if="videosList.length<=0">
<view style="width: 200rpx;height: 200rpx;background: #f7f8fa;" <view class="flex justify-center align-center video-img">
class="flex justify-center align-center">
<view> <view>
<view class="text-center"> <view class="text-center">
<image src="../../static/images/my/avatar.png" style="width: 80rpx;height: 80rpx;"> <image src="../../static/images/my/video.png" style="width: 80rpx;height: 80rpx;"></image>
</image>
</view> </view>
<view class="text-center add-word">添加视频</view> <view class="text-center add-word">添加视频</view>
</view> </view>
@ -46,24 +43,20 @@
</view> </view>
</view> </view>
<view class="margin-top" @click="addImage(4)" v-if="form.headImg.length<=0"> <view class="margin-top" @click="addImage(4)" v-if="form.headImg.length<=0">
<view style="width: 200rpx;height: 200rpx;background: #f7f8fa;" <view class="flex justify-center align-center video-img">
class="flex justify-center align-center">
<view> <view>
<view class="text-center"> <view class="text-center">
<image src="../../static/images/my/avatar.png" style="width: 80rpx;height: 80rpx;"> <image src="../../static/images/my/avatar.png" style="width: 80rpx;height: 80rpx;"></image>
</image>
</view> </view>
<view class="text-center add-word">添加头像</view> <view class="text-center add-word">添加头像</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="push-button">
<view class="tabbar"
@click="submit()">发布
</view>
<view class="tabbar" style="background: linear-gradient(to right, #019c88, #2dbe93); border-radius: 50rpx;"
@click="submit()">提交发布
</view> </view>
</view> </view>
</template> </template>
@ -207,11 +200,10 @@
.bg { .bg {
width: 94%; width: 94%;
margin:30rpx auto; margin:20rpx auto;
background-color: #FFFFFF; background-color: #FFFFFF;
padding: 20rpx 36rpx; padding: 20rpx 36rpx;
border-radius: 26rpx; border-radius: 26rpx;
} }
.add-word{ .add-word{
font-size: 26rpx; font-size: 26rpx;
@ -232,14 +224,14 @@
flex: 200rpx 1 !important; flex: 200rpx 1 !important;
} }
.footer { /*.footer {
padding-left: 30upx; padding-left: 30upx;
font-size: 24upx; font-size: 24upx;
color: #666666; color: #666666;
text-align: center; text-align: center;
display: flex; display: flex;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }*/
.u-input__input { .u-input__input {
color: balck !important; color: balck !important;
@ -250,24 +242,34 @@
line-height: 78upx; line-height: 78upx;
/* background: #f7f7f7; */ /* background: #f7f7f7; */
} }
.push-button{
width: 100%;
height: 48px;
position: fixed;
bottom: 0px;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
}
.tabbar { .tabbar {
width: 690upx; display: inline-block;
height: 86upx; width: 92%;
background: #019c88;
border-radius: 8upx;
margin: 0 auto; margin: 0 auto;
text-align: center; text-align: center;
line-height: 86upx; background: linear-gradient(90deg, #019C88, #28BA92, #35C495);
color: #FFFFFF; height: 40px;
margin-top: 20rpx; border-radius: 28px;
color: #ffffff;
line-height: 40px;
margin-top: 4px;
font-size: 17px;
} }
.popup_pay { .popup_pay {
width: 100%; width: 100%;
position: relative; position: relative;
padding-bottom: 45rpx; padding-bottom: 0rpx;
/* height: 160px; */ /* height: 160px; */
/* #ifndef MP-WEIXIN */ /* #ifndef MP-WEIXIN */
/* height: 130px; */ /* height: 130px; */
@ -296,4 +298,10 @@
.bgCol2 { .bgCol2 {
color: #557EFD; color: #557EFD;
} }
.video-img{
width: 200rpx;
height: 200rpx;
background: #f7f8fa;
border-radius: 20rpx;
}
</style> </style>

BIN
static/dele.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
static/videoimg1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/videoimg2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB