This commit is contained in:
曹辉 2023-04-19 16:49:42 +08:00
parent 1f3349a92a
commit ea6e13ed2a
4 changed files with 19 additions and 19 deletions

12
App.vue
View File

@ -1,14 +1,8 @@
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
onLaunch: function() {},
onShow: function() {},
onHide: function() {}
}
</script>
<style lang="scss">

View File

@ -112,7 +112,6 @@
}
},
onLoad(options) {
console.log(options)
this.data.openId = options.openId
},
methods: {

View File

@ -112,7 +112,6 @@
}
},
onLoad(options) {
console.log(options)
var that = this
this.batchCode = options.batchCode
this.studentId = options.studentId
@ -120,6 +119,7 @@
this.list = res.data
this.list.forEach(e => {
e.motionPrescriptionVideoInfoVOList.forEach(el => {
el.count = 0
el.prescriptionVideoUrl = baseurl + el.prescriptionVideoUrl
})
})
@ -138,9 +138,12 @@
prescriptionLogging(items).then(res => {})
},
look(uitem) {
if (uitem.count == 0) {
uitem.count++
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
items["prescriptionVideoId"] = uitem?.motionPrescriptionVideoId
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
prescriptionVideoLogging(items).then(res => {})
}
},
showToast() {
this.$refs.uToast.show({
@ -164,7 +167,6 @@
wx.downloadFile({
url: baseurl + item.downloadAddress,
success: function(res) {
console.log(res)
var filePath = res.tempFilePath;
wx.openDocument({
filePath: filePath,
@ -391,6 +393,7 @@
}
}
.grade {
font-size: 70rpx;
font-family: Source Han Sans CN;

View File

@ -183,6 +183,7 @@
this.studentInfoList = res.data
this.studentInfoList.forEach(e => {
e.motionPrescriptionVideoInfoVOList.forEach(el => {
el.count = 0
el.prescriptionVideoUrl = baseurl + el
.prescriptionVideoUrl
})
@ -195,9 +196,12 @@
},
methods: {
look(uitem) {
if (uitem.count == 0) {
uitem.count++
const items = JSON.parse(uni.getStorageSync("this.DATAList"));
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
prescriptionVideoLogging(items).then(res => {})
}
},
lookbook(item) {
if (item.existFlag == false) {
@ -214,7 +218,6 @@
wx.downloadFile({
url: baseurl + item.downloadAddress,
success: function(res) {
console.log(res)
var filePath = res.tempFilePath;
wx.openDocument({
filePath: filePath,
@ -297,6 +300,7 @@
height: 376rpx;
background: #37A97B;
position: relative;
padding-top: 20rpx;
.prescription {
width: 90%;