瀏覽代碼

爱数修改

y595705120 1 年之前
父節點
當前提交
280accb693
共有 4 個文件被更改,包括 12 次插入8 次删除
  1. 1 0
      .gitignore
  2. 1 1
      src/components/upload/index.vue
  3. 9 7
      src/containers/center/play/index.vue
  4. 1 0
      src/containers/center/setting/index.vue

+ 1 - 0
.gitignore

@@ -12,3 +12,4 @@ yarn-error.log*
 *.ntvs*
 *.njsproj
 *.sln
+/publish

+ 1 - 1
src/components/upload/index.vue

@@ -3,7 +3,7 @@
     <el-upload ref="uploader" :action="`/upload?u=${s.u}&t=${s.t}&v=1.0&s=${s.s}`" :multiple="false"
       :show-file-list="false" accept="image/jpeg,image/png" class="image-uploader" :drag="drag" name="avatar"
       :on-success="handleImageSuccess" :http-request="uploadSectionFile" :before-upload="beforeImageUpload">
-      <el-button type="text" style="width: 200px;">
+      <el-button type="primary" style="width: 200px;">
         {{placeholder}}
       </el-button>
     </el-upload>

+ 9 - 7
src/containers/center/play/index.vue

@@ -5,8 +5,8 @@
       <el-col :span="8">
         <div>
           <p style="font-size: 24px;"> 完成情况 </p>
-          <p class="mt10" >获得{{info.gxs}}学时</p>
-          <p class="mt10" >总共{{info.axs}}学时</p>
+          <p class="mt10" >获得<strong style="color: red;">{{info.gxs}}</strong>学时</p>
+          <p class="mt10" >总共<strong style="color: red;">{{info.axs}}</strong>学时</p>
         </div>
       </el-col>
       <el-col  :span="8">
@@ -310,19 +310,21 @@
           return false
         })
         //
-        this.info.gxs = 0
-        this.info.axs = 0;
         this.info.tcount = this.list.length;
         this.info.fcount =0;
         this.info.percent = 0;
+        let totalxs=0,getxs=0
         for( let i = 0; i< this.list.length;i++){
           let item = this.list[i]
-          this.info.axs  += (item.xs/10)
+          totalxs  += item.xs
           if( item.isFinish ){
-            this.info.gxs += (item.xs/10)
+            getxs += item.xs
             this.info.fcount++
           }
         }
+        this.info.gxs = getxs/10
+        this.info.axs  = totalxs/10
+
         this.info.percent = (this.info.gxs*10000/this.info.axs)/100;
       },
       //
@@ -341,7 +343,7 @@
         httpServer('course.GetMedia', {id:item.id}).then( ({data, code}) => {
           this.mediaUrl = data.mediaUrl;
           if( data.position >0){
-            item.position = data.position; 
+            item.position = data.position;
           }
           this.mediaType = 'hls';
           this.show = 4

+ 1 - 0
src/containers/center/setting/index.vue

@@ -11,6 +11,7 @@
           <div style="margin: 10px auto;">
             <img :src="userInfo.cardImg" :onerror="errorImg" class="setting-img" @click="showImg(userInfo.cardImg)">
             <do-upload @onFinish="setCardImg" placeholder="身份证正面"> </do-upload>
+            <span style="color: red;text-align: center;margin-top: 10px;">必须本人身份证</span>
           </div>
         </el-col>
         <el-col :span="8">