Mr.Shi
2023-09-25 7ea965d6203786fd7fd4e6dd38230586c427885f
企业端
已修改8个文件
26 ■■■■■ 文件已修改
company_admin/.env 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/.env.production 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/components/business/selectProductItem.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/src/utils/request.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/pages/index/index.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
h5/utils/request.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
company_admin/.env
@@ -10,3 +10,4 @@
# 接口前缀
# VUE_APP_API_PREFIX = '/preselect_interface/'
VUE_APP_API_PREFIX = '/web_interface'
# VUE_APP_API_PREFIX = '/preselect_web_interface'
company_admin/.env.development
@@ -3,8 +3,8 @@
# 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/'
company_admin/.env.production
@@ -5,8 +5,6 @@
# 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/'
company_admin/src/components/business/selectProductItem.vue
@@ -165,7 +165,7 @@
                type: this.form.type
            }).then(res => {
                this.visible = false
                this.$tip.apiSuccess('操作成功')
                this.$tip.apiSuccess(res)
                // this.$emit('success')
                this.$emit('result')
            })
@@ -184,6 +184,7 @@
        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)
company_admin/src/utils/request.js
@@ -41,7 +41,9 @@
// 新建响应拦截器
axiosInstance.interceptors.response.use((response) => {
  console.log(response.status)
  // debugger
  // 请求失败
  if (response.status !== 200) {
    return Promise.reject(new Error('服务器繁忙,请稍后再试'))
h5/manifest.json
@@ -87,7 +87,7 @@
                    // "target" : "https://dmtest.ahapp.net/",
                    "changeOrigin" : true,
                    "secure" : false,
                    "pathRewrite": {
                    "pathRewrite" : {
                        "^/preselect_h5_interface" : "/"
                    }
                }
h5/pages/index/index.vue
@@ -707,12 +707,10 @@
                        })
                    }
                })
                // 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 = []
@@ -842,6 +840,7 @@
                this.shopList[index].zdPrice = ''
                this.shopList[index].price = ''
                this.shopList[index].xhData = []
                this.shopList[index].multifileList = []
                this.shopList[index].ppShow = false
                this.$forceUpdate()
            },
@@ -935,12 +934,15 @@
            },
            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) {
h5/utils/request.js
@@ -14,11 +14,11 @@
        // 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: {