增加配置

This commit is contained in:
wanggeng 2022-12-25 16:44:23 +08:00
parent 1b159c9cab
commit bc0f3cd9f1
17 changed files with 51 additions and 34 deletions

View File

@ -26,7 +26,7 @@ module.exports = {
}, },
// Various Dev Server settings // 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 port: 8989, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false, autoOpenBrowser: false,
errorOverlay: true, errorOverlay: true,

View File

@ -1,5 +1,6 @@
const publishUrl = 'http://v3.xzszwhy.cn/'
const url = 'http://v3.xzszwhy.cn/xzszwhy/' 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/' const shopUrl = 'http://v3.xzszwhy.cn/xzshop/'
/** /**
* 基础区域ID编码 * 基础区域ID编码
@ -21,12 +22,12 @@ const shopUrl = 'http://v3.xzszwhy.cn/xzshop/'
* 15.吉隆县: 642389, 540234000000 * 15.吉隆县: 642389, 540234000000
* 16.聂拉木县: 642437, 540235000000 * 16.聂拉木县: 642437, 540235000000
* 17.萨嘎县: 642489, 540236000000 * 17.萨嘎县: 642489, 540236000000
* 18.岗巴县: 642536, 540237000000 * 18.岗巴县: 642536, 540232000000
*/ */
const area = { const area = {
areaName: '桑珠孜区', areaName: '日喀则市',
areaId: '640676', areaId: '640675',
areaCode: '540202000000' areaCode: '540200000000'
} }
const phoneSafe = (phone) => { const phoneSafe = (phone) => {
@ -37,6 +38,7 @@ const phoneSafe = (phone) => {
} }
export default { export default {
publishUrl,
url, url,
liveUrl, liveUrl,
shopUrl, shopUrl,

View File

@ -69,6 +69,7 @@ export default {
photography: [], photography: [],
innerContent: [], innerContent: [],
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -114,7 +115,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
} }
}, },

View File

@ -89,6 +89,7 @@ export default {
newsDirectoriesParentId: 'd9d8c7ea-32e0-43ed-ad17-7c99a3c389b9' newsDirectoriesParentId: 'd9d8c7ea-32e0-43ed-ad17-7c99a3c389b9'
}, },
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -102,7 +103,7 @@ export default {
}, },
methods: { methods: {
goDetail: function (url) { goDetail: function (url) {
window.location.href = this.url + url window.location.href = this.publishUrl + url
}, },
doJumpPage: function () { doJumpPage: function () {
this.page.page = this.changePage this.page.page = this.changePage

View File

@ -22,7 +22,7 @@
<ul v-if="hasData"> <ul v-if="hasData">
<li tag="li" v-for="list in selectedList" :key="list.id" @click="goDetail(list.liveStatus, list.livePlanId)" :title="list.livePlanName"> <li tag="li" v-for="list in selectedList" :key="list.id" @click="goDetail(list.liveStatus, list.livePlanId)" :title="list.livePlanName">
<div class="broadcast-img"> <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"> <img src="@/assets/images/play.svg" alt="" class="play-btn">
</div> </div>
<div class="broadcast-info"> <div class="broadcast-info">
@ -102,7 +102,7 @@ export default {
getBoradcastList: function () { getBoradcastList: function () {
var self = this var self = this
self.isLoading = true 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.isLoading = false
self.broadcast = res.data self.broadcast = res.data
self.selectedList = res.data self.selectedList = res.data

View File

@ -53,7 +53,8 @@ export default {
videoList: [], videoList: [],
selectedVideo: {}, selectedVideo: {},
player: null, player: null,
url: common.url url: common.url,
liveUrl: common.liveUrl
} }
}, },
computed: { computed: {
@ -79,7 +80,7 @@ export default {
}, },
getBroadcastDetail: function () { getBroadcastDetail: function () {
var self = this 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 self.broadcastData = res.data
if (res.data.liveStatus !== '2') { if (res.data.liveStatus !== '2') {
self.getVideo() self.getVideo()
@ -90,16 +91,17 @@ export default {
}, },
getVideo: function () { getVideo: function () {
var self = this 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.videoList = res.data
self.selectedVideo = res.data[0] self.selectedVideo = res.data[0]
self.selectedVideo.videoSrc = self.selectedVideo.recordFilePath self.selectedVideo.videoSrc = common.publishUrl + self.selectedVideo.recordFilePath
self.flv_load() self.flv_load()
}) })
}, },
changeVideo: function (idx) { changeVideo: function (idx) {
console.log('changeVideo')
this.selectedVideo = this.videoList[idx] this.selectedVideo = this.videoList[idx]
this.selectedVideo.videoSrc = this.selectedVideo.recordFilePath this.selectedVideo.videoSrc = common.publishUrl + this.selectedVideo.recordFilePath
var video = document.getElementById('myVideo') var video = document.getElementById('myVideo')
video.src = this.selectedVideo.videoSrc video.src = this.selectedVideo.videoSrc
this.flv_load() this.flv_load()
@ -116,7 +118,7 @@ export default {
} }
} }
self.player = flvjs.createPlayer({ self.player = flvjs.createPlayer({
type: 'flv', // mp4 type: 'mp4', // mp4
url: self.selectedVideo.videoSrc url: self.selectedVideo.videoSrc
}) })
self.player.attachMediaElement(element) self.player.attachMediaElement(element)

View File

@ -103,6 +103,7 @@ export default {
defaultArea: common.area.areaCode, defaultArea: common.area.areaCode,
area: common.area.areaCode, area: common.area.areaCode,
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -149,7 +150,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
}, },
getTypeList: function () { getTypeList: function () {

View File

@ -58,7 +58,7 @@ export default {
goodsPage: { goodsPage: {
page: { page: {
current: 1, current: 1,
size: 3, size: 8,
groupSize: 5, groupSize: 5,
total: 0, total: 0,
keywords: '', keywords: '',

View File

@ -89,6 +89,7 @@ export default {
newsDirectoriesParentId: 'f1d5d313-f728-4dda-9843-1116d97e17b0' newsDirectoriesParentId: 'f1d5d313-f728-4dda-9843-1116d97e17b0'
}, },
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -125,7 +126,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
}, },
doJumpPage: function () { doJumpPage: function () {

View File

@ -42,6 +42,7 @@ export default {
spaceBetween: 30 spaceBetween: 30
}, },
url: common.url, url: common.url,
publishUrl: common.publishUrl,
literature: [], literature: [],
literaturePage: { literaturePage: {
page: 1, page: 1,
@ -57,7 +58,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
}, },
getLiterature: function () { getLiterature: function () {

View File

@ -42,7 +42,8 @@ export default {
}, },
data () { data () {
return { return {
url: common.url url: common.url,
publishUrl: common.publishUrl
} }
}, },
methods: { methods: {
@ -50,7 +51,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
} }
} }

View File

@ -30,7 +30,8 @@ export default {
}, },
data () { data () {
return { return {
url: common.url url: common.url,
publishUrl: common.publishUrl
} }
}, },
methods: { methods: {
@ -38,7 +39,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
} }
} }

View File

@ -24,12 +24,13 @@ export default {
// loop: true, // loop: true,
autoplay: 3000 autoplay: 3000
}, },
url: common.url url: common.url,
publishUrl: common.publishUrl
} }
}, },
methods: { methods: {
goDetail: function (url) { goDetail: function (url) {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
} }
} }

View File

@ -90,6 +90,7 @@ export default {
newsDirectoriesParentId: '98c74389-2088-499b-a046-8611bdc57ea4' newsDirectoriesParentId: '98c74389-2088-499b-a046-8611bdc57ea4'
}, },
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -106,7 +107,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
}, },
changeType: function (type) { changeType: function (type) {

View File

@ -80,7 +80,7 @@
<ul> <ul>
<router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in pageList" :key="list.id"> <router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in pageList" :key="list.id">
<div class="broadcast-img"> <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"> <img src="@/assets/images/play.svg" alt="" class="play-btn">
</div> </div>
<div class="broadcast-info"> <div class="broadcast-info">
@ -231,6 +231,7 @@ export default {
}, },
pageList: [], pageList: [],
url: common.url, url: common.url,
publishUrl: common.publishUrl,
liveUrl: common.liveUrl liveUrl: common.liveUrl
} }
}, },
@ -344,7 +345,7 @@ export default {
}, },
// //
goDetail: function (url) { goDetail: function (url) {
window.location.href = this.url + url window.location.href = this.publishUrl + url
}, },
// //
searchArt: function () { searchArt: function () {
@ -428,7 +429,7 @@ export default {
// //
searchBoradcast: function () { searchBoradcast: function () {
var self = this var self = this
axios.get(self.liveUrl + 'live/app/liveplan/listliveplanrelease', { axios.get(self.liveUrl + 'app/liveplan/listliveplanrelease', {
params: self.page params: self.page
}).then(function (res) { }).then(function (res) {
self.pageList = res.data.rows self.pageList = res.data.rows

View File

@ -100,7 +100,7 @@
<ul> <ul>
<router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in broadcastList" :key="list.id"> <router-link :to="{path: '/broadcastDetail/' + list.livePlanId}" tag="li" v-for="list in broadcastList" :key="list.id">
<div class="broadcast-img"> <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"> <img src="@/assets/images/play.svg" alt="" class="play-btn">
</div> </div>
<div class="broadcast-info"> <div class="broadcast-info">
@ -273,7 +273,9 @@ export default {
heritageTotal: 0, heritageTotal: 0,
broadcastList: [], broadcastList: [],
broadcastTotal: 0, broadcastTotal: 0,
url: common.url url: common.url,
liveUrl: common.liveUrl,
publishUrl: common.publishUrl
} }
}, },
computed: { computed: {
@ -339,7 +341,7 @@ export default {
if (link) { if (link) {
window.location.href = link window.location.href = link
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
}, },
// //

View File

@ -77,6 +77,7 @@ export default {
newsDirectoriesId: '51ae7beb-f277-47a4-937a-088e6d47656d' newsDirectoriesId: '51ae7beb-f277-47a4-937a-088e6d47656d'
}, },
url: common.url, url: common.url,
publishUrl: common.publishUrl,
isLoading: false isLoading: false
} }
}, },
@ -116,7 +117,7 @@ export default {
if (link) { if (link) {
window.open(link) window.open(link)
} else { } else {
window.location.href = this.url + url window.location.href = this.publishUrl + url
} }
} }
}, },