@jx3box/jx3box-ui 2.2.12 → 2.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@ export default {
71
71
  let only = honorConfig.only;
72
72
  let prefix = honorConfig.prefix;
73
73
  let regPrefix = honorConfig.prefix.match(/\{([^{}]+?)\}/g);
74
- let ranking = honorConfig.ranking;
74
+ let ranking = honorConfig.ranking || [];
75
75
  let honorStr = honorConfig.year || "";
76
76
 
77
77
  if (!only) {
@@ -155,9 +155,7 @@ import i18nMixin from "../../i18n/mixin";
155
155
  import { getConfig } from "../../service/cms";
156
156
 
157
157
  const APP_LOGO_FALLBACK = "https://cdn.jx3box.com/design/app/logo/jx3box-icon-512.png";
158
- const APPLE_STORE_LINK = "https://apps.apple.com/cn/app/id6761459300";
159
- const HARMONY_STORE_LINK = "https://appgallery.huawei.com/app/xxx";
160
- const APP_CONFIG_KEYS = ["android_apk", "android_versions", "app_logo", "app_version_desc"];
158
+ const APP_CONFIG_KEYS = ["android_apk", "android_versions", "app_logo", "app_version_desc", "apple_url", "harmony_url"];
161
159
 
162
160
  export default {
163
161
  name: "FooterResource",
@@ -235,7 +233,7 @@ export default {
235
233
  return this.appConfig.app_logo || APP_LOGO_FALLBACK;
236
234
  },
237
235
  appName() {
238
- return "魔盒APP";
236
+ return "剑网3魔盒";
239
237
  },
240
238
  appVersion() {
241
239
  return this.appConfig.android_versions || "";
@@ -246,10 +244,16 @@ export default {
246
244
  androidDownloadUrl() {
247
245
  return this.appConfig.android_apk || "";
248
246
  },
247
+ appleDownloadUrl() {
248
+ return this.appConfig.apple_url || "";
249
+ },
250
+ harmonyDownloadUrl() {
251
+ return this.appConfig.harmony_url || "";
252
+ },
249
253
  activeDownloadUrl() {
250
254
  if (this.activePlatform === "android") return this.androidDownloadUrl;
251
- if (this.activePlatform === "harmonyNext") return HARMONY_STORE_LINK;
252
- return APPLE_STORE_LINK;
255
+ if (this.activePlatform === "harmonyNext") return this.harmonyDownloadUrl;
256
+ return this.appleDownloadUrl;
253
257
  },
254
258
  activeDownloadText() {
255
259
  const map = {