| | |
| | | # 接口前缀 |
| | | # VUE_APP_API_PREFIX = '/preselect_interface/' |
| | | VUE_APP_API_PREFIX = '/web_interface' |
| | | # VUE_APP_API_PREFIX = '/preselect_web_interface' |
| | |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_interface/' |
| | | |
| | | VUE_APP_API = 'http://192.168.0.35:10022/' |
| | | # VUE_APP_API = 'http://192.168.0.15:10024/' |
| | | # VUE_APP_API = 'http://192.168.0.35:10022/' |
| | | # VUE_APP_API = 'http://192.168.0.15:10022/' |
| | | |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | |
| | |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/preselect_web_interface/' |
| | | |
| | | # VUE_APP_API = 'http://127.0.0.1:10022/' |
| | | |
| | | # VUE_APP_API = 'https://dm.ahapp.net/preselect_interface/' |
| | |
| | | type: this.form.type |
| | | }).then(res => { |
| | | this.visible = false |
| | | this.$tip.apiSuccess('操作成功') |
| | | this.$tip.apiSuccess(res) |
| | | // this.$emit('success') |
| | | this.$emit('result') |
| | | }) |
| | |
| | | open(title, target) { |
| | | this.title = title |
| | | this.visible = true |
| | | this.form.name = '' |
| | | this.form.categoryId = Number(target.categoryId.split(',')[0]) |
| | | this.form.categoryId1 = Number(target.categoryId.split(',')[1]) |
| | | this.form.rate = Number(target.rate) |
| | |
| | | |
| | | // 新建响应拦截器 |
| | | axiosInstance.interceptors.response.use((response) => { |
| | | |
| | | console.log(response.status) |
| | | // debugger |
| | | // 请求失败 |
| | | if (response.status !== 200) { |
| | | return Promise.reject(new Error('服务器繁忙,请稍后再试')) |
| | |
| | | // "target" : "https://dmtest.ahapp.net/", |
| | | "changeOrigin" : true, |
| | | "secure" : false, |
| | | "pathRewrite": { |
| | | "pathRewrite" : { |
| | | "^/preselect_h5_interface" : "/" |
| | | } |
| | | } |
| | |
| | | }) |
| | | } |
| | | }) |
| | | // console.log(this.imgList) |
| | | if (this.imgList.length === 0) return |
| | | this.$viewerApi({ |
| | | images: this.imgList, |
| | | }) |
| | | // this.$refs.bigImg.open(0) |
| | | // this.$refs.bigImg1.open(0) |
| | | }, |
| | | empty() { |
| | | this.shopList = [] |
| | |
| | | this.shopList[index].zdPrice = '' |
| | | this.shopList[index].price = '' |
| | | this.shopList[index].xhData = [] |
| | | this.shopList[index].multifileList = [] |
| | | this.shopList[index].ppShow = false |
| | | this.$forceUpdate() |
| | | }, |
| | |
| | | }, |
| | | copyItem(item) { |
| | | let obj = JSON.parse(JSON.stringify(item)) |
| | | obj.multifileList = [] |
| | | obj.xhData = [] |
| | | obj.brandId = '' |
| | | obj.brand = '' |
| | | obj.brandName = '' |
| | | obj.name = '' |
| | | obj.zdPrice = '' |
| | | obj.price = '' |
| | | console.log(obj) |
| | | this.shopList.push(obj) |
| | | }, |
| | | deleItem(i) { |
| | |
| | | // http://mjyx.doumee.com/preselect_interface/ |
| | | // http://yx.doumee.com/preselect_interface/ |
| | | // http://127.0.0.1/interface/ http://192.168.0.15:10024/ preselect_web_interface |
| | | // https://dmtest.ahapp.net/preselect_web_interface/${url} http://127.0.0.1:10022/ http://192.168.0.35:10024/ |
| | | // https://dmtest.ahapp.net/preselect_h5_interface/${url} http://127.0.0.1:10022/ http://192.168.0.35:10024/ |
| | | // http://127.0.0.1:10024/ 测试 |
| | | // https://yx.ahapp.net/h5_interface/${url} |
| | | uni.request({ |
| | | url: `https://dmtest.ahapp.net/preselect_h5_interface/${url}`, |
| | | url: `https://yx.ahapp.net/h5_interface/${url}`, |
| | | method, |
| | | data, |
| | | header: { |