董国庆
1 天以前 95ac9029c648194c35dda58daaa17b9160bcb69d
H5/pages/add-progress/index.vue
@@ -20,10 +20,15 @@
               <view class="fs-27 lh-38 font-bold">群众姓名</view>
               <view class="fs-27 lh-38 mt-10">{{ info.name }}</view>
            </view>
            <view class="flex-column a-center">
               <view class="fs-27 lh-38 font-bold">联系电话</view>
               <view class="fs-27 lh-38 mt-10">{{ info.contactNumber }}</view>
            <view class="flex a-center">
               <view class="flex-column a-center">
                  <view class="fs-27 lh-38 font-bold">联系电话</view>
                  <view class="fs-27 lh-38 mt-10">{{ info.contactNumber }}</view>
               </view>
               <image @click.stop="callPhone(info.contactNumber)" src="../../static/tell.png"
                  class="w-58 h-58 shrink0 " />
            </view>
         </view>
      </view>
      <view class="br-19 mt-38 bs-1 pt-35 pb-33 px-31">
@@ -73,7 +78,9 @@
            <image @tap="uploadImg(2)" src="@/static/Appeal/add.png" class="w-140 h-140 shrink0" />
         </view>
      </view>
      <view @click.stop="submit" class="mt-38 fs-35 lh-96 br-48 txt-center font-bold bgcolor6 color4">确认添加</view>
      <view @click.stop="submit" class="mt-38 fs-35 lh-96 br-48 txt-center font-bold bgcolor6 color4 fixed"
         style="width: calc(100% - 62rpx);bottom: calc(env(safe-area-inset-bottom) + 10rpx);">确认添加</view>
      <view class="btn-box"></view>
      <view class="safe-box"></view>
   </view>
</template>
@@ -106,6 +113,11 @@
         })
      },
      methods: {
         callPhone(phoneNumber) {
            uni.makePhoneCall({
               phoneNumber
            });
         },
         back() {
            uni.navigateBack({
               delta: 2
@@ -216,6 +228,15 @@
               uni.chooseVideo({
                  camera: 'back',
                  success: (res) => {
                     const videoExtensions = /\.(mp4|avi|rmvb)$/i;
                     if (!videoExtensions.test(res.name)) {
                        uni.showToast({
                           title: '请上传mp4, avi, rmvb格式的视频',
                           icon: 'none',
                           duration: 3000
                        })
                        return
                     }
                     this.video.push('loading')
                     this.againCklicFlag = true
                     const tempFilePath = res.tempFilePath;
@@ -225,7 +246,7 @@
                        timeout: 1000 * 45,
                        name: 'file',
                        header: {
                           Authorization: cuni.getStorageSync('token')
                           Authorization: uni.getStorageSync('token')
                        },
                        success: (res) => {
                           if (JSON.parse(res.data).code == 200) {
@@ -384,4 +405,8 @@
   .zIndex999 {
      z-index: 999;
   }
   .btn-box {
      height: 120rpx;
   }
</style>