Repository: qq273681448/TimeTable
Branch: master
Commit: fc40618dcb6f
Files: 13
Total size: 5.4 KB
Directory structure:
gitextract_5iyk_n_u/
├── README.md
├── app.js
├── app.json
├── app.wxss
├── pages/
│ ├── index/
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── logs/
│ ├── logs.js
│ ├── logs.json
│ ├── logs.wxml
│ └── logs.wxss
└── utils/
└── util.js
================================================
FILE CONTENTS
================================================
================================================
FILE: README.md
================================================
# TimeTable
微信小程序课程表,漂亮简洁大方。<br>
博客https://juejin.im/post/593246bd2f301e005840e37f
<br>




================================================
FILE: app.js
================================================
//app.js
App({
onLaunch: function () {
//调用API从本地缓存中获取数据
var logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
},
getUserInfo:function(cb){
var that = this
if(this.globalData.userInfo){
typeof cb == "function" && cb(this.globalData.userInfo)
}else{
//调用登录接口
wx.login({
success: function () {
wx.getUserInfo({
success: function (res) {
that.globalData.userInfo = res.userInfo
typeof cb == "function" && cb(that.globalData.userInfo)
}
})
}
})
}
},
globalData:{
userInfo:null
}
})
================================================
FILE: app.json
================================================
{
"pages":[
"pages/index/index",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle": "dark",
"navigationBarTitleText": "TimeTable",
"navigationBarBackgroundColor": "#7cba23",
"navigationBarTextStyle": "light"
}
}
================================================
FILE: app.wxss
================================================
/**app.wxss**/
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 200rpx 0;
box-sizing: border-box;
}
================================================
FILE: pages/index/index.js
================================================
//index.js
//获取应用实例
var app = getApp()
Page({
data: {
colorArrays: [ "#85B8CF", "#90C652", "#D8AA5A", "#FC9F9D", "#0A9A84", "#61BC69", "#12AEF3", "#E29AAD"],
wlist: [
{ "xqj": 1, "skjc": 1, "skcd": 3, "kcmc": "高等数学@教A-301" },
{ "xqj": 1, "skjc": 5, "skcd": 3, "kcmc": "高等数学@教A-301" },
{ "xqj": 2, "skjc": 1, "skcd": 2,"kcmc":"高等数学@教A-301"},
{ "xqj": 2, "skjc": 8, "skcd": 2, "kcmc": "高等数学@教A-301" },
{ "xqj": 3, "skjc": 4, "skcd": 1, "kcmc": "高等数学@教A-301" },
{ "xqj": 3, "skjc": 8, "skcd": 1, "kcmc": "高等数学@教A-301" },
{ "xqj": 3, "skjc": 5, "skcd": 2, "kcmc": "高等数学@教A-301" },
{ "xqj": 4, "skjc": 2, "skcd": 3, "kcmc": "高等数学@教A-301" },
{ "xqj": 4, "skjc": 8, "skcd": 2, "kcmc": "高等数学@教A-301" },
{ "xqj": 5, "skjc": 1, "skcd": 2, "kcmc": "高等数学@教A-301" },
{ "xqj": 6, "skjc": 3, "skcd": 2, "kcmc": "高等数学@教A-301" },
{ "xqj": 7, "skjc": 5, "skcd": 3, "kcmc": "高等数学@教A-301" },
]
},
onLoad: function () {
console.log('onLoad')
}
})
================================================
FILE: pages/index/index.json
================================================
{}
================================================
FILE: pages/index/index.wxml
================================================
<!--index.wxml-->
<view class="top">
<view wx:for="{{['一','二','三','四','五','六','日']}}" class="top-text">周{{item}}</view>
</view>
<scroll-view scroll-y="true" class="scroll">
<view style="height:1200rpx;width:730rpx;display:flex;">
<view style="background-color:#D2E6B3;color:#7cba23;">
<view wx:for="{{[1,2,3,4,5,6,7,8,9,10,11,12]}}" class="left">
{{item}}
</view>
</view>
<view wx:for="{{[1,2,3,4,5,6,7,8,9,10,11,12]}}">
<view style="width:750rpx;margin-top:{{(index+1)*100}}rpx; position: absolute;border-bottom:1rpx solid {{index==3?'red':'lightgray'}};">
</view>
</view>
<!--课表-->
<view wx:for="{{wlist}}">
<view class="flex-item kcb-item" bindtap="showCardView" data-statu="open" data-index="{{index}}" style="margin-left:{{(item.xqj-1)*100}}rpx;margin-top:{{(item.skjc-1)*100+5}}rpx;height:{{item.skcd*100-5}}rpx;background-color:{{colorArrays[index%9]}}">
<view class="smalltext" >{{item.kcmc}}</view>
</view>
</view>
</view>
</scroll-view>
================================================
FILE: pages/index/index.wxss
================================================
/**index.wxss**/
.flex-item {
width: 95rpx;
height: 100px;
}
.kcb-item {
position: absolute;
justify-content: center;
display: flex;
align-items: center;
border-radius: 5px;
}
.smalltext {
font-size: 8pt;
color: #fff;
padding-left: 2px;
}
.top {
display: flex;
flex-direction: row;
margin-left: 35rpx;
background-color: #d2e6b3;
color: #7cba23;
}
.top-text {
width: 100rpx;
height: 35rpx;
font-size: 9pt;
justify-content: center;
display: flex;
align-items: center;
}
.scroll {
height: 1170rpx;
z-index: 101;
position: fixed;
}
.left {
width: 35rpx;
height: 100rpx;
font-size: 9pt;
justify-content: center;
display: flex;
align-items: center;
}
================================================
FILE: pages/logs/logs.js
================================================
//logs.js
var util = require('../../utils/util.js')
Page({
data: {
logs: []
},
onLoad: function () {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(function (log) {
return util.formatTime(new Date(log))
})
})
}
})
================================================
FILE: pages/logs/logs.json
================================================
{
"navigationBarTitleText": "查看启动日志"
}
================================================
FILE: pages/logs/logs.wxml
================================================
<!--logs.wxml-->
<view class="container log-list">
<block wx:for="{{logs}}" wx:for-item="log" wx:key="*this">
<text class="log-item">{{index + 1}}. {{log}}</text>
</block>
</view>
================================================
FILE: pages/logs/logs.wxss
================================================
.log-list {
display: flex;
flex-direction: column;
padding: 40rpx;
}
.log-item {
margin: 10rpx;
}
================================================
FILE: utils/util.js
================================================
function formatTime(date) {
var year = date.getFullYear()
var month = date.getMonth() + 1
var day = date.getDate()
var hour = date.getHours()
var minute = date.getMinutes()
var second = date.getSeconds()
return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
}
function formatNumber(n) {
n = n.toString()
return n[1] ? n : '0' + n
}
module.exports = {
formatTime: formatTime
}
gitextract_5iyk_n_u/
├── README.md
├── app.js
├── app.json
├── app.wxss
├── pages/
│ ├── index/
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── logs/
│ ├── logs.js
│ ├── logs.json
│ ├── logs.wxml
│ └── logs.wxss
└── utils/
└── util.js
SYMBOL INDEX (2 symbols across 1 files)
FILE: utils/util.js
function formatTime (line 1) | function formatTime(date) {
function formatNumber (line 14) | function formatNumber(n) {
Condensed preview — 13 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (7K chars).
[
{
"path": "README.md",
"chars": 360,
"preview": "# TimeTable\n微信小程序课程表,漂亮简洁大方。<br>\n博客https://juejin.im/post/593246bd2f301e005840e37f\n<br>\n {\r\n //调用API从本地缓存中获取数据\r\n var logs = wx.getStorageSync('logs') || []\r\n l"
},
{
"path": "app.json",
"chars": 260,
"preview": "{\r\n \"pages\":[\r\n \"pages/index/index\",\r\n \"pages/logs/logs\"\r\n ],\r\n \"window\":{\r\n \"backgroundTextStyle\": \"dark\",\r"
},
{
"path": "app.wxss",
"chars": 204,
"preview": "/**app.wxss**/\r\n.container {\r\n height: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n ju"
},
{
"path": "pages/index/index.js",
"chars": 1064,
"preview": "//index.js\r\n//获取应用实例\r\nvar app = getApp()\r\nPage({\r\n data: {\r\n colorArrays: [ \"#85B8CF\", \"#90C652\", \"#D8AA5A\", \"#FC9F9"
},
{
"path": "pages/index/index.json",
"chars": 2,
"preview": "{}"
},
{
"path": "pages/index/index.wxml",
"chars": 1057,
"preview": "<!--index.wxml-->\r\n<view class=\"top\">\r\n <view wx:for=\"{{['一','二','三','四','五','六','日']}}\" class=\"top-text\">周{{item}}</vi"
},
{
"path": "pages/index/index.wxss",
"chars": 764,
"preview": "/**index.wxss**/\r\n\r\n.flex-item {\r\n width: 95rpx;\r\n height: 100px;\r\n}\r\n\r\n.kcb-item {\r\n position: absolute;\r\n justify-"
},
{
"path": "pages/logs/logs.js",
"chars": 280,
"preview": "//logs.js\r\nvar util = require('../../utils/util.js')\r\nPage({\r\n data: {\r\n logs: []\r\n },\r\n onLoad: function () {\r\n "
},
{
"path": "pages/logs/logs.json",
"chars": 44,
"preview": "{\r\n \"navigationBarTitleText\": \"查看启动日志\"\r\n}"
},
{
"path": "pages/logs/logs.wxml",
"chars": 194,
"preview": "<!--logs.wxml-->\r\n<view class=\"container log-list\">\r\n <block wx:for=\"{{logs}}\" wx:for-item=\"log\" wx:key=\"*this\">\r\n <"
},
{
"path": "pages/logs/logs.wxss",
"chars": 114,
"preview": ".log-list {\r\n display: flex;\r\n flex-direction: column;\r\n padding: 40rpx;\r\n}\r\n.log-item {\r\n margin: 10rpx;\r\n}\r\n"
},
{
"path": "utils/util.js",
"chars": 481,
"preview": "function formatTime(date) {\r\n var year = date.getFullYear()\r\n var month = date.getMonth() + 1\r\n var day = date.getDat"
}
]
About this extraction
This page contains the full source code of the qq273681448/TimeTable GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 13 files (5.4 KB), approximately 2.3k tokens, and a symbol index with 2 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.