视频圈

This commit is contained in:
曹磊 2024-11-04 15:13:46 +08:00
parent f444d544a4
commit 5e2c10dc2c
6 changed files with 83 additions and 11 deletions

View File

@ -269,13 +269,22 @@
<view class="userInfo"> <view class="userInfo">
<!-- 1.头像 --> <!-- 1.头像 -->
<image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image> <image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image>
<!-- 2.点赞 --> <!-- 2.上线或者下单 -->
<view v-if="artificerItem.onLine == 1" class="comment list-view" @click="tozuozhe(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/lijiyuyue.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">预约</text>
</view>
<view v-if="artificerItem.onLine == 2" class="comment list-view" @click="shangxian(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/qingtashangxian.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">上线</text>
</view>
<!-- 3.点赞 -->
<view class="list-view" @click="cLike(artificerItem);" style="opacity: 0.9; margin-top: 17px;"> <view class="list-view" @click="cLike(artificerItem);" style="opacity: 0.9; margin-top: 17px;">
<image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text>
</view> </view>
<!-- 3.评论 --> <!-- 4.评论 -->
<view class="comment list-view" @click="toComment(artificerItem)" style="opacity: 0.9; margin-top: 17px;"> <view class="comment list-view" @click="toComment(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image> <image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text>
@ -661,6 +670,7 @@
videoContext.play(); // videoContext.play(); //
}, },
towxh5Video(item,index){ towxh5Video(item,index){
console.log(item);
this.playShow=true; this.playShow=true;
this.filePath=item.filePath; this.filePath=item.filePath;
this.contentVideo=item.content; this.contentVideo=item.content;
@ -1352,7 +1362,7 @@
}) })
this.currents = 1// this.currents = 1//
}, },
cLike(item){ cLike(item){
var data={ var data={
createBy:uni.getStorageSync('userId'), createBy:uni.getStorageSync('userId'),
shipinquanId:item.id, shipinquanId:item.id,
@ -1412,6 +1422,24 @@ cLike(item){
this.$refs.pinglun.open('bottom'); this.$refs.pinglun.open('bottom');
this.getPingL(this.videoID); this.getPingL(this.videoID);
}, },
shangxian(item){//TA线
var data={
userId: item.createBy,
byUserId: uni.getStorageSync('userId'),
}
this.$Request.post("/app/message/insertUpMessage", data).then(res => {
if (res.code == 0) {
uni.showToast({
title: '提醒成功!'
})
}else{
uni.showToast({
icon:'error',
title: '提醒失败!'
})
}
});
},
getPingL(shipinquanId){// getPingL(shipinquanId){//
var data={ var data={
page: this.page, page: this.page,

View File

@ -44,12 +44,19 @@
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
<view class="info-box-item" v-if="status!=null && status!='' &&status != 1">
<view class="line"></view>
<view class="info-box-item">
<view class="info-box-item-name">状态</view>
<view v-if="status ==2">通过</view>
<view v-if="status ==3">拒绝</view>
</view>
</view>
</view> </view>
</view> </view>
<view class="sub"> <view class="sub">
<view class="sub-box"> <view class="sub-box">
<view class="sub-box-l" @click="submit()" v-if="!applyId">确认提交</view> <view class="sub-box-l" @click="submit()" v-if="status=='' || status==1">确认提交</view>
<view class="sub-box-r" @click="goChat()" v-if="!applyId">直接联系 </view>
<view class="sub-box-rs" @click="goChat()" v-else>直接联系 </view> <view class="sub-box-rs" @click="goChat()" v-else>直接联系 </view>
</view> </view>
</view> </view>
@ -71,7 +78,8 @@
applyId: '', applyId: '',
latitude:'', latitude:'',
longitude:'', longitude:'',
cityData:'' cityData:'',
status:'',
}; };
}, },
onLoad() { onLoad() {
@ -166,7 +174,7 @@
this.applyName = res.data.applyName this.applyName = res.data.applyName
this.applyPhone = res.data.applyPhone this.applyPhone = res.data.applyPhone
this.applyContent = res.data.applyContent this.applyContent = res.data.applyContent
this.applyId = res.data.status this.status = res.data.status
} }
}) })
}, },

View File

@ -256,13 +256,22 @@
<view class="userInfo"> <view class="userInfo">
<!-- 1.头像 --> <!-- 1.头像 -->
<image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image> <image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image>
<!-- 2.点赞 --> <!-- 2.上线或者下单 -->
<view v-if="artificerItem.onLine == 1" class="comment list-view" @click="tozuozhe(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/lijiyuyue.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">预约</text>
</view>
<view v-if="artificerItem.onLine == 2" class="comment list-view" @click="shangxian" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/qingtashangxian.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">上线</text>
</view>
<!-- 3.点赞 -->
<view class="list-view" @click="cLike(artificerItem);" style="opacity: 0.9; margin-top: 17px;"> <view class="list-view" @click="cLike(artificerItem);" style="opacity: 0.9; margin-top: 17px;">
<image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text>
</view> </view>
<!-- 3.评论 --> <!-- 4.评论 -->
<view class="comment list-view" @click="toComment(artificerItem)" style="opacity: 0.9; margin-top: 17px;"> <view class="comment list-view" @click="toComment(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image> <image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text>

View File

@ -132,13 +132,22 @@
<view class="userInfo"> <view class="userInfo">
<!-- 1.头像 --> <!-- 1.头像 -->
<image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image> <image @click="tozuozhe(artificerItem)" class="userAvatar" :src="artificerItem.artificerImg" mode="aspectFill"></image>
<!-- 2.点赞 --> <!-- 2.上线或者下单 -->
<view v-if="artificerItem.onLine == 1" class="comment list-view" @click="tozuozhe(artificerItem)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/lijiyuyue.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">预约</text>
</view>
<view v-if="artificerItem.onLine == 2" class="comment list-view" @click="shangxian" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/qingtashangxian.png" style="width:40px; height:40px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">上线</text>
</view>
<!-- 3.点赞 -->
<view class="list-view" @click="cLike(artificerItem,k);" style="opacity: 0.9; margin-top: 17px;"> <view class="list-view" @click="cLike(artificerItem,k);" style="opacity: 0.9; margin-top: 17px;">
<image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==1" src="@/static/img/index/xin.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image> <image v-if="artificerItem.sfdz==0" src="@/static/img/index/xin-2.png" style="width: 40px; height: 40px; position: absolute; right: 6px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; text-align: center; margin-top: 40px; font-weight: bold;" :class="{'likeNumActive':artificerItem.sfdz}">{{artificerItem.dzs}}</text>
</view> </view>
<!-- 3.评论 --> <!-- 4.评论 -->
<view class="comment list-view" @click="toComment(k)" style="opacity: 0.9; margin-top: 17px;"> <view class="comment list-view" @click="toComment(k)" style="opacity: 0.9; margin-top: 17px;">
<image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image> <image src="@/static/img/index/liaotian-2.png" style="width:38px; height:36px; position: absolute; right: 7px;"></image>
<text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text> <text style="color: #FFFFFF; margin-top: 5px; font-size: 14px; font-weight: bold; text-align: center; margin-top: 40px;">{{artificerItem.pls}}</text>
@ -431,6 +440,24 @@
this.$refs.pinglun.open('bottom'); this.$refs.pinglun.open('bottom');
this.getPingL(this.videoID); this.getPingL(this.videoID);
}, },
shangxian(){//TA线
var data={
userId: this.artificerId,
byUserId: this.myId
}
this.$Request.post("/app/message/insertUpMessage", data).then(res => {
if (res.code == 0) {
uni.showToast({
title: '提醒成功!'
})
}else{
uni.showToast({
icon:'error',
title: '提醒失败!'
})
}
});
},
getPingL(shipinquanId){// getPingL(shipinquanId){//
var data={ var data={
page: this.page, page: this.page,

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB