123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <template>
- <view class="courselist-item">
- <view class="courselist-con x-start">
- <view class="courselist-img">
- <view class="status">进行中</view>
- <image src="https://sg-mmyy-oss.yjfzy.com/sgs/image/20241102/e07b38daf749cb02e9f5ce69c57b44ea.png" mode="aspectFill"></image>
- </view>
- <view class="courselist-con-r">
- <view>
- <text class="more-t">7.明医有话说-杜老师给您讲讲抑郁</text>
- <view class="btn_icon" style="margin-left: 5px;">ID
- <image src="@/static/images/copy_icon.png" mode="aspectFill"></image>
- </view>
- </view>
- <view class="courselist-desc one-t" v-show="from != 'course'">明医有话说 2.0-2.0-明医10301111111111</view>
- <view :class="from == 'course' ? 'courselist-con-timebox ':'courselist-con-timebox x-f'">
- <view class="x-f acea-row"><u-icon class="icon" name="file-text" color="#999" size="20"></u-icon>12月28日 00:00-23:59</view>
- <view class="x-f acea-row"><u-icon class="icon" name="clock" color="#999" size="16"></u-icon>44分36秒</view>
- </view>
- </view>
- </view>
- <view class="courselist-footer x-f">
- <view class="courselist-footer-item x-c" v-show="activeTab !=2" @click="handleShare"><u-icon name="share-square" color="#1677ff" size="18"></u-icon>分享课程</view>
- <view class="courselist-footer-item x-c shishi" v-show="activeTab == 1" @click="handleStatistics"><u-icon name="share-square" color="#1677ff" size="18"></u-icon>实时统计</view>
- <view class="courselist-footer-item x-c shuju" v-show="activeTab == 2" @click="handleStatistics"><u-icon name="share-square" color="#1677ff" size="18"></u-icon>数据统计</view>
- </view>
- <!-- 分享弹窗 -->
- <u-popup :show="showShare" :closeOnClickOverlay="true" :round='20' @close="closeShare" @open="openShare">
- <view class="sharePop x-ac">
- <view class="sharePop-item y-f">
- <image src="@/static/images/poster_icon.png" mode="aspectFill"></image>
- <view style="font-weight: bold;margin-bottom: 4px;">生成海报</view>
- <view style="font-size: 12px;color: #888;">保存海报美观宣传</view>
- </view>
- <view class="sharePop-item y-f" @click="copyLink">
- <image src="@/static/images/link_icon.png" mode="aspectFill"></image>
- <view style="font-weight: bold;margin-bottom: 4px;">复制链接</view>
- <view style="font-size: 12px;color: #888;">生成链接一键复制</view>
- </view>
- </view>
- </u-popup>
- <!-- 设置链接有效时长弹窗 -->
- <u-modal :show="setTimeShow"content='content' class="model" @confirm="confirmTime">
- <view class="setTimebox">
- <view class="timetip">不传默认以系统参数为准</view>
- <view class="x-f">
- <text style="margin-right: 20px;">链接有效时长(分钟)</text>
- <u-input
- fontSize="14px"
- placeholder="链接有效时长"
- border="none"
- v-model="time"
- maxlength="5"
- ></u-input>
- </view>
- </view>
- </u-modal>
- <!-- <u-popup :show="setTimeShow" :round="10" mode="center" @close="close" @open="open" :zIndex="10078">
- <view class="timePop">
- <view>不传默认以系统参数为准</view>
- <text>人生若只如初见,何事秋风悲画扇</text>
- </view>
- </u-popup> -->
- </view>
- </template>
- <script>
- export default {
- props: {
- activeTab: {
- type: [Number,String],
- default: 0
- },
- // 来源
- from: {
- type: String,
- default: 'live'
- },
- },
- data() {
- return {
- showShare: false,
- setTimeShow: false,
- time: "",
- }
- },
- methods: {
- handleShare() {
- this.showShare = true
- },
- closeShare() {
- this.showShare = false
- // console.log('open');
- },
- openShare() {
- // this.showShare = false
- // console.log('close');
- },
- copyLink(){
- this.setTimeShow = true
- },
- confirmTime() {
- this.setTimeShow = false
- this.showShare = false
- },
- handleStatistics() {
- uni.navigateTo({
- url: '/pages/courseManage/statistics'
- })
- }
- }
- }
- </script>
- <style scoped lang="scss">
- ::v-deep {
- .model .u-fade-enter-active {
- z-index: 10075 !important;
- }
- }
- .sharePop{
- background-color: #fff;
- padding: 50px 0;
- border-radius: 20px 20px 0 0;
- &-item {
- padding: 0 10px;
- box-sizing: border-box;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- display: inline-flex !important;
- image {
- height: 48px;
- width: 48px;
- margin-bottom: 10px;
- }
- }
- }
- .setTimebox {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- }
- .timetip {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #2979ff;
- text-align: center;
- margin-bottom: 5px;
- }
- .courselist{
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- &-item {
- width: 100%;
- border-radius: 14px;
- background-color: #fff;
- overflow: hidden;
- margin-bottom: 10px;
- }
- &-con {
- padding: 10px 10px 5px 10px;
- font-size: 12px;
- color: #777;
- }
- &-con-r{
- flex: 1;
- overflow: hidden;
- .more-t {
- flex: 1;
- font-size: 14px;
- color: #222;
- display: inline;
- }
- image {
- width: 20px;
- height: 20px;
- }
- .btn_icon {
- font-size: 14px;
- color: #1677ff;
- display: inline-flex;
- align-items: center;
- }
- }
- &-img {
- width: 110px;
- height: 70px;
- border-radius: 10px;
- overflow: hidden;
- flex-shrink: 0;
- margin-right: 10px;
- position: relative;
- image {
- height: 100%;
- width: 100%;
- }
- .status {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 2;
- height: 21px;
- padding: 0 5px;
- box-sizing: border-box;
- line-height: 21px;
- border-radius: 10px 0 10px 0;
- text-align: center;
- color: #fff;
- background-color: #08ce36;
- }
- }
- &-desc {
- flex: 1;
- margin-top: 7px;
- }
- &-con-timebox {
- margin-top: 7px;
- flex-wrap: wrap;
- .acea-row {
- margin-right: 12px;
- margin-bottom: 5px;
- flex-wrap: nowrap;
- }
- .icon {
- margin-right: 5px;
- }
- }
- &-footer {
- padding: 5px;
- font-size: 14px;
- &-item {
- flex: 1;
- text-align: center;
- color: #1677ff;
- padding: 6px;
- box-sizing: border-box;
- }
- .shishi {
- border-left: 1px solid #f5f5f5;
- }
- .shuju {
- border-radius: 5px;
- border: 1px solid #1677ff;
- }
- }
- }
- </style>
|