如何优化保险咨询网站的在线排名以提供免费咨询服务?
摘要:保险咨询免费24小时在线,网站排名优化方法,企业所得税怎么征收比例,上海城隍庙简介概览 uniapp打包的Android项目实现本地swf格式文件的展示,并且能够进行交互 需求分析 1、因为是打包的Androi
保险咨询免费24小时在线,网站排名优化方法,企业所得税怎么征收比例,上海城隍庙简介概览
uniapp打包的Android项目实现本地swf格式文件的展示#xff0c;并且能够进行交互
需求分析
1、因为是打包的Android项目展示本地的swf文件#xff0c;首先需要拿到这个本地的swf文件路径
2、如何在uniapp的vue页面中展示swf#xff0c;因为没有直接展示swf文件的标…概览
uniapp打包的Android项目实现本地swf格式文件的展示并且能够进行交互
需求分析
1、因为是打包的Android项目展示本地的swf文件首先需要拿到这个本地的swf文件路径
2、如何在uniapp的vue页面中展示swf因为没有直接展示swf文件的标签/组件考虑使用web-view组件来进行展示swf文件
3、直接使用web-view组件无法展示swf使用html先展示swf然后把html链接放到web-view中进行展示
4、html中如何展示swf把swf转为html来进行展示这个swf文件使用开源的js实现下载地址https://download.csdn.net/download/ahualong1/89900202
具体实现
1、flashPage.vue页面
templateview :style{height: screenHeight px}!-- titleViewVue :titleNametitleName classVideoTitleViewClass/titleViewVue --web-view :srcurl messagehandlePostMessage/web-view/view
/templatescriptimport titleViewVue from ../../components/titleView/titleView.vueimport {uploadStudyTime} from /api/api.jsexport default {components: {titleViewVue},data() {return {titleName: ,//标题SubjectId: ,videoSrc: ,//视频资源本地地址videoHeight: ,videoWidth: 100%,screenHeight: ,startTime: 0,fileUrl: ,url: }},onLoad(option) {this.startTime Date.now()this.screenHeight getApp().globalData.screenHeight;// 定义视频URLthis.titleName option.titleName?option.titleName:this.SubjectId option.SubjectId this.fileUrl option.urlthis.url /static/flash.html?filePath plus.io.convertLocalFileSystemURL(this.fileUrl) titleName this.titleName},onUnload() {if(!getApp().globalData.isGuest){this.uploadSduyTimePage()} },methods: {uploadSduyTimePage(){var upLoadTime {subject_id: this.SubjectId,date: this.$utils.formatDateTime(),time: Date.now() / 1000 - this.startTime / 1000}this.startTime 0const arryUpload []arryUpload[0] upLoadTimeuploadStudyTime({data: arryUpload}).then(res{if(res.data.code 200 res.data.status success){}else{if(uni.getStorageSync(uploadTime)){arryUpload []arryUpload uni.getStorageSync(uploadTime)arryUpload.push(upLoadTime)uni.setStorageSync(uploadTime,arryUpload)}else{arryUpload []arryUpload.push(upLoadTime)uni.setStorageSync(uploadTime,ar
