朱鑫波 4 yıl önce
ebeveyn
işleme
d24c16efe1

+ 2 - 0
src/views/modules/kuaishouapp/account/accountIndex.vue

@@ -978,6 +978,7 @@ export default {
       this.searchLabel()
     },
     addUser() {
+      
       this.loading = true
       this.dataList = []
       var params = {}
@@ -987,6 +988,7 @@ export default {
       if (this.appId) {
         this.getSpend(params)
         this.getCampaignList(params)
+        localStorage.setItem('accountId',this.appId)
       } else {
         this.$message.error('请选择账户')
       }

+ 47 - 31
src/views/modules/kuaishouapp/account/stepForm/stepModule/targetedPopulation.vue

@@ -171,7 +171,7 @@ li:hover {
         <a-radio-button value="ageLimit">限定年龄段</a-radio-button>
         <a-radio-button value="ageCustom">自定义年龄段</a-radio-button>
       </a-radio-group>
-      <div v-if="allForm.ageType == 'ageLimit'" style="margin-top:5px">
+      <div v-if="allForm.ageType == 'ageLimit'" style="margin-top: 5px">
         <a-checkbox-group v-decorator="['agesRange', { rules: [{ required: true, message: '请选择年龄段' }] }]">
           <!-- <a-checkbox :value="0">0-11岁</a-checkbox>
           <a-checkbox :value="12">12-17岁</a-checkbox> -->
@@ -211,7 +211,6 @@ li:hover {
             initialValue: 0,
           },
         ]"
-        
       >
         <a-radio-button :value="0">不限</a-radio-button>
         <a-radio-button :value="1">女性</a-radio-button>
@@ -235,7 +234,7 @@ li:hover {
       :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
       v-if="allForm.platform_os == 1"
       class="else-label"
-      style="margin-top:-16px"
+      style="margin-top: -16px"
     >
       <a-radio-group
         v-decorator="[
@@ -258,7 +257,7 @@ li:hover {
       :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
       v-if="allForm.platform_os == 2"
       class="else-label"
-      style="margin-top:-16px"
+      style="margin-top: -16px"
     >
       <a-radio-group
         v-decorator="[
@@ -285,22 +284,22 @@ li:hover {
         <a-radio-button value="0">不限</a-radio-button>
         <a-radio-button value="1">选择品牌</a-radio-button>
       </a-radio-group>
-      <div v-if="allForm.device == '1'" style="width: 120%;margin-top:15px">
+      <div v-if="allForm.device == '1'" style="width: 120%; margin-top: 15px">
         <a-checkbox-group
           v-decorator="['deviceBrand', { rules: [{ required: true, message: '请选择设备品牌' }] }]"
           style="width: 120%"
         >
-          <a-checkbox :value="1" style='margin-bottom:8px'>OPPO</a-checkbox>
-          <a-checkbox :value="2" style='margin-bottom:8px'>VIVO</a-checkbox>
-          <a-checkbox :value="3" style='margin-bottom:8px'>华为</a-checkbox>
-          <a-checkbox :value="4" style='margin-bottom:8px'>小米</a-checkbox>
-          <a-checkbox :value="5" style='margin-bottom:8px'>荣耀</a-checkbox>
-          <a-checkbox :value="6" style='margin-bottom:8px'>三星</a-checkbox>
-          <a-checkbox :value="7" style='margin-bottom:8px'>金立</a-checkbox>
-          <a-checkbox :value="8" style="margin:0 0 8px 0">魅族</a-checkbox>
-          <a-checkbox :value="9" style='margin-bottom:8px'>乐视</a-checkbox>
-          <a-checkbox :value="10" style='margin-bottom:8px'>其他</a-checkbox>
-          <a-checkbox :value="11" v-if="allForm.platform_os == 0" style='margin-bottom:8px'>苹果</a-checkbox>
+          <a-checkbox :value="1" style="margin-bottom: 8px">OPPO</a-checkbox>
+          <a-checkbox :value="2" style="margin-bottom: 8px">VIVO</a-checkbox>
+          <a-checkbox :value="3" style="margin-bottom: 8px">华为</a-checkbox>
+          <a-checkbox :value="4" style="margin-bottom: 8px">小米</a-checkbox>
+          <a-checkbox :value="5" style="margin-bottom: 8px">荣耀</a-checkbox>
+          <a-checkbox :value="6" style="margin-bottom: 8px">三星</a-checkbox>
+          <a-checkbox :value="7" style="margin-bottom: 8px">金立</a-checkbox>
+          <a-checkbox :value="8" style="margin: 0 0 8px 0">魅族</a-checkbox>
+          <a-checkbox :value="9" style="margin-bottom: 8px">乐视</a-checkbox>
+          <a-checkbox :value="10" style="margin-bottom: 8px">其他</a-checkbox>
+          <a-checkbox :value="11" v-if="allForm.platform_os == 0" style="margin-bottom: 8px">苹果</a-checkbox>
         </a-checkbox-group>
       </div>
     </a-form-item>
@@ -313,21 +312,21 @@ li:hover {
         <a-radio-button value="0">不限</a-radio-button>
         <a-radio-button value="1">选择价格</a-radio-button>
       </a-radio-group>
-      <div v-if="allForm.price == '1'" style="width: 120%;margin-top:10px">
+      <div v-if="allForm.price == '1'" style="width: 120%; margin-top: 10px">
         <a-checkbox-group
           v-decorator="['devicePrice', { rules: [{ required: true, message: '请选择设备价格' }] }]"
           style="width: 120%"
         >
-          <a-checkbox :value="1" style='margin-bottom:8px'>1500以下</a-checkbox>
-          <a-checkbox :value="2" style='margin-bottom:8px'>1501~2000</a-checkbox>
-          <a-checkbox :value="3" style='margin-bottom:8px'>2001~2500</a-checkbox>
-          <a-checkbox :value="4" style='margin-bottom:8px'>2501~3000</a-checkbox>
-          <a-checkbox :value="5" style="margin-left:0;margin-bottom:8px">3001~3500</a-checkbox>
-          <a-checkbox :value="6" style='margin-bottom:8px'>3501~4000</a-checkbox>
-          <a-checkbox :value="7" style='margin-bottom:8px'>4001~4500</a-checkbox>
-          <a-checkbox :value="8" style='margin-bottom:8px'>4501~5000</a-checkbox>
-          <a-checkbox :value="9" style="margin-left:0;margin-bottom:8px">5001~5500</a-checkbox>
-          <a-checkbox :value="10" style='margin-bottom:8px'>5500以上</a-checkbox>
+          <a-checkbox :value="1" style="margin-bottom: 8px">1500以下</a-checkbox>
+          <a-checkbox :value="2" style="margin-bottom: 8px">1501~2000</a-checkbox>
+          <a-checkbox :value="3" style="margin-bottom: 8px">2001~2500</a-checkbox>
+          <a-checkbox :value="4" style="margin-bottom: 8px">2501~3000</a-checkbox>
+          <a-checkbox :value="5" style="margin-left: 0; margin-bottom: 8px">3001~3500</a-checkbox>
+          <a-checkbox :value="6" style="margin-bottom: 8px">3501~4000</a-checkbox>
+          <a-checkbox :value="7" style="margin-bottom: 8px">4001~4500</a-checkbox>
+          <a-checkbox :value="8" style="margin-bottom: 8px">4501~5000</a-checkbox>
+          <a-checkbox :value="9" style="margin-left: 0; margin-bottom: 8px">5001~5500</a-checkbox>
+          <a-checkbox :value="10" style="margin-bottom: 8px">5500以上</a-checkbox>
         </a-checkbox-group>
       </div>
     </a-form-item>
@@ -962,8 +961,14 @@ export default {
   computed: {},
   methods: {
     getPeople() {
+      var data = ''
+      if (this.$route.path == '/creat/creatUnit') {
+        data = localStorage.getItem('campaignAccountId')
+      } else {
+        data = localStorage.getItem('accountId')
+      }
       return new Promise((resolve, reject) => {
-        getAction('/kuaishou/batch/getPopulationList', { accountId: localStorage.getItem('accountId') }).then((res) => {
+        getAction('/kuaishou/batch/getPopulationList', { accountId: data }).then((res) => {
           if (res.success) {
             if (res.result) {
               this.dataList = res.result.map((item, index) => {
@@ -1215,10 +1220,15 @@ export default {
     getAppAllElse(e) {
       this.checkArr = this.optionsAll
       // this.getAppAll()
-
+      var data = ''
+      if (this.$route.path == '/creat/creatUnit') {
+        data = localStorage.getItem('campaignAccountId')
+      } else {
+        data = localStorage.getItem('accountId')
+      }
       if (this.appListValue != '') {
         getAction('/kuaishou/batch/getAppSearch', {
-          accountId: localStorage.getItem('accountId'),
+          accountId: data,
           appName: e.target.value,
         }).then((res) => {
           if (res.result) {
@@ -1236,9 +1246,15 @@ export default {
       }
     },
     getAppAll(e) {
+      var data = ''
+      if (this.$route.path == '/creat/creatUnit') {
+        data = localStorage.getItem('campaignAccountId')
+      } else {
+        data = localStorage.getItem('accountId')
+      }
       if (e.target.value !== '') {
         getAction('/kuaishou/batch/getAppSearch', {
-          accountId: localStorage.getItem('accountId'),
+          accountId: data,
           appName: e.target.value,
         }).then((res) => {
           if (res.result) {

+ 1 - 0
src/views/modules/kuaishouapp/batchCreation/campaignList.vue

@@ -882,6 +882,7 @@ export default {
       if (this.appId) {
         this.getSpend(params)
         this.getCampaignList(params)
+        localStorage.setItem('campaignAccountId',this.appId)
       } else {
         this.$message.error('请选择账户')
       }

+ 2 - 2
vue.config.js

@@ -78,13 +78,13 @@ module.exports = {
         // target: 'http://192.168.0.252:8098', //请求本地 需要jeecg-boot后台项目  毕洁泉
         // target: 'http://192.168.1.219:8080', //请求本地 需要jeecg-boot后台项目  赵西安
         // target: 'http://192.168.1.193:8080', //请求本地 需要jeecg-boot后台项目  李煜一
-        //  target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
+         target: 'http://api.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'https://trac.tjyourong.com.cn', //请求本地 需要jeecg-boot后台项目
         // target: 'http://39.106.184.70:8088/', //请求本地 需要jeecg-boot后台项目
         //  target: 'http://adsp.tjyourong.com.cn/', //请求本地 需要jeecg-boot后台项目
         // target: 'http://192.168.1.251/', //请求本地 需要jeecg-boot后台项目
         // target:'http://118.24.244.213:8804',
-        target:'http://139.186.151.174:8804', //测试
+        // target:'http://139.186.151.174:8804', //测试
 
 
         ws: false,