修改
This commit is contained in:
parent
1f3349a92a
commit
ea6e13ed2a
12
App.vue
12
App.vue
@ -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">
|
||||
|
||||
@ -112,7 +112,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.data.openId = options.openId
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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%;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user