Commit 11d8d274 authored by liwei's avatar liwei

修改了H5页面跳转路径位置

parent 9a7fe5bf
// 应用全局配置
module.exports = {
// baseUrl: 'http://106.3.97.198:20162'
baseUrl: 'http://192.168.1.7:8092',//接口地址
imgUrl:'http://192.168.1.7/static/images'//图片URL
baseUrl: 'http://192.168.1.7:8092',//接口URL
imgUrl:'http://192.168.1.7/static/images',//图片URL
webViewUrl:'http://192.168.1.7:8080'//小程序跳转H5页面的URL
}
// module.exports = {
......
......@@ -16,8 +16,10 @@ Vue.use(uView)
Vue.prototype.$myRequest = request; // 接口请求
Vue.prototype.$IMG_URL = config.imgUrl;//图片地址
Vue.prototype.$WEBVIEW_URL = config.webViewUrl;//图片地址
Vue.prototype.$store = store;//正式接口
Vue.mixin(share)
const app = new Vue({
...App
......
<template>
<view>
<!-- <web-view :src="'http://106.3.97.198:20163/realAuth.html?token='+token"></web-view>-->
<web-view :src="'http://192.168.1.7:8080/realAuth.html?token='+token" @message="receiveMessage"></web-view>
<web-view :src="webUrl+'/realAuth.html?token='+token" @message="receiveMessage"></web-view>
</view>
</template>
......@@ -12,6 +12,7 @@ export default {
name: "index",
data() {
return {
webUrl:this.$WEBVIEW_URL,
token:uni.getStorageSync('token'),
};
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment