master
wangxia 2 months ago
parent e8d2545dad
commit 3be68ab3a6

@ -14,7 +14,7 @@
<view class="g_fw_600 g_mr_4 g_flex_column_center">{{ userinfo.agencyId == jobDetail.agencyId ? "项目方" : "发单号" }}</view> <view class="g_fw_600 g_mr_4 g_flex_column_center">{{ userinfo.agencyId == jobDetail.agencyId ? "项目方" : "发单号" }}</view>
<view class="g_flex_row_end flex_center g_flex_1"> <view class="g_flex_row_end flex_center g_flex_1">
<span class="g_c_6" selectable="false" space="false" decode="false">{{ userinfo.agencyId == jobDetail.agencyId ? jobDetail.upFullName || jobDetail.upAgencyName || "-" : jobDetail.fullName || jobDetail.agencyName }}</span> <span class="g_c_6" selectable="false" space="false" decode="false">{{ userinfo.agencyId == jobDetail.agencyId ? jobDetail.upFullName || jobDetail.upAgencyName || jobDetail.upProviderName || "-" : jobDetail.fullName || jobDetail.agencyName }}</span>
<span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span> <span class="iconfont icon-gengduo11 g_fs_14 g_c_6 g_ml_4"></span>
</view> </view>
@ -92,31 +92,18 @@
<view v-else class="g_border_e_t g_mt_16"></view> <view v-else class="g_border_e_t g_mt_16"></view>
</div> </div>
<view class="m-banner g_pb_16 g_border_f5_b g_mt_12" v-if="swiperArray.length > 0"> <view class="m-banner g_pb_16 g_border_f5_b g_mt_12" v-if="swiperArray.length > 0">
<scroll-view class="banner-scroll" scroll-x="true" show-scrollbar="false" <scroll-view class="banner-scroll" scroll-x="true" show-scrollbar="false" :scroll-with-animation="true">
:scroll-with-animation="true"> <view class="scroll-content">
<view class="scroll-content"> <view v-for="(item, index) in swiperArray" :key="index" class="scroll-item" :class="index == 0 ? 'g_ml_0 g_mr_0' : ''" @click="item.type == 'image' ? handleViewBig(item, index) : showVideo(item)">
<view v-for="(item, index) in swiperArray" :key="index" class="scroll-item" <u-image :radius="4" v-if="item.type == 'image'" :showLoading="true" :src="item.image" width="58px" height="58px" style="border-radius: 4px"> </u-image>
:class="index == 0 ? 'g_ml_0 g_mr_0' : ''" <view class="g_w_58 g_h_58 g_radius_4 videoContainer" v-else>
@click="item.type == 'image' ? handleViewBig(item, index) : showVideo(item)"> <video class="theVideo" :show-fullscreen-btn="true" :show-play-btn="true" :show-center-play-btn="true" :enable-play-gesture="true" :id="item.id" :src="item.image" @fullscreenchange="fullScreen" :muted="muted" :show-mute-btn="isFullscreen" :show-progress="isFullscreen" :show-time="isFullscreen" :controls="isFullscreen" :enable-progress-gesture="isFullscreen" :object-fit="'cover'" style="width: 100%; height: 100%"></video>
<u-image :radius="4" v-if="item.type == 'image'" :showLoading="true" :src="item.image" </view>
width="58px" height="58px" style="border-radius: 4px"> </view>
</u-image> </view>
<view class="g_w_58 g_h_58 g_radius_4 videoContainer" v-else> </scroll-view>
<video class="theVideo" :show-fullscreen-btn="true" :show-play-btn="true" </view>
:show-center-play-btn="true" :enable-play-gesture="true" :id="item.id"
:src="item.image" @fullscreenchange="fullScreen" :muted="muted"
:show-mute-btn="isFullscreen" :show-progress="isFullscreen"
:show-time="isFullscreen" :controls="isFullscreen"
:enable-progress-gesture="isFullscreen" :object-fit="'cover'"
style="width: 100%; height: 100%;">
</video>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="g_flex_row_center g_border_e_b"> <view class="g_flex_row_center g_border_e_b">
<u-tabs bg-color="transparent" :list="tabInfo.list" :current="tabInfo.active" :active-color="globalData.themeColor" bar-width="32" bar-height="6" @change="handleUpdateTab" :gutter="50" font-size="32" duration="0.05" height="76"></u-tabs> <u-tabs bg-color="transparent" :list="tabInfo.list" :current="tabInfo.active" :active-color="globalData.themeColor" bar-width="32" bar-height="6" @change="handleUpdateTab" :gutter="50" font-size="32" duration="0.05" height="76"></u-tabs>
@ -1258,14 +1245,14 @@ export default {
} }
}, },
fullScreen(e) { fullScreen(e) {
console.log(e); console.log(e);
this.muted = true; this.muted = true;
this.isFullscreen = e.detail.fullScreen; // this.isFullscreen = e.detail.fullScreen; //
if (!e.detail.fullScreen) { if (!e.detail.fullScreen) {
this.videoContext.stop(); this.videoContext.stop();
} }
}, },
shareVideo(e) { shareVideo(e) {
var that = this; var that = this;
console.log(e); console.log(e);
@ -1430,7 +1417,7 @@ export default {
monthPay: that.jobDetail.monthPay, monthPay: that.jobDetail.monthPay,
jobId: that.uid, jobId: that.uid,
}, },
} };
uni.setStorageSync("im_sendParams", JSON.stringify(sendParams)); uni.setStorageSync("im_sendParams", JSON.stringify(sendParams));
uni.navigateTo({ uni.navigateTo({
url: "/root/NEUIKit/pages/Chat/index", url: "/root/NEUIKit/pages/Chat/index",
@ -1708,7 +1695,6 @@ export default {
// } // }
} }
.m-state { .m-state {
position: fixed; position: fixed;
left: 0; left: 0;

Loading…
Cancel
Save