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 @@
-
-
-
-
-
-
-
+
+
+ imgcurrent = e.current" keyName="url"
+ :height="'360rpx'" :interval='4000' :duration='500' :autoplay='false' circular>
+
+
+
+
+
+
+
+ videocurrent = e.current" keyName="url"
+ :height="'360rpx'" :interval='4000' :duration='500' :autoplay='false' circular>
+
+
+
+
+
+
+
+
+
+
+
+ {{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 0000000..25c62b4
Binary files /dev/null and b/static/img/pic.png differ
diff --git a/static/img/video.png b/static/img/video.png
new file mode 100644
index 0000000..eb0c1c4
Binary files /dev/null and b/static/img/video.png differ