修改
This commit is contained in:
parent
1f3349a92a
commit
ea6e13ed2a
12
App.vue
12
App.vue
@ -1,14 +1,8 @@
|
|||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function() {
|
onLaunch: function() {},
|
||||||
console.log('App Launch')
|
onShow: function() {},
|
||||||
},
|
onHide: function() {}
|
||||||
onShow: function() {
|
|
||||||
console.log('App Show')
|
|
||||||
},
|
|
||||||
onHide: function() {
|
|
||||||
console.log('App Hide')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@ -112,7 +112,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options)
|
|
||||||
this.data.openId = options.openId
|
this.data.openId = options.openId
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -112,7 +112,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
console.log(options)
|
|
||||||
var that = this
|
var that = this
|
||||||
this.batchCode = options.batchCode
|
this.batchCode = options.batchCode
|
||||||
this.studentId = options.studentId
|
this.studentId = options.studentId
|
||||||
@ -120,6 +119,7 @@
|
|||||||
this.list = res.data
|
this.list = res.data
|
||||||
this.list.forEach(e => {
|
this.list.forEach(e => {
|
||||||
e.motionPrescriptionVideoInfoVOList.forEach(el => {
|
e.motionPrescriptionVideoInfoVOList.forEach(el => {
|
||||||
|
el.count = 0
|
||||||
el.prescriptionVideoUrl = baseurl + el.prescriptionVideoUrl
|
el.prescriptionVideoUrl = baseurl + el.prescriptionVideoUrl
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -138,9 +138,12 @@
|
|||||||
prescriptionLogging(items).then(res => {})
|
prescriptionLogging(items).then(res => {})
|
||||||
},
|
},
|
||||||
look(uitem) {
|
look(uitem) {
|
||||||
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
|
if (uitem.count == 0) {
|
||||||
items["prescriptionVideoId"] = uitem?.motionPrescriptionVideoId
|
uitem.count++
|
||||||
prescriptionVideoLogging(items).then(res => {})
|
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
|
||||||
|
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
|
||||||
|
prescriptionVideoLogging(items).then(res => {})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
showToast() {
|
showToast() {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -164,7 +167,6 @@
|
|||||||
wx.downloadFile({
|
wx.downloadFile({
|
||||||
url: baseurl + item.downloadAddress,
|
url: baseurl + item.downloadAddress,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res)
|
|
||||||
var filePath = res.tempFilePath;
|
var filePath = res.tempFilePath;
|
||||||
wx.openDocument({
|
wx.openDocument({
|
||||||
filePath: filePath,
|
filePath: filePath,
|
||||||
@ -391,6 +393,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.grade {
|
.grade {
|
||||||
font-size: 70rpx;
|
font-size: 70rpx;
|
||||||
font-family: Source Han Sans CN;
|
font-family: Source Han Sans CN;
|
||||||
|
|||||||
@ -183,6 +183,7 @@
|
|||||||
this.studentInfoList = res.data
|
this.studentInfoList = res.data
|
||||||
this.studentInfoList.forEach(e => {
|
this.studentInfoList.forEach(e => {
|
||||||
e.motionPrescriptionVideoInfoVOList.forEach(el => {
|
e.motionPrescriptionVideoInfoVOList.forEach(el => {
|
||||||
|
el.count = 0
|
||||||
el.prescriptionVideoUrl = baseurl + el
|
el.prescriptionVideoUrl = baseurl + el
|
||||||
.prescriptionVideoUrl
|
.prescriptionVideoUrl
|
||||||
})
|
})
|
||||||
@ -195,9 +196,12 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
look(uitem) {
|
look(uitem) {
|
||||||
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
|
if (uitem.count == 0) {
|
||||||
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
|
uitem.count++
|
||||||
prescriptionVideoLogging(items).then(res => {})
|
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
|
||||||
|
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
|
||||||
|
prescriptionVideoLogging(items).then(res => {})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
lookbook(item) {
|
lookbook(item) {
|
||||||
if (item.existFlag == false) {
|
if (item.existFlag == false) {
|
||||||
@ -214,7 +218,6 @@
|
|||||||
wx.downloadFile({
|
wx.downloadFile({
|
||||||
url: baseurl + item.downloadAddress,
|
url: baseurl + item.downloadAddress,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(res)
|
|
||||||
var filePath = res.tempFilePath;
|
var filePath = res.tempFilePath;
|
||||||
wx.openDocument({
|
wx.openDocument({
|
||||||
filePath: filePath,
|
filePath: filePath,
|
||||||
@ -297,6 +300,7 @@
|
|||||||
height: 376rpx;
|
height: 376rpx;
|
||||||
background: #37A97B;
|
background: #37A97B;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
padding-top: 20rpx;
|
||||||
|
|
||||||
.prescription {
|
.prescription {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user