本次修改的内容为

main
yangqinxi 5 months ago
parent b6efe40828
commit c6fb775586

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

BIN
1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 KiB

BIN
2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

BIN
3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 KiB

BIN
4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

@ -1,2 +1,3 @@
# qimokao # qimokao
![https://b23.tv/IYbVzhU
](./4.png)

@ -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,38 @@
{
"pages":[
"pages/index/index",
"pages/history/history",
"pages/apply/apply"
],
"entryPagePath": "pages/index/index",
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "中国古代数学",
"navigationBarTextStyle":"black"
},
"tabBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/pages/images/a.png",
"selectedIconPath": "/pages/images/a1.png"
},
{
"pagePath": "pages/history/history",
"text": "历史",
"iconPath": "/pages/images/b.png",
"selectedIconPath": "/pages/images/b1.png"
},
{
"pagePath": "pages/apply/apply",
"text": "应用",
"iconPath": "/pages/images/d.png",
"selectedIconPath": "/pages/images/d1.png"
}
]
},
"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,66 @@
// pages/apply/apply.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

@ -0,0 +1,3 @@
{
"navigationBarTitleText": "应用"
}

@ -0,0 +1,48 @@
<!--pages/apply/apply.wxml-->
<view class="head">
<image src="/pages/images/8.png" mode=""/>
</view>
<view class="new">
<view class="title">
<text>【中国古代数学应用】</text>
</view>
<scroll-view scroll-x>
<view class="pros">
<view class="pro">
<image src="/pages/images/1.jpg" />
</view>
<view class="pro">
<image src="/pages/images/2.jpg" />
</view>
<view class="pro">
<image src="/pages/images/3.jpg" />
</view>
<view class="pro">
<image src="/pages/images/4.jpg" />
</view>
<view class="pro">
<image src="/pages/images/5.jpg" />
</view>
</view>
</scroll-view>
</view>
<view class="version">
<text>
中国古代数学还涉及到许多其他方面如天文学、航海、工程等。在古代的天文学y研究中数学起到了至关重要的作用如利用勾股定理等数学知识来计算天文数据和星体位置。
在航海方面,中国古代数学也有着广泛的应用,如通过计算航路和确定航行速度等,以保证船舶的安全航行。此外,中国古代数学在工程领域也有着重要的应用,如利用算盘等工具进行计算和测量,以确保建筑工程的质量和安全。
总之,中国古代数学的应用非常广泛和深入,不仅涉及到各个领域,而且为古代中国的经济发展、社会进步和科技发展做出了重要的贡献。
除了以上提到的应用场景,中国古代数学还与古代的科技发展有着密切的联系。例如,在机械制造方面,数学被用于设计和制造各种复杂的机械装置,如水车、纺织机等。此外,在医学领域,中国古代数学也发挥了重要作用,如通过计算人体比例和尺寸来设计医疗器械和药物配方。
总的来说,中国古代数学的应用是多元而广泛的,不仅涉及到了经济、社会和科技的发展,更在一定程度上推动了古代文明的发展和进步。这些数学的应用,不仅仅是为了解决实际问题,更是在实践中孕育出了独特的数学思想和理念,为中国古代的数学发展注入了源源不断的动力。
当然,除了上述的例子,中国古代数学的应用还体现在其他许多方面。例如,在教育领域,数学被广泛应用于培养学生的计算和推理能力,为未来的社会发展培养了一批又一批的优秀人才。
同时,中国古代数学的应用也体现在文学和艺术领域。例如,在诗词中,数学意象和数学思维被广泛应用,如“一寸光阴一寸金,金是光阴之积”等诗句,就运用了比例和乘法的知识。而在绘画中,在绘画方面,如“黄金分割”等理念,也被用于设计画面的布局和比例,在古代绘画中得到了广泛应用。
综上所述,中国古代数学的应用是多元而广泛的,它不仅推动了古代社会的经济发展、科技进步和文明发展,还在各个领域中孕育出了独特的数学思想和理念,为后人留下了宝贵的文化遗产。</text>
</view>

@ -0,0 +1,56 @@
/* pages/apply/apply.wxss */
page{
height:100%;
}
.head{
width: 100%;
height: 30%;
}
.head image{
width: 100%;
height: 100%;
}
.new{
width: 100%;
height: 30%;
border: 1rpx solid black;
}
/* 标题 */
.new .title{
width: 100%;
height: 20%;
border: 1rpx solid blanchedalmond;
text-align: center;
}
/* 产品 */
scroll-view{
width: 100%;
height: 80%;
border: 1rpx solid black;
}
.pros{
width: 100%;
height: 100%;
white-space: nowrap;
}
.pros .pro{
/* flex-shrink: 0; */
width: 30%;
height: 100%;
border: 1rpx solid black;
display: inline-block;
}
.pros .pro image{
width: 100%;
height: 100%;
}
.version{
width: 100%;
border: 1rpx solid black;
}

@ -0,0 +1,119 @@
// pages/history/history.js
Page({
/**
* 页面的初始数据
*/
data: {
index:0,
pros:[
{
url:"/pages/images/11.jpg"
},
{
url:"/pages/images/22.jpg"
},
{
url:"/pages/images/33.jpg"
},
{
url:"/pages/images/44.jpg"
},
{
url:"/pages/images/55.jpg"
}
]
},
navclick(event){
console.log("进入点击事件");
console.log(event.target.dataset.index);
this.setData({
index:event.target.dataset.index
})
 var index =event.target.dataset.index;
   var result=null;
  if(index==0){
    result=[
{
url:"/pages/images/11.jpg"
},
{
url:"/pages/images/22.jpg"
},
{
url:"/pages/images/33.jpg"
},
{
url:"/pages/images/44.jpg"
},
{
url:"/pages/images/55.jpg"
}
  ];
  }else if(index==1){
    result=[
{
url:"/pages/images/21.png"
},
{
url:"/pages/images/22.png"
},
{
url:"/pages/images/23.png"
},
{
url:"/pages/images/24.png"
},
{
url:"/pages/images/25.png"
},
{
url:"/pages/images/26.png"
},
{
url:"/pages/images/27.png"
},
{
url:"/pages/images/28.png"
}
];
}else{
result=[ {
url:"/pages/images/11.png"
},
{
url:"/pages/images/12.png"
},
{
url:"/pages/images/13.png"
},
{
url:"/pages/images/14.png"
},
{
url:"/pages/images/15.png"
},
{
url:"/pages/images/16.png"
},
{
url:"/pages/images/17.png"
},
{
url:"/pages/images/18.png"
},
{
url:"/pages/images/19.png"
},
{
url:"/pages/images/20.png"
}
]}
 this.setData({
pros:result
})
  }
}
)

@ -0,0 +1,4 @@
{
"navigationBarTitleText": "历史",
"usingComponents": {}
}

@ -0,0 +1,23 @@
<!--pages/history/history.wxml-->
<view class="navs">
<view class="nav">
<view bindtap="navclick"data-index="0"class="{{index==0?'active':''}}">发展历程</view>
</view>
<view class="nav">
<view bindtap="navclick"data-index="1"class="{{index==1?'active':''}}">杰出成就</view>
</view>
<view class="nav">
<view bindtap="navclick"data-index="2"class="{{index==2?'active':''}}">著名学者</view>
</view>
<view class="bottom"></view>
<view class="container"></view>
</view>
<view class="{{cname}}" bindtap="clselect"></view>
<block wx:for="{{pros}}">
<view class="opart">
<image src="{{item.url}}"></image>
</view>
</block>

@ -0,0 +1,84 @@
/* pages/history/history.wxss */
page{
height:100%;
}
/* 头部 */
.navs{
width: 100%;
height: 6%;
border: 1rpx solid rgb(121, 121, 121);
display: flex;
flex-direction: row;
}
.navs .nav{
width: 33%;
height: 100%;
border: 1rpx solid rgb(121, 121, 121);
display: flex;
flex-direction: row;
justify-content: center;
}
.navs .nav .active{
background-color: #eee;
}
/*flex*/
.opart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(77, 77, 77);
}
.opart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(121, 121, 121);
}
.opart image{
height: 100%;
width: 100%;
}
.twpart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(121, 121, 121);
}
.twpart image{
height: 100%;
width: 100%;
}
.thpart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(121, 121, 121);
}
.thpart image{
height: 100%;
width: 100%;
}
.fopart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(121, 121, 121);
}
.fopart image{
height: 100%;
width: 100%;
}
.fipart{
height: 30%;
width: 100%;
border: 1rpx solid rgb(121, 121, 121);
}
.fipart image{
height: 100%;
width: 100%;
}
/*底部*/
.botton{
width: 100%;
height:50%;
border:1rpx solid red;
display: flex;
flex-direction: column;
justify-content: space-between;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 929 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,53 @@
// index.js
const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
Page({
data: {
simgUrl:[
"/pages/images/2.png",
"/pages/images/3.png",
"/pages/images/4.png",
"/pages/images/5.png",
"/pages/images/6.png"
],
navList:[
{
iconUrl:"/pages/images/a.png",
iconName:"历史",
},
{
iconUrl:"/data (1)/icons/category/c2.png",
iconName:"电子产品",
},
{
iconUrl:"/data (1)/icons/category/c3.png",
iconName:"化妆品",
},
{
iconUrl:"/data (1)/icons/category/c4.png",
iconName:"鞋类",
},
{
iconUrl:"/data (1)/icons/category/c5.png",
iconName:"衣服",
},
{
iconUrl:"/data (1)/icons/category/c6.png",
iconName:"珠宝",
},
]
},
getUserProfile(e) {
// 推荐使用wx.getUserProfile获取用户信息开发者每次通过该接口获取用户个人信息均需用户确认开发者妥善保管用户快速填写的头像昵称避免重复弹窗
wx.getUserProfile({
desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(res)
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
},
})

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

@ -0,0 +1,41 @@
<!-- 第一部分 头部-->
<view class="head">
<image src="/pages/images/1.png" mode=""/>
</view>
<!--第二部分 轮播图-->
<view class="banner">
<swiper autoplay="ture" indicator-dots="true" interval="1500" circular="ture">
<block wx:for="{{simgUrl}}" wx:key="index">
<swiper-item>
<image src="{{item}}" mode=""/>
</swiper-item>
</block>
</swiper>
</view>
<!-- 第三部分 导航栏-->
<view class="grids">
<view class="item">
<image src="/pages/images/aa.png"/>
<text>历史</text>
</view>
<view class="item">
<image src="/pages/images/bb.png"/>
<text>题目</text>
</view>
<view class="item">
<image src="/pages/images/cc.png"/>
<text>故事</text>
</view>
<view class="item">
<image src="/pages/images/dd.png"/>
<text>交流</text>
</view>
<view class="item">
<image src="/pages/images/ee.png"/>
<text>学习</text>
</view>
<view class="item">
<image src="/pages/images/ff.png"/>
<text>应用</text>
</view>
</view>

@ -0,0 +1,70 @@
/* pages/index/index.wxss */
page{
height:100%;
}
.head{
width: 100%;
height: 25%;
}
.head image{
width: 100%;
height: 100%;
}
.banner{
width: 100%;
height: 35%;
}
.banner swiper{
width: 100%;
height: 100%;
}
.banner swiper image{
width: 100%;
height: 100%;
}
.grids{
display: flex;
flex-wrap: wrap;
}
.grids .item{
width: 250rpx;
height: 250rpx;
border-right:1rpx solid #eee ;
border-bottom:1rpx solid #eee;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items:center;
}
.grids .item:nth-child(3){
border-right: 0;
}
.grids .item:nth-child(6){
border-right: 0;
}
.grids .item:nth-child(9){
border-right: 0;
}
.grids .item image{
width: 80rpx;
height: 80rpx;
}
.grids .item text{
color: rgb(14, 13, 13);
font-size: 28rpx;
margin-top: 20rpx;
}

@ -0,0 +1,29 @@
{
"compileType": "miniprogram",
"libVersion": "trial",
"setting": {
"coverView": true,
"es6": true,
"postcss": true,
"minified": true,
"enhance": true,
"showShadowRootInWxmlPanel": true,
"packNpmRelationList": [],
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"ignoreUploadUnusedFiles": true
},
"condition": {},
"editorSetting": {
"tabIndent": "auto",
"tabSize": 2
},
"packOptions": {
"ignore": [],
"include": []
},
"appid": "wx88d20e697c125c57"
}

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

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

@ -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