11wqe1 1 viikko sitten
vanhempi
commit
d8ad12e922
1 muutettua tiedostoa jossa 38 lisäystä ja 17 poistoa
  1. 38 17
      src/components/topPage.vue

+ 38 - 17
src/components/topPage.vue

@@ -224,7 +224,7 @@ import { mapGetters } from 'vuex';
 import store from '../store'
 import { API_CONFIG } from "@/common/apiConfig";
 import { myMixin } from "@/mixins/mixin.js"
-import axios from '@/common/axios.config'; // 引入 axios 配置实例
+// import axios from '@/common/axios.config'; // 引入 axios 配置实例
 
     export default {
         mixins: [ myMixin ],
@@ -428,7 +428,7 @@ import axios from '@/common/axios.config'; // 引入 axios 配置实例
 
             // 打开平台应用
             async openApp(val){
-                console.log('val',val);
+                // console.log('val',val);
 
                 // 点击相同应用不刷新
                 if (this.appSign == val.toolId) return
@@ -506,23 +506,44 @@ import axios from '@/common/axios.config'; // 引入 axios 配置实例
             },
              // 打开常见应用弹框
             async lookMore(){
-                let params2 = [
-                    {
-                        functionName: "select_desktopToolByPage",
-                        status: "",
-                        page: 1,
-                        lim: 9999999,
-                    },
-                ];
-                let res3 = await axios.post(API_CONFIG.baseUrl, params2)
-
-                let k = res3.data[0].find(e=> e.toolId == 'appStore' || e.toolId == 'appStoreLiYuan')
-
-                k.url = JSON.parse(k.url)
-                k.argumentList = JSON.parse(k.argumentList)
+               
+                let k = window.location.href.includes("/liyuan") ? "liyuan_" : "admin_"
+                
+                let val = ''
+                if (k == 'liyuan_') {
+                    val = {
+                        id: "746ce524-0bae-11f0-baea-005056924926",
+                        toolId: "appStoreLiYuan",
+                        dialogWidth: '100',
+                        dialogHeight: '100',
+                        description: "荔园的CocoFlow",
+                        isAdmin: '0',
+                        argumentList: "[\"userid\",\"oid\",\"org\",\"role\"]",
+                        url: "[{\"region\":\"cn\",\"url\":\"https://app.cocorobo.cn/#/\",\"icon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/appStore1743150350993.png\",\"name\":\"AI应用\",\"platformIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/appStore1743150353110.png\",\"activeIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/Property%201%3DDefault%20%281%291746585029787.svg\",\"defaultIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/Property%201%3DDefault1746585025868.svg\",\"hoverIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/Property%201%3DDefault%20%281%291746585032396.svg\"},{\"region\":\"beta\",\"url\":\"https://beta.app.cocorobo.cn/#/\",\"icon\":\"\",\"name\":\"AI应用\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"},{\"region\":\"hk\",\"url\":\"https://app.cocorobo.hk/#/\",\"icon\":\"\",\"name\":\"CocoFlow\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"},{\"region\":\"com\",\"url\":\"https://app.cocorobo.com/#/\",\"icon\":\"\",\"name\":\"CocoFlow\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"}]",
+                        json: "\"\"",
+                        status: "0"
+                    }
+                }else{
+                    val = {
+                        id: "dd87149c-1f52-11f0-a66a-005056924926",
+                        toolId: "appStore",
+                        dialogWidth: '100',
+                        dialogHeight: '100',
+                        description: "CocoFlow",
+                        isAdmin: '0',
+                        argumentList: "[\"userid\",\"oid\",\"org\",\"role\"]",
+                        url: "[{\"region\":\"cn\",\"url\":\"https://app.cocorobo.cn/#/\",\"icon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/appStore1743150350993.png\",\"name\":\"CocoFlow\",\"platformIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/appStore1743150353110.png\",\"activeIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/marketeq_home-alt-3%20%282%291744697451173.svg\",\"defaultIcon\":\"https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/marketeq_home-alt-3%20%281%291744697448514.svg\"},{\"region\":\"beta\",\"url\":\"https://beta.app.cocorobo.cn/#/\",\"icon\":\"\",\"name\":\"CocoFlow\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"},{\"region\":\"hk\",\"url\":\"https://app.cocorobo.hk/#/\",\"icon\":\"\",\"name\":\"CocoFlow\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"},{\"region\":\"com\",\"url\":\"https://app.cocorobo.com/#/\",\"icon\":\"\",\"name\":\"CocoFlow\",\"platformIcon\":\"\",\"activeIcon\":\"\",\"defaultIcon\":\"\"}]",
+                        json: "\"\"",
+                        status: "0"
+                    }
+                }
+               
+
+                val.url = JSON.parse(val.url)
+                val.argumentList = JSON.parse(val.argumentList)
                 
 
-                this.openApp(k)
+                this.openApp(val)
                 
             },
             handleClose(){