jiangping
2024-07-23 76b3319fa8e3befd0d6e294cbe890e226bdce579
提交
已修改4个文件
43 ■■■■ 文件已修改
admin/src/components/business/OperaNewsDzWindow.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/business/OperaNewsWindow.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/promotion/index.wxml 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
wechat_staff/pages/promotion/index.wxss 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/business/OperaNewsDzWindow.vue
@@ -20,7 +20,7 @@
        </el-radio-group>
      </el-form-item>
      <el-form-item label="列表图/视频"   prop="files" >
        <upload width="100px" height="100px" :max-length="1"   @dele="delFile" :list="form.fileList" accept=".png,.jpg,.jpeg,.mp4" folder="news" @loading="loading = true" @success="fileResult($event)" />
        <upload width="100px" height="100px" :max-length="1"   @dele="delFile" :list="form.fileList" accept=".png,.jpg,.jpeg,.mp4" folder="spokesman" @loading="loading = true" @success="fileResult($event)" />
      </el-form-item>
      <el-form-item label="跳转类型" prop="linkType" required>
        <el-radio-group v-model="form.linkType"  >
admin/src/components/business/OperaNewsWindow.vue
@@ -32,10 +32,10 @@
        </el-radio-group>
      </el-form-item>
      <el-form-item label="图集上传 (最多9张)"    v-if="form.fileType !=1">
        <upload width="100px" height="100px" :max-length="9" @dele="delFile" :list="fileImgList" accept=".png,.jpg,.jpeg" folder="news" @loading="loading = true" @success="fileResult($event)" />
        <upload width="100px" height="100px" :max-length="9" @dele="delFile" :list="fileImgList" accept=".png,.jpg,.jpeg" folder="spokesman" @loading="loading = true" @success="fileResult($event)" />
      </el-form-item>
      <el-form-item label="视频上传(单个)"    v-if="form.fileType === 1">
        <upload width="100px" height="100px" :max-length="1"   @dele="delFile" :list="fileVideoList" accept=".mp4" folder="news" @loading="loading = true" @success="fileResult($event)" />
        <upload width="100px" height="100px" :max-length="1"   @dele="delFile" :list="fileVideoList" accept=".mp4" folder="spokesman" @loading="loading = true" @success="fileResult($event)" />
      </el-form-item>
      <el-form-item label="排序码(升序)" prop="sortnum">
        <el-input   v-model="form.sortnum"   type="number"  placeholder="请输入排序码" v-trim/>
wechat_staff/pages/promotion/index.wxml
@@ -1,28 +1,23 @@
<view class="container">
  <view class="home_title">推广发布</view>
  <view class="content">
    <view class="time">2022/22/22</view>
    <view class="text">懂生活,会设计,意式简约单人沙发椅,为您创造多种可能的生活方式</view>
  <view>
    <view class="content"  data-id="{{ item.id }}"  wx:for="{{ list }}"   wx:for-item="item" >
      <view class="time" >{{ item.createDate }}</view>
      <view class="text">{{item.title }}</view>
    <view class="imgs">
      <view class="img_wrap">
        <image class="img" mode="widthFix" src=""></image>
        <!-- <image class="icon" src="../../static/ic_top1@2x.png" mode="widthFix"></image> -->
      </view>
      <view class="img_wrap">
        <image class="img" mode="widthFix" src=""></image>
        <!-- <image class="icon" src="../../static/ic_top2@2x.png" mode="widthFix"></image> -->
      </view>
      <view class="img_wrap">
        <image class="img" mode="widthFix" src=""></image>
        <!-- <image class="icon" src="../../static/ic_top3@2x.png" mode="widthFix"></image> -->
          <video controls wx:if="{{item.fileType ==1 && item.fileList &&item.fileList.length}}"  src="{{item.fileList[0].fileurlFull}}" class="video"></video>
        <view wx:if="{{item.fileType !=1 && item.fileList}}"  data-id="{{ item.id }}"  wx:for-item="item1"   wx:for="{{ item.fileList }}" class="img_wrap">
          <image class="img" mode="widthFix" src="{{item1.fileurlFull}}"></image>
      </view>
    </view>
    <view class="footer">
      <view class="left">
        <image class="icon" src="../../static/icon/detail_nav_share.png" mode="widthFix"></image>
        <text>123123</text>
          <text>{{item.donwloadNum}}</text>
      </view>
      <view class="btn">立即分享</view>
        <view class="btn" bind:tap="downfile" data-index="{{item}}">立即分享</view>
    </view>
  </view>
</view>
</view>
wechat_staff/pages/promotion/index.wxss
@@ -13,6 +13,7 @@
  background: #F7F7F7;
  border-radius: 8rpx;
  padding: 34rpx 40rpx 40rpx;
  margin-bottom: 40rpx;
}
.content .time {
  font-weight: 500;
@@ -30,6 +31,8 @@
}
.content .imgs {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
}
.content .imgs .img_wrap {
  width: 184rpx;
@@ -38,13 +41,18 @@
  border: 1px solid;
  position: relative;
  margin-right: 20rpx;
  margin-bottom: 20rpx;
}
.content .imgs .img_wrap:nth-of-type(3n) {
  margin-right: 0;
}
.content .imgs .img_wrap .img {
  width: 100%;
  height: 100%;
  max-height: 100%;
}
.content .imgs   .video {
  width: 100%;
  max-height: 100%;
}
.content .imgs .img_wrap .icon {
  position: absolute;