zhuxinbo hace 5 años
padre
commit
ec389f555d

BIN
dist.zip


+ 10 - 1
src/utils/request.js

@@ -6,8 +6,17 @@ import {Modal, notification} from 'ant-design-vue'
 import {ACCESS_TOKEN} from "@/store/mutation-types"
 
 // 创建 axios 实例
+
+if (process.env.NODE_ENV == 'development') { 
+    axios.defaults.baseURL = '/jeecg-boot'
+} 
+else if (process.env.NODE_ENV == 'debug') { 
+} 
+else if (process.env.NODE_ENV == 'production') { 
+axios.defaults.baseURL = 'http://api.tjyourong.com.cn/jeecg-boot';
+}
 const service = axios.create({
-  baseURL: '/jeecg-boot', // api base_url
+//   baseURL: '/jeecg-boot', // api base_url
   timeout: 6000000 // 请求超时时间
 })
 

+ 1 - 1
src/views/modules/kuaishouapp/account/copyGroup.vue

@@ -237,7 +237,7 @@
                     <span style="color:red" v-if="item.showTipCheck">{{
                       item.bidType == '2'
                         ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
-                        : '不得低于5元,不得高于项目最高出价' + maxBid + '元'
+                        : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                     }}</span>
                   </a-form-item>
                   <a-form-item label="深度转化出价" :labelCol="{ lg: { span: 6 }, sm: { span: 7 } }"

+ 1 - 1
src/views/modules/kuaishouapp/account/editGroup.vue

@@ -349,7 +349,7 @@
                       <span style="color:red" v-if="item.showTipCheck">{{
                         item.bidType == '2'
                           ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
-                          : '不得低于5元,不得高于项目最高出价' + maxBid + '元'
+                          : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                       }}</span>
                     </a-form-item>
                     <a-form-item

+ 7 - 1
src/views/modules/kuaishouapp/account/originality.vue

@@ -51,7 +51,7 @@
         </a-tabs>
       </a-card>
     </a-row>
-    <a-modal v-model="visibleAll" title="批量修改第三方监测链接" @ok="handleOkAll" :width="800">
+    <a-modal v-model="visibleAll" title="批量修改第三方监测链接" @ok="handleOkAll" :confirmLoading="allLoading" :width="800">
       <a-form-item label="检测链接" :labelCol="{ lg: { span: 4 }, sm: { span: 2 } }"
         :wrapperCol="{ lg: { span: 18 }, sm: { span: 18 } }">
         <a-input v-model="clickTrackUrl" placeholder="请输入第三方检测链接">
@@ -213,6 +213,7 @@
       return {
         visible: false,
         visibleAll: false,
+        allLoading: false,
         visibleFail: false,
         visibleData: null,
         clickTrackUrl: '',
@@ -330,6 +331,7 @@
         this.handleSubmit()
       },
       handleOkAll() {
+        this.allLoading = true
         var params = {}
         params.accountId = localStorage.getItem('accountId')
         params.creativeJson = {
@@ -340,6 +342,7 @@
           console.log(res)
           if (res.success) {
             if (res.result.failCount > 0) {
+              this.allLoading = false
               this.visibleAll = false
               this.visibleFail = true
               this.visibleData = res.result
@@ -350,9 +353,11 @@
               this.selectedRowKeysValue = []
               this.selectedRowKeys = []
               this.clickTrackUrl = ''
+              this.visibleAll = false
             }
           } else {
             this.$message.error('修改失败')
+            this.visibleAll = false
           }
         })
       },
@@ -422,6 +427,7 @@
         if (this.allType == '4') {
           // /kuaishou/batch/batchUpdateCreative
           this.visibleAll = true
+          this.allLoading = false
         } else {
           var params = {}
           params.accountId = localStorage.getItem('accountId')

+ 1 - 1
src/views/modules/kuaishouapp/account/stepForm/Step2.vue

@@ -276,7 +276,7 @@
                       <span style="color:red" v-if="item.showTipCheck">{{
                         item.bidType == '2'
                           ? '不得低于1元,不得高于项目最高出价' + maxBid + '元'
-                          : '不得低于5元,不得高于项目最高出价' + maxBid + '元'
+                          : '不得低于1元,不得高于项目最高出价' + maxBid + '元'
                       }}</span>
                     </a-form-item>
                     <a-form-item label="深度转化出价" :labelCol="{ lg: { span: 6 }, sm: { span: 7 } }"

+ 7 - 6
vue.config.js

@@ -71,14 +71,14 @@ module.exports = {
         // target: 'http://192.168.1.103:8080', //请求本地 需要jeecg-boot后台项目
         // target: 'http://192.168.2.115:8080', //请求本地 需要jeecg-boot后台项目  祚云
         // target: 'http://192.168.1.54:8080', //请求本地 需要jeecg-boot后台项目  孙震
-        target: 'http://192.168.1.165:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
+        // target: 'http://192.168.1.165:8088', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.165:8848', //请求本地 需要jeecg-boot后台项目  毕洁泉
-        // target: 'http://192.168.1.251:80', //请求本地 需要jeecg-boot后台项目 
+        target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目 
         ws: false,
         changeOrigin: true,
-        pathRewrite: {
-            '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
-          }
+        // pathRewrite: {
+        //     '/jeecg-boot': ''  //默认所有请求都加了jeecg-boot前缀,需要去掉
+        // }
       },
     },
     // before(app) {
@@ -91,5 +91,6 @@ module.exports = {
     // }
   },
 
-  lintOnSave: undefined
+  lintOnSave: undefined,
+//   publicPath:'./'
 }