将固定地址改为全局变量

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

@ -403,10 +403,10 @@
</el-table-column> </el-table-column>
<el-table-column prop="value" label="内容"> <el-table-column prop="value" label="内容">
<template slot-scope="scope"> <template slot-scope="scope">
<audio v-if="scope.row.value!=''&&scope.row.value!=null" <audio v-if="scope.row.value!=''&&scope.row.value!=null"
:src="scope.row.value" type="audio/wav" controls="controls"></audio> :src="scope.row.value" type="audio/wav" controls="controls"></audio>
<span v-else>暂无语音</span> <span v-else>暂无语音</span>
</template> </template>
</el-table-column> </el-table-column>
@ -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;" />
@ -373,7 +373,7 @@
layout="total,sizes, prev, pager, next,jumper" :total="tableData.totalCount"> layout="total,sizes, prev, pager, next,jumper" :total="tableData.totalCount">
</el-pagination> </el-pagination>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="技师邀请海报" name="fourthlyJs"> <el-tab-pane label="技师邀请海报" name="fourthlyJs">
<div style="float: right;margin-right:2%;"> <div style="float: right;margin-right:2%;">
@ -427,7 +427,7 @@
layout="total,sizes, prev, pager, next,jumper" :total="tableData.totalCount"> layout="total,sizes, prev, pager, next,jumper" :total="tableData.totalCount">
</el-pagination> </el-pagination>
</div> </div>
</el-tab-pane> </el-tab-pane>
<!-- 添加弹框 --> <!-- 添加弹框 -->
<el-dialog title="添加" :visible.sync="dialogFormVisible5" center> <el-dialog title="添加" :visible.sync="dialogFormVisible5" center>
@ -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,
@ -609,7 +610,7 @@
this.classify = 6 this.classify = 6
this.dataSelect() this.dataSelect()
} }
if (tab._props.label == '精选商品') { if (tab._props.label == '精选商品') {
this.page = 1 this.page = 1
this.limit = 5 this.limit = 5

View File

@ -19,7 +19,7 @@
v-model="phoneT"> v-model="phoneT">
</el-input>&nbsp;&nbsp;&nbsp;&nbsp; </el-input>&nbsp;&nbsp;&nbsp;&nbsp;
</div> </div>
<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="refresh">刷新 <el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="refresh">刷新
</el-button> </el-button>
<el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="chognzhi">重置 <el-button style='margin-left:15px;' size="mini" type="primary" icon="document" @click="chognzhi">重置
@ -36,7 +36,7 @@
@click="updates(scope.row)">{{ scope.row.userName ? scope.row.userName : '未设置' }}</span> @click="updates(scope.row)">{{ scope.row.userName ? scope.row.userName : '未设置' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="phone" label="手机号" width="150"> <el-table-column prop="phone" label="手机号" width="150">
</el-table-column> </el-table-column>
<el-table-column prop="consortiaName" label="商家名称" fixed="left"> <el-table-column prop="consortiaName" label="商家名称" fixed="left">
@ -70,7 +70,7 @@
</el-popover> </el-popover>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="qualificationCertificate" label="资质证书" width="150"> <el-table-column prop="qualificationCertificate" label="资质证书" width="150">
@ -84,7 +84,7 @@
</el-popover> </el-popover>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="详细地址"> <el-table-column prop="address" label="详细地址">
@ -137,7 +137,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">商家名称</span> <span style="width: 200px;display: inline-block;text-align: right;">商家名称</span>
<el-input style="width:50%;" v-model="consortiaName" placeholder="请输入商家名称"></el-input> <el-input style="width:50%;" v-model="consortiaName" placeholder="请输入商家名称"></el-input>
</div> </div>
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例</span> <span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例</span>
<el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%"> <el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%">
@ -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"
@ -212,7 +212,7 @@
</el-upload> </el-upload>
</div> </div>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false"> </el-button> <el-button @click="dialogFormVisible = false"> </el-button>
<el-button type="primary" @click="couponNoticeTo()"> </el-button> <el-button type="primary" @click="couponNoticeTo()"> </el-button>
@ -229,7 +229,7 @@
<span style="width: 200px;display: inline-block;text-align: right;">商家名称</span> <span style="width: 200px;display: inline-block;text-align: right;">商家名称</span>
<el-input style="width:50%;" v-model="consortiaName" placeholder="请输入商家名称"></el-input> <el-input style="width:50%;" v-model="consortiaName" placeholder="请输入商家名称"></el-input>
</div> </div>
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例</span> <span style="width: 200px;display: inline-block;text-align: right;">商家抽成比例</span>
<el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%"> <el-input style="width:50%;" v-model="rate" type="number" :min="0" placeholder="请输入商家抽成比例,例如:0.1为10%">
@ -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"
@ -309,9 +309,9 @@
<el-button type="primary" @click="amendNoticeTo()"> </el-button> <el-button type="primary" @click="amendNoticeTo()"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 用户列表 --> <!-- 用户列表 -->
<el-dialog title="用户列表" :visible.sync="dialogFormVisible5" center width="70%"> <el-dialog title="用户列表" :visible.sync="dialogFormVisible5" center width="70%">
<!-- <div style="margin:5px;display: inline-block;"> <!-- <div style="margin:5px;display: inline-block;">
@ -345,7 +345,7 @@
<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans1">重置 <el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans1">重置
</el-button> </el-button>
</div> </div>
<el-table v-loading="tableDataLoading1" :data="userData.list"> <el-table v-loading="tableDataLoading1" :data="userData.list">
<el-table-column prop="userId" label="id" width="80"> <el-table-column prop="userId" label="id" width="80">
</el-table-column> </el-table-column>
@ -391,7 +391,7 @@
icon="document" @click="closes3(scope.row)" :disabled="!isAuth('userList:updatejb')">解绑</el-button> icon="document" @click="closes3(scope.row)" :disabled="!isAuth('userList:updatejb')">解绑</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="text-align: center;margin-top: 10px;"> <div style="text-align: center;margin-top: 10px;">
<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2" <el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
@ -456,7 +456,7 @@
icon="document" @click="closes3(scope.row)">移除</el-button> icon="document" @click="closes3(scope.row)">移除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="text-align: center;margin-top: 10px;"> <div style="text-align: center;margin-top: 10px;">
<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1" <el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
@ -465,8 +465,8 @@
</el-pagination> </el-pagination>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -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,
@ -536,7 +538,7 @@
userData: [], userData: [],
types: '', types: '',
phoneU:'', phoneU:'',
nickName: '', nickName: '',
member: '', member: '',
memberList: [{ memberList: [{
@ -553,14 +555,14 @@
}, },
], ],
inviterCode: '', inviterCode: '',
consortiaNameT:'', consortiaNameT:'',
userNameT:'', userNameT:'',
phoneT:'', phoneT:'',
userNameS:'', userNameS:'',
phoneS:'', phoneS:'',
indexUser:1, indexUser:1,
percentage1: 0, percentage1: 0,
percentage2: 0, percentage2: 0,
certification:[], certification:[],
@ -658,7 +660,7 @@
}); });
return return
} }
if (this.consortiaContent == '') { if (this.consortiaContent == '') {
this.$notify({ this.$notify({
title: '提示', title: '提示',
@ -749,7 +751,7 @@
}); });
return return
} }
this.$http({ this.$http({
url: this.$http.adornUrl('consortia/insertConsortia'), url: this.$http.adornUrl('consortia/insertConsortia'),
method: 'post', method: 'post',
@ -788,7 +790,7 @@
} }
}) })
} }
}) })
}, },
// //
@ -819,8 +821,8 @@
}else{ }else{
this.businessLicense = [] this.businessLicense = []
} }
}, },
amendNoticeTo() { amendNoticeTo() {
if (this.userId == '') { if (this.userId == '') {
@ -841,7 +843,7 @@
}); });
return return
} }
if (this.consortiaContent == '') { if (this.consortiaContent == '') {
this.$notify({ this.$notify({
title: '提示', title: '提示',
@ -971,10 +973,10 @@
} }
}) })
} }
}) })
}, },
// //
shopdeletes(row) { shopdeletes(row) {
this.$confirm(`确定删除此条信息?`, '提示', { this.$confirm(`确定删除此条信息?`, '提示', {
@ -1041,7 +1043,7 @@
}else{ }else{
var userType = 2 var userType = 2
} }
if (this.phoneU) { if (this.phoneU) {
phone = this.phoneU phone = this.phoneU
} }
@ -1062,7 +1064,7 @@
'ordersUser':'', 'ordersUser':'',
'invitationCode':'', 'invitationCode':'',
'isAgency':'' 'isAgency':''
}) })
}).then(({ }).then(({
data data
@ -1177,7 +1179,7 @@
onClose: () => { onClose: () => {
this.dialogFormVisible5 = false this.dialogFormVisible5 = false
this.shopSelect() this.shopSelect()
} }
}) })
} else { } else {
@ -1263,9 +1265,9 @@
}, },
// //
jiebang(row){ jiebang(row){
} }
}, },
mounted() { mounted() {
this.dataSelect() this.dataSelect()

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"
@ -134,8 +134,8 @@
</el-upload> </el-upload>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="优惠券面值:" :label-width="formLabelWidth"> <el-form-item label="优惠券面值:" :label-width="formLabelWidth">
<el-input v-model="form.money" style="width:65%;" placeholder="请输入优惠券面值"></el-input> <el-input v-model="form.money" style="width:65%;" placeholder="请输入优惠券面值"></el-input>
</el-form-item> </el-form-item>
@ -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,
@ -547,7 +548,7 @@
}); });
return return
} }
if (this.minMoney < this.money) { if (this.minMoney < this.money) {
this.$notify({ this.$notify({
title: '提示', title: '提示',
@ -598,7 +599,7 @@
} }
}) })
} }
}) })
}, },
// //
@ -666,7 +667,7 @@
} }
}) })
} }
}) })
}, },
// //

View File

@ -113,7 +113,7 @@
height="40"> height="40">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="payNotice" label="购买须知" width="300"> <el-table-column prop="payNotice" label="购买须知" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
@ -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;" />
@ -199,9 +199,9 @@
<i class="el-icon-delete" @click="clear(index)"></i> <i class="el-icon-delete" @click="clear(index)"></i>
</span> </span>
</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"
@ -220,12 +220,12 @@
<el-form-item label="券包原价价格:" :label-width="formLabelWidth" v-if="classify==2"> <el-form-item label="券包原价价格:" :label-width="formLabelWidth" v-if="classify==2">
<el-input v-model="form.originalPrice" style="width:65%;" placeholder="请输入券包原价价格"></el-input> <el-input v-model="form.originalPrice" style="width:65%;" placeholder="请输入券包原价价格"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="券包价格/价值:" :label-width="formLabelWidth"> <el-form-item label="券包价格/价值:" :label-width="formLabelWidth">
<el-input v-model="form.price" style="width:65%;" placeholder="请输入券包价格/价值"></el-input> <el-input v-model="form.price" style="width:65%;" placeholder="请输入券包价格/价值"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="状态:" :label-width="formLabelWidth"> <el-form-item label="状态:" :label-width="formLabelWidth">
<el-radio-group v-model="form.status"> <el-radio-group v-model="form.status">
<el-radio :label="1">开启</el-radio> <el-radio :label="1">开启</el-radio>
@ -327,6 +327,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
size: 10, size: 10,
page: 1, page: 1,
form: { form: {
@ -471,8 +472,8 @@
this.form.status = row.status this.form.status = row.status
this.form.createTime = row.createTime this.form.createTime = row.createTime
this.form.couponContentImage = row.couponContentImage this.form.couponContentImage = row.couponContentImage
} else { } else {
this.titles = '添加' this.titles = '添加'
this.form.couponId = '' this.form.couponId = ''
@ -606,7 +607,7 @@
return return
} }
} }
if (this.titles == '添加') { if (this.titles == '添加') {
var url = 'couponIssue/insertCouponIssue' var url = 'couponIssue/insertCouponIssue'
} else { } else {
@ -757,12 +758,12 @@
text-align: center; text-align: center;
border: 1px dotted rgba(67, 79, 103, .4); border: 1px dotted rgba(67, 79, 103, .4);
} }
.cards { .cards {
padding: 0 8px; padding: 0 8px;
margin-bottom: 15px; margin-bottom: 15px;
} }
.adver_main.box a { .adver_main.box a {
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -770,7 +771,7 @@
line-height: 150px; line-height: 150px;
text-decoration: none text-decoration: none
} }
.bannerManin { .bannerManin {
border: 1px solid #e8e8e8; border: 1px solid #e8e8e8;
font-size: 14px; font-size: 14px;
@ -781,18 +782,18 @@
height: 113px; height: 113px;
color: rgba(0, 0, 0, .65); color: rgba(0, 0, 0, .65);
} }
.bannerManin span { .bannerManin span {
display: inline-block; display: inline-block;
margin-left: 5px; margin-left: 5px;
} }
.bannerManin img { .bannerManin img {
width: 48px; width: 48px;
height: 48px; height: 48px;
border-radius: 50%; border-radius: 50%;
} }
.bannerbtn { .bannerbtn {
display: flex; display: flex;
border-top: none !important; border-top: none !important;
@ -801,14 +802,14 @@
font-size: 14px; font-size: 14px;
color: #3E8EF7; color: #3E8EF7;
} }
.bannerbtn a { .bannerbtn a {
flex: 1; flex: 1;
text-align: center; text-align: center;
color: #3E8EF7 !important; color: #3E8EF7 !important;
text-decoration: none; text-decoration: none;
} }
.imgs { .imgs {
position: relative; position: relative;
border-radius: 6px; border-radius: 6px;
@ -817,21 +818,21 @@
margin-right: 10px; margin-right: 10px;
display: inline-block; display: inline-block;
} }
.dels { .dels {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
display: none; display: none;
} }
.dels .el-icon-delete { .dels .el-icon-delete {
line-height: 148px; line-height: 148px;
padding-left: 58px; padding-left: 58px;
font-size: 25px; font-size: 25px;
color: #fff; color: #fff;
} }
.imgs:hover .dels { .imgs:hover .dels {
width: 100%; width: 100%;
height: 100%; height: 100%;

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

@ -19,7 +19,7 @@
@click = "advertUpdates(scope.row)">修改</el-button> @click = "advertUpdates(scope.row)">修改</el-button>
<el-button size = "mini" type = "danger" :disabled = "!isAuth('materialLink:delete')" <el-button size = "mini" type = "danger" :disabled = "!isAuth('materialLink:delete')"
@click = "advertdeletes(scope.row)">删除</el-button> @click = "advertdeletes(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 添加素材 --> <!-- 添加素材 -->
@ -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" />
@ -338,7 +338,7 @@
import { quillEditor } import { quillEditor }
from 'vue-quill-editor' from 'vue-quill-editor'
import 'quill/dist/quill.core.css' import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css' import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css' import 'quill/dist/quill.bubble.css'
import quillConfig from '../mission/quill-config.js' import quillConfig from '../mission/quill-config.js'
export default { export default {
@ -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

@ -42,7 +42,7 @@
<el-option v-for="(item,index) in isExpressmain" :key="item.index" :label="item.label" :value="item.value"> <el-option v-for="(item,index) in isExpressmain" :key="item.index" :label="item.label" :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-col>
</el-row> </el-row>
<div style="display: flex;align-items: center;margin: 2% 0;"> <div style="display: flex;align-items: center;margin: 2% 0;">
<span style="display: inline-block;text-align: right;">商品封面图</span> <span style="display: inline-block;text-align: right;">商品封面图</span>
@ -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: '',
@ -527,7 +528,7 @@
descrition: '' descrition: ''
} }
}, },
methods: { methods: {
// input // input
proving() { proving() {
@ -774,7 +775,7 @@
}) })
}) })
}, },
// //
dataSelect () { dataSelect () {
this.tableDataLoading = true this.tableDataLoading = true
@ -935,7 +936,7 @@
if(this.price == ''){ if(this.price == ''){
this.price = '0' this.price = '0'
} }
this.$http({ this.$http({
url: this.$http.adornUrl(`goods/isFormatAttr?coverImg=${this.coverImg}&price=${this.price}`), url: this.$http.adornUrl(`goods/isFormatAttr?coverImg=${this.coverImg}&price=${this.price}`),
method: 'post', method: 'post',
@ -954,7 +955,7 @@
mounted() { mounted() {
this.specifSelect() this.specifSelect()
}, },
} }
</script> </script>

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: '',
@ -677,7 +678,7 @@
}else{ }else{
this.postagePrice = returnData.postagePrice this.postagePrice = returnData.postagePrice
} }
}else{ }else{
this.postagePrice = 0 this.postagePrice = 0
} }

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" />
@ -374,7 +374,7 @@
</template> </template>
<script> <script>
import { import {
quillEditor quillEditor
} from 'vue-quill-editor' } from 'vue-quill-editor'
@ -389,6 +389,7 @@
}, },
data() { data() {
return { return {
uploadUrl: this.serverPaths.uploadUrl,
specif: '', specif: '',
typeId: '', typeId: '',
title: '', title: '',
@ -490,7 +491,7 @@
quillOption: quillConfig, quillOption: quillConfig,
} }
}, },
methods: { methods: {
// //
handleAvatarSuccess(file) { handleAvatarSuccess(file) {
@ -812,7 +813,7 @@
}) })
}) })
}, },
// //
dataSelect() { dataSelect() {
this.tableDataLoading = true this.tableDataLoading = true
@ -1013,7 +1014,7 @@
this.specifSelect() this.specifSelect()
// this.brandSelect() // this.brandSelect()
}, },
} }
</script> </script>

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

@ -281,7 +281,7 @@
:disabled="!isAuth('userList:updateXyf')" :disabled="!isAuth('userList:updateXyf')"
style="color: #4f9dec;background: #fff;border: none;" style="color: #4f9dec;background: #fff;border: none;"
@click="ageChange2(tableData.userId,tableData.creditScore)">修改</el-button> @click="ageChange2(tableData.userId,tableData.creditScore)">修改</el-button>
</td> </td>
<th>完成订单数量</th> <th>完成订单数量</th>
<td class="border-rt"> <td class="border-rt">
@ -404,7 +404,7 @@
</td> </td>
<th></th> <th></th>
<td class="border-rt"> <td class="border-rt">
</td> </td>
</tr> </tr>
<tr> <tr>
@ -1219,7 +1219,7 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="phone" label="电话" width="160"> <el-table-column prop="phone" label="电话" width="160">
</el-table-column> </el-table-column>
<el-table-column prop="address" label="地址" ></el-table-column> <el-table-column prop="address" label="地址" ></el-table-column>
@ -1308,7 +1308,7 @@
</el-table-column> --> </el-table-column> -->
<el-table-column prop="createAt" label="创建时间" width="160"> <el-table-column prop="createAt" label="创建时间" width="160">
</el-table-column> </el-table-column>
<el-table-column prop="status" label="状态" width="100" fixed="right"> <el-table-column prop="status" label="状态" width="100" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="color: #4f9dec;" v-if="scope.row.status === 1 ">待付款</span> <span style="color: #4f9dec;" v-if="scope.row.status === 1 ">待付款</span>
@ -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"
@ -1541,7 +1541,7 @@
type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择时间"> type="datetime" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择时间">
</el-date-picker>&nbsp;&nbsp;&nbsp; </el-date-picker>&nbsp;&nbsp;&nbsp;
</div> --> </div> -->
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<span style="width: 200px;display: inline-block;text-align: right;">城市</span> <span style="width: 200px;display: inline-block;text-align: right;">城市</span>
<el-input style="width:50%;" v-model="city" type="text" placeholder="请输入城市"></el-input> <el-input style="width:50%;" v-model="city" type="text" placeholder="请输入城市"></el-input>
@ -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>
@ -1718,7 +1718,7 @@
<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans1">重置 <el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="cleans1">重置
</el-button> </el-button>
</div> </div>
<el-table v-loading="tableDataLoading1" :data="usersData.list"> <el-table v-loading="tableDataLoading1" :data="usersData.list">
<el-table-column prop="userId" label="id" width="80"> <el-table-column prop="userId" label="id" width="80">
</el-table-column> </el-table-column>
@ -1761,7 +1761,7 @@
icon="document" @click="xuanze(scope.row,1)">选择</el-button> icon="document" @click="xuanze(scope.row,1)">选择</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="text-align: center;margin-top: 10px;"> <div style="text-align: center;margin-top: 10px;">
<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2" <el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
@ -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,
@ -2186,10 +2188,10 @@
moneyType:1, moneyType:1,
moneys:'', moneys:'',
JsartificerId:'', JsartificerId:'',
dialogFormVisibleJs:false, dialogFormVisibleJs:false,
} }
}, },
methods: { methods: {
@ -2355,7 +2357,7 @@
if (tab._props.label == '商家详情') { if (tab._props.label == '商家详情') {
this.shopsSelect() this.shopsSelect()
} }
}, },
handleSizeChangeTx(val) { handleSizeChangeTx(val) {
@ -3044,11 +3046,11 @@
} }
if (this.artificer.lifePhoto&&this.artificer.lifePhoto!='') { if (this.artificer.lifePhoto&&this.artificer.lifePhoto!='') {
this.artificer.lifePhoto = this.artificer.lifePhoto.split(",") this.artificer.lifePhoto = this.artificer.lifePhoto.split(",")
}else{ }else{
this.artificer.lifePhoto = [] this.artificer.lifePhoto = []
} }
}) })
}, },
// //
@ -3868,7 +3870,7 @@
// //
timesUp() { timesUp() {
var arrs = [] var arrs = []
for (var i in this.times) { for (var i in this.times) {
for (var j in this.timeLis) { for (var j in this.timeLis) {
if(this.timeLis[j].classify == 2){ if(this.timeLis[j].classify == 2){
@ -3877,9 +3879,9 @@
arrs.push(this.times[i]) arrs.push(this.times[i])
} }
} }
} }
} }
let userId = this.$route.query.userId let userId = this.$route.query.userId
this.$http({ this.$http({
@ -3927,7 +3929,7 @@
'limit': this.limit, 'limit': this.limit,
'userId': userId, 'userId': userId,
// 'classify': 7 // 'classify': 7
}) })
}).then(({ }).then(({
data data
@ -4038,12 +4040,12 @@
this.nickName = '' this.nickName = ''
this.phoneU = '' this.phoneU = ''
this.inviterCode = '' this.inviterCode = ''
this.dataSelect1() this.dataSelect1()
}, },
// //
dataSelect1() { dataSelect1() {
this.tableDataLoading1 = true this.tableDataLoading1 = true
this.$http({ this.$http({
url: this.$http.adornUrl('user/selectUserList'), url: this.$http.adornUrl('user/selectUserList'),
@ -4061,7 +4063,7 @@
'ordersUser':'', 'ordersUser':'',
'invitationCode':'', 'invitationCode':'',
'isAgency':'' 'isAgency':''
}) })
}).then(({ }).then(({
data data
@ -4149,13 +4151,13 @@
}) })
}, },
xiugaiJs(row) { xiugaiJs(row) {
this.proportion = row.rate this.proportion = row.rate
this.artificerId = row.artificerId this.artificerId = row.artificerId
this.dialogFormVisibleJs = true this.dialogFormVisibleJs = true
}, },
StairNoticeToJs() { StairNoticeToJs() {
this.$http({ this.$http({
url: this.$http.adornUrl('artificer/updateArtificers'), url: this.$http.adornUrl('artificer/updateArtificers'),
method: 'post', method: 'post',
@ -4188,7 +4190,7 @@
} }
}) })
} }
}) })
}, },
// //
@ -4225,7 +4227,7 @@
onClose: () => {} onClose: () => {}
}) })
} }
}) })
}).catch(() => {}) }).catch(() => {})
}, },

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

@ -5,7 +5,7 @@
icon="document" @click="addNotice">添加会员特权</el-button> icon="document" @click="addNotice">添加会员特权</el-button>
</div> </div>
<el-table v-loading="tableDataLoading" :data="tableData.list"> <el-table v-loading="tableDataLoading" :data="tableData.list">
<el-table-column fixed prop="memberId" label="编号" width="50"> <el-table-column fixed prop="memberId" label="编号" width="50">
</el-table-column> </el-table-column>
<el-table-column prop="memberImg" label="图片"> <el-table-column prop="memberImg" label="图片">
@ -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

@ -5,7 +5,7 @@
icon="document" @click="addNotice">添加会员特权</el-button> icon="document" @click="addNotice">添加会员特权</el-button>
</div> </div>
<el-table v-loading="tableDataLoading" :data="tableData.list"> <el-table v-loading="tableDataLoading" :data="tableData.list">
<el-table-column fixed prop="memberId" label="编号" width="50"> <el-table-column fixed prop="memberId" label="编号" width="50">
</el-table-column> </el-table-column>
<el-table-column prop="memberImg" label="图片"> <el-table-column prop="memberImg" label="图片">
@ -37,16 +37,16 @@
<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 <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"
> >
<img v-if="memberImg" :src="memberImg" class="avatar" style="border-radius: 6px;width: 148px;height: 148px;"/> <img v-if="memberImg" :src="memberImg" 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>
</el-upload> </el-upload>
</div> </div>
</div> </div>
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
@ -78,7 +78,8 @@
memberImg:'', memberImg:'',
memberId:'', memberId:'',
sort:'', sort:'',
title:'添加' title:'添加',
uploadUrl: this.serverPaths.uploadUrl
} }
}, },
methods: { methods: {

View File

@ -159,8 +159,8 @@
</div> --> </div> -->
<!-- 上传文件 --> <!-- 上传文件 -->
<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',