Commit 7d300bd0 authored by 黄奎's avatar 黄奎

文件上传修改

parent 4cbf4509
...@@ -51,14 +51,12 @@ export default { ...@@ -51,14 +51,12 @@ export default {
this.Info("已取消操作"); this.Info("已取消操作");
}); });
}, },
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = "http://192.168.10.68:5000"; let domainUrl = "http://192.168.5.46:8200";
domainUrl = "https://mallapi.oytour.com"; let javaUrl = 'http://192.168.5.214:8018';
let javaUrl = 'http://192.168.10.214:8018'; let vtUploadUrl = "http://192.168.5.214:8120";
let vtUploadUrl = "http://192.168.5.46:8120"; let vtViewUrl = "http://192.168.5.214:8130";
let vtViewUrl = "http://192.168.5.46:8130";
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (locationName.indexOf('testmall.oytour') !== -1) { if (locationName.indexOf('testmall.oytour') !== -1) {
...@@ -254,7 +252,7 @@ export default { ...@@ -254,7 +252,7 @@ export default {
var uploadResult = { var uploadResult = {
resultCode: 1, resultCode: 1,
FileName: fileObj.name, FileName: fileObj.name,
FileUrl:res.data.FilePath, FileUrl: res.data.FilePath,
VideoCoverImg: that.domainManager().VTViewUrl + res.data.VideoCoverImg VideoCoverImg: that.domainManager().VTViewUrl + res.data.VideoCoverImg
} }
if (callback) { if (callback) {
...@@ -282,7 +280,7 @@ export default { ...@@ -282,7 +280,7 @@ export default {
var uploadResult = { var uploadResult = {
resultCode: 1, resultCode: 1,
FileName: fileObj.name, FileName: fileObj.name,
FileUrl:res.data.FilePath, FileUrl: res.data.FilePath,
VideoCoverImg: that.domainManager().VTViewUrl + res.data.VideoCoverImg VideoCoverImg: that.domainManager().VTViewUrl + res.data.VideoCoverImg
} }
if (successCall) { if (successCall) {
...@@ -314,8 +312,6 @@ export default { ...@@ -314,8 +312,6 @@ export default {
} }
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) {
var apiurl = this.domainManager().DomainUrl + cmd; var apiurl = this.domainManager().DomainUrl + cmd;
var postData = this.GetPostData(cmd, msg, ""); var postData = this.GetPostData(cmd, msg, "");
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
...@@ -581,7 +577,7 @@ export default { ...@@ -581,7 +577,7 @@ export default {
successCall(res); successCall(res);
} }
}, faildCall) }, faildCall)
} },
Vue.prototype.Get_i_Data = function (cmd, msg, newCmd) { Vue.prototype.Get_i_Data = function (cmd, msg, newCmd) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
msg = {} msg = {}
......
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