فهرست منبع

首页天气模块/消息推送监听

fanghuisheng 1 سال پیش
والد
کامیت
caf49c9cf3
71فایلهای تغییر یافته به همراه246 افزوده شده و 143 حذف شده
  1. 66 6
      src/App.vue
  2. 2 2
      src/manifest.json
  3. 74 45
      src/pages/index.vue
  4. 8 0
      src/plugins/setting.plugins.js
  5. 39 4
      src/static/iconfont/iconfont.css
  6. BIN
      src/static/iconfont/iconfont.ttf
  7. BIN
      src/static/icons/index/APP-dbsx.png
  8. 0 8
      src/static/icons/index/APP-dbsx.svg
  9. BIN
      src/static/icons/index/APP-dwcj.png
  10. 0 7
      src/static/icons/index/APP-dwxxcj.svg
  11. BIN
      src/static/icons/index/APP-gjgl.png
  12. BIN
      src/static/icons/index/APP-khgl.png
  13. BIN
      src/static/icons/index/APP-kpgl.png
  14. BIN
      src/static/icons/index/APP-sbcx.png
  15. 0 9
      src/static/icons/index/APP-sbcx.svg
  16. BIN
      src/static/icons/index/APP-sbgl.png
  17. 0 9
      src/static/icons/index/APP-sbgl.svg
  18. BIN
      src/static/icons/index/APP-sscj.png
  19. BIN
      src/static/icons/index/APP-ssck.png
  20. BIN
      src/static/icons/index/APP-ssgl.png
  21. BIN
      src/static/icons/index/APP-xfbg.png
  22. 0 9
      src/static/icons/index/APP-xfbg.svg
  23. BIN
      src/static/icons/index/APP-xtzz.png
  24. BIN
      src/static/icons/index/APP-xunjian.png
  25. 0 9
      src/static/icons/index/APP-xunjian.svg
  26. BIN
      src/static/icons/index/APP-xxcx.png
  27. 0 9
      src/static/icons/index/APP-xxcx.svg
  28. 0 9
      src/static/icons/index/APP-zzdt.svg
  29. BIN
      src/static/icons/white/0.png
  30. BIN
      src/static/icons/white/1.png
  31. BIN
      src/static/icons/white/10.png
  32. BIN
      src/static/icons/white/11.png
  33. BIN
      src/static/icons/white/12.png
  34. BIN
      src/static/icons/white/13.png
  35. BIN
      src/static/icons/white/14.png
  36. BIN
      src/static/icons/white/15.png
  37. BIN
      src/static/icons/white/16.png
  38. BIN
      src/static/icons/white/17.png
  39. BIN
      src/static/icons/white/18.png
  40. BIN
      src/static/icons/white/19.png
  41. BIN
      src/static/icons/white/2.png
  42. BIN
      src/static/icons/white/20.png
  43. BIN
      src/static/icons/white/21.png
  44. BIN
      src/static/icons/white/22.png
  45. BIN
      src/static/icons/white/23.png
  46. BIN
      src/static/icons/white/24.png
  47. BIN
      src/static/icons/white/25.png
  48. BIN
      src/static/icons/white/26.png
  49. BIN
      src/static/icons/white/27.png
  50. BIN
      src/static/icons/white/28.png
  51. BIN
      src/static/icons/white/29.png
  52. BIN
      src/static/icons/white/3.png
  53. BIN
      src/static/icons/white/30.png
  54. BIN
      src/static/icons/white/31.png
  55. BIN
      src/static/icons/white/32.png
  56. BIN
      src/static/icons/white/33.png
  57. BIN
      src/static/icons/white/34.png
  58. BIN
      src/static/icons/white/35.png
  59. BIN
      src/static/icons/white/36.png
  60. BIN
      src/static/icons/white/37.png
  61. BIN
      src/static/icons/white/38.png
  62. BIN
      src/static/icons/white/4.png
  63. BIN
      src/static/icons/white/5.png
  64. BIN
      src/static/icons/white/6.png
  65. BIN
      src/static/icons/white/7.png
  66. BIN
      src/static/icons/white/8.png
  67. BIN
      src/static/icons/white/9.png
  68. BIN
      src/static/icons/white/99.png
  69. BIN
      src/static/images/index/weather.png
  70. 57 15
      src/static/scss/public.scss
  71. 0 2
      uniCloud-aliyun/cloudfunctions/uniPushMessage/index.js

+ 66 - 6
src/App.vue

@@ -11,6 +11,72 @@ const { proxy } = getCurrentInstance();
 function initApp() {
   //初始化获取安全区高度
   proxy.$settingStore.systemHeightTop();
+  //隐藏自带tabbar
+  uni.hideTabBar();
+
+  //#ifdef APP-PLUS
+  plus.screen.lockOrientation("portrait-primary"); //设置不可横屏
+  pushListener(); //开启消息推送监听
+  proxy.$setting.clearBadge(0); // 清除数字
+  //#endif
+}
+
+/**
+ * @消息推送监听
+ */
+function pushMessage() {
+  uni.onPushMessage((res) => {
+    const platform = uni.getSystemInfoSync().platform;
+    console.log("收到推送消息:", res); //监听推送消息
+
+    if (res.type === "click") {
+      if (platform == "android") {
+      } else {
+      }
+    } else if (res.type === "receive") {
+      if (platform == "android") {
+      } else {
+      }
+    }
+  });
+}
+
+/**
+ * @消息推送监听
+ */
+function pushListener() {
+  //获取应用的CID
+  uni.getPushClientId({
+    success: (res) => {
+      console.log(res.cid);
+    },
+    fail(err) {
+      console.log(err);
+    },
+  });
+
+  const platform = uni.getSystemInfoSync().platform;
+  // 点击推送信息
+  plus.push.addEventListener("click", (res) => {
+    console.log(res);
+    if (res.aps) {
+      if ("url" in res.payload) {
+      } else {
+      }
+      console.log(res.payload);
+    }
+  });
+  // 接收推送信息  在线
+  plus.push.addEventListener("receive", (res) => {
+    console.log(res);
+    if (platform == "android") {
+    } else {
+      uni.createPushMessage({
+        title: res.title,
+        content: res.content,
+      });
+    }
+  });
 }
 
 watchEffect(() => {
@@ -23,12 +89,6 @@ watchEffect(() => {
 
 onLaunch(() => {
   console.log("App Launch");
-  
-  uni.hideTabBar(); //隐藏自带tabbar
-
-  //#ifdef APP-PLUS
-  plus.screen.lockOrientation("portrait-primary"); //设置不可横屏
-  //#endif
 
   //初始化默认主题
   if (!proxy.$settingStore.$state.themeColor) {

+ 2 - 2
src/manifest.json

@@ -1,7 +1,7 @@
 {
     "name" : "综合智慧云",
     "appid" : "__UNI__36DE3A0",
-    "description" : "综合智慧云",
+    "description" : "综合智慧云app,助力企业数字化转型升级",
     "versionName" : "2.0.5",
     "versionCode" : 7,
     "transformPx" : false,
@@ -115,7 +115,7 @@
                 "push" : {
                     "unipush" : {
                         "version" : "2",
-                        "offline" : false,
+                        "offline" : true,
                         "icons" : {
                             "small" : {
                                 "hdpi" : "unpackage/res/push/36x36.png",

+ 74 - 45
src/pages/index.vue

@@ -16,8 +16,6 @@
     </template>
   </u-navbar>
 
-  <!-- <pagesHarder></pagesHarder> -->
-
   <oa-scroll
     customClass="scroll-height"
     :customStyle="{ height: `calc(100vh - (50px + ${proxy.$settingStore.barHightTop} + ${proxy.$settingStore.tabBarHeight}))` }"
@@ -54,13 +52,28 @@
 
         <image v-if="!swiperBool" style="width: 100%; height: 160px" src="@/static/images/index/banner1.png"></image>
 
-        <!-- <view class="app-info-notice bg-white radius shadow-default margin-lr-sm margin-bottom-sm">
-          <view class="flex">
-            <view class="info-title text-df">综合智慧云</view>
-            <view class="info-time text-sm">07-25 19:23</view>
+        <view class="app-common-notice bg-white radius shadow-default margin-lr-sm margin-bottom-sm">
+          <!-- <view class="info">
+            <view class="info-header">
+              <view class="info-title text-df">综合智慧云</view>
+              <view class="info-time text-sm">07-25 19:23</view>
+            </view>
+            <view class="info-center text-sm">综合智慧云app,助力企业数字化转型升级,超多业务功能,全新部署上线,操作简单流畅...</view>
+          </view> -->
+
+          <view class="weather radius">
+            <view class="weather-header">
+              <view class="iconfont ucicon-address icon"></view>
+              <view style="margin: 0 15px 0 0">{{ weatherData.length != 0 ? weatherData[0].location : "" }}</view>
+              <view style="margin: 0 auto 0 0">今天</view>
+              <view style="margin: 0 0 0 0">{{ weatherData.length != 0 ? weatherData[0].text : "" }}</view>
+            </view>
+            <view class="weather-center">
+              <view class="temperature">{{ weatherData.length != 0 ? weatherData[0].today.low + "/" + weatherData[0].today.high : "0℃" }}</view>
+              <image class="image" :src="`${weatherData.length != 0 ? '/static/icons/white/' + weatherData[0].code.now + '.png' : ''}`" mode="heightFix" style="height: 30px"></image>
+            </view>
           </view>
-          <view class="info-content text-sm">综合智慧云app,助力企业数字化转型升级,超多业务功能,全新部署上线,操作简单流畅...</view>
-        </view> -->
+        </view>
 
         <!-- 轮播图 结束 -->
 
@@ -127,9 +140,11 @@ const arrayList = reactive({
 
   cuIconList: [],
   recentlyUsed: [],
+
+  weatherData: [], //天气信息值存储
 });
 
-const { dialogFlag, swiperBool, swiperIndex, swiperTime, swiperList, cuIconList, recentlyUsed } = toRefs(arrayList);
+const { dialogFlag, swiperBool, swiperIndex, swiperTime, swiperList, cuIconList, recentlyUsed, weatherData } = toRefs(arrayList);
 
 /**
  * @获取轮播图下标
@@ -161,6 +176,25 @@ function swiperClick(list) {
   }
 }
 
+/**
+ * @获取天气信息
+ */
+function getWeather(string) {
+  uni.request({
+    url: `https://widget-v3.seniverse.com/api/weather/7b8a7d89-f01d-4b14-bdec-5ae0b82c857f?unit=c&language=zh-Hans&location=${string}`,
+    success: (res) => {
+      if (res.statusCode == 200) {
+        weatherData.value = res.data.results[0].data;
+      } else {
+        console.log("获取天气信息失败");
+      }
+    },
+    fail: (err) => {
+      console.log("获取天气信息失败", err);
+    },
+  });
+}
+
 onLoad((option) => {
   uni.hideTabBar(); //隐藏自带tabbar
 
@@ -170,6 +204,7 @@ onLoad((option) => {
 
   getAppRoutersData(); //调用路由信息接口
   getMobileBannerApi(); //调用banner图接口
+  getLocation(); //调用获取地理位置方法
 });
 
 /**
@@ -178,6 +213,7 @@ onLoad((option) => {
 function refresh() {
   getAppRoutersData(); //调用路由信息接口
   getMobileBannerApi(); //调用banner图接口
+  getLocation(); //调用获取地理位置方法
 }
 
 /**
@@ -235,15 +271,32 @@ function scanCode() {
  * @获取地理位置
  */
 function getLocation() {
-  jwx.configWeiXin((jweixin) => {
-    // 微信公众号获取位置
-    jweixin.getLocation({
-      type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
-      success: function (res) {
-        alert(res.longitude);
-      },
-    });
+  //#ifdef H5 || MP-WEIXIN
+  // jwx.configWeiXin((jweixin) => {
+  //   // 微信公众号获取位置
+  //   jweixin.getLocation({
+  //     type: "gcj02", // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
+  //     success: function (res) {
+  //       alert(res.longitude);
+  //     },
+  //   });
+  // });
+  getWeather("上海");
+  //#endif
+
+  //#ifdef APP-PLUS
+  uni.getLocation({
+    type: "wgs84",
+    success: function (res) {
+      // console.log("当前位置的经度:" + res.longitude);
+      // console.log("当前位置的纬度:" + res.latitude);
+      getWeather(res.latitude + ":" + res.longitude);
+    },
+    fail: function (res) {
+      getWeather("上海");
+    },
   });
+  //#endif
 }
 
 /**
@@ -333,43 +386,19 @@ function getMobileBannerApi() {
  * @api接口请求
  */
 function getAppRoutersData() {
-  getAppRouters({
-    // domain: window.location.host.indexOf("localhost") != -1 ? "localhost:81" : window.location.host,
-    // platformType: "MOB",
-    // domain :'172.16.120.165:13201'
-    // domain :'172.16.120.165:13203'
-  }).then((res) => {
-    res.data.forEach((el) => {
-      if (el.meta.icon === "APP-ssck") {
-        el.meta.icon = `/static/icons/index/APP-ssgl.png`;
-      } else {
-        el.meta.icon = `/static/icons/index/${el.meta.icon}.png`;
-      }
-    });
-
+  getAppRouters().then((res) => {
+    // res.data.forEach((el) => {
+    //     el.meta.icon = `/static/icons/index/${el.meta.icon}.png`;
+    // });
     cuIconList.value = res.data;
   });
 }
 
 onShow(() => {});
-
-// 自定义导航事件
-onNavigationBarButtonTap((e) => {
-  if (e.float == "right") {
-    // alert("你点击了扫一扫");
-    scanCode();
-  } else {
-    rightButtonClick();
-  }
-});
 </script>
 
 <style lang="scss" scoped>
 .home-container {
-  // #ifdef H5
-  // padding-bottom: 50px;
-  // #endif
-
   .transition {
     position: fixed;
     top: 0;

+ 8 - 0
src/plugins/setting.plugins.js

@@ -87,6 +87,14 @@ const clearCache = () => {
 };
 
 export default {
+  // 设置数字
+  setBadge(value) {
+    plus.runtime.setBadgeNumber(value);
+  },
+  // 清除数字
+  clearBadge(value) {
+    plus.runtime.setBadgeNumber(value);
+  },
   formatSize,
   clearCache,
 };

+ 39 - 4
src/static/iconfont/iconfont.css

@@ -1,8 +1,8 @@
 @font-face {
   font-family: "iconfont"; /* Project id 3620854 */
-  src: url('https://at.alicdn.com/t/c/font_3620854_or3dk845a9m.woff2?t=1690786456967') format('woff2'),
-       url('https://at.alicdn.com/t/c/font_3620854_or3dk845a9m.woff?t=1690786456967') format('woff'),
-       url('https://at.alicdn.com/t/c/font_3620854_or3dk845a9m.ttf?t=1690786456967') format('truetype');
+  src: url("https://at.alicdn.com/t/c/font_3620854_kdcp7gpqqz.woff2?t=1691730084858") format("woff2"), 
+       url("https://at.alicdn.com/t/c/font_3620854_kdcp7gpqqz.woff?t=1691730084858") format("woff"),
+       url("https://at.alicdn.com/t/c/font_3620854_kdcp7gpqqz.ttf?t=1691730084858") format("truetype");
 }
 
 .iconfont {
@@ -13,6 +13,42 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.ucicon-position:before {
+  content: "\e618";
+}
+
+.ucicon-branch:before {
+  content: "\e617";
+}
+
+.ucicon-satellite:before {
+  content: "\e614";
+}
+
+.ucicon-full:before {
+  content: "\e615";
+}
+
+.ucicon-facilityType:before {
+  content: "\e616";
+}
+
+.ucicon-address:before {
+  content: "\e60f";
+}
+
+.ucicon-guanbi1:before {
+  content: "\e695";
+}
+
+.ucicon-lable:before {
+  content: "\e60e";
+}
+
+.ucicon-search:before {
+  content: "\e60d";
+}
+
 .ucicon-dial:before {
   content: "\e60b";
 }
@@ -196,4 +232,3 @@
 .ucicon-eye-close:before {
   content: "\e8ff";
 }
-

BIN
src/static/iconfont/iconfont.ttf


BIN
src/static/icons/index/APP-dbsx.png


+ 0 - 8
src/static/icons/index/APP-dbsx.svg

@@ -1,8 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(116, 210, 123)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M69.636,56.729 C77.564,56.729 83.990,63.283 83.990,71.368 C83.990,79.453 77.564,86.007 69.636,86.007 C61.709,86.007 55.282,79.453 55.282,71.368 C55.282,63.283 61.709,56.729 69.636,56.729 ZM76.813,25.987 C79.984,25.987 82.555,28.609 82.555,31.843 L82.555,57.637 C79.084,54.231 74.453,52.331 69.636,52.337 C59.330,52.337 50.976,60.857 50.976,71.368 C50.976,76.481 52.954,81.125 56.172,84.543 L33.751,84.543 C30.580,84.543 28.010,81.921 28.010,78.687 L28.010,31.843 C28.010,28.609 30.580,25.987 33.751,25.987 L76.813,25.987 ZM69.636,60.389 C68.527,60.389 67.600,61.248 67.493,62.374 L67.483,62.585 L67.483,72.277 L73.856,78.777 L74.019,78.927 C74.810,79.585 75.946,79.585 76.737,78.927 L76.901,78.777 L77.049,78.610 C77.693,77.802 77.693,76.644 77.049,75.837 L76.901,75.670 L71.789,70.459 L71.789,62.585 L71.779,62.374 C71.673,61.248 70.745,60.389 69.636,60.389 ZM50.258,47.946 L40.211,47.946 C39.021,47.946 38.058,48.930 38.059,50.143 C38.059,51.273 38.901,52.218 40.004,52.327 L40.211,52.337 L50.258,52.337 C51.447,52.337 52.411,51.354 52.411,50.141 C52.411,48.929 51.447,47.946 50.258,47.946 ZM70.354,36.235 L40.211,36.235 C39.021,36.235 38.058,37.219 38.059,38.432 C38.059,39.562 38.901,40.507 40.004,40.616 L40.211,40.626 L70.354,40.626 C71.543,40.626 72.507,39.643 72.507,38.430 C72.507,37.218 71.543,36.235 70.354,36.235 Z"/>
-</svg>

BIN
src/static/icons/index/APP-dwcj.png


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 7
src/static/icons/index/APP-dwxxcj.svg


BIN
src/static/icons/index/APP-gjgl.png


BIN
src/static/icons/index/APP-khgl.png


BIN
src/static/icons/index/APP-kpgl.png


BIN
src/static/icons/index/APP-sbcx.png


+ 0 - 9
src/static/icons/index/APP-sbcx.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="117px" height="117px">
-<path fill-rule="evenodd"  fill="rgb(110, 173, 251)"
- d="M27.972,0.371 L89.083,0.371 C104.425,0.371 116.861,12.808 116.861,28.149 L116.861,89.231 C116.861,104.572 104.425,117.009 89.083,117.009 L27.972,117.009 C12.631,117.009 0.194,104.572 0.194,89.231 L0.194,28.149 C0.194,12.808 12.631,0.371 27.972,0.371 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M82.328,88.985 L35.664,88.985 C32.000,88.985 29.000,86.020 29.000,82.398 L29.000,38.860 C29.000,35.238 32.000,32.273 35.664,32.273 L42.328,32.273 C42.328,30.458 43.828,28.975 45.664,28.975 C47.500,28.975 49.000,30.458 49.000,32.273 L69.000,32.273 C69.000,30.458 70.500,28.975 72.336,28.975 C74.172,28.975 75.672,30.458 75.672,32.273 L82.336,32.273 C86.000,32.273 89.000,35.238 88.992,38.860 L88.992,82.398 C88.992,86.020 85.992,88.985 82.328,88.985 ZM57.828,79.232 C60.297,79.232 62.578,78.529 64.562,77.371 L67.828,80.599 C69.125,81.881 71.242,81.881 72.539,80.599 C73.836,79.325 73.836,77.224 72.547,75.935 L69.281,72.707 C70.445,70.745 71.164,68.490 71.164,66.050 C71.164,58.768 65.195,52.868 57.828,52.868 C50.461,52.868 44.492,58.768 44.492,66.050 C44.492,73.332 50.461,79.232 57.828,79.232 ZM79.000,38.860 L75.680,38.860 C75.680,40.675 74.180,42.157 72.344,42.157 C70.508,42.157 69.008,40.675 69.008,38.860 L49.008,38.860 C49.008,40.675 47.508,42.157 45.672,42.157 C43.836,42.157 42.336,40.675 42.336,38.860 L39.000,38.860 C37.164,38.860 35.664,40.343 35.664,42.157 C35.664,43.972 37.164,45.455 39.000,45.455 L79.000,45.455 C80.836,45.455 82.336,43.972 82.336,42.157 C82.336,40.343 80.836,38.860 79.000,38.860 ZM57.820,59.471 C61.501,59.471 64.484,62.420 64.484,66.058 C64.484,66.060 64.484,66.063 64.484,66.066 C64.482,69.703 61.497,72.651 57.817,72.649 C54.136,72.647 51.154,69.696 51.156,66.058 C51.156,62.420 54.140,59.471 57.820,59.471 Z"/>
-</svg>

BIN
src/static/icons/index/APP-sbgl.png


+ 0 - 9
src/static/icons/index/APP-sbgl.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(151, 162, 221)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M79.391,85.987 L32.617,85.987 C29.040,85.987 26.014,82.974 26.014,79.139 L26.014,63.527 L85.994,63.527 L85.994,79.139 C85.994,82.974 82.967,85.987 79.391,85.987 ZM63.433,71.196 L33.443,71.196 L33.443,78.592 L63.433,78.592 L63.433,71.196 ZM78.565,71.196 L71.136,71.196 L71.136,78.592 L78.565,78.592 L78.565,71.196 ZM26.014,32.851 C26.014,29.016 29.040,26.003 32.617,26.003 L79.391,26.003 C82.967,26.003 85.994,29.016 85.994,32.851 L85.994,59.693 L26.014,59.693 L26.014,32.851 ZM38.120,53.393 L43.623,44.080 L56.279,52.571 L63.157,41.889 L76.639,49.558 L79.666,44.080 L60.956,32.303 L54.628,43.259 L40.871,35.863 L32.617,50.380 L38.120,53.393 Z"/>
-</svg>

BIN
src/static/icons/index/APP-sscj.png


BIN
src/static/icons/index/APP-ssck.png


BIN
src/static/icons/index/APP-ssgl.png


BIN
src/static/icons/index/APP-xfbg.png


+ 0 - 9
src/static/icons/index/APP-xfbg.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(74, 144, 226)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M31.454,25.987 L80.555,25.987 C83.568,25.987 86.010,28.430 86.010,31.444 L86.010,31.444 L86.010,80.557 C86.010,83.571 83.568,86.014 80.555,86.014 L80.555,86.014 L31.454,86.014 C28.441,86.014 25.998,83.571 25.998,80.557 L25.998,80.557 L25.998,31.444 C25.998,28.430 28.441,25.987 31.454,25.987 L31.454,25.987 ZM60.628,32.762 C59.625,32.779 58.825,33.605 58.841,34.609 C58.841,34.609 58.841,34.609 58.841,34.609 C58.841,35.632 59.641,36.456 60.628,36.456 L69.327,36.456 L58.088,48.364 L50.210,39.984 C49.512,39.281 48.376,39.276 47.672,39.975 C47.669,39.978 47.666,39.981 47.663,39.984 L37.060,51.444 C36.366,52.180 36.374,53.332 37.079,54.058 C37.433,54.413 37.878,54.590 38.334,54.590 C38.817,54.587 39.278,54.385 39.607,54.031 L48.937,43.916 L56.812,52.284 C57.488,52.994 58.686,52.994 59.359,52.284 L71.787,39.139 L71.787,48.012 C71.787,49.035 72.587,49.861 73.577,49.861 C74.576,49.850 75.376,49.030 75.364,48.031 C75.364,48.028 75.364,48.025 75.364,48.023 L75.364,34.609 C75.380,33.606 74.581,32.779 73.577,32.762 C73.577,32.762 73.577,32.762 73.577,32.762 L60.628,32.762 ZM36.910,58.729 C35.403,58.729 34.182,59.951 34.182,61.458 L34.182,72.371 C34.182,73.878 35.403,75.100 36.910,75.100 C38.416,75.100 39.637,73.878 39.637,72.371 L39.637,61.458 C39.637,59.951 38.416,58.729 36.910,58.729 ZM45.093,69.643 C43.587,69.643 42.365,70.865 42.365,72.371 C42.365,73.878 43.587,75.100 45.093,75.100 L72.371,75.100 C73.878,75.100 75.099,73.878 75.099,72.371 C75.099,70.865 73.878,69.643 72.371,69.643 L45.093,69.643 ZM45.093,58.729 C43.587,58.729 42.365,59.951 42.365,61.458 C42.365,62.964 43.587,64.186 45.093,64.186 L72.371,64.186 C73.878,64.186 75.099,62.964 75.099,61.458 C75.099,59.951 73.878,58.729 72.371,58.729 L45.093,58.729 Z"/>
-</svg>

BIN
src/static/icons/index/APP-xtzz.png


BIN
src/static/icons/index/APP-xunjian.png


+ 0 - 9
src/static/icons/index/APP-xunjian.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(255, 134, 115)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M31.135,30.838 L37.402,30.838 L37.402,41.687 L72.973,41.687 L72.973,30.838 L80.843,30.838 C83.131,30.838 84.986,32.685 84.986,34.963 L84.986,84.882 C84.986,87.160 83.131,89.007 80.843,89.007 L31.135,89.007 C28.847,89.007 26.993,87.160 26.993,84.882 L26.993,34.963 C26.993,32.685 28.847,30.838 31.135,30.838 ZM41.905,28.813 L46.056,28.813 C46.056,25.608 48.665,23.009 51.888,23.009 L58.516,23.009 C61.735,23.009 64.344,25.608 64.344,28.813 L68.416,28.813 L68.416,38.878 L41.905,38.878 L41.905,28.813 ZM55.438,34.196 C57.725,34.196 59.581,32.319 59.581,30.001 C59.581,27.683 57.725,25.806 55.438,25.806 C53.147,25.806 51.296,27.683 51.296,30.001 C51.296,32.319 53.147,34.196 55.438,34.196 ZM36.383,48.736 L36.383,52.655 L75.595,52.655 L75.595,48.736 L36.383,48.736 ZM36.383,57.687 L36.383,61.601 L45.219,61.601 L45.219,57.683 L36.383,57.683 L36.383,57.687 ZM36.383,66.638 L36.383,70.548 L45.219,70.548 L45.219,66.634 L36.383,66.634 L36.383,66.638 ZM36.383,75.585 L36.383,79.499 L47.427,79.499 L47.427,75.581 L36.383,75.581 L36.383,75.585 ZM69.108,78.501 C68.852,79.247 69.044,80.073 69.605,80.629 L72.538,83.546 C73.347,84.351 74.658,84.351 75.466,83.546 L75.475,83.537 C76.285,82.733 76.286,81.427 75.478,80.621 C75.477,80.619 75.476,80.618 75.475,80.617 L72.546,77.701 C71.987,77.143 71.158,76.950 70.409,77.206 C73.864,73.110 73.605,67.064 69.812,63.276 C65.755,59.250 59.188,59.261 55.144,63.301 C51.090,67.327 51.079,73.863 55.119,77.903 C58.923,81.683 64.997,81.943 69.112,78.501 L69.108,78.501 ZM66.859,74.966 C64.433,77.390 60.495,77.397 58.060,74.982 C55.634,72.560 55.640,68.637 58.073,66.221 C60.498,63.797 64.437,63.790 66.872,66.205 C66.873,66.206 66.874,66.208 66.875,66.209 C69.300,68.633 69.293,72.555 66.859,74.970 L66.859,74.966 Z"/>
-</svg>

BIN
src/static/icons/index/APP-xxcx.png


+ 0 - 9
src/static/icons/index/APP-xxcx.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(110, 173, 251)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M81.714,90.005 L36.285,90.005 C32.852,90.005 29.992,87.148 29.992,83.719 L29.992,32.289 C29.992,28.860 32.852,26.003 36.285,26.003 L81.599,26.003 C85.146,26.003 87.893,28.860 88.007,32.289 L88.007,83.719 C88.007,87.148 85.146,90.005 81.714,90.005 ZM41.892,78.005 L75.992,78.005 C77.251,78.005 78.166,76.976 78.166,75.719 C78.166,74.462 77.136,73.433 75.878,73.433 L41.892,73.433 C40.634,73.433 39.604,74.462 39.604,75.719 C39.604,76.976 40.634,78.005 41.892,78.005 ZM41.892,67.719 L75.992,67.719 C77.251,67.719 78.166,66.690 78.166,65.433 C78.166,64.176 77.136,63.147 75.878,63.147 L41.892,63.147 C40.634,63.147 39.604,64.176 39.604,65.433 C39.604,66.690 40.634,67.719 41.892,67.719 ZM56.310,42.575 C56.310,40.060 54.251,38.003 51.733,38.003 L44.181,38.003 C41.663,38.003 39.604,40.060 39.604,42.575 L39.604,50.804 C39.604,53.318 41.663,55.375 44.181,55.375 L51.733,55.375 C54.251,55.375 56.310,53.318 56.310,50.804 L56.310,42.575 ZM75.992,39.489 L64.549,39.489 C63.290,39.489 62.261,40.518 62.261,41.775 C62.261,43.032 63.290,44.061 64.549,44.061 L75.992,44.061 C77.251,44.061 78.281,43.032 78.281,41.775 C78.281,40.518 77.251,39.489 75.992,39.489 ZM75.992,49.318 L64.549,49.318 C63.290,49.318 62.261,50.347 62.261,51.604 C62.261,52.861 63.290,53.890 64.549,53.890 L75.992,53.890 C77.251,53.890 78.281,52.861 78.281,51.604 C78.281,50.347 77.251,49.318 75.992,49.318 ZM44.181,42.575 L51.733,42.575 L51.733,50.804 L44.181,50.804 L44.181,42.575 Z"/>
-</svg>

+ 0 - 9
src/static/icons/index/APP-zzdt.svg

@@ -1,9 +0,0 @@
-<svg 
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- width="113px" height="112px">
-<path fill-rule="evenodd"  fill="rgb(96, 216, 246)"
- d="M26.250,0.030 L86.250,0.030 C100.609,0.030 112.250,11.671 112.250,26.030 L112.250,86.005 C112.250,100.364 100.609,112.005 86.250,112.005 L26.250,112.005 C11.891,112.005 0.250,100.364 0.250,86.005 L0.250,26.030 C0.250,11.671 11.891,0.030 26.250,0.030 Z"/>
-<path fill-rule="evenodd"  fill="rgb(255, 255, 255)"
- d="M33.114,50.735 L72.673,90.285 L33.267,90.285 C29.347,90.285 26.169,87.108 26.169,83.188 L26.167,57.681 L33.114,50.735 ZM62.430,26.415 C58.538,30.069 56.332,35.170 56.336,40.507 C56.336,45.663 58.354,50.347 61.653,53.822 L62.056,54.234 L74.598,66.706 C75.237,67.341 76.248,67.389 76.946,66.852 L77.113,66.706 L89.655,54.229 C89.790,54.096 89.921,53.961 90.053,53.822 L90.053,83.188 C90.053,87.108 86.875,90.285 82.954,90.285 L80.204,90.285 L36.880,46.970 L57.440,26.415 L62.432,26.415 L62.430,26.415 ZM75.856,26.415 C83.693,26.415 90.053,33.098 90.053,41.346 C90.053,45.471 88.464,49.202 85.891,51.904 L76.770,61.503 C76.298,62.007 75.507,62.034 75.002,61.562 C74.981,61.543 74.962,61.523 74.942,61.503 L65.819,51.908 C63.246,49.206 61.658,45.475 61.658,41.350 C61.658,33.102 68.018,26.415 75.854,26.415 L75.856,26.415 ZM49.910,26.415 L26.167,50.151 L26.167,33.512 C26.167,29.592 29.345,26.415 33.265,26.415 L49.910,26.415 ZM75.854,33.512 C71.934,33.511 68.756,36.688 68.755,40.607 C68.755,44.527 71.933,47.704 75.853,47.705 C75.854,47.705 75.854,47.705 75.854,47.705 C79.775,47.704 82.952,44.527 82.952,40.607 C82.952,36.689 79.774,33.512 75.854,33.512 Z"/>
-</svg>

BIN
src/static/icons/white/0.png


BIN
src/static/icons/white/1.png


BIN
src/static/icons/white/10.png


BIN
src/static/icons/white/11.png


BIN
src/static/icons/white/12.png


BIN
src/static/icons/white/13.png


BIN
src/static/icons/white/14.png


BIN
src/static/icons/white/15.png


BIN
src/static/icons/white/16.png


BIN
src/static/icons/white/17.png


BIN
src/static/icons/white/18.png


BIN
src/static/icons/white/19.png


BIN
src/static/icons/white/2.png


BIN
src/static/icons/white/20.png


BIN
src/static/icons/white/21.png


BIN
src/static/icons/white/22.png


BIN
src/static/icons/white/23.png


BIN
src/static/icons/white/24.png


BIN
src/static/icons/white/25.png


BIN
src/static/icons/white/26.png


BIN
src/static/icons/white/27.png


BIN
src/static/icons/white/28.png


BIN
src/static/icons/white/29.png


BIN
src/static/icons/white/3.png


BIN
src/static/icons/white/30.png


BIN
src/static/icons/white/31.png


BIN
src/static/icons/white/32.png


BIN
src/static/icons/white/33.png


BIN
src/static/icons/white/34.png


BIN
src/static/icons/white/35.png


BIN
src/static/icons/white/36.png


BIN
src/static/icons/white/37.png


BIN
src/static/icons/white/38.png


BIN
src/static/icons/white/4.png


BIN
src/static/icons/white/5.png


BIN
src/static/icons/white/6.png


BIN
src/static/icons/white/7.png


BIN
src/static/icons/white/8.png


BIN
src/static/icons/white/9.png


BIN
src/static/icons/white/99.png


BIN
src/static/images/index/weather.png


+ 57 - 15
src/static/scss/public.scss

@@ -272,28 +272,70 @@ uni-input {
   //#endif
 }
 
-//公共消息通知悬浮窗
-.app-info-notice {
+//公共悬浮窗
+.app-common-notice {
   position: relative;
   margin-top: -20px;
   z-index: 50;
-  padding: 10px;
 
-  .info-title {
-    margin: auto auto auto 0;
-    color: #000000;
-  }
 
-  .info-time {
-    margin: auto 0 auto 0;
-    color: #909399
+
+  .info {
+    padding: 10px;
+
+    .info-header {
+      display: flex;
+
+      .info-title {
+        margin: auto auto auto 0;
+        color: #000000;
+      }
+
+      .info-time {
+        margin: auto 0 auto 0;
+        color: #909399
+      }
+    }
+
+    .info-center {
+      white-space: nowrap;
+      overflow: hidden;
+      text-overflow: ellipsis; //溢出用省略号显示
+      color: #909399
+    }
   }
 
-  .info-content {
-    white-space: nowrap;
-    overflow: hidden;
-    text-overflow: ellipsis; //溢出用省略号显示
+  .weather {
+    padding: 10px;
+    background-image: url("@/static/images/index/weather.png");
+    background-size: 100% 100%;
+    background-position: center center;
+    background-repeat: no-repeat;
 
-    color: #909399
+
+    .weather-header {
+      display: flex;
+      margin-bottom: 10px;
+      font-size: 14px;
+
+      .ucicon-address {
+        margin: auto 5px auto 0;
+        color: #0c83fa;
+      }
+    }
+
+    .weather-center {
+      display: flex;
+
+      .temperature {
+        margin: auto auto auto 0;
+        font-size: 18px;
+        font-weight: 600;
+      }
+
+      .image {
+        margin: 0 0 0 0;
+      }
+    }
   }
 }

+ 0 - 2
uniCloud-aliyun/cloudfunctions/uniPushMessage/index.js

@@ -13,6 +13,4 @@ exports.main = async (event, context) => {
 		"request_id": obj.request_id, //请求唯一标识号,10-32位之间;如果request_id重复,会导致消息丢失  
 		"options": obj.options, //消息分类,没申请可以不传这个参数  
 	})
-
-	return event
 };

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است