1
jhzh
2025-04-14 a5601fbcdc19292b32423bea88e67fc9ab4422a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
    <script>
      function initFreshChat() {
        window.fcWidget.init({
          token: "33ce6d3f-5c4a-4d03-b070-c97fc447160a",
          host: "https://wchat.freshchat.com"
        });
      }
      function initialize(i,t){var e;i.getElementById(t)?initFreshChat():((e=i.createElement("script")).id=t,e.async=!0,e.src="https://wchat.freshchat.com/js/widget.js",e.onload=initFreshChat,i.head.appendChild(e))}function initiateCall(){initialize(document,"Freshdesk Messaging-js-sdk")}window.addEventListener?window.addEventListener("load",initiateCall,!1):window.attachEvent("load",initiateCall,!1);
    </script>
<script>
import Member from "@/api/member";
import { mapActions } from "vuex";
import app from "@/app.js";
// import Highcharts from 'highcharts';
// import HighchartsMore from 'highcharts/highcharts-more';  // 可选,适用于更多类型的图表
// HighchartsMore(Highcharts); // 如果需要更多类型的图表
export default {
  onLaunch: function () {
    setInterval(() => {
      this.$navFontColor();
    }, 1000);
    this.mobileLogo();
    // this.update()
  },
  methods: {
    ...mapActions({
      setLogoMap: "logoMap",
    }),
    mobileLogo() {
      Member.mobileLogo().then((res) => {
        let data = res.data;
        this.setLogoMap({
          home_logo: data.home_logo,
          login_logo: data.login_logo,
          title_logo: data.title_logo,
          share_logo: data.share_logo,
          name: data.name,
        });
      });
    },
    // update(){
    //     var baseUrl=app.baseUrl + '/api/app/getNewestVersion'
    //     console.log(baseUrl)
    //     var _this = this;
    //     uni.request({
    //     url: baseUrl,  //请求接口
    //     method: 'GET',
    //     success: result => {
    //         console.log(result)
    //         if (result.data.code == 200) {
    //             plus.runtime.getProperty(plus.runtime.appid, function(inf) {
    //                 console.log(inf)
    //                 if(inf.version != result.data.data.versions){
    //                     uni.showModal({
    //                         title: "发现新版本",
    //                         content: "确认下载更新",
    //                         success: (res) => {
    //                             if (res.confirm == true) {//当用户确定更新,执行更新
    //                                 _this.doUpData();
    //                             }
    //                         }
    //                     })
    //                 }
    //             });
    //         }
    //     },
    //     })
    // },
     
    // doUpData() {
    //     uni.showLoading({
    //         title: '更新中……'
    //     })
    //     uni.downloadFile({//执行下载
    //         url: 'https://www.KO Globalex.net/download/android/KO Global.apk', //下载地址
    //         success: downloadResult => {//下载成功
    //             uni.hideLoading();
    //             if (downloadResult.statusCode == 200) {
    //                 uni.showModal({
    //                     title: '',
    //                     content: '更新成功,确定现在重启吗?',
    //                     confirmText: '重启',
    //                     confirmColor: '#EE8F57',
    //                     success: function(res) {
    //                         if (res.confirm == true) {
    //                             plus.runtime.install(//安装
    //                                 downloadResult.tempFilePath, {
    //                                     force: true
    //                                 },
    //                                 function(res) {
    //                                     utils.showToast('更新成功,重启中');
    //                                     plus.runtime.restart();
    //                                 }
    //                             );
    //                         }
    //                     }
    //                 });
    //             }
    //         }
    //     });
    // }
  },
  // onLaunch: function() {
      // console.log('App Launch');
      // 检测升级
 
      // var baseUrl=app.baseUrl + '/api/app/getNewestVersion'
      // uni.request({
      //     url: baseUrl, //检查更新的服务器地址
      //     method: 'GET',
      //     // data: {
      //     //     appid: plus.runtime.appid,
      //     //     version: plus.runtime.version,
      //     //     imei: plus.device.imei
      //     // },
      //     success: (res) => {
      //         console.log(res)
      //         if (res.data.code == 200) {
      //             console.log(res.data.data.android.url)
      //             var openUrl = plus.os.name === 'iOS' ? res.data.data.ios.url : res.data.data.android.url;
      //             // 提醒用户更新
      //             uni.showModal({
      //                 title: '更新提示',
      //                 content: '是否选择更新',
      //                 success: (showResult) => {
      //                     if (showResult.confirm) {
      //                         plus.runtime.openURL(openUrl);
      //                     }
      //                 }
      //             })
      //         }
      //     }
      // })
 
  // },
  onLaunch() {
      return;
  },
  onShow: function () {
    uni.$emit("appShow");
    this.$navFontColor();
  },
  onHide: function () {},
};
</script>
 
<style lang="scss">
    // @import "./colorui/main.css";
    //  @import "./colorui/icon.css";
    //  @import "./colorui/animation.css";
     
.layout-page {
  height: 100vh;
  font-size: 14px;
  background: $panel-1;
  color: $text-color;
}
 
/* #ifdef H5 */
.layout-page {
  height: 100%!important;
}
uni-page-body{
    height: 100%;
}
/* #endif */
@import "./assets/scss/app.scss";
/* 解决头条小程序组件内引入字体不生效的问题 */
/* #ifdef MP-TOUTIAO */
@font-face {
  font-family: uniicons;
  src: url("/static/uni.ttf");
}
/* #endif */
</style>