parent
							
								
									1dfdf18783
								
							
						
					
					
						commit
						acbcab9a55
					
				| @ -0,0 +1,31 @@ | ||||
| /* | ||||
|  * Eslint config file | ||||
|  * Documentation: https://eslint.org/docs/user-guide/configuring/
 | ||||
|  * Install the Eslint extension before using this feature. | ||||
|  */ | ||||
| module.exports = { | ||||
|     env: { | ||||
|     es6: true, | ||||
|     browser: true, | ||||
|     node: true/, | ||||
|   }, | ||||
|   ecmaFeatures: { | ||||
|     modules: true, | ||||
|   }, | ||||
|   parserOptions: { | ||||
|     ecmaVersion: 2018, | ||||
|     sourceType: 'module', | ||||
|   }, | ||||
|   globals: { | ||||
|     wx: true, | ||||
|     App: true, | ||||
|     Page: true, | ||||
|     getCurrentPages: true, | ||||
|     getApp: true, | ||||
|     Component: true, | ||||
|     requirePlugin: true, | ||||
|     requireMiniProgram: true, | ||||
|   }, | ||||
|   // extends: 'eslint:recommended',
 | ||||
|   rules: {}, | ||||
| } | ||||
| @ -0,0 +1,23 @@ | ||||
| { | ||||
|   "pages": [ | ||||
|     "pages/index/index", | ||||
|     "pages/logs/logs" | ||||
|   ], | ||||
|   "window": { | ||||
|     "navigationBarTextStyle": "black", | ||||
|     "navigationStyle": "custom" | ||||
|   }, | ||||
|   "style": "v2", | ||||
|   "renderer": "skyline", | ||||
|   "rendererOptions": { | ||||
|     "skyline": { | ||||
|       "defaultDisplayBlock": true, | ||||
|       "disableABTest": true, | ||||
|       "sdkVersionBegin": "3.0.0", | ||||
|       "sdkVersionEnd": "15.255.255" | ||||
|     } | ||||
|   }, | ||||
|   "componentFramework": "glass-easel", | ||||
|   "sitemapLocation": "sitemap.json", | ||||
|   "lazyCodeLoading": "requiredComponents" | ||||
| } | ||||
| @ -0,0 +1,11 @@ | ||||
| /**app.wxss**/ | ||||
| .container { | ||||
|   height: 100%; | ||||
|   display: flex; | ||||
|   flex-direction: column; | ||||
|   align-items: center; | ||||
|   justify-content: space-between; | ||||
|   padding: 200rpx 0; | ||||
|   box-sizing: border-box; | ||||
| } | ||||
| 
 | ||||
| @ -0,0 +1,5 @@ | ||||
| { | ||||
|   "component": true, | ||||
|   "styleIsolation": "apply-shared", | ||||
|   "usingComponents": {} | ||||
| } | ||||
| @ -0,0 +1,64 @@ | ||||
| <view class="weui-navigation-bar {{extClass}}"> | ||||
|   <view class="weui-navigation-bar__inner {{ios ? 'ios' : 'android'}}" style="color: {{color}}; background: {{background}}; {{displayStyle}}; {{innerPaddingRight}}; {{safeAreaTop}};"> | ||||
| 
 | ||||
|     <!-- 左侧按钮 --> | ||||
|     <view class='weui-navigation-bar__left' style="{{leftWidth}};"> | ||||
|       <block wx:if="{{back || homeButton}}"> | ||||
|         <!-- 返回上一页 --> | ||||
|         <block wx:if="{{back}}"> | ||||
|           <view class="weui-navigation-bar__buttons weui-navigation-bar__buttons_goback"> | ||||
|             <view | ||||
|               bindtap="back" | ||||
|               class="weui-navigation-bar__btn_goback_wrapper" | ||||
|               hover-class="weui-active" | ||||
|               hover-stay-time="100" | ||||
|               aria-role="button" | ||||
|               aria-label="返回" | ||||
|             > | ||||
|               <view class="weui-navigation-bar__button weui-navigation-bar__btn_goback"></view> | ||||
|             </view> | ||||
|           </view> | ||||
|         </block> | ||||
|         <!-- 返回首页 --> | ||||
|         <block wx:if="{{homeButton}}"> | ||||
|           <view class="weui-navigation-bar__buttons weui-navigation-bar__buttons_home"> | ||||
|             <view | ||||
|               bindtap="home" | ||||
|               class="weui-navigation-bar__btn_home_wrapper" | ||||
|               hover-class="weui-active" | ||||
|               aria-role="button" | ||||
|               aria-label="首页" | ||||
|             > | ||||
|               <view class="weui-navigation-bar__button weui-navigation-bar__btn_home"></view> | ||||
|             </view> | ||||
|           </view> | ||||
|         </block> | ||||
|       </block> | ||||
|       <block wx:else> | ||||
|         <slot name="left"></slot> | ||||
|       </block> | ||||
|     </view> | ||||
| 
 | ||||
|     <!-- 标题 --> | ||||
|     <view class='weui-navigation-bar__center'> | ||||
|       <view wx:if="{{loading}}" class="weui-navigation-bar__loading" aria-role="alert"> | ||||
|         <view | ||||
|           class="weui-loading" | ||||
|           aria-role="img" | ||||
|           aria-label="加载中" | ||||
|         ></view> | ||||
|       </view> | ||||
|       <block wx:if="{{title}}"> | ||||
|         <text>{{title}}</text> | ||||
|       </block> | ||||
|       <block wx:else> | ||||
|         <slot name="center"></slot> | ||||
|       </block> | ||||
|     </view> | ||||
|      | ||||
|     <!-- 右侧留空 --> | ||||
|     <view class='weui-navigation-bar__right'> | ||||
|       <slot name="right"></slot> | ||||
|     </view> | ||||
|   </view> | ||||
| </view> | ||||
| @ -0,0 +1,96 @@ | ||||
| .weui-navigation-bar { | ||||
|   --weui-FG-0:rgba(0,0,0,.9); | ||||
|   --height: 44px; | ||||
|   --left: 16px; | ||||
| } | ||||
| .weui-navigation-bar .android { | ||||
|   --height: 48px; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar { | ||||
|   overflow: hidden; | ||||
|   color: var(--weui-FG-0); | ||||
|   flex: none; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__inner { | ||||
|   position: relative; | ||||
|   top: 0; | ||||
|   left: 0; | ||||
|   height: calc(var(--height) + env(safe-area-inset-top)); | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: center; | ||||
|   justify-content: center; | ||||
|   padding-top: env(safe-area-inset-top); | ||||
|   width: 100%; | ||||
|   box-sizing: border-box; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__left { | ||||
|   position: relative; | ||||
|   padding-left: var(--left); | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: flex-start; | ||||
|   height: 100%; | ||||
|   box-sizing: border-box; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__btn_goback_wrapper { | ||||
|   padding: 11px 18px 11px 16px; | ||||
|   margin: -11px -18px -11px -16px; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__btn_goback_wrapper.weui-active { | ||||
|   opacity: 0.5; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__btn_goback { | ||||
|   font-size: 12px; | ||||
|   width: 12px; | ||||
|   height: 24px; | ||||
|   -webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E  %3Cpath fill-opacity='.9' fill-rule='evenodd' d='M10 19.438L8.955 20.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42L8.955 3.5 10 4.563 2.682 12 10 19.438z'/%3E%3C/svg%3E") no-repeat 50% 50%; | ||||
|   mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24'%3E  %3Cpath fill-opacity='.9' fill-rule='evenodd' d='M10 19.438L8.955 20.5l-7.666-7.79a1.02 1.02 0 0 1 0-1.42L8.955 3.5 10 4.563 2.682 12 10 19.438z'/%3E%3C/svg%3E") no-repeat 50% 50%; | ||||
|   -webkit-mask-size: cover; | ||||
|   mask-size: cover; | ||||
|   background-color: var(--weui-FG-0); | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__center { | ||||
|   font-size: 17px; | ||||
|   text-align: center; | ||||
|   position: relative; | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: center; | ||||
|   justify-content: center; | ||||
|   font-weight: bold; | ||||
|   flex: 1; | ||||
|   height: 100%; | ||||
| } | ||||
| 
 | ||||
| .weui-navigation-bar__loading { | ||||
|   margin-right: 4px; | ||||
|   align-items: center; | ||||
| } | ||||
| 
 | ||||
| .weui-loading { | ||||
|   font-size: 16px; | ||||
|   width: 16px; | ||||
|   height: 16px; | ||||
|   display: block; | ||||
|   background: transparent url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='80px' height='80px' viewBox='0 0 80 80' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Eloading%3C/title%3E%3Cdefs%3E%3ClinearGradient x1='94.0869141%25' y1='0%25' x2='94.0869141%25' y2='90.559082%25' id='linearGradient-1'%3E%3Cstop stop-color='%23606060' stop-opacity='0' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23606060' stop-opacity='0.3' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3ClinearGradient x1='100%25' y1='8.67370605%25' x2='100%25' y2='90.6286621%25' id='linearGradient-2'%3E%3Cstop stop-color='%23606060' offset='0%25'%3E%3C/stop%3E%3Cstop stop-color='%23606060' stop-opacity='0.3' offset='100%25'%3E%3C/stop%3E%3C/linearGradient%3E%3C/defs%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' opacity='0.9'%3E%3Cg%3E%3Cpath d='M40,0 C62.09139,0 80,17.90861 80,40 C80,62.09139 62.09139,80 40,80 L40,73 C58.2253967,73 73,58.2253967 73,40 C73,21.7746033 58.2253967,7 40,7 L40,0 Z' fill='url(%23linearGradient-1)'%3E%3C/path%3E%3Cpath d='M40,0 L40,7 C21.7746033,7 7,21.7746033 7,40 C7,58.2253967 21.7746033,73 40,73 L40,80 C17.90861,80 0,62.09139 0,40 C0,17.90861 17.90861,0 40,0 Z' fill='url(%23linearGradient-2)'%3E%3C/path%3E%3Ccircle id='Oval' fill='%23606060' cx='40.5' cy='3.5' r='3.5'%3E%3C/circle%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A") no-repeat; | ||||
|   background-size: 100%; | ||||
|   margin-left: 0; | ||||
|   animation: loading linear infinite 1s; | ||||
| } | ||||
| 
 | ||||
| @keyframes loading { | ||||
|   from { | ||||
|     transform: rotate(0); | ||||
|   } | ||||
|   to { | ||||
|     transform: rotate(360deg); | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,2 @@ | ||||
| // index.js
 | ||||
| Page({}) | ||||
| @ -0,0 +1,5 @@ | ||||
| { | ||||
|   "usingComponents": { | ||||
|     "navigation-bar": "/components/navigation-bar/navigation-bar" | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,22 @@ | ||||
| .top{ | ||||
|   background: #3a4861; | ||||
|   width:100%; | ||||
|   padding: 30rpx 0;  | ||||
| } | ||||
| .top.user-img{ | ||||
|   width: 252rpx; | ||||
|   margin: 0 auto; | ||||
| } | ||||
| .top image{ | ||||
|   width: 252rpx; | ||||
|   height: 252rpx; | ||||
|   border-radius: 50%; | ||||
|   border:  6px solid #777F92; | ||||
| } | ||||
| .menu.item{ | ||||
|   height: 96rpx; | ||||
|   line-height: 96rpx; | ||||
|   border-bottom: 2px solid #ccc; | ||||
|   padding: 0 40rpx; | ||||
|   font-size: 34rpx; | ||||
| } | ||||
| @ -0,0 +1,66 @@ | ||||
| // pages/logs/logs.js
 | ||||
| Page({ | ||||
| 
 | ||||
|   /** | ||||
|    * 页面的初始数据 | ||||
|    */ | ||||
|   data: { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 生命周期函数--监听页面加载 | ||||
|    */ | ||||
|   onLoad(options) { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 生命周期函数--监听页面初次渲染完成 | ||||
|    */ | ||||
|   onReady() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 生命周期函数--监听页面显示 | ||||
|    */ | ||||
|   onShow() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 生命周期函数--监听页面隐藏 | ||||
|    */ | ||||
|   onHide() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 生命周期函数--监听页面卸载 | ||||
|    */ | ||||
|   onUnload() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 页面相关事件处理函数--监听用户下拉动作 | ||||
|    */ | ||||
|   onPullDownRefresh() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 页面上拉触底事件的处理函数 | ||||
|    */ | ||||
|   onReachBottom() { | ||||
| 
 | ||||
|   }, | ||||
| 
 | ||||
|   /** | ||||
|    * 用户点击右上角分享 | ||||
|    */ | ||||
|   onShareAppMessage() { | ||||
| 
 | ||||
|   } | ||||
| }) | ||||
| @ -0,0 +1,3 @@ | ||||
| { | ||||
|   "usingComponents": {} | ||||
| } | ||||
| @ -0,0 +1,2 @@ | ||||
| <!--pages/logs/logs.wxml--> | ||||
| <text>pages/logs/logs.wxml</text> | ||||
| @ -0,0 +1 @@ | ||||
| /* pages/logs/logs.wxss */ | ||||
| @ -0,0 +1,2 @@ | ||||
| /**index.wxss**/ | ||||
| @import | ||||
| After Width: | Height: | Size: 102 KiB | 
| @ -0,0 +1,28 @@ | ||||
| { | ||||
|   "appid": "wx2d72f07adf0c3941", | ||||
|   "compileType": "miniprogram", | ||||
|   "libVersion": "3.3.4", | ||||
|   "packOptions": { | ||||
|     "ignore": [], | ||||
|     "include": [] | ||||
|   }, | ||||
|   "setting": { | ||||
|     "coverView": true, | ||||
|     "es6": true, | ||||
|     "postcss": true, | ||||
|     "minified": true, | ||||
|     "enhance": true, | ||||
|     "showShadowRootInWxmlPanel": true, | ||||
|     "packNpmRelationList": [], | ||||
|     "babelSetting": { | ||||
|       "ignore": [], | ||||
|       "disablePlugins": [], | ||||
|       "outputPath": "" | ||||
|     } | ||||
|   }, | ||||
|   "condition": {}, | ||||
|   "editorSetting": { | ||||
|     "tabIndent": "insertSpaces", | ||||
|     "tabSize": 2 | ||||
|   } | ||||
| } | ||||
| @ -0,0 +1,7 @@ | ||||
| { | ||||
|     "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", | ||||
|     "rules": [{ | ||||
|     "action": "allow", | ||||
|     "page": "*" | ||||
|     }] | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue