Commit 2310d7dfa373ee454c97105f403fb734e8f4d3de

Authored by 杨鑫
1 parent ff157a15

最新

admin-web-master/src/components/Tinymce/components/EditorImage.vue
1 <template> 1 <template>
2 <div class="upload-container"> 2 <div class="upload-container">
3 <el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click=" dialogVisible=true"> 3 <el-button :style="{background:color,borderColor:color}" icon="el-icon-upload" size="mini" type="primary" @click=" dialogVisible=true">
4 - 上传图片 4 + 上传
5 </el-button> 5 </el-button>
6 <el-dialog :visible.sync="dialogVisible"> 6 <el-dialog :visible.sync="dialogVisible">
7 <el-upload 7 <el-upload
@@ -11,17 +11,15 @@ @@ -11,17 +11,15 @@
11 :on-remove="handleRemove" 11 :on-remove="handleRemove"
12 :on-success="handleSuccess" 12 :on-success="handleSuccess"
13 :before-upload="beforeUpload" 13 :before-upload="beforeUpload"
14 - class="editor-slide-upload upload-container"  
15 - :action="action" 14 + class="editor-slide-upload"
  15 + action="https://httpbin.org/post"
16 list-type="picture-card" 16 list-type="picture-card"
17 - accept="image/jpeg,image/png,image/gif"  
18 > 17 >
19 <el-button size="small" type="primary"> 18 <el-button size="small" type="primary">
20 点击上传 19 点击上传
21 </el-button> 20 </el-button>
22 </el-upload> 21 </el-upload>
23 - <el-button @click="dialogVisible = false" class="buttonHover"  
24 - style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;"> 22 + <el-button @click="dialogVisible = false">
25 取消 23 取消
26 </el-button> 24 </el-button>
27 <el-button type="primary" @click="handleSubmit"> 25 <el-button type="primary" @click="handleSubmit">
@@ -32,7 +30,7 @@ @@ -32,7 +30,7 @@
32 </template> 30 </template>
33 31
34 <script> 32 <script>
35 -import { upUrl } from '@/utils/request' 33 +// import { getToken } from 'api/qiniu'
36 34
37 export default { 35 export default {
38 name: 'EditorSlideUpload', 36 name: 'EditorSlideUpload',
@@ -46,8 +44,7 @@ export default { @@ -46,8 +44,7 @@ export default {
46 return { 44 return {
47 dialogVisible: false, 45 dialogVisible: false,
48 listObj: {}, 46 listObj: {},
49 - fileList: [],  
50 - action:upUrl 47 + fileList: []
51 } 48 }
52 }, 49 },
53 methods: { 50 methods: {
@@ -70,7 +67,7 @@ export default { @@ -70,7 +67,7 @@ export default {
70 const objKeyArr = Object.keys(this.listObj) 67 const objKeyArr = Object.keys(this.listObj)
71 for (let i = 0, len = objKeyArr.length; i < len; i++) { 68 for (let i = 0, len = objKeyArr.length; i < len; i++) {
72 if (this.listObj[objKeyArr[i]].uid === uid) { 69 if (this.listObj[objKeyArr[i]].uid === uid) {
73 - this.listObj[objKeyArr[i]].url = this.$baseURL+response.data 70 + this.listObj[objKeyArr[i]].url = response.files.file
74 this.listObj[objKeyArr[i]].hasSuccess = true 71 this.listObj[objKeyArr[i]].hasSuccess = true
75 return 72 return
76 } 73 }
@@ -107,13 +104,8 @@ export default { @@ -107,13 +104,8 @@ export default {
107 <style lang="scss" scoped> 104 <style lang="scss" scoped>
108 .editor-slide-upload { 105 .editor-slide-upload {
109 margin-bottom: 20px; 106 margin-bottom: 20px;
110 - // ::v-deep .el-upload--picture-card {  
111 - // width: 100%;  
112 - // }  
113 -}  
114 -.upload-container {  
115 - // display: flex;  
116 - // justify-content: center; /* 水平居中 */  
117 - // align-items: center; /* 垂直居中 */ 107 + ::v-deep .el-upload--picture-card {
  108 + width: 100%;
  109 + }
118 } 110 }
119 </style> 111 </style>
admin-web-master/src/components/add/addss.vue
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 12
13 13
14 <el-form-item label="手机号" prop="phone"> 14 <el-form-item label="手机号" prop="phone">
15 - <el-input v-model="formInline.phone" placeholder="请输入"></el-input> 15 + <el-input v-model="formInline.phone" maxlength="11" placeholder="请输入"></el-input>
16 </el-form-item> 16 </el-form-item>
17 17
18 <el-form-item label="性别" prop="sex"> 18 <el-form-item label="性别" prop="sex">
@@ -240,15 +240,32 @@ @@ -240,15 +240,32 @@
240 ...this.formInline, 240 ...this.formInline,
241 checkState: '2', 241 checkState: '2',
242 state:'1', 242 state:'1',
  243 + flag:false,
243 applyTime: this.updateCurrentTime() 244 applyTime: this.updateCurrentTime()
244 }).then(res => { 245 }).then(res => {
245 - if (res.code == 200) { 246 + if (res.code == 200 && res.message !='手机号已被注册') {
246 this.$message({ 247 this.$message({
247 message: '添加成功', 248 message: '添加成功',
248 type: 'success' 249 type: 'success'
249 }) 250 })
250 this.$emit('removeonaction', '1') 251 this.$emit('removeonaction', '1')
251 - } else { 252 + } else if(res.code == 200 && res.message =='手机号已被注册'){
  253 + cerePlatformMerchantadd({
  254 + ...this.formInline,
  255 + checkState: '2',
  256 + state:'1',
  257 + flag:false,
  258 + applyTime: this.updateCurrentTime()
  259 + }).then(res => {
  260 + if (res.code == 200) {
  261 + this.$message({
  262 + message: '添加成功',
  263 + type: 'success'
  264 + })
  265 + this.$emit('removeonaction', '1')
  266 + }
  267 + })
  268 + }else {
252 this.$message({ 269 this.$message({
253 message: res.msg, 270 message: res.msg,
254 type: 'error' 271 type: 'error'
admin-web-master/src/utils/request.js
@@ -17,12 +17,12 @@ let baseURL = &#39;&#39; @@ -17,12 +17,12 @@ let baseURL = &#39;&#39;
17 if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) { 17 if(host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528'|| host === '192.168.31.45:9528'|| host === 'localhost:9529' ) {
18 18
19 // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'; 19 // baseURL = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server';
20 - // baseURL = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server'; 20 + baseURL = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server';
21 21
22 // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1; 22 // baseURL = process.env.VUE_APP_DOMAIN_PREFIX_1;
23 23
24 24
25 - baseURL = 'http://128.10.249.32:9003'; 25 + // baseURL = 'http://192.168.2.227:9003';
26 26
27 27
28 } else { 28 } else {
ceres-uniapp-master/config/api.js
@@ -2,10 +2,10 @@ @@ -2,10 +2,10 @@
2 // const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server' 2 // const DOMAIN_PREFIXPING = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'
3 // const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api' 3 // const DOMAIN_PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/meserver/api'
4 // const TIAOZHUAN = 'https://jy.scjysm.asia:18086/cdwlMall/' 4 // const TIAOZHUAN = 'https://jy.scjysm.asia:18086/cdwlMall/'
5 -const DOMAIN_PREFIXPING = 'http://128.10.249.32:9003'  
6 -const DOMAIN_PREFIX = 'http://128.10.249.32:9007'  
7 -// const DOMAIN_PREFIXPING = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server'  
8 -// const DOMAIN_PREFIX = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/api' 5 +// const DOMAIN_PREFIXPING = 'http://128.10.249.32:9003'
  6 +// const DOMAIN_PREFIX = 'http://128.10.249.32:9007'
  7 +const DOMAIN_PREFIXPING = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server'
  8 +const DOMAIN_PREFIX = 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/api'
9 const TIAOZHUAN = 'https://zhgw-uat.028wlkj.com/cdwlMall/' 9 const TIAOZHUAN = 'https://zhgw-uat.028wlkj.com/cdwlMall/'
10 10
11 11
@@ -45,9 +45,9 @@ const TERMINAL = 1 @@ -45,9 +45,9 @@ const TERMINAL = 1
45 45
46 module.exports = { 46 module.exports = {
47 terminal: TERMINAL, // 画布设备 1 小程序,2 H5,3 App 4 电脑 47 terminal: TERMINAL, // 画布设备 1 小程序,2 H5,3 App 4 电脑
48 - SettledMerchantPrefix: TIAOZHUAN + 'settled-merchant' , 48 + // SettledMerchantPrefix: TIAOZHUAN + 'settled-merchant' ,
49 // 'https://jy.scjysm.asia:18086/cdwlMall/settled-merchant', //商家入驻链接 49 // 'https://jy.scjysm.asia:18086/cdwlMall/settled-merchant', //商家入驻链接
50 - 50 + SettledMerchantPrefix:'http://localhost:8082',
51 shareLink: TIAOZHUAN + 'meh5', // 分享地址 51 shareLink: TIAOZHUAN + 'meh5', // 分享地址
52 // shareLink: 'http://172.16.61.123:9007/h5', // 分享地址 52 // shareLink: 'http://172.16.61.123:9007/h5', // 分享地址
53 53
ceres-uniapp-master/pages_category_page1/goodsModule/evaluate.vue
@@ -136,7 +136,7 @@ @@ -136,7 +136,7 @@
136 } 136 }
137 // console.log(this.commentImgs,'fffffffffffffffff') 137 // console.log(this.commentImgs,'fffffffffffffffff')
138 // return 138 // return
139 - let data = [{ 139 + let data ={
140 orderId:this.orderId, 140 orderId:this.orderId,
141 skuId:this.commentData.skuId, 141 skuId:this.commentData.skuId,
142 productId:this.commentData.productId, 142 productId:this.commentData.productId,
@@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
146 des:this.descStar, 146 des:this.descStar,
147 delivery:this.logisticsStar, 147 delivery:this.logisticsStar,
148 attitude:this.serviceStar 148 attitude:this.serviceStar
149 - }] 149 + }
150 150
151 NET.request(API.Comment, { 151 NET.request(API.Comment, {
152 params:data 152 params:data
ceres-uniapp-master/pages_category_page1/goodsModule/evaluateList.vue
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <view class="evaluate-contentbox mar-top-20" v-for="(item,index) in commentList" :key="index"> 12 <view class="evaluate-contentbox mar-top-20" v-for="(item,index) in commentList" :key="index">
13 <view class="evaluate-content flex-items flex-row flex-sp-between"> 13 <view class="evaluate-content flex-items flex-row flex-sp-between">
14 <view class="flex-items"> 14 <view class="flex-items">
15 - <image class="user-headSmallImg" :src="item.headImage"></image> 15 + <image class="user-headSmallImg" :src="$baseURL+item.headImage"></image>
16 <view class=""> 16 <view class="">
17 <text class="fs28 mar-left-20">{{item.name}}</text> 17 <text class="fs28 mar-left-20">{{item.name}}</text>
18 <view class="mar-left-20 fs22 font-color-999 mar-top-10"> 18 <view class="mar-left-20 fs22 font-color-999 mar-top-10">
ceres-uniapp-master/pages_category_page1/procedure/procedure.vue
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 <view class="time"> 9 <view class="time">
10 {{tableList.releaseTime}} 10 {{tableList.releaseTime}}
11 </view> 11 </view>
12 - <view class="desc"> 12 + <view class="desc" style="white-space: normal; word-wrap: break-word;">
13 <u-parse :html="tableList.announcementContent"></u-parse> 13 <u-parse :html="tableList.announcementContent"></u-parse>
14 14
15 </view> 15 </view>
lvdao-miniapp/main.js
@@ -8,13 +8,13 @@ import uView from &quot;uview-ui&quot;; @@ -8,13 +8,13 @@ import uView from &quot;uview-ui&quot;;
8 import DialogBox from './components/DialogBox/DialogBox'; 8 import DialogBox from './components/DialogBox/DialogBox';
9 // let hostall = window.location.href; 9 // let hostall = window.location.href;
10 // let c1 = hostall.split('cdwlMall')[0]; 10 // let c1 = hostall.split('cdwlMall')[0];
11 -let c1 = 'https://jy.scjysm.asia:18086/'  
12 -// let c1 = 'https://zhgw-uat.028wlkj.com/' 11 +// let c1 = 'https://jy.scjysm.asia:18086/'
  12 +let c1 = 'https://zhgw-uat.028wlkj.com/'
13 Vue.config.productionTip = false 13 Vue.config.productionTip = false
14 Vue.prototype.$http = http 14 Vue.prototype.$http = http
15 Vue.prototype.$imgUrl = (url) => { 15 Vue.prototype.$imgUrl = (url) => {
16 - return (c1 + "cdwlMall/questionnaire/file/static" + url);  
17 - // return (c1 + "cdwlMall/zsfwzxt/test/file/static" + url); 16 + // return (c1 + "cdwlMall/questionnaire/file/static" + url);
  17 + return (c1 + "cdwlMall/zsfwzxt/test/file/static" + url);
18 } 18 }
19 Vue.prototype.$img = c1+ 'cdwlMall' 19 Vue.prototype.$img = c1+ 'cdwlMall'
20 // Vue.prototype.$upload = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server/miniio/upload" 20 // Vue.prototype.$upload = "https://zhld.028wlkj.com:49008/cdwlMall/admin-server/miniio/upload"
lvdao-miniapp/pagesA/myZiyuan/myZiDetails.vue
@@ -224,7 +224,7 @@ @@ -224,7 +224,7 @@
224 }, 224 },
225 onLoad(options) { 225 onLoad(options) {
226 this.imgurl = this.$img 226 this.imgurl = this.$img
227 - const item = JSON.parse(decodeURIComponent(options.item)); 227 + const item = JSON.parse(decodeURIComponent(options.item))
228 console.log(options.item, '1123123213') 228 console.log(options.item, '1123123213')
229 this.record = item 229 this.record = item
230 let imgsList = item.cereBasicInformationShop && item.cereBasicInformationShop.displayMainImage ? item 230 let imgsList = item.cereBasicInformationShop && item.cereBasicInformationShop.displayMainImage ? item
lvdao-miniapp/utils/request.js
1 1
2 // let hostall = window.location.href; 2 // let hostall = window.location.href;
3 // let c1 = hostall.split('cdwlMall')[0]; 3 // let c1 = hostall.split('cdwlMall')[0];
4 -let c1 = 'https://jy.scjysm.asia:18086/'  
5 -// let c1 = 'https://zhgw-uat.028wlkj.com/' 4 +// let c1 = 'https://jy.scjysm.asia:18086/'
  5 +let c1 = 'https://zhgw-uat.028wlkj.com/'
6 //封装request请求 6 //封装request请求
7 const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => { 7 const sendRequest = (url, method = 'GET', data = {}, baseUrl,contentType) => {
8 //判断header提交数据类型 8 //判断header提交数据类型
merchant-web-master/src/utils/request.js
@@ -21,7 +21,7 @@ let PREFIX; @@ -21,7 +21,7 @@ let PREFIX;
21 // PREFIX = 'http://8.130.38.56:8027/business-server'; 21 // PREFIX = 'http://8.130.38.56:8027/business-server';
22 PREFIX = 'https://zhgw-uat.028wlkj.com/cdwlMall/business-server'; 22 PREFIX = 'https://zhgw-uat.028wlkj.com/cdwlMall/business-server';
23 // PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/business-server'; 23 // PREFIX = 'https://jy.scjysm.asia:18086/cdwlMall/business-server';
24 - // PREFIX = 'http://128.10.249.31:9004'; 24 + // PREFIX = 'http://128.10.249.32:9004';
25 }else{ 25 }else{
26 // PREFIX = '/merchant-business'; 26 // PREFIX = '/merchant-business';
27 // PREFIX = 'http://8.130.38.56:9004'; 27 // PREFIX = 'http://8.130.38.56:9004';
settled-merchant-master/src/api/index.js
@@ -3,19 +3,18 @@ import home from &#39;./home&#39; @@ -3,19 +3,18 @@ import home from &#39;./home&#39;
3 const host = `${window.location.protocol}//${window.location.host}` 3 const host = `${window.location.protocol}//${window.location.host}`
4 const TIAOZHUAN = `${host}/cdwlMall/meserver/` 4 const TIAOZHUAN = `${host}/cdwlMall/meserver/`
5 // 获取当前环境变量 true => 生产环境 false => 开发环境 5 // 获取当前环境变量 true => 生产环境 false => 开发环境
6 -const BASEURL = (process.env.NODE_ENV === 'production') ? TIAOZHUAN + 'api' : TIAOZHUAN + 'api'  
7 -// const upUrl = (process.env.NODE_ENV === 'production') ? `${window.location.protocol}//${window.location.host}/cdwlMall/meserver/admin-server` : 'https://jy.scjysm.asia:18086/cdwlMall/meserver/admin-server'  
8 -const upUrl = (process.env.NODE_ENV === 'production') ? TIAOZHUAN + 'admin-server' : TIAOZHUAN + 'admin-server' 6 +const BASEURL = (process.env.NODE_ENV === 'production') ? TIAOZHUAN + 'api' : 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/api'
  7 +const upUrl = (process.env.NODE_ENV === 'production') ? TIAOZHUAN + 'admin-server' : 'https://zhgw-uat.028wlkj.com/cdwlMall/meserver/admin-server'
9 export const api = { 8 export const api = {
10 - // 登录模块  
11 - ...home(BASEURL),  
12 - // 图片上传  
13 - upload: `${upUrl}/miniio/uploadQuestion`,  
14 - // 商家入驻  
15 - enterpriseCheck: `${BASEURL}/check/enterpriseCheck`,  
16 - individualCheck: `${BASEURL}/check/individualCheck`,  
17 - organizationsCheck: `${BASEURL}/check/organizationsCheck`,  
18 - personalCheck: `${BASEURL}/check/personalCheck`,  
19 - getByName: `${BASEURL}/app/getSelect` 9 + // 登录模块
  10 + ...home(BASEURL),
  11 + // 图片上传
  12 + upload: `${upUrl}/miniio/uploadQuestion`,
  13 + // 商家入驻
  14 + enterpriseCheck: `${BASEURL}/check/enterpriseCheck`,
  15 + individualCheck: `${BASEURL}/check/individualCheck`,
  16 + organizationsCheck: `${BASEURL}/check/organizationsCheck`,
  17 + personalCheck: `${BASEURL}/check/personalCheck`,
  18 + getByName: `${BASEURL}/app/getSelect`
20 } 19 }
21 export default api 20 export default api