فهرست منبع

Merge branch '添加生图积分和服务商切换' into 20260415生产发布版本

yanym 3 هفته پیش
والد
کامیت
019c8f21a6
4فایلهای تغییر یافته به همراه8 افزوده شده و 17 حذف شده
  1. 1 6
      src/api/indexAI.js
  2. 3 1
      src/views/AIDesign/GeneratePlan.vue
  3. 3 9
      src/views/AIDesign/design.vue
  4. 1 1
      src/views/AIDesign/result.vue

+ 1 - 6
src/api/indexAI.js

@@ -362,17 +362,12 @@ export function insideUpdateFeedBack(query) {
 }
 }
 
 
 //获取确认下单地址
 //获取确认下单地址
-export function GetOrderAddress() {
-    const formData = new FormData();
+export function GetOrderAddress(formData) {
     const auth = getAuthCredentials();
     const auth = getAuthCredentials();
     formData.append('loginMark', auth.loginMark);
     formData.append('loginMark', auth.loginMark);
     formData.append('token', auth.token);
     formData.append('token', auth.token);
     const weChat = window.localStorage.getItem("weChat");
     const weChat = window.localStorage.getItem("weChat");
     formData.append('WXuserid', weChat);
     formData.append('WXuserid', weChat);
-    const checkedFwsInfo = JSON.parse(window.localStorage.getItem("pageDesignfwsRadioValue"));
-    if (checkedFwsInfo){
-        formData.append('servicecode', checkedFwsInfo.shop_code);
-    }
     return request({
     return request({
         url: '/aidesign/outside/GetOrderAddress',
         url: '/aidesign/outside/GetOrderAddress',
         method: 'post',
         method: 'post',

+ 3 - 1
src/views/AIDesign/GeneratePlan.vue

@@ -263,7 +263,9 @@ export default class GeneratePlan extends Vue {
             formData.append('eventdata', JSON.stringify(eventdataObj));//事件数据
             formData.append('eventdata', JSON.stringify(eventdataObj));//事件数据
             AddTrackEvent(formData)//埋点
             AddTrackEvent(formData)//埋点
             // 获取确认下单地址
             // 获取确认下单地址
-            GetOrderAddress().then((res) => {
+            const formDataGetOrderAddress = new FormData();
+            formDataGetOrderAddress.append('servicecode', that.$route.query.serviceCode)
+            GetOrderAddress(formDataGetOrderAddress).then((res) => {
                 if (res.StatusCode == 200 && res.Data) {
                 if (res.StatusCode == 200 && res.Data) {
                     window.location.href = res.Data;
                     window.location.href = res.Data;
                 } else {
                 } else {

+ 3 - 9
src/views/AIDesign/design.vue

@@ -671,18 +671,12 @@ export default class extends Vue {
     if (checkedFwsInfo){
     if (checkedFwsInfo){
         const serviceCodeIndex = serviceObjArray.findIndex(item => item.shop_code == checkedFwsInfo.shop_code);
         const serviceCodeIndex = serviceObjArray.findIndex(item => item.shop_code == checkedFwsInfo.shop_code);
         if (serviceCodeIndex == -1){
         if (serviceCodeIndex == -1){
-            that.fwsCode = serviceObjArray[0].shop_code;
-            that.fwsName = serviceObjArray[0].shop_name;
-            that.fwsRadioValue = serviceObjArray[0].shop_code;
+            that.radioClick(serviceObjArray[0].shop_code,serviceObjArray[0].shop_name,true);
         } else {
         } else {
-            that.fwsCode = checkedFwsInfo.shop_code;
-            that.fwsName = checkedFwsInfo.shop_name;
-            that.fwsRadioValue = checkedFwsInfo.shop_code;
+            that.radioClick(checkedFwsInfo.shop_code,checkedFwsInfo.shop_name,true);
         }
         }
     } else {
     } else {
-        that.fwsCode = serviceObjArray[0].shop_code;
-        that.fwsName = serviceObjArray[0].shop_name;
-        that.fwsRadioValue = serviceObjArray[0].shop_code;
+        that.radioClick(serviceObjArray[0].shop_code,serviceObjArray[0].shop_name,true);
     }
     }
   }
   }
   // 处理文件选择(对应 beforeRead + afterRead)
   // 处理文件选择(对应 beforeRead + afterRead)

+ 1 - 1
src/views/AIDesign/result.vue

@@ -626,7 +626,7 @@ export default class extends Vue {
     AddTrackEvent(formData)//埋点
     AddTrackEvent(formData)//埋点
     let allRes = JSON.stringify(this.allRes);
     let allRes = JSON.stringify(this.allRes);
     sessionStorage.setItem("planParams", allRes);
     sessionStorage.setItem("planParams", allRes);
-    this.$router.push({ path: '/AIDesign/GeneratePlan' });
+    this.$router.push({ path: '/AIDesign/GeneratePlan', query: { serviceCode: this.allRes.ServiceCode } });
   }
   }
 }
 }
 </script>
 </script>