Initial Commit

sona155 1 year ago
commit be46130825

@ -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: {},
}

14
.gitignore vendored

@ -0,0 +1,14 @@
# Windows
[Dd]esktop.ini
Thumbs.db
$RECYCLE.BIN/
# macOS
.DS_Store
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
# Node.js
node_modules/

@ -0,0 +1,19 @@
// app.js
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
userInfo: null
}
})

@ -0,0 +1,53 @@
{
"pages":[
"pages/home/home",
"pages/my/my",
"pages/navigate/navigate",
"pages/index/index",
"pages/logs/logs",
"pages/message/message"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "航大云",
"navigationBarTextStyle":"black",
"enablePullDownRefresh": false
},
"tabBar": {
"borderStyle": "black",
"selectedColor": "#00BCD4",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/home/home",
"text": "首页",
"iconPath": "/static/home.png",
"selectedIconPath": "/static/home.png"
},
{
"pagePath": "pages/navigate/navigate",
"text": "导航",
"iconPath": "/static/navigate.png",
"selectedIconPath": "/static/navigate.png"
},
{
"pagePath": "pages/my/my",
"text": "个人中心",
"iconPath": "/static/my.png",
"selectedIconPath": "/static/my.png"
}
]
},
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将被用于小程序位置接口的效果展示"
}
},
"style": "v2",
"sitemapLocation": "sitemap.json"
}

@ -0,0 +1,10 @@
/**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,82 @@
// pages/home/home.js
Page({
/**
* 页面的初始数据
*/
data: {
swiperList:
[
{url:"https://s2.loli.net/2023/09/23/41Yw6HvduCrLnJo.png"},
{url:"https://s2.loli.net/2023/09/23/8cZ3VoNfFiLIQ4q.png"},
],
gridList:
[
{name:"课表",url:"/static/course.png"},
{name:"校历",url:"/static/schedule.png"},
{name:"通知",url:"/static/notice.png"},
],
messageList:
[
{id:1,url:"https://s2.loli.net/2023/09/23/IQoPKBG68JTRHht.png",message:"今天星期一"},
{id:2,url:"",message:"今天星期二"},
{id:3,url:"",message:"今天星期三"}
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,32 @@
<!--pages/home/home.wxml-->
<!--轮播图区域-->
<swiper class="home_swiper" indicator-dots="true" circular="true" autoplay="true" interval="3000">
<swiper-item class="swiper_item" wx:for="{{swiperList}}" wx:key="index">
<image class="swiper_img" src="{{item.url}}"></image>
</swiper-item>
</swiper>
<!--九宫格区域-->
<view class='grid-item-container'>
<block wx:for="{{gridList}}" wx:key="index">
<view class='grid-item-child'>
<view>
<image class='grid-item-img' src="{{item.url}}"></image>
<text class='grid-item-txt'>{{item.name}}</text>
</view>
</view>
</block>
</view>
<!--资讯区域-->
<view class="block">
<view class="title">校园资讯</view>
</view>
<view class="message" wx:for="{{messageList}}" wx:key="index">
<navigator class="message_item" url="pages/message/message?info_id={{item.url}}">
<image class="message_img" src="{{item.url}}"></image>
</navigator>
<view class="word">
<text class="text">{{item.message}}</text>
</view>
</view>

@ -0,0 +1,89 @@
/* pages/home/home.wxss */
/*轮播图样式*/
.home_swiper{
display: flex;
width: 100%;
height: 400rpx;
}
.swiper_img{
width: 100%;
height: 98%;
border-radius: 2%;
}
/*
九宫格容器布局样式
*/
.grid-item-container {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
border-top: 1rpx solid #efefef;
border-left: #efefef;
}
/*
item容器样式
*/
.grid-item-child {
display:flex;
flex-direction: column;
justify-content:center;
align-items: center;
width: 33.3%;
height: 200rpx;
background-color: #FFFFFF;
border-right: 1rpx solid #D9D9D9;
border-bottom: 1rpx solid #D9D9D9;
box-sizing: border-box;
}
.grid-item-img{
display: inline-block;
overflow: hidden;
width: 80rpx;
height: 80rpx;
margin-bottom: 30rpx;
}
.grid-item-txt{
font-size: 24rpx;
line-height: 1.5;
font-weight: bold;
}
/*资讯样式*/
.message{
display: flex;
padding: 15rpx;
border: 1rpx #efefef;
border-radius: 8rpx;
margin: 15rpx;
box-shadow: 1rpx 1rpx 15rpx #ddd;
}
.message_img{
width: 250rpx;
height:175rpx;
display: block;
margin-right: 15rpx;
}
.word{
display: flex;
flex-direction: column;
justify-content: space-around;
font-size: 24rpx;
}
.text{
font-weight: bold;
}
.block {
display: flex;
justify-content: center;
margin-top: 30rpx;
margin-bottom: 30rpx;
}
.title {
font-size: 36rpx;
font-weight: bold;
}

@ -0,0 +1,48 @@
// index.js
// 获取应用实例
const app = getApp()
Page({
data: {
motto: 'Hello World',
userInfo: {},
hasUserInfo: false,
canIUse: wx.canIUse('button.open-type.getUserInfo'),
canIUseGetUserProfile: false,
canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false
},
// 事件处理函数
bindViewTap() {
wx.navigateTo({
url: '../logs/logs'
})
},
onLoad() {
if (wx.getUserProfile) {
this.setData({
canIUseGetUserProfile: true
})
}
},
getUserProfile(e) {
// 推荐使用wx.getUserProfile获取用户信息开发者每次通过该接口获取用户个人信息均需用户确认开发者妥善保管用户快速填写的头像昵称避免重复弹窗
wx.getUserProfile({
desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(res)
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
},
getUserInfo(e) {
// 不推荐使用getUserInfo获取用户信息预计自2021年4月13日起getUserInfo将不再弹出弹窗并直接返回匿名的用户个人信息
console.log(e)
this.setData({
userInfo: e.detail.userInfo,
hasUserInfo: true
})
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,23 @@
<!--index.wxml-->
<view class="container">
<view class="userinfo">
<block wx:if="{{canIUseOpenData}}">
<view class="userinfo-avatar" bindtap="bindViewTap">
<open-data type="userAvatarUrl"></open-data>
</view>
<open-data type="userNickName"></open-data>
</block>
<block wx:elif="{{!hasUserInfo}}">
<button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
<button wx:elif="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
<view wx:else> 请使用1.4.4及以上版本基础库 </view>
</block>
<block wx:else>
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
</block>
</view>
<view class="usermotto">
<text class="user-motto">{{motto}}</text>
</view>
</view>

@ -0,0 +1,19 @@
/**index.wxss**/
.userinfo {
display: flex;
flex-direction: column;
align-items: center;
color: #aaa;
}
.userinfo-avatar {
overflow: hidden;
width: 128rpx;
height: 128rpx;
margin: 20rpx;
border-radius: 50%;
}
.usermotto {
margin-top: 200px;
}

@ -0,0 +1,18 @@
// logs.js
const util = require('../../utils/util.js')
Page({
data: {
logs: []
},
onLoad() {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(log => {
return {
date: util.formatTime(new Date(log)),
timeStamp: log
}
})
})
}
})

@ -0,0 +1,4 @@
{
"navigationBarTitleText": "查看启动日志",
"usingComponents": {}
}

@ -0,0 +1,6 @@
<!--logs.wxml-->
<view class="container log-list">
<block wx:for="{{logs}}" wx:key="timeStamp" wx:for-item="log">
<text class="log-item">{{index + 1}}. {{log.date}}</text>
</block>
</view>

@ -0,0 +1,8 @@
.log-list {
display: flex;
flex-direction: column;
padding: 40rpx;
}
.log-item {
margin: 10rpx;
}

@ -0,0 +1,66 @@
// pages/message/message.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,2 @@
<!--pages/message/message.wxml-->
<text>pages/message/message.wxml</text>

@ -0,0 +1 @@
/* pages/message/message.wxss */

@ -0,0 +1,65 @@
// pages/my/my.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,65 @@
<!--pages/Personal/Personal.wxml-->
<view class="top_img" >
<view class="my_iocn">
<image src="https://s2.loli.net/2023/09/23/Z47iIRVULOcA15m.jpg"></image>
<view class="myname">z默</view>
<view class="xinzuo_xx">
<view><text class="iconfont icon-sousuo1" style="color: red;font-size: 12px;"></text> 天秤座</view>
<view>帅气小马哥</view>
<view >软件工程</view>
<view class="r_jt"><text class="iconfont icon-icon-arrow-right2"></text></view>
</view>
<view class="btu" bindtap="tiao_yemian" hover-class="butto1"><text class="iconfont icon-bianji"></text> 编辑资料</view>
</view>
</view>
<view class="h_topbianti">
<view class="{{curNav == 1 ? 'active' : ''}}" data-id="1" bindtap="switchRightTab">主页<view></view></view>
<view class="{{curNav == 2 ? 'active' : ''}}" data-id="2" bindtap="switchRightTab">xx<view>
</view>
</view>
</view>
<view class="neir_b" wx:if="{{curNav==2}}">
<view class="shuquan">
<image src="{{user_xinxis.userimg}}"></image>
<view class="name">{{user_xinxis.nname}}</view>
<view class="shuo">{{shuquan[0].shuoshuo}}</view>
<view class="book">
<image src="{{tuijian_books[0].b_imgsrc}}"></image>
<view class="r_txt">
<text>{{tuijian_books[0].b_name}}</text>
<view>{{tuijian_books[0].b_author}}</view>
</view>
</view>
<view class="bup_li">
<view class="times">{{shuquan[0].times}}</view>
<view class="r_icon">
<text class="iconfont icon-tuijian"></text>
<text class="nums"> {{shuquan[0].dianzan}} </text>
<text class="iconfont icon-pinglun"></text>
<text class="nums"> {{shuquan[0].pinglun}} </text>
</view>
</view>
</view>
<view class="shuquan">
<image src="{{user_xinxis.userimg}}"></image>
<view class="name">{{user_xinxis.nname}}</view>
<view class="shuo">{{shuquan[1].shuoshuo}}</view>
<view class="book">
<image src="{{tuijian_books[1].b_imgsrc}}"></image>
<view class="r_txt">
<text>{{tuijian_books[1].b_name}}</text>
<view>{{tuijian_books[1].b_author}}</view>
</view>
</view>
<view class="bup_li">
<view class="times">{{shuquan[1].times}}</view>
<view class="r_icon">
<text class="iconfont icon-tuijian"></text>
<text class="nums"> {{shuquan[1].dianzan}} </text>
<text class="iconfont icon-pinglun"></text>
<text class="nums"> {{shuquan[1].pinglun}} </text>
</view>
</view>
</view>
</view>

@ -0,0 +1,256 @@
/* pages/Personal/Personal.wxss */
page{
background-color: #fff;
}
.top_img{
width: 100%;
height: 40vw;
background-color: rgb(235, 128, 163);
/* background: no-repeat; */
background: url(https://s2.loli.net/2023/09/23/M59qI7ty18ElgKw.png) no-repeat;
background-size: 100% 100%;
position: relative;
margin-bottom: 120px;
}
.top_img .my_iocn{
width: 90%;
height: 160px;
background-color: rgba(255, 255, 255, 0.5);
position: absolute;
left: 5%;
bottom: -70%;
border-radius: 10px;
z-index: 99;
/* opacity: .5; */
box-shadow: 2px 2px 2px 1px #dad7d7;
}
.top_img .my_iocn image{
width: 78px;
height: 78px;
background-color: #000000;
border-radius: 50%;
/* opacity: 1; */
margin-left: 36.5%;
margin-top: -10%;
border: 2px solid #fff;
}
.top_img .my_iocn .myname{
text-align: center;
font-weight: 800;
font-size: 18px;
}
.top_img .my_iocn .btu{
width: auto !important;
padding: 0 10px;
height: 20px;
font-size: 11px;
line-height: 20px;
position: absolute;
left: 40%;
bottom: 20px;
border-radius: 10px;
border: 1rpx solid #a7a7a7;
}
.top_img .my_iocn .btu text{
line-height: 20px;
font-size: 10px;
padding: 0;
}
.xinzuo_xx{
width: 80% ;
height: 20px;
margin: 0 auto;
margin-top: 10px;
/* background-color: aqua; */
line-height: 20px;
position: relative;
}
.xinzuo_xx view{
text-align: center;
min-width: 2%;
width: auto !important;
padding: 0 1%;
font-size: 12px;
border: 1rpx solid #a7a7a7;
border-radius: 10px;
margin-left: 4%;
float: left;
}
.xinzuo_xx .r_jt{
position: absolute;
right: 0;
top: 0;
}
.xinzuo_xx view:nth-child(1){
margin-left: 0;
border-radius: 5px;
}
.neir_b{
width: 100%;
min-height: 400px;
height: auto !important;
/* background-color: blueviolet; */
}
.h_topbianti{
width: 50%;
margin: 0 auto;
height: 20px;
text-align: center;
}
.h_topbianti view{
width: 20%;
/* height: 20px; */
/* background-color: blueviolet; */
margin-left: 20%;
float: left;
/* margin-top: 10px; */
/* line-height: 0px; */
}
.h_topbianti view view{
width: 80%;
height: 6px;
background: linear-gradient(to right,#1D5AD3,#528AF6);
border-radius: 10px;
opacity: 0;
margin-left: 10%;
}
.h_topbianti view.active{
/* background: #fff; */
font-weight: 600;
}
.h_topbianti view.active view{
opacity: 1;
}
/* basic */
.basic{
width: 90%;
height: 160px;
background-color: #fff;
margin: 20px auto;
border-radius: 10px;
box-shadow: 1px 1px 8rpx 3rpx #c9c9c9;
padding: 20px 0 0 20px;
line-height: 25px;
}
.basic .li{
width: 100%;
height: 40px;
margin: 10px 0;
}
.basic .li text{
display: flexbox;
width: 40px;
height: 40px;
float: left;
background: #6CA3FC;
font-size: 28px;
line-height: 40px;
color: #fff;
border-radius: 10px;
text-align: center;
}
.basic .li .icon_r{
float: left;
font-size: 14px;
height: 40px;
margin-left: 20px;
}
.basic .li .icon_r view{
height: 20px;
line-height: 20px;
}
.basic .li .icon_r view:nth-child(1){
font-weight: 600;
}
.basic .li .icon_r view:nth-child(2){
font-size: 10px;
color: #C8C8C8;
}
/* shuquan */
.shuquan{
width: 90%;
height: 205px;
margin: 20px auto;
/* background-color: rgb(151, 144, 158); */
/* border-radius: 10px; */
overflow: hidden;
}
.shuquan image{
width: 42px;
height: 42px;
background-color: #000000;
border-radius: 50%;
float: left;
}
.shuquan .name{
height: 42px;
float: left;
line-height: 42px;
margin-left: 12px;
font-weight: 800;
font-size: 18px;
}
.shuquan .shuo{
width: 96%;
height: 60px;
margin: 0 auto;
margin-top: 52px;
line-height: 20px;
/* background-color: cadetblue; */
overflow: hidden;
}
.shuquan .book{
width: 90%;
height: 52px;
margin: 10px 5% 0 5%;
background-color: #E5E5E5;
border-radius: 5px;
padding: 5px 10px;
}
.shuquan .book image{
width: 28px;
height: 42px;
background-color: #000000;
border-radius: 4px;
float: left;
}
.shuquan .book .r_txt{
float: left;
margin-left: 10px;
font-size: 14px;
}
.shuquan .book .r_txt view{
line-height: 22px;
font-size: 12px;
color: #9B9B9B;
}
.shuquan .bup_li{
height: 20px;
margin-top: 8px;
/* background-color: chocolate; */
color: #BBBBBB;
}
.shuquan .bup_li .times{
float: left;
}
.shuquan .bup_li .r_icon{
width: 45%;
height: 100%;
/* background-color: cornflowerblue; */
float: right;
}
.shuquan .bup_li .r_icon .nums{
font-size: 12px;
margin-right: 10px;
}

@ -0,0 +1,119 @@
// pages/navigate/navigate.js
Page({
/**
* 页面的初始数据
*/
data: {
subkey:'NS4BZ-A5GK3-MAA3K-OT63P-S3CHS-PSBKH',
scale:16,
enable3d: false,
showLocation: true,//是否显示定位
showCompass: false,
enanleOverlooking: false,//是否俯视视角
enableZoom: true,
enableScroll: true,
enableRotate: false,//是否可旋转
drawPolygon: false,//多边形
enableSatellite: false,//是否启用卫星影像
enableTraffic: false,//是否启用交通流量
longitude:'117.3523',
latitude: '39.109123',
markers:[
{
'id':1,
"latitude":39.11032674145096,
"longitude":117.34284579482159,
'width':32,
'height':32
}
],
circles:[],
polylishes:[],
polygons:[],
showDialog:true,
currentMarker:null
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
this.mapCtx = wx.createMapContext('map')
this.mapCtx.moveToLocation()
},
//获取位置
getCenterLocation: function () {
var that = this
that.mapCtx.getCenterLocation({
success: function (res) {
console.log('经度',res.longitude)
console.log('纬度',res.latitude)
that.setData({
location: '经度:' + res.longitude + '纬度:'+res.latitude
})
}
})
},
handleMarkerTap(e){
consle.log(e);
const marker = this.data.markers.find(item =>item.id==e.markerId);
marker && this.setData({
currentMarker:marker,
showDialog:true
});
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"usingComponents": {}
}

@ -0,0 +1,32 @@
<view class="contentView">
<view class="mapView">
<map id="map"
subkey="{{subkey}}"
style="width: 100%; height: 100%;"
latitude="{{latitude}}"
longitude="{{longitude}}"
scale="{{scale}}"
markers="{{makers}}"
circles="={{circles}}"
polyline="{{polylines}}"
polygons="{{polygons}}"
enable-3D="{{enable3d}}"
show-location="{{showLoaction}}"
show-compass="{{showCompass}}"
enable-zoom="{{enableZoom}}"
enable-rotate="{{enableRotate}}"
enable-satellite="{{enableSatellite}}"
enable-traffic="{{enbaleTraffic}}"
enable-overlooking="{{enbleOverlooking}}"
bindmarkertap="handleMarkerTap"
>
</map>
</view>
<mp-halfScreenDialog show="{{showDialog}}">
<view slot="title">{{currenMarker.name}}</view>
<view slot="desc"></view>
<view slot="footer">
<button type="primary" class="weui-btn" bindtap="navi1">开始导航</button>
</view>
</mp-halfScreenDialog>
</view>

@ -0,0 +1,9 @@
/* pages/navigate/navigate.wxss */
.contentView{
width: 100%
}
.mapView{
box-sizing: border-box;
padding:30rpx,30rpx,0,30rpx;
}

@ -0,0 +1,52 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": [],
"include": []
},
"setting": {
"bundle": false,
"userConfirmedBundleSwitch": false,
"urlCheck": true,
"scopeDataCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"preloadBackgroundData": false,
"minified": true,
"autoAudits": false,
"newFeature": false,
"uglifyFileName": true,
"uploadWithSourceMap": true,
"useIsolateContext": true,
"nodeModules": false,
"enhance": true,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"showShadowRootInWxmlPanel": true,
"packNpmManually": false,
"enableEngineNative": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"showES6CompileOption": false,
"minifyWXML": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"condition": false
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
"appid": "wx68b223904029d7a9",
"projectname": "miniprogram-92",
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}

@ -0,0 +1,9 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "miniprogram-3",
"setting": {
"compileHotReLoad": true,
"urlCheck": false,
"bigPackageSizeSupport": true
}
}

@ -0,0 +1,7 @@
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

@ -0,0 +1,19 @@
const formatTime = date => {
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
const hour = date.getHours()
const minute = date.getMinutes()
const second = date.getSeconds()
return `${[year, month, day].map(formatNumber).join('/')} ${[hour, minute, second].map(formatNumber).join(':')}`
}
const formatNumber = n => {
n = n.toString()
return n[1] ? n : `0${n}`
}
module.exports = {
formatTime
}
Loading…
Cancel
Save