增加配置
This commit is contained in:
parent
1b159c9cab
commit
bc0f3cd9f1
@ -26,7 +26,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
// Various Dev Server settings
|
||||
host: '192.168.0.103', // can be overwritten by process.env.HOST
|
||||
host: '127.0.0.1', // can be overwritten by process.env.HOST
|
||||
port: 8989, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
||||
autoOpenBrowser: false,
|
||||
errorOverlay: true,
|
||||
|
@ -1,5 +1,6 @@
|
||||
const publishUrl = 'http://v3.xzszwhy.cn/'
|
||||
const url = 'http://v3.xzszwhy.cn/xzszwhy/'
|
||||
const liveUrl = 'https://www.xzszwhy.cn/'
|
||||
const liveUrl = 'http://v3.xzszwhy.cn/live/'
|
||||
const shopUrl = 'http://v3.xzszwhy.cn/xzshop/'
|
||||
/**
|
||||
* 基础区域ID、编码
|
||||
@ -21,12 +22,12 @@ const shopUrl = 'http://v3.xzszwhy.cn/xzshop/'
|
||||
* 15.吉隆县: 642389, 540234000000
|
||||
* 16.聂拉木县: 642437, 540235000000
|
||||
* 17.萨嘎县: 642489, 540236000000
|
||||
* 18.岗巴县: 642536, 540237000000
|
||||
* 18.岗巴县: 642536, 540232000000
|
||||
*/
|
||||
const area = {
|
||||
areaName: '桑珠孜区',
|
||||
areaId: '640676',
|
||||
areaCode: '540202000000'
|
||||
areaName: '日喀则市',
|
||||
areaId: '640675',
|
||||
areaCode: '540200000000'
|
||||
}
|
||||
|
||||
const phoneSafe = (phone) => {
|
||||
@ -37,6 +38,7 @@ const phoneSafe = (phone) => {
|
||||
}
|
||||
|
||||
export default {
|
||||
publishUrl,
|
||||
url,
|
||||
liveUrl,
|
||||
shopUrl,
|
||||
|
@ -69,6 +69,7 @@ export default {
|
||||
photography: [],
|
||||
innerContent: [],
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -114,7 +115,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -89,6 +89,7 @@ export default {
|
||||
newsDirectoriesParentId: 'd9d8c7ea-32e0-43ed-ad17-7c99a3c389b9'
|
||||
},
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -102,7 +103,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
goDetail: function (url) {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
},
|
||||
doJumpPage: function () {
|
||||
this.page.page = this.changePage
|
||||
|
@ -22,7 +22,7 @@
|
||||
<ul v-if="hasData">
|
||||
<li tag="li" v-for="list in selectedList" :key="list.id" @click="goDetail(list.liveStatus, list.livePlanId)" :title="list.livePlanName">
|
||||
<div class="broadcast-img">
|
||||
<img :src="url + 'live/route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img :src="liveUrl + 'route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img src="@/assets/images/play.svg" alt="" class="play-btn">
|
||||
</div>
|
||||
<div class="broadcast-info">
|
||||
@ -102,7 +102,7 @@ export default {
|
||||
getBoradcastList: function () {
|
||||
var self = this
|
||||
self.isLoading = true
|
||||
axios.get(self.liveUrl + 'live/app/liveplan/listliveplanrelease').then(function (res) {
|
||||
axios.get(self.liveUrl + 'app/liveplan/listliveplanrelease').then(function (res) {
|
||||
self.isLoading = false
|
||||
self.broadcast = res.data
|
||||
self.selectedList = res.data
|
||||
|
@ -53,7 +53,8 @@ export default {
|
||||
videoList: [],
|
||||
selectedVideo: {},
|
||||
player: null,
|
||||
url: common.url
|
||||
url: common.url,
|
||||
liveUrl: common.liveUrl
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -79,7 +80,7 @@ export default {
|
||||
},
|
||||
getBroadcastDetail: function () {
|
||||
var self = this
|
||||
axios.get(self.url + 'app/liveplan/getliveplanbyidrelease/' + self.$route.params.id).then(function (res) {
|
||||
axios.get(self.liveUrl + 'app/liveplan/getliveplanbyidrelease/' + self.$route.params.id).then(function (res) {
|
||||
self.broadcastData = res.data
|
||||
if (res.data.liveStatus !== '2') {
|
||||
self.getVideo()
|
||||
@ -90,16 +91,17 @@ export default {
|
||||
},
|
||||
getVideo: function () {
|
||||
var self = this
|
||||
axios.get(self.url + 'app/liverecord/listliverecordrelease/' + self.$route.params.id).then(function (res) {
|
||||
axios.get(self.liveUrl + 'app/liverecord/listliverecordrelease/' + self.$route.params.id).then(function (res) {
|
||||
self.videoList = res.data
|
||||
self.selectedVideo = res.data[0]
|
||||
self.selectedVideo.videoSrc = self.selectedVideo.recordFilePath
|
||||
self.selectedVideo.videoSrc = common.publishUrl + self.selectedVideo.recordFilePath
|
||||
self.flv_load()
|
||||
})
|
||||
},
|
||||
changeVideo: function (idx) {
|
||||
console.log('changeVideo')
|
||||
this.selectedVideo = this.videoList[idx]
|
||||
this.selectedVideo.videoSrc = this.selectedVideo.recordFilePath
|
||||
this.selectedVideo.videoSrc = common.publishUrl + this.selectedVideo.recordFilePath
|
||||
var video = document.getElementById('myVideo')
|
||||
video.src = this.selectedVideo.videoSrc
|
||||
this.flv_load()
|
||||
@ -116,7 +118,7 @@ export default {
|
||||
}
|
||||
}
|
||||
self.player = flvjs.createPlayer({
|
||||
type: 'flv', // 视频mp4格式
|
||||
type: 'mp4', // 视频mp4格式
|
||||
url: self.selectedVideo.videoSrc
|
||||
})
|
||||
self.player.attachMediaElement(element)
|
||||
|
@ -103,6 +103,7 @@ export default {
|
||||
defaultArea: common.area.areaCode,
|
||||
area: common.area.areaCode,
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -149,7 +150,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
},
|
||||
getTypeList: function () {
|
||||
|
@ -58,7 +58,7 @@ export default {
|
||||
goodsPage: {
|
||||
page: {
|
||||
current: 1,
|
||||
size: 3,
|
||||
size: 8,
|
||||
groupSize: 5,
|
||||
total: 0,
|
||||
keywords: '',
|
||||
|
@ -89,6 +89,7 @@ export default {
|
||||
newsDirectoriesParentId: 'f1d5d313-f728-4dda-9843-1116d97e17b0'
|
||||
},
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -125,7 +126,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
},
|
||||
doJumpPage: function () {
|
||||
|
@ -42,6 +42,7 @@ export default {
|
||||
spaceBetween: 30
|
||||
},
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
literature: [],
|
||||
literaturePage: {
|
||||
page: 1,
|
||||
@ -57,7 +58,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
},
|
||||
getLiterature: function () {
|
||||
|
@ -42,7 +42,8 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
url: common.url
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -50,7 +51,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,8 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
url: common.url
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -38,7 +39,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,12 +24,13 @@ export default {
|
||||
// loop: true,
|
||||
autoplay: 3000
|
||||
},
|
||||
url: common.url
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goDetail: function (url) {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -90,6 +90,7 @@ export default {
|
||||
newsDirectoriesParentId: '98c74389-2088-499b-a046-8611bdc57ea4'
|
||||
},
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -106,7 +107,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
},
|
||||
changeType: function (type) {
|
||||
|
@ -80,7 +80,7 @@
|
||||
<ul>
|
||||
<router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in pageList" :key="list.id">
|
||||
<div class="broadcast-img">
|
||||
<img :src="url + 'live/route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img :src="liveUrl + 'route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img src="@/assets/images/play.svg" alt="" class="play-btn">
|
||||
</div>
|
||||
<div class="broadcast-info">
|
||||
@ -231,6 +231,7 @@ export default {
|
||||
},
|
||||
pageList: [],
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
liveUrl: common.liveUrl
|
||||
}
|
||||
},
|
||||
@ -344,7 +345,7 @@ export default {
|
||||
},
|
||||
// 跳转详情页
|
||||
goDetail: function (url) {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
},
|
||||
// 查询艺术培训
|
||||
searchArt: function () {
|
||||
@ -428,7 +429,7 @@ export default {
|
||||
// 查询直播
|
||||
searchBoradcast: function () {
|
||||
var self = this
|
||||
axios.get(self.liveUrl + 'live/app/liveplan/listliveplanrelease', {
|
||||
axios.get(self.liveUrl + 'app/liveplan/listliveplanrelease', {
|
||||
params: self.page
|
||||
}).then(function (res) {
|
||||
self.pageList = res.data.rows
|
||||
|
@ -100,7 +100,7 @@
|
||||
<ul>
|
||||
<router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in broadcastList" :key="list.id">
|
||||
<div class="broadcast-img">
|
||||
<img :src="url + 'live/route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img :src="liveUrl + 'route/file/download/false/' + list.livePlanPhoto" alt="">
|
||||
<img src="@/assets/images/play.svg" alt="" class="play-btn">
|
||||
</div>
|
||||
<div class="broadcast-info">
|
||||
@ -273,7 +273,9 @@ export default {
|
||||
heritageTotal: 0,
|
||||
broadcastList: [],
|
||||
broadcastTotal: 0,
|
||||
url: common.url
|
||||
url: common.url,
|
||||
liveUrl: common.liveUrl,
|
||||
publishUrl: common.publishUrl
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -339,7 +341,7 @@ export default {
|
||||
if (link) {
|
||||
window.location.href = link
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
},
|
||||
// 查询艺术培训
|
||||
|
@ -77,6 +77,7 @@ export default {
|
||||
newsDirectoriesId: '51ae7beb-f277-47a4-937a-088e6d47656d'
|
||||
},
|
||||
url: common.url,
|
||||
publishUrl: common.publishUrl,
|
||||
isLoading: false
|
||||
}
|
||||
},
|
||||
@ -116,7 +117,7 @@ export default {
|
||||
if (link) {
|
||||
window.open(link)
|
||||
} else {
|
||||
window.location.href = this.url + url
|
||||
window.location.href = this.publishUrl + url
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user