实名制ios适配
This commit is contained in:
parent
ff21ddf44d
commit
8cf298ddad
110
config.js
110
config.js
|
|
@ -1,61 +1,18 @@
|
||||||
// 产线
|
// 产线
|
||||||
module.exports = {
|
|
||||||
// http://192.168.0.14:19999
|
|
||||||
loginBaseUrl: 'http://112.29.103.165:1616',
|
|
||||||
baseUrl: 'http://112.29.103.165:1616/exam',
|
|
||||||
// login: 'http://112.29.103.165:1616',
|
|
||||||
login: 'http://112.29.103.165:1616/exam/exam-auth/',
|
|
||||||
// 图片展示基础地址
|
|
||||||
fileUrl: 'http://112.29.103.165:1616/exam-file/',
|
|
||||||
// 上传文件地址
|
|
||||||
uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64',
|
|
||||||
bmwUrl: 'http://112.29.103.165:1616/exam-bmw',
|
|
||||||
// 体检-基础路径
|
|
||||||
tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager',
|
|
||||||
tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/',
|
|
||||||
|
|
||||||
//实名制移动端-登录接口
|
|
||||||
realLoginUrl: 'http://192.168.0.14:9200/',
|
|
||||||
//实名制移动端-移动
|
|
||||||
realAppUrl: 'http://192.168.0.14:1913/app',
|
|
||||||
//实名制移动端-安培
|
|
||||||
realExamUrl: 'http://192.168.0.14:1910',
|
|
||||||
//实名制移动端-文件
|
|
||||||
realFileUrl: 'http://192.168.0.14:1909/file/',
|
|
||||||
//实名制移动端
|
|
||||||
realBmwUrl: 'http://192.168.0.14:1911/bmw',
|
|
||||||
//实名制移动端 -- 新
|
|
||||||
realNewBmwUrl: 'http://192.168.0.14:1911',
|
|
||||||
//实名制移动端 -- 新
|
|
||||||
realNewYnUrl: 'http://192.168.0.14:1918',
|
|
||||||
|
|
||||||
// 应用信息
|
|
||||||
appInfo: {
|
|
||||||
// 应用名称
|
|
||||||
name: '作业管控智慧平台',
|
|
||||||
// 应用版本
|
|
||||||
version: '1.1.0'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// 测试环境
|
|
||||||
// module.exports = {
|
// module.exports = {
|
||||||
// // baseUrl:'/prod-api',
|
|
||||||
// // http://192.168.0.14:19999
|
// // http://192.168.0.14:19999
|
||||||
// loginBaseUrl: 'http://192.168.0.14:27018',
|
// loginBaseUrl: 'http://112.29.103.165:1616',
|
||||||
// // loginBaseUrl:'http://192.168.0.14:19999',
|
// baseUrl: 'http://112.29.103.165:1616/exam',
|
||||||
// // baseUrl:'http://192.168.0.14:2900',
|
// // login: 'http://112.29.103.165:1616',
|
||||||
// baseUrl: 'http://192.168.0.14:19999',
|
// login: 'http://112.29.103.165:1616/exam/exam-auth/',
|
||||||
// // loginUrl: 'http://112.29.103.165:1616',
|
|
||||||
// login: 'http://192.168.0.14:19200',
|
|
||||||
// // 图片展示基础地址
|
// // 图片展示基础地址
|
||||||
// fileUrl: 'http://192.168.0.14:19999/exam-file/',
|
// fileUrl: 'http://112.29.103.165:1616/exam-file/',
|
||||||
// // 上传文件地址
|
// // 上传文件地址
|
||||||
// uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64',
|
// uploadUrl: 'http://112.29.103.165:1616/exam-file/file/uploadBase64',
|
||||||
// bmwUrl: 'http://192.168.0.14:19999/exam-bmw',
|
// bmwUrl: 'http://112.29.103.165:1616/exam-bmw',
|
||||||
// // 体检-基础路径
|
// // 体检-基础路径
|
||||||
// tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager',
|
// tjBaseUrl: 'http://112.29.103.165:1616/AppPeaManager',
|
||||||
// // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
|
// tjFile: 'http://112.29.103.165:1616/medicalDocumentation/statics/',
|
||||||
// tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
|
|
||||||
|
|
||||||
// //实名制移动端-登录接口
|
// //实名制移动端-登录接口
|
||||||
// realLoginUrl: 'http://192.168.0.14:1616/auth/',
|
// realLoginUrl: 'http://192.168.0.14:1616/auth/',
|
||||||
|
|
@ -86,3 +43,52 @@ module.exports = {
|
||||||
// version: '1.1.0'
|
// version: '1.1.0'
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
// 测试环境
|
||||||
|
module.exports = {
|
||||||
|
// baseUrl:'/prod-api',
|
||||||
|
// http://192.168.0.14:19999
|
||||||
|
loginBaseUrl: 'http://192.168.0.14:27018',
|
||||||
|
// loginBaseUrl:'http://192.168.0.14:19999',
|
||||||
|
// baseUrl:'http://192.168.0.14:2900',
|
||||||
|
baseUrl: 'http://192.168.0.14:19999',
|
||||||
|
// loginUrl: 'http://112.29.103.165:1616',
|
||||||
|
login: 'http://192.168.0.14:19200',
|
||||||
|
// 图片展示基础地址
|
||||||
|
fileUrl: 'http://192.168.0.14:19999/exam-file/',
|
||||||
|
// 上传文件地址
|
||||||
|
uploadUrl: 'http://192.168.0.14:19999/exam-file/file/uploadBase64',
|
||||||
|
bmwUrl: 'http://192.168.0.14:19999/exam-bmw',
|
||||||
|
// 体检-基础路径
|
||||||
|
tjBaseUrl: 'http://192.168.0.14:18077/AppPeaManager',
|
||||||
|
// tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
|
||||||
|
tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
|
||||||
|
|
||||||
|
//实名制移动端-登录接口
|
||||||
|
realLoginUrl: 'http://192.168.0.14:1616/auth/',
|
||||||
|
realBaseUrl: 'http://192.168.0.14:1910/',
|
||||||
|
//实名制移动端-移动
|
||||||
|
realAppUrl: 'http://192.168.0.14:1913/app',
|
||||||
|
//实名制移动端-安培
|
||||||
|
realExamUrl: 'http://192.168.0.14:1616/system',
|
||||||
|
//实名制移动端-文件
|
||||||
|
realFileUrl: 'http://192.168.0.14:1909/file/',
|
||||||
|
//实名制移动端
|
||||||
|
realBmwUrl: 'http://192.168.0.14:1616/bmw',
|
||||||
|
//实名制移动端 -- 新
|
||||||
|
realNewBmwUrl: 'http://192.168.0.14:1616',
|
||||||
|
loginUrl: 'http://192.168.0.14:27018',
|
||||||
|
//实名制移动端 -- 新
|
||||||
|
realNewYnUrl: 'http://192.168.0.14:1918',
|
||||||
|
realIdCardUrl: 'http://192.168.0.14:26699',
|
||||||
|
|
||||||
|
//作业计划 -- 新
|
||||||
|
workPlanNewYnUrl: 'http://192.168.0.14:19191',
|
||||||
|
|
||||||
|
// 应用信息
|
||||||
|
appInfo: {
|
||||||
|
// 应用名称
|
||||||
|
name: '作业管控智慧平台',
|
||||||
|
// 应用版本
|
||||||
|
version: '1.1.0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
"versionCode" : 111,
|
"versionCode" : 111,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
"screenOrientation" : [ "portrait-primary", "landscape-primary" ],
|
||||||
|
"flexible" : true,
|
||||||
"runmode" : "liberate",
|
"runmode" : "liberate",
|
||||||
"compatible" : {
|
"compatible" : {
|
||||||
"ignoreVersion" : true
|
"ignoreVersion" : true
|
||||||
|
|
@ -98,7 +100,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"orientation" : [ "portrait-primary" ],
|
"screenOrientation" : [ "portrait-primary", "landscape-primary" ],
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"ios" : {
|
"ios" : {
|
||||||
"iphone" : {
|
"iphone" : {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
viewerUrl: '/hybrid/html/web/viewer.html', // 注意:静态的html文件需要放在根路径下的 hybrid/html 文件夹中
|
viewerUrl: '/hybrid/html/web/viewer.html', // 注意:静态的html文件需要放在根路径下的 hybrid/html 文件夹中
|
||||||
fileUrl: '', // 要访问的本地pdf的路径
|
fileUrl: '', // 要访问的本地pdf的路径
|
||||||
url: '', // 最终显示在web-view中的路径
|
// url: '', // 最终显示在web-view中的路径
|
||||||
currentPage: 1, //初始页
|
currentPage: 1, //初始页
|
||||||
totalPage: 0, //总页码
|
totalPage: 0, //总页码
|
||||||
currentReadPage: 0, //当前页码
|
currentReadPage: 0, //当前页码
|
||||||
|
|
@ -80,7 +80,7 @@ export default {
|
||||||
pageInt() {
|
pageInt() {
|
||||||
console.log(this.viewerUrlWithParams)
|
console.log(this.viewerUrlWithParams)
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
this.url = `${this.viewerUrl}?file=${encodeURIComponent(this.fileUrl)}&page=`+this.currentPage
|
this.viewerUrlWithParams = `${this.viewerUrl}?file=${encodeURIComponent(this.fileUrl)}&page=`+this.currentPage
|
||||||
console.log(this.viewerUrlWithParams)
|
console.log(this.viewerUrlWithParams)
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -5,7 +5,7 @@
|
||||||
<view style="margin: 20rpx;font-weight: bold;">
|
<view style="margin: 20rpx;font-weight: bold;">
|
||||||
合同视频
|
合同视频
|
||||||
</view>
|
</view>
|
||||||
<video :src="videoSrc" controls="false" :autoplay="autoPlay" style="width: 100%;height: 600rpx;" v-if="!showPopup"></video>
|
<video :src="videoSrc" :controls="false" style="width: 100%;height: 600rpx;" v-if="!showPopup"></video>
|
||||||
|
|
||||||
<view style="margin: 20rpx;font-weight: bold;color: red;">
|
<view style="margin: 20rpx;font-weight: bold;color: red;">
|
||||||
确认视频无误,进行下一步签订
|
确认视频无误,进行下一步签订
|
||||||
|
|
@ -88,7 +88,7 @@ export default {
|
||||||
compressed: false,
|
compressed: false,
|
||||||
success: res => {
|
success: res => {
|
||||||
console.log('chooseVideo',res)
|
console.log('chooseVideo',res)
|
||||||
this.videoSrc = res.tempFilePath+'?_t=' + Date.now();
|
this.videoSrc = res.tempFilePath;
|
||||||
this.videoUrl = res.tempFilePath;
|
this.videoUrl = res.tempFilePath;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@
|
||||||
<web-view :src="webUrl4" v-if="hIndex==4" :fullscreen="false" :webview-styles="webviewStyles" style="overflow: auto;margin-top: 400rpx;"></web-view>
|
<web-view :src="webUrl4" v-if="hIndex==4" :fullscreen="false" :webview-styles="webviewStyles" style="overflow: auto;margin-top: 400rpx;"></web-view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="screen-btn" v-if="screenType==2" @click="lockOrientation('landscape')">横屏</view>
|
<view class="screen-btn" v-if="screenType==2" @click="lockOrientation('landscape-primary')">横屏</view>
|
||||||
<view class="screen-btn" v-if="screenType==1" @click="lockOrientation('portrait')">竖屏</view>
|
<view class="screen-btn" v-if="screenType==1" @click="lockOrientation('portrait-primary')">竖屏</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -105,15 +105,14 @@
|
||||||
// 竖屏
|
// 竖屏
|
||||||
//this.lockOrientation('portrait')
|
//this.lockOrientation('portrait')
|
||||||
lockOrientation(orientation) {
|
lockOrientation(orientation) {
|
||||||
if(orientation=='landscape'){
|
if(orientation=='landscape-primary'){
|
||||||
this.screenType=1
|
this.screenType=1
|
||||||
}else if(orientation=='portrait'){
|
}else if(orientation=='portrait-primary'){
|
||||||
this.screenType=2
|
this.screenType=2
|
||||||
|
|
||||||
}
|
}
|
||||||
if (typeof plus !== 'undefined' && typeof plus.screen !== 'undefined') {
|
// if (typeof plus !== 'undefined' && typeof plus.screen !== 'undefined') {
|
||||||
plus.screen.lockOrientation(orientation)
|
plus.screen.lockOrientation(orientation)
|
||||||
}
|
// }
|
||||||
this.webviewStyles = {
|
this.webviewStyles = {
|
||||||
progress: false,
|
progress: false,
|
||||||
width:'90%',
|
width:'90%',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue