将固定地址改为全局变量

This commit is contained in:
曹磊 2024-06-04 15:29:42 +08:00
parent c3320d806b
commit 09c0fcf0d3
42 changed files with 278 additions and 233 deletions

View File

@ -5,6 +5,8 @@
const path = require('path') const path = require('path')
const devEnv = require('./dev.env') const devEnv = require('./dev.env')
import { serverPaths } from '@/utils/enumData'
module.exports = { module.exports = {
dev: { dev: {
@ -14,9 +16,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置 // 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : { proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': { '/proxyApi': {
// target: 'http://192.168.0.109:8187/sqx_fast/', target: this.serverPaths.serverUrl,
// target: 'http://192.168.1.168:8187/sqx_fast/',
target: 'https://admin.sjajk.com/sqx_fast/',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/proxyApi': '' '^/proxyApi': ''

View File

@ -12,6 +12,7 @@ import { isAuth } from '@/utils'
import cloneDeep from 'lodash/cloneDeep' import cloneDeep from 'lodash/cloneDeep'
import BaiduMap from 'vue-baidu-map' import BaiduMap from 'vue-baidu-map'
import { VueJsonp } from 'vue-jsonp' import { VueJsonp } from 'vue-jsonp'
import { serverPaths } from '@/utils/enumData'
Vue.use(VueJsonp) Vue.use(VueJsonp)

View File

@ -0,0 +1,9 @@
import Vue from 'vue'
export const serverPaths = {
// serverUrl : "https://admin.sjajk.com/sqx_fast/",//生产需替换
serverUrl : "http://192.168.2.222:8187/sqx_fast/",
uploadUrl : this.serverUrl + "alioss/upload",
uploadWatermarkUrl : this.serverUrl + "alioss/uploadWatermark",
uploadMusicUrl : this.serverUrl + "alioss/uploadMusic",
}

View File

@ -7,6 +7,8 @@ import {
clearLoginInfo clearLoginInfo
} from '@/utils' } from '@/utils'
import { serverPaths } from '@/utils/enumData'
const http = axios.create({ const http = axios.create({
timeout: 1000 * 30, timeout: 1000 * 30,
// withCredentials: true, // withCredentials: true,
@ -45,20 +47,7 @@ http.interceptors.response.use(response => {
* @param {*} actionName action方法名称 * @param {*} actionName action方法名称
*/ */
http.adornUrl = (actionName) => { http.adornUrl = (actionName) => {
// 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截! return this.serverPaths.serverUrl + actionName;
// return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
// return 'http://192.168.0.109:8187/sqx_fast/' + actionName
//return 'http://127.0.0.1:8187/sqx_fast/' + actionName
//生产环境
return 'https://admin.sjajk.com/sqx_fast/' + actionName
//测试环境
// return "http://192.168.1.169:8187/sqx_fast/" + actionName;
//客户地址
// return "http://192.168.110.85:8187/sqx_fast/" + actionName;
// 后台本地韩玉东
// return "http://192.168.1.50:8187/sqx_fast/" + actionName;
//后台本地张聪
// return "http://192.168.1.48:8187/sqx_fast/" + actionName;
} }
http.adornWss = (actionName) => { http.adornWss = (actionName) => {

View File

@ -436,7 +436,7 @@
<div v-else-if="form.conditionFrom == 'image'" <div v-else-if="form.conditionFrom == 'image'"
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="form.value" <el-upload class="avatar-uploader" v-model="form.value"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="form.value" :src="form.value" class="avatar" <img v-if="form.value" :src="form.value" class="avatar"
style="border-radius: 6px;width: 140px;height: 140px;" /> style="border-radius: 6px;width: 140px;height: 140px;" />
@ -445,7 +445,7 @@
</div> </div>
<div v-else-if="form.conditionFrom == 'yuyin'"> <div v-else-if="form.conditionFrom == 'yuyin'">
<el-upload class="upload-demo" v-model="form.value" <el-upload class="upload-demo" v-model="form.value"
action="https://admin.sjajk.com/sqx_fast/alioss/uploadMusic" :show-file-list="false" :action="uploadMusicUrl" :show-file-list="false"
:on-success="handleSuccess" :before-upload="beforeAvatarUpload" :on-success="handleSuccess" :before-upload="beforeAvatarUpload"
:on-progress="handlePreview"> :on-progress="handlePreview">
<el-button size="small" type="primary" v-loading="tableDataLoading6">点击上传</el-button> <el-button size="small" type="primary" v-loading="tableDataLoading6">点击上传</el-button>
@ -559,6 +559,8 @@ export default {
} }
} }
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadMusicUrl: this.serverPaths.uploadMusicUrl,
openValue: '是', openValue: '是',
closeValue: '否', closeValue: '否',
limit: 10, limit: 10,

View File

@ -441,7 +441,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="headImg" v-model="headImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess5" :on-success="handleAvatarSuccess5"
:on-progress="onprogress" :on-progress="onprogress"
@ -481,7 +481,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" :action="uploadWatermarkUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess1" :on-success="handleUploadSuccess1"
@ -511,7 +511,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess2" :on-success="handleUploadSuccess2"
@ -541,7 +541,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess3" :on-success="handleUploadSuccess3"
@ -1080,7 +1080,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="massageImg" v-model="massageImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-success="handleAvatarSuccess1"
:on-progress="onprogress2" :on-progress="onprogress2"
@ -1110,7 +1110,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess3" :on-success="handleUploadSuccess3"
@ -1763,6 +1763,8 @@ export default {
} }
}; };
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
ruleForm: { ruleForm: {
materialPackageCount: null, materialPackageCount: null,
materialPackageCountType: null, materialPackageCountType: null,

View File

@ -240,7 +240,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">头像</span> <span style="width: 200px;display: inline-block;text-align: right;">头像</span>
<div style="display: inline-block;"> <div style="display: inline-block;">
<el-upload class="avatar-uploader" v-model="avatar" <el-upload class="avatar-uploader" v-model="avatar"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess5"> :on-success="handleAvatarSuccess5">
<img v-if="avatar" :src="avatar" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="avatar" :src="avatar" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" <i v-else class="el-icon-plus avatar-uploader-icon"
@ -252,7 +252,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">身份证正面图</span> <span style="width: 200px;display: inline-block;text-align: right;">身份证正面图</span>
<div style="display: inline-block;"> <div style="display: inline-block;">
<el-upload class="avatar-uploader" v-model="front" <el-upload class="avatar-uploader" v-model="front"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="front" :src="front" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="front" :src="front" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" <i v-else class="el-icon-plus avatar-uploader-icon"
@ -264,7 +264,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">身份证反面图</span> <span style="width: 200px;display: inline-block;text-align: right;">身份证反面图</span>
<div style="display: inline-block;"> <div style="display: inline-block;">
<el-upload class="avatar-uploader" v-model="back" <el-upload class="avatar-uploader" v-model="back"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="back" :src="back" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="back" :src="back" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" <i v-else class="el-icon-plus avatar-uploader-icon"
@ -281,7 +281,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3"
:on-progress="onprogress1"> :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" <el-progress v-if="percentage1>0 && percentage1<100" type="circle"
@ -299,7 +299,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1"> :show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" <el-progress v-if="percentage1>0 && percentage1<100" type="circle"
:percentage="percentage1"></el-progress> :percentage="percentage1"></el-progress>
@ -322,6 +322,8 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
limit: 10, limit: 10,
page: 1, page: 1,
content: '', content: '',

View File

@ -51,7 +51,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="imageUrl" :src="imageUrl" class="avatar" <img v-if="imageUrl" :src="imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -133,7 +133,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="imageUrl" :src="imageUrl" class="avatar" <img v-if="imageUrl" :src="imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -436,7 +436,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="imageUrl" :src="imageUrl" class="avatar" <img v-if="imageUrl" :src="imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -468,7 +468,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form.imageUrl" :src="form.imageUrl" class="avatar" <img v-if="form.imageUrl" :src="form.imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -498,6 +498,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
page: 1, page: 1,
limit: 5, limit: 5,
classify: 1, classify: 1,

View File

@ -168,7 +168,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">商家头像</span> <span style="width: 200px;display: inline-block;text-align: right;">商家头像</span>
<div style="display: inline-block;width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> <div style="display: inline-block;width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="logo" <el-upload class="avatar-uploader" v-model="logo"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="logo" :src="logo" class="avatar" <img v-if="logo" :src="logo" class="avatar"
style="width: 148px;height: 148px;" /> style="width: 148px;height: 148px;" />
@ -185,7 +185,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3"
:on-progress="onprogress1"> :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" <el-progress v-if="percentage1>0 && percentage1<100" type="circle"
@ -203,7 +203,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess4" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess4"
:on-progress="onprogress2"> :on-progress="onprogress2">
<el-progress v-if="percentage2>0 && percentage2<100" type="circle" <el-progress v-if="percentage2>0 && percentage2<100" type="circle"
@ -260,7 +260,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">商家头像</span> <span style="width: 200px;display: inline-block;text-align: right;">商家头像</span>
<div style="display: inline-block;width: 148px;height: 148px;border: 1px dashed #c0ccda;"> <div style="display: inline-block;width: 148px;height: 148px;border: 1px dashed #c0ccda;">
<el-upload class="avatar-uploader" v-model="logo" <el-upload class="avatar-uploader" v-model="logo"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1" style="text-align: center;"> :on-success="handleAvatarSuccess1" style="text-align: center;">
<img v-if="logo" :src="logo" class="avatar" <img v-if="logo" :src="logo" class="avatar"
style="width: 148px;height: 148px;" /> style="width: 148px;height: 148px;" />
@ -277,7 +277,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3"
:on-progress="onprogress1"> :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" <el-progress v-if="percentage1>0 && percentage1<100" type="circle"
@ -295,7 +295,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess4" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess4"
:on-progress="onprogress2"> :on-progress="onprogress2">
<el-progress v-if="percentage2>0 && percentage2<100" type="circle" <el-progress v-if="percentage2>0 && percentage2<100" type="circle"
@ -474,6 +474,8 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
size: 10, size: 10,
page: 1, page: 1,
size1: 10, size1: 10,

View File

@ -77,7 +77,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="couponPicture" <el-upload class="avatar-uploader" v-model="couponPicture"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="couponPicture" :src="couponPicture" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="couponPicture" :src="couponPicture" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" <i v-else class="el-icon-plus avatar-uploader-icon"
@ -126,7 +126,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="form.couponPicture" <el-upload class="avatar-uploader" v-model="form.couponPicture"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form.couponPicture" :src="form.couponPicture" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="form.couponPicture" :src="form.couponPicture" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" <i v-else class="el-icon-plus avatar-uploader-icon"
@ -399,6 +399,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
size: 10, size: 10,
page: 1, page: 1,
size1: 10, size1: 10,

View File

@ -172,7 +172,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="form.couponIssueImage" <el-upload class="avatar-uploader" v-model="form.couponIssueImage"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form.couponIssueImage" :src="form.couponIssueImage" class="avatar" <img v-if="form.couponIssueImage" :src="form.couponIssueImage" class="avatar"
style="width: 148px;height: 148px;" /> style="width: 148px;height: 148px;" />
@ -185,7 +185,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="form.couponContentImage" <el-upload class="avatar-uploader" v-model="form.couponContentImage"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleUploadSuccess"> :on-success="handleUploadSuccess">
<img v-if="form.couponContentImage" :src="form.couponContentImage" class="avatar" <img v-if="form.couponContentImage" :src="form.couponContentImage" class="avatar"
style="width: 148px;height: 148px;" /> style="width: 148px;height: 148px;" />
@ -201,7 +201,7 @@
</div> </div>
<div class="imgs" style=""> <div class="imgs" style="">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" <el-upload :action="uploadUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess"
:on-progress="onprogress1"> :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" <el-progress v-if="percentage1>0 && percentage1<100" type="circle"
@ -327,6 +327,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
size: 10, size: 10,
page: 1, page: 1,
form: { form: {

View File

@ -55,7 +55,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="memberImg" <el-upload class="avatar-uploader" v-model="memberImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="memberImg" :src="memberImg" class="avatar" <img v-if="memberImg" :src="memberImg" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -102,6 +102,7 @@
info2: { info2: {
stockDate2: this.getNowTime2(), // stockDate2: this.getNowTime2(), //
}, },
uploadUrl: this.serverPaths.uploadUrl
} }
}, },
methods: { methods: {

View File

@ -442,7 +442,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="headImg" v-model="headImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess5" :on-success="handleAvatarSuccess5"
:on-progress="onprogress" :on-progress="onprogress"
@ -482,7 +482,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" :action="uploadWatermarkUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess1" :on-success="handleUploadSuccess1"
@ -512,7 +512,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess2" :on-success="handleUploadSuccess2"
@ -542,7 +542,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess3" :on-success="handleUploadSuccess3"
@ -944,7 +944,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="massageImg" v-model="massageImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-success="handleAvatarSuccess1"
:on-progress="onprogress2" :on-progress="onprogress2"
@ -974,7 +974,7 @@
</div> </div>
<div class="imgs" style="width: 50%"> <div class="imgs" style="width: 50%">
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:show-file-list="false" :show-file-list="false"
:on-success="handleUploadSuccess3" :on-success="handleUploadSuccess3"
@ -1494,7 +1494,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="massageImg" v-model="massageImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-success="handleAvatarSuccess1"
:on-progress="onprogress2" :on-progress="onprogress2"
@ -1973,6 +1973,8 @@ export default {
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
clockData: [], // clockData: [], //
clockTitle: "", // clockTitle: "", //
isShowAddConsume: false, isShowAddConsume: false,

View File

@ -27,7 +27,7 @@
<div style = "margin-bottom: 10px;display: flex;"> <div style = "margin-bottom: 10px;display: flex;">
<span style = "width: 200px;display: inline-block;text-align: right;">素材图片</span> <span style = "width: 200px;display: inline-block;text-align: right;">素材图片</span>
<div style = " width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> <div style = " width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class = "avatar-uploader" v-model = "imgUrl" action = "https://admin.sjajk.com/sqx_fast/alioss/upload" <el-upload class = "avatar-uploader" v-model = "imgUrl" :action="uploadUrl"
:show-file-list = "false" :on-success = "handleAvatarSuccess"> :show-file-list = "false" :on-success = "handleAvatarSuccess">
<img v-if = "imgUrl" :src = "imgUrl" class = "avatar" style = "border-radius: 6px;width:148px;height: 148px;"/> <img v-if = "imgUrl" :src = "imgUrl" class = "avatar" style = "border-radius: 6px;width:148px;height: 148px;"/>
<i v-else class = "el-icon-plus avatar-uploader-icon"></i> <i v-else class = "el-icon-plus avatar-uploader-icon"></i>
@ -48,7 +48,7 @@
<el-form :model = "form"> <el-form :model = "form">
<el-form-item label = "素材图片:" :label-width = "formLabelWidth"> <el-form-item label = "素材图片:" :label-width = "formLabelWidth">
<div style = " width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height:148px;"> <div style = " width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height:148px;">
<el-upload class = "avatar-uploader" v-model = "form.imgUrl" action = "https://admin.sjajk.com/sqx_fast/alioss/upload" <el-upload class = "avatar-uploader" v-model = "form.imgUrl" :action="uploadUrl"
:show-file-list = "false" :on-success = "handleAvatarSuccess1"> :show-file-list = "false" :on-success = "handleAvatarSuccess1">
<img v-if = "form.imgUrl" :src = "form.imgUrl" class = "avatar" style = "border-radius: 6px;width:148px;height: 148px;"/> <img v-if = "form.imgUrl" :src = "form.imgUrl" class = "avatar" style = "border-radius: 6px;width:148px;height: 148px;"/>
<i v-else class = "el-icon-plus avatar-uploader-icon"></i> <i v-else class = "el-icon-plus avatar-uploader-icon"></i>
@ -71,6 +71,7 @@
export default { export default {
data () { data () {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
imgUrl: '', imgUrl: '',
linkUrl: '', linkUrl: '',
type: 3, type: 3,

View File

@ -1,6 +1,6 @@
/*富文本编辑图片上传配置*/ /*富文本编辑图片上传配置*/
const uploadConfig = { const uploadConfig = {
action: 'https://admin.sjajk.com/sqx_fast/alioss/upload', // 必填参数 图片上传地址 action: this.serverPaths.uploadUrl, // 必填参数 图片上传地址
methods: 'POST', // 必填参数 图片上传方式 methods: 'POST', // 必填参数 图片上传方式
token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage
name: 'file', // 必填参数 文件的参数名 name: 'file', // 必填参数 文件的参数名

View File

@ -1,6 +1,6 @@
/*富文本编辑图片上传配置*/ /*富文本编辑图片上传配置*/
const uploadConfig = { const uploadConfig = {
action: 'https://admin.sjajk.com/sqx_fast/alioss/upload', // 必填参数 图片上传地址 action: this.serverPaths.uploadUrl, // 必填参数 图片上传地址
methods: 'POST', // 必填参数 图片上传方式 methods: 'POST', // 必填参数 图片上传方式
token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage
name: 'file', // 必填参数 文件的参数名 name: 'file', // 必填参数 文件的参数名

View File

@ -185,7 +185,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="classifyIcon" <el-upload class="avatar-uploader" v-model="classifyIcon"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="classifyIcon" :src="classifyIcon" class="avatar" <img v-if="classifyIcon" :src="classifyIcon" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -214,7 +214,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="classifyIcon" <el-upload class="avatar-uploader" v-model="classifyIcon"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form.classifyIcon" :src="form.classifyIcon" class="avatar" <img v-if="form.classifyIcon" :src="form.classifyIcon" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -258,6 +258,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
dialogVisible: false, dialogVisible: false,
imageUrl: [], imageUrl: [],
limit: 10, limit: 10,

View File

@ -33,7 +33,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="titleImg" <el-upload class="avatar-uploader" v-model="titleImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="titleImg" :src="titleImg" class="avatar" <img v-if="titleImg" :src="titleImg" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -50,7 +50,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:show-file-list="false" :on-success="handleRemove"> :show-file-list="false" :on-success="handleRemove">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -351,6 +351,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
titles: '添加任务', titles: '添加任务',
goodsType:'', goodsType:'',
goodsId: '', //id goodsId: '', //id

View File

@ -1,6 +1,6 @@
/*富文本编辑图片上传配置*/ /*富文本编辑图片上传配置*/
const uploadConfig = { const uploadConfig = {
action: 'https://admin.sjajk.com/sqx_fast/alioss/upload', // 必填参数 图片上传地址 action: this.serverPaths.uploadUrl, // 必填参数 图片上传地址
methods: 'POST', // 必填参数 图片上传方式 methods: 'POST', // 必填参数 图片上传方式
token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage token: '', // 可选参数 如果需要token验证假设你的token有存放在sessionStorage
name: 'file', // 必填参数 文件的参数名 name: 'file', // 必填参数 文件的参数名

View File

@ -348,7 +348,7 @@
<div <div
style="display: inline-block;width:148px;height:137px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 137px;"> style="display: inline-block;width:148px;height:137px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 137px;">
<el-upload class="avatar-uploader" v-model="picture" <el-upload class="avatar-uploader" v-model="picture"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="item.picture" :src="item.picture" class="avatar" <img v-if="item.picture" :src="item.picture" class="avatar"
style="width: 148px;height:137px;" /> style="width: 148px;height:137px;" />
@ -427,7 +427,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="imageUrl" :src="imageUrl" class="avatar" <img v-if="imageUrl" :src="imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -459,7 +459,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imageUrl" <el-upload class="avatar-uploader" v-model="imageUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form.imageUrl" :src="form.imageUrl" class="avatar" <img v-if="form.imageUrl" :src="form.imageUrl" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -492,6 +492,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
openValue: '1', openValue: '1',
closeValue: '0', closeValue: '0',
limit: 10, limit: 10,

View File

@ -85,7 +85,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="img" v-model="img"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
@ -113,7 +113,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="form.img" v-model="form.img"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess2" :on-success="handleAvatarSuccess2"
> >
@ -135,6 +135,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
size:5, size:5,
page:1, page:1,
name:'', name:'',

View File

@ -51,7 +51,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;background-color: #fbfdff;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="coverImg" <el-upload class="avatar-uploader" v-model="coverImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="coverImg" :src="coverImg" class="avatar" style="width: 140px;height: 140px;" /> <img v-if="coverImg" :src="coverImg" class="avatar" style="width: 140px;height: 140px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i> <i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i>
@ -69,7 +69,7 @@
</div> </div>
</div> </div>
<div> <div>
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove"> :on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -171,7 +171,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload class="avatar-uploader" v-model="scope.row.skuImg" <el-upload class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" />
@ -248,7 +248,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload class="avatar-uploader" v-model="scope.row.skuImg" <el-upload class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess3"> :on-success="handleAvatarSuccess3">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" />
@ -348,6 +348,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
quillOption: quillConfig, quillOption: quillConfig,
type: '', type: '',
typeId: '', typeId: '',
@ -734,7 +735,8 @@
xhr = new XMLHttpRequest(); xhr = new XMLHttpRequest();
xhr.withCredentials = false; xhr.withCredentials = false;
xhr.open('POST', "https://admin.sjajk.com/sqx_fast/alioss/upload"); // xhr.open('POST', "https://admin.sjajk.com/sqx_fast/alioss/upload");//
xhr.open('POST', "http://192.168.2.222/sqx_fast/alioss/upload");
xhr.onload = function() { xhr.onload = function() {
var json; var json;

View File

@ -50,7 +50,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="coverImg" v-model="coverImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-success="handleAvatarSuccess1"
> >
@ -63,7 +63,7 @@
<span style="display: inline-block;text-align: right;">商品轮播图</span> <span style="display: inline-block;text-align: right;">商品轮播图</span>
<div> <div>
<el-upload <el-upload
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
list-type="picture-card" list-type="picture-card"
:on-success="handleUploadSuccess" :on-success="handleUploadSuccess"
:on-change="handleChange" :on-change="handleChange"
@ -228,7 +228,7 @@
style="width: 60px;height: 60px;" style="width: 60px;height: 60px;"
class="avatar-uploader" class="avatar-uploader"
v-model="scope.row.skuImg" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
@ -321,7 +321,7 @@
style="width: 60px;height: 60px;" style="width: 60px;height: 60px;"
class="avatar-uploader" class="avatar-uploader"
v-model="scope.row.skuImg" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess3" :on-success="handleAvatarSuccess3"
> >
@ -423,6 +423,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
quillOption: quillConfig, quillOption: quillConfig,
specif:'', specif:'',
typeId: '', typeId: '',

View File

@ -109,7 +109,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;background-color: #fbfdff;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="coverImg" <el-upload class="avatar-uploader" v-model="coverImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="coverImg" :src="coverImg" class="avatar" style="width: 140px;height: 140px;" /> <img v-if="coverImg" :src="coverImg" class="avatar" style="width: 140px;height: 140px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i> <i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i>
@ -127,7 +127,7 @@
</div> </div>
</div> </div>
<div> <div>
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove"> :on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -229,7 +229,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload class="avatar-uploader" v-model="scope.row.skuImg" <el-upload class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" />
@ -302,7 +302,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload class="avatar-uploader" v-model="scope.row.skuImg" <el-upload class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess3"> :on-success="handleAvatarSuccess3">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:50px;height: 50px;" @click="curRowIndex=scope.$index" />
@ -395,6 +395,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
type: '', type: '',
typeId: '', typeId: '',
title: '', title: '',

View File

@ -34,7 +34,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">图片地址</span> <span style="width: 200px;display: inline-block;text-align: right;">图片地址</span>
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="imgUrl" action="https://admin.sjajk.com/sqx_fast/alioss/upload" <el-upload class="avatar-uploader" v-model="imgUrl" :action="uploadUrl"
:show-file-list="false" :on-success="handleAvatarSuccess1"> :show-file-list="false" :on-success="handleAvatarSuccess1">
<img v-if="imgUrl" :src="imgUrl" class="avatar" style="border-radius: 6px;width:148px;height: 148px;" /> <img v-if="imgUrl" :src="imgUrl" class="avatar" style="border-radius: 6px;width:148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
@ -57,7 +57,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height:148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height:148px;">
<el-upload class="avatar-uploader" v-model="imgUrl" <el-upload class="avatar-uploader" v-model="imgUrl"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess3"> :on-success="handleAvatarSuccess3">
<img v-if="form2.imgUrl" :src="form2.imgUrl" class="avatar" <img v-if="form2.imgUrl" :src="form2.imgUrl" class="avatar"
style="border-radius: 6px;width:148px;height: 148px;" /> style="border-radius: 6px;width:148px;height: 148px;" />
@ -128,7 +128,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="image_url" <el-upload class="avatar-uploader" v-model="image_url"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess4"> :on-success="handleAvatarSuccess4">
<img v-if="image_url" :src="image_url" class="avatar" <img v-if="image_url" :src="image_url" class="avatar"
style="border-radius: 6px;width: 86px;height: 86px;" /> style="border-radius: 6px;width: 86px;height: 86px;" />
@ -160,7 +160,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="image_url" <el-upload class="avatar-uploader" v-model="image_url"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess2"> :on-success="handleAvatarSuccess2">
<img v-if="form1.image_url" :src="form1.image_url" class="avatar" <img v-if="form1.image_url" :src="form1.image_url" class="avatar"
style="border-radius: 6px;width: 86px;height: 86px;" /> style="border-radius: 6px;width: 86px;height: 86px;" />
@ -408,6 +408,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
size: 5, size: 5,
page: 1, page: 1,
pages: 1, pages: 1,

View File

@ -109,7 +109,7 @@
<div <div
style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="coverImg" <el-upload class="avatar-uploader" v-model="coverImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="coverImg" :src="coverImg" class="avatar" style="width: 148px;height: 148px;" /> <img v-if="coverImg" :src="coverImg" class="avatar" style="width: 148px;height: 148px;" />
<i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i> <i v-else class="el-icon-plus avatar-uploader-icon" style="font-size: 28px;color: #8c939d"></i>
@ -119,7 +119,7 @@
<div style="display: flex;align-items: center;margin: 2% 0;flex-flow: wrap;"> <div style="display: flex;align-items: center;margin: 2% 0;flex-flow: wrap;">
<span style="display: inline-block;text-align: right;">商品轮播图</span> <span style="display: inline-block;text-align: right;">商品轮播图</span>
<div> <div>
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove"> :on-success="handleUploadSuccess" :on-change="handleChange" :on-remove="handleRemove">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -222,7 +222,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload style="width: 60px;height: 60px;" class="avatar-uploader" v-model="scope.row.skuImg" <el-upload style="width: 60px;height: 60px;" class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:60px;height: 60px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:60px;height: 60px;" @click="curRowIndex=scope.$index" />
@ -295,7 +295,7 @@
<div class="imgWrap" <div class="imgWrap"
style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;"> style=" width:60px;height:60px;background-color: #fbfdff; border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 60px;">
<el-upload style="width: 60px;height: 60px;" class="avatar-uploader" v-model="scope.row.skuImg" <el-upload style="width: 60px;height: 60px;" class="avatar-uploader" v-model="scope.row.skuImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess3"> :on-success="handleAvatarSuccess3">
<img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar" <img v-if="scope.row.skuImg" :src="scope.row.skuImg" class="avatar"
style="border-radius: 6px;width:60px;height: 60px;" @click="curRowIndex=scope.$index" /> style="border-radius: 6px;width:60px;height: 60px;" @click="curRowIndex=scope.$index" />
@ -389,6 +389,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
specif: '', specif: '',
typeId: '', typeId: '',
title: '', title: '',

View File

@ -91,7 +91,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="memberImg" <el-upload class="avatar-uploader" v-model="memberImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="memberImg" :src="memberImg" class="avatar" <img v-if="memberImg" :src="memberImg" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -155,6 +155,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
page: 1, page: 1,
limit: 10, limit: 10,
tableDataLoading: true, tableDataLoading: true,

View File

@ -15,7 +15,7 @@
<el-upload <el-upload
v-model="titlePicture" v-model="titlePicture"
:class="{hide:hideUpload}" :class="{hide:hideUpload}"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:limit=1 :limit=1
:on-success="handleUploadSuccess" :on-success="handleUploadSuccess"
list-type="picture-card" list-type="picture-card"
@ -47,6 +47,7 @@
name: 'Tinymce', name: 'Tinymce',
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
classifyId: '', classifyId: '',
title: '', title: '',
luckyValue: '', luckyValue: '',
@ -166,7 +167,7 @@
xhr = new XMLHttpRequest(); xhr = new XMLHttpRequest();
xhr.withCredentials = false; xhr.withCredentials = false;
xhr.open('POST', "https://admin.sjajk.com/sqx_fast/alioss/upload"); xhr.open('POST', this.uploadUrl);
xhr.onload = function () { xhr.onload = function () {
var json; var json;

View File

@ -15,7 +15,7 @@
<el-upload <el-upload
v-model="titlePicture" v-model="titlePicture"
:class="{hide:hideUpload}" :class="{hide:hideUpload}"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:limit=1 :limit=1
:on-success="handleUploadSuccess" :on-success="handleUploadSuccess"
list-type="picture-card" list-type="picture-card"
@ -48,6 +48,7 @@
name: 'Tinymce', name: 'Tinymce',
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
classifyId: '', classifyId: '',
title: '', title: '',
luckyValue: '', luckyValue: '',
@ -191,7 +192,7 @@
xhr = new XMLHttpRequest(); xhr = new XMLHttpRequest();
xhr.withCredentials = false; xhr.withCredentials = false;
xhr.open('POST', "https://admin.sjajk.com/sqx_fast/alioss/upload"); xhr.open('POST', this.uploadUrl);
xhr.onload = function () { xhr.onload = function () {
var json; var json;

View File

@ -1476,7 +1476,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="avatar" <el-upload class="avatar-uploader" v-model="avatar"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccessT"> :on-success="handleAvatarSuccessT">
<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> --> <!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
<img v-if="avatar != ''" :src="avatar" class="avatar" <img v-if="avatar != ''" :src="avatar" class="avatar"
@ -1713,7 +1713,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="artificerImg" <el-upload class="avatar-uploader" v-model="artificerImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-progress="onprogress2"> :on-success="handleAvatarSuccess1" :on-progress="onprogress2">
<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> --> <!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
<img v-if="artificerImg != ''" :src="artificerImg" class="avatar" <img v-if="artificerImg != ''" :src="artificerImg" class="avatar"
@ -1733,7 +1733,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" list-type="picture-card" <el-upload :action="uploadWatermarkUrl" list-type="picture-card"
:show-file-list="false" :on-success="handleUploadSuccess3" :on-progress="onprogress1"> :show-file-list="false" :on-success="handleUploadSuccess3" :on-progress="onprogress1">
<el-progress v-if="percentage1 > 0 && percentage1 < 100" type="circle" <el-progress v-if="percentage1 > 0 && percentage1 < 100" type="circle"
:percentage="percentage1"> :percentage="percentage1">
@ -1751,7 +1751,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1"> :show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1">
<el-progress v-if="percentage1 > 0 && percentage1 < 100" type="circle" <el-progress v-if="percentage1 > 0 && percentage1 < 100" type="circle"
:percentage="percentage1"> :percentage="percentage1">
@ -1942,6 +1942,8 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
artificerIdSet: null, artificerIdSet: null,
integratingDataStatus: true, integratingDataStatus: true,
totalIntegrating: 0, totalIntegrating: 0,

View File

@ -1370,7 +1370,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
<el-upload class="avatar-uploader" v-model="avatar" <el-upload class="avatar-uploader" v-model="avatar"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccessT"> :on-success="handleAvatarSuccessT">
<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> --> <!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
<img v-if="avatar!=''" :src="avatar" class="avatar" <img v-if="avatar!=''" :src="avatar" class="avatar"
@ -1588,7 +1588,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="artificerImg" <el-upload class="avatar-uploader" v-model="artificerImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1" :on-progress="onprogress2"> :on-success="handleAvatarSuccess1" :on-progress="onprogress2">
<!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> --> <!-- <el-progress type="circle" :percentage="100" status="success"></el-progress> -->
<img v-if="artificerImg!=''" :src="artificerImg" class="avatar" <img v-if="artificerImg!=''" :src="artificerImg" class="avatar"
@ -1608,7 +1608,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3" list-type="picture-card" :show-file-list="false" :on-success="handleUploadSuccess3"
:on-progress="onprogress1"> :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1"> <el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1">
@ -1626,7 +1626,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" list-type="picture-card" <el-upload :action="uploadUrl" list-type="picture-card"
:show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1"> :show-file-list="false" :on-success="handleUploadSuccess4" :on-progress="onprogress1">
<el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1"> <el-progress v-if="percentage1>0 && percentage1<100" type="circle" :percentage="percentage1">
</el-progress> </el-progress>
@ -1807,6 +1807,8 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
openValue: 1, openValue: 1,
closeValue: 0, closeValue: 0,
state: 0, state: 0,

View File

@ -1161,7 +1161,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="front" <el-upload class="avatar-uploader" v-model="front"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess"> :on-success="handleAvatarSuccess">
<img v-if="front" :src="front" class="avatar" <img v-if="front" :src="front" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -1174,7 +1174,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="back" <el-upload class="avatar-uploader" v-model="back"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccess1"> :on-success="handleAvatarSuccess1">
<img v-if="back" :src="back" class="avatar" <img v-if="back" :src="back" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -1191,7 +1191,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/uploadWatermark" <el-upload :action="uploadWatermarkUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleRemove"> list-type="picture-card" :show-file-list="false" :on-success="handleRemove">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -1209,7 +1209,7 @@
</span> </span>
</div> </div>
<div class="imgs" style="width: 50%;"> <div class="imgs" style="width: 50%;">
<el-upload action="https://admin.sjajk.com/sqx_fast/alioss/upload" <el-upload :action="uploadUrl"
list-type="picture-card" :show-file-list="false" :on-success="handleRemove1"> list-type="picture-card" :show-file-list="false" :on-success="handleRemove1">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -1223,7 +1223,7 @@
<div <div
style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;"> style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;">
<el-upload class="avatar-uploader" v-model="avater" <el-upload class="avatar-uploader" v-model="avater"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :show-file-list="false" :action="uploadUrl" :show-file-list="false"
:on-success="handleAvatarSuccessAvater"> :on-success="handleAvatarSuccessAvater">
<img v-if="avater" :src="avater" class="avatar" <img v-if="avater" :src="avater" class="avatar"
style="border-radius: 6px;width: 148px;height: 148px;" /> style="border-radius: 6px;width: 148px;height: 148px;" />
@ -1257,6 +1257,8 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
uploadWatermarkUrl: this.serverPaths.uploadWatermarkUrl,
openValue: 1, openValue: 1,
closeValue: 2, closeValue: 2,
state: 'false', state: 'false',

View File

@ -40,7 +40,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="memberImg" v-model="memberImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
@ -69,6 +69,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
page:1, page:1,
limit:10, limit:10,
tableDataLoading: true, tableDataLoading: true,

View File

@ -40,7 +40,7 @@
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
v-model="memberImg" v-model="memberImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :show-file-list="false"
:on-success="handleAvatarSuccess" :on-success="handleAvatarSuccess"
> >
@ -78,7 +78,8 @@
memberImg:'', memberImg:'',
memberId:'', memberId:'',
sort:'', sort:'',
title:'添加' title:'添加',
uploadUrl: this.serverPaths.uploadUrl
} }
}, },
methods: { methods: {

View File

@ -160,7 +160,7 @@
<!-- 上传文件 --> <!-- 上传文件 -->
<div class="icon-item"> <div class="icon-item">
<el-upload class="avatar-uploader" v-model="coverImg" <el-upload class="avatar-uploader" v-model="coverImg"
action="https://admin.sjajk.com/sqx_fast/alioss/upload" :action="uploadUrl"
:show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload"> :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
<div class="icon-item" title="发送文件"> <div class="icon-item" title="发送文件">
<img class="icon-item-img" src="~@/assets/img/wenjian.png" /> <img class="icon-item-img" src="~@/assets/img/wenjian.png" />
@ -185,6 +185,7 @@
export default { export default {
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
chatList: [], chatList: [],
page: 1, page: 1,
size: 5, size: 5,

View File

@ -1,5 +1,6 @@
// const ROOTPATH = "http://192.168.1.169:8187/sqx_fast"; const ROOTPATH = "http://192.168.2.222:8187/sqx_fast";
// const ROOTPATH1 = "http://192.168.1.169:8187/sqx_fast"; const ROOTPATH1 = "http://192.168.2.222:8187/sqx_fast";
const ROOTPATH3 = "wss://192.168.2.222:8187/wss/websocket/";
//客户现场 //客户现场
// const ROOTPATH = "http://192.168.110.85:8187/sqx_fast"; // const ROOTPATH = "http://192.168.110.85:8187/sqx_fast";
// const ROOTPATH1 = "http://192.168.110.85:8187/sqx_fast"; // const ROOTPATH1 = "http://192.168.110.85:8187/sqx_fast";
@ -11,9 +12,9 @@
// const ROOTPATH1 = "http://192.168.1.50:8187/sqx_fast"; // const ROOTPATH1 = "http://192.168.1.50:8187/sqx_fast";
// const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/";//联系客服 // const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/";//联系客服
//生产环境 //生产环境
const ROOTPATH = "https://wx.sjajk.com/sqx_fast"; // const ROOTPATH = "https://wx.sjajk.com/sqx_fast";//生产需替换
const ROOTPATH1 = "https://wx.sjajk.com/sqx_fast"; // const ROOTPATH1 = "https://wx.sjajk.com/sqx_fast";//生产需替换
const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/"; //联系客服 // const ROOTPATH3 = "wss://wx.sjajk.com/wss/websocket/"; //联系客服//生产需替换
//上传地址 //上传地址
const UPLOAD_PATH = ROOTPATH1 + '/alioss/upload'; const UPLOAD_PATH = ROOTPATH1 + '/alioss/upload';
@ -28,8 +29,8 @@ const TX_MAP_KEY = 'VIWBZ-5OM3F-CV7JZ-NLKJY-AXSYV-TMFM6';
//ws基础连接地址 //ws基础连接地址
//const WS_BASE_PATH = 'ws://192.168.31.21:8187/sqx_fast/'; //const WS_BASE_PATH = 'ws://192.168.31.21:8187/sqx_fast/';
//const WS_BASE_PATH = 'ws://127.0.0.1:8187/sqx_fast/'; const WS_BASE_PATH = 'ws://192.168.2.222:8187/sqx_fast/';
const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/'; // const WS_BASE_PATH = 'wss://admin.sjajk.com/sqx_fast/';//生产需替换
//地图ws接口 //地图ws接口
const WS_UPLOAD_MAP_PATH = WS_BASE_PATH + 'mapWebsocket/'; const WS_UPLOAD_MAP_PATH = WS_BASE_PATH + 'mapWebsocket/';

View File

@ -18,11 +18,13 @@ module.exports = {
}, },
//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名 //全局域名 部分html中需要单独替换 需要修改config中的网络请求域名
publicYuMing() { publicYuMing() {
return 'https://admin.sjajk.com' // return 'https://admin.sjajk.com'//生产需替换
return 'http://192.168.2.222:8187'
}, },
//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名 //全局域名 部分html中需要单独替换 需要修改config中的网络请求域名
publicYuMingApp() { publicYuMingApp() {
return 'https://wx.sjajk.com' //return 'https://wx.sjajk.com'//生产需替换
return 'http://192.168.2.222:8187'
}, },
logout() { logout() {
this.remove("token"); this.remove("token");

View File

@ -20,7 +20,8 @@
<script type="text/javascript"> <script type="text/javascript">
window._AMapSecurityConfig = { window._AMapSecurityConfig = {
//securityJsCode: "js秘钥", //securityJsCode: "js秘钥",
serviceHost: 'https://wx.sjajk.com/_AMapService', // serviceHost: 'https://wx.sjajk.com/_AMapService',//生产需替换
serviceHost: 'http://192.168.2.222:8187/_AMapService',
}; };
</script> </script>
<!-- 高德 --> <!-- 高德 -->

View File

@ -185,7 +185,8 @@
"amap" : { "amap" : {
"key" : "2acf1b8c3d1aaf0070472dec19018d96", "key" : "2acf1b8c3d1aaf0070472dec19018d96",
"securityJsCode" : "2b07c8496878c327a8ae7a19de33e2a7", "securityJsCode" : "2b07c8496878c327a8ae7a19de33e2a7",
"serviceHost" : "http://wx.sjajk.com/_AMapService" // "serviceHost" : "http://wx.sjajk.com/_AMapService",//
"serviceHost" : "http://192.168.2.222:8187/_AMapService"
} }
} }
}, },

View File

@ -101,7 +101,8 @@ class Request {
constructor() { constructor() {
this.config = { this.config = {
baseUrl: 'https://admin.sjajk.com/', // 请求的根域名 // baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
baseUrl: 'http://192.168.2.222:8187/', // 请求的根域名
// 默认的请求头 // 默认的请求头
header: {}, header: {},
method: 'POST', method: 'POST',

View File

@ -1,7 +1,9 @@
const PROT = "https://"
//生产环境 //生产环境
const ROOTHOST = "admin.sjajk.com"; // const PROT = "https://"//生产需替换
// const ROOTHOST = "admin.sjajk.com";//生产需替换
//测试环境 //测试环境
const PROT = "http://"
const ROOTHOST = "192.168.2.222:8187";
// const ROOTHOST = "192.168.0.115:8187"; // const ROOTHOST = "192.168.0.115:8187";
// const ROOTHOST = "192.168.1.169:8187"; // const ROOTHOST = "192.168.1.169:8187";
// 后端本地张聪 // 后端本地张聪

View File

@ -101,7 +101,8 @@ class Request {
constructor() { constructor() {
this.config = { this.config = {
baseUrl: 'https://admin.sjajk.com/', // 请求的根域名 // baseUrl: 'https://admin.sjajk.com/', // 请求的根域名//生产需替换
baseUrl: 'http://192.168.2.222:8187/', // 请求的根域名
// 默认的请求头 // 默认的请求头
header: {}, header: {},
method: 'POST', method: 'POST',