Parcourir la source

日历/天气

hjr il y a 3 mois
Parent
commit
4ed2a97c8a

BIN
src/assets/iconfont/iconfont.ttf


+ 29 - 9
src/assets/styles/iconfont.less

@@ -1,27 +1,47 @@
 @font-face {
   font-family: "iconfont"; /* Project id 4976596 */
   /* Color fonts */
-  src: url('/assets/iconfont/iconfont.ttf');
+  src: url('/assets/iconfont/iconfont.ttf')
 }
 
 .iconfont {
   font-family: "iconfont";
 }
 
-.icon-shuaxin:before {
-  content: "\e659";
+.icon-duoyun:before {
+  content: "\e603";
 }
 
-.icon-bianji:before {
-  content: "\e621";
+.icon-rili:before {
+  content: "\e89e";
+}
+
+.icon-duoyun-copy:before {
+  content: "\ec8e";
+}
+
+.icon-rili-copy:before {
+  content: "\ec8f";
+}
+
+.icon-zhihuan:before {
+  content: "\ec8d";
+}
+
+.icon-31yiwen:before {
+  content: "\e601";
 }
 
-.icon-icon-test:before {
-  content: "\e664";
+.icon-jinbi:before {
+  content: "\e641";
 }
 
-.icon-icon-test1:before {
-  content: "\e668";
+.icon-shuaxin:before {
+  content: "\e659";
+}
+
+.icon-bianji:before {
+  content: "\e621";
 }
 
 .icon-tubiao-bagua:before {

+ 29 - 0
src/components/calendar.ux

@@ -0,0 +1,29 @@
+<template>
+  <div class="wrapper">
+        <web id="wannianrili" src="https://wannianrili.bmcx.com/"></web>
+  </div>
+</template>
+
+<script>
+export default {
+  data: {
+    title: "Hello World. Quickapp Component."
+  },
+  
+  props: [],
+  
+  onInit() {}
+}
+</script>
+
+<style>
+.wrapper {
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+}
+.title {
+  text-align: center;
+  color: #212121;
+}
+</style>

+ 31 - 0
src/components/weather.ux

@@ -0,0 +1,31 @@
+<template>
+  <div class="wrapper">
+    <!-- <image style="width: 100%;" src="https://ytnovels.oss-cn-shanghai.aliyuncs.com/appStatic/images/source/weather.jpg"></image> -->
+    <web id="tianqi" src="https://xw.tianqi.qq.com/"></web>
+  </div>
+</template>
+
+<script>
+import webview from '@system.webview'
+export default {
+  data: {
+    title: "Hello World. Quickapp Component."
+  },
+  
+  props: [],
+  
+  onInit() {}
+}
+</script>
+
+<style>
+.wrapper {
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+}
+.title {
+  text-align: center;
+  color: #212121;
+}
+</style>

+ 1 - 1
src/manifest.json

@@ -1,5 +1,5 @@
 {
-  "package": "ltnovel8.weishuitang.com",
+  "package": "com.ytcalendar.module",
   "name": "demo",
   "versionName": "1.0.0",
   "versionCode": 1,

+ 19 - 3
src/pages/main/index.ux

@@ -5,18 +5,24 @@
 <import name="my" src="../../components/my"></import>
 <import name="red-packet" src="../../components/red-packet"></import>
 <import name="top-button" src="../../components/top-button"></import>
+<import name="weather" src="../../components/weather"></import>
+<import name="calendar" src="../../components/calendar"></import>
+
 
 <template>
   <div class="page-wrapper">
     <tabs index="{{selectedTab}}" onchange="changeTab">
-      <tab-content>
+      <tab-content scrollable="{{false}}">
         <bookshelf
           shelf-list="{{shelfList}}"
           onupdate-shelf="updateShelf"
         ></bookshelf>
         <library></library>
+        <weather></weather>
+        <calendar></calendar>
         <!-- <search-book></search-book> -->
-        <tools-mall if="{{ brand == 'vivo' }}"></tools-mall>
+        <!--  if="{{ brand == 'vivo' }}" -->
+        <tools-mall></tools-mall>
         <my></my>
       </tab-content>
       <tab-bar mode="fixed" class="tab-bar">
@@ -55,6 +61,16 @@ export default {
       //   icon: '\ue603',
       //   activatedIcon: '\ue604'
       // },
+      {
+        title: '天气',
+        icon: '\ue603',
+        activatedIcon: '\uec8e'
+      },
+      {
+        title: '日历',
+        icon: '\ue89e',
+        activatedIcon: '\uec8f'
+      },
       {
         title: '工具',
         icon: '\ue648',
@@ -78,7 +94,7 @@ export default {
      success: function(ret) {
         that.brand = ret.brand
         if(that.brand != 'vivo'){
-          that.tabList.splice(2,1)
+          // that.tabList.splice(-2,1)
         }
         $utils.setStorage('brand',ret.brand)
         // const data = await $utils.getStorage('brand')