From 5b08295e2c3dbb3683fa76244de9cb7e6d02a296 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 24 Mar 2023 11:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/visit/addrecord.vue | 7 ++- pages/visit/study.vue | 102 +++++++++++++++++++++++++++++++++----- static/img/pic.png | Bin 0 -> 384 bytes static/img/video.png | Bin 0 -> 417 bytes 4 files changed, 95 insertions(+), 14 deletions(-) create mode 100644 static/img/pic.png create mode 100644 static/img/video.png diff --git a/pages/visit/addrecord.vue b/pages/visit/addrecord.vue index a7f463c..3b85d70 100644 --- a/pages/visit/addrecord.vue +++ b/pages/visit/addrecord.vue @@ -239,8 +239,13 @@ } }, - onLoad(options) { + onLoad(options) { + this.form.type = options.type + // uni.navigateTo({ + // url: '/pages/visit/study?type='+this.form.type + // }) + // return this.isCall = options.iscall?options.iscall:'' this.goStudy = this.isCall=='call'?'提交':'去学习' this.form.audit_status = this.isCall=='call'?1:0 diff --git a/pages/visit/study.vue b/pages/visit/study.vue index 75a2477..7ff21e7 100644 --- a/pages/visit/study.vue +++ b/pages/visit/study.vue @@ -4,16 +4,42 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + {{picList.length}} + + + + {{videoList.length}} + + + - - {{studyInfo.content?studyInfo.content:""}} + @@ -41,7 +67,12 @@ title: '完成' }], stepActive: 1, - studyInfo: {}, + studyInfo: {}, + picList:[], + videoList:[], + showSwiperFlag:0, + imgcurrent: 0, + videocurrent:0, studyTime: "00:00", // 学习时间 studyMin: -1, // 倒计时 timer: null, @@ -69,8 +100,16 @@ type: that.type }, utilSuccess: function(res) { - that.studyInfo = res - that.studyMin = res.minute * 60 + that.studyInfo = res + for(var k of res.file_detail){ + if(k.extension=='mp4'){ + that.videoList.push(k) + }else{ + that.picList.push(k) + } + } + that.showSwiperFlag = that.picList.length==0? 1 : 0 + that.studyMin = res.minute * 60 // that.studyMin = .1 * 60 }, utilFail: function(res) {} @@ -98,6 +137,25 @@ } + diff --git a/static/img/pic.png b/static/img/pic.png new file mode 100644 index 0000000000000000000000000000000000000000..25c62b419b4dbcf09d6e9bcd8755c95612c14b43 GIT binary patch literal 384 zcmV-`0e}99P)Px$I!Q!9R7gwJmAx(nQ51#06_gUChE6Dzw-Sv)B0{2*+{QC#L_ri3G-?Xbi6BvX z0ExeZ7ZANlDVCg@nPl8MXJ)uFg;UO)tZ(go_K$2|0gHgB_dEeD+5T!kJheI*0It{g z54EW}0N20^Fb_<3ne7{}Eom!=+8zXMfSC-WZ@{>uw^Y#f8gNu6pe5-x1K0$1>IB>Y zE0SJq&jOdgNL9cAFbb@eR9UFP4`4XwUi1z2C9T^Y08T1EVjgk<9q~+Fiy-g7Junv` z^Z-sJwYx7zA_?L__!&3@ma3#^L(*=Zn=VL4T+&0*149u=PXtjwA{5ef2pp&4nN$YI zc``WD&%Xnd%`Dr?z(rA+7Dn(d0FTLJEHfMXKL&)3j=sTPg$o<)6A0DO#F+>SXAf9t eU~Pt--2MiBLaf67Px$TS-JgR7gwhlr2jHQ51%sS5Pd9L5ttfY_w=Jh(BNjL0OBipopMg7EEps42!`c z7>r_6#Ntm7bbo+?AJO8GBX?xjot>R^CVIT(%(TveCx@SHOG$fCEW8Nq`$*HoUk4wt-h* z3D^U=GQxdKn`wX#U_z4bKg-NcfYnX_W;O}<*oR!}BZ@k>l@xUn0hWQ&jDR!X4Ojzu zf~FJ)JOksBK4Tpm0vj0tNo6Z>fEQc<72q8x0mndhk$}j{?{?OYo5pYIAje@7rT>7o z6D@Q^55O?c7sD0`sD{w=JX#Oed#3R}Xxnp2!EY9s*&r|=>Cpk#z+4{Zplum;HK1Go zpd#rgDNUz