zqwang 2 rokov pred
rodič
commit
6d99a2df2b
2 zmenil súbory, kde vykonal 31 pridanie a 11 odobranie
  1. 9 2
      .quickapp.preview.json
  2. 22 9
      src/views/About/index.ux

+ 9 - 2
.quickapp.preview.json

@@ -1,6 +1,13 @@
 {
   "modeOptions": {
-    "current": -1,
-    "list": []
+    "current": 0,
+    "list": [
+      {
+        "name": "ts",
+        "pathName": "views/About",
+        "query": "",
+        "id": 0
+      }
+    ]
   }
 }

+ 22 - 9
src/views/About/index.ux

@@ -32,18 +32,12 @@
     <input class="btn" type="button" onclick="createShortcut" value="创建快捷方式" />
 
     <!-- 版权信息 -->
-    <text id="footer"><a href="/views/Agreement">用户协议</a> |<a href="/views/Privacy"> 隐私政策</a></text>
+    <text id="footer"><span @click="pageChange('Agreement')">用户协议</span> |<span @click="pageChange('Privacy')"> 隐私政策</span></text>
   </div>
 </template>
 
 <script>
-/**
- * 默认的菜单页(可自定义)
- * name默认为manifest文件中的name字段
- * icon默认为manifest文件中的icon字段
- * 若需修改页面中文本,请修改ViewModel private中对应变量
- * 注意:使用加载器测试`创建桌面快捷方式`功能时,需要进入系统设置->权限管理->开启应用加载器的`桌面快捷方式`权限,才能保存到桌面。应用上线后可自动获取`桌面快捷方式`权限
- */
+import router from "@system.router"
 export default {
   protected: {
     name: null,
@@ -52,16 +46,35 @@ export default {
   private: {
     desc: '即点即用,让你省去下载安装的步骤,立即使用各类服务',
     serviceType: '工具类',
-    subjectInfo: '杭州掌维科技有限公司',
+    subjectInfo: '',
     copyright: ''
   },
   onInit() {
     // 设置标题栏
+    this.icon = this.$app.$def.manifest.icon;
+    this.subjectInfo = this.$app.$def.manifest.config.data.company_name;
     this.$page.setTitleBar({ text: this.name })
   },
   createShortcut() {
     // 创建快捷方式
     this.$app.$def.createShortcut()
+  },
+  pageChange(page, params) {
+    if (page == 'Privacy') {
+      router.push({
+          uri: '/views/Web',
+          params: {
+              url:this.$app.$def.manifest.config.data.yinsi_addr,
+              title:"隐私协议",
+              allowthirdpartycookies: false
+          }
+      })
+    } else {
+      router.push({
+        uri: `/views/${page}`,
+        params: params ? params : {}
+      })
+    }
   }
 }
 </script>