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> <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">

View File

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

View File

@ -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) {
if (uitem.count == 0) {
uitem.count++
const items = JSON.parse(uni.getStorageSync("this.DATAList")); const items = JSON.parse(uni.getStorageSync("this.DATAList"));
items["prescriptionVideoId"] = uitem?.motionPrescriptionVideoId items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
prescriptionVideoLogging(items).then(res => {}) 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;

View File

@ -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) {
if (uitem.count == 0) {
uitem.count++
const items = JSON.parse(uni.getStorageSync("this.DATAList")); const items = JSON.parse(uni.getStorageSync("this.DATAList"));
items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId items["prescriptionVideoId"] = uitem.motionPrescriptionVideoId
prescriptionVideoLogging(items).then(res => {}) 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%;