commit 36cc2fe7ba8e72245f5454001ec26094ff66516e Author: Ling53666 <14656070+ling53666@user.noreply.gitee.com> Date: Mon Apr 28 15:59:21 2025 +0800 initial commit diff --git a/app.js b/app.js new file mode 100644 index 0000000..1ed57c4 --- /dev/null +++ b/app.js @@ -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 + } +}) diff --git a/app.json b/app.json new file mode 100644 index 0000000..d2bff46 --- /dev/null +++ b/app.json @@ -0,0 +1,55 @@ +{ + "pages": [ + "pages/index/index", + "pages/logs/logs", + "pages/jiedan/jiedan", + "pages/mypage/mypage", + "pages/shop/shop", + "pages/find/find", + "pages/logain/logain", + "pages/zucepage/zucepage", + "pages/wangjimima/wangjimima" + ], + "window": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "Weixin", + "navigationBarBackgroundColor": "#ffffff" + }, + "style": "v2", + "componentFramework": "glass-easel", + "sitemapLocation": "sitemap.json", + "lazyCodeLoading": "requiredComponents", + "tabBar": { + "custom": false, + "color": "#000000", + "selectedColor": "#FC7E09", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/jiedan/jiedan", + "text": "接单", + "iconPath": "/image/renwu.png", + "selectedIconPath": "/image/jiedanhou.png" + }, + { + "pagePath": "pages/shop/shop", + "text": "商城", + "iconPath": "/image/renwu.png", + "selectedIconPath": "/image/jiedanhou.png" + }, + { + "pagePath": "pages/find/find", + "text": "招聘", + "iconPath": "/image/renwu.png", + "selectedIconPath": "/image/jiedanhou.png" + }, + { + "pagePath": "pages/mypage/mypage", + "text": "我的", + "iconPath": "/image/wodeq.png", + "selectedIconPath": "/image/wodeh.png" + } + ] + }, + "usingComponents": {} +} \ No newline at end of file diff --git a/app.wxss b/app.wxss new file mode 100644 index 0000000..cc59e77 --- /dev/null +++ b/app.wxss @@ -0,0 +1,525 @@ +/**app.wxss**/ +.container { + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; + padding: 200rpx 0; + box-sizing: border-box; +} +page { + width: 100vw; + height: 100vh; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', + 'Droid Sans', 'Helvetica Neue', 'Microsoft Yahei', sans-serif; +} + +view, +image, +text { + box-sizing: border-box; + flex-shrink: 0; +} + +.flex-row { + display: flex; + flex-direction: row; +} + +.flex-col { + display: flex; + flex-direction: column; +} + +.justify-start { + justify-content: flex-start; +} + +.justify-end { + justify-content: flex-end; +} + +.justify-center { + justify-content: center; +} + +.justify-between { + justify-content: space-between; +} + +.justify-around { + justify-content: space-around; +} + +.justify-evenly { + justify-content: space-evenly; +} + +.items-start { + align-items: flex-start; +} + +.items-end { + align-items: flex-end; +} + +.items-center { + align-items: center; +} + +.items-baseline { + align-items: baseline; +} + +.items-stretch { + align-items: stretch; +} + +.self-start { + align-self: flex-start; +} + +.self-end { + align-self: flex-end; +} + +.self-center { + align-self: center; +} + +.self-baseline { + align-self: baseline; +} + +.self-stretch { + align-self: stretch; +} + +.flex-1 { + flex: 1 1 0%; +} + +.flex-auto { + flex: 1 1 auto; +} + +.grow { + flex-grow: 1; +} + +.grow-0 { + flex-grow: 0; +} + +.shrink { + flex-shrink: 1; +} + +.shrink-0 { + flex-shrink: 0; +} + +.relative { + position: relative; +} + +.ml-2 { + margin-left: 3.85rpx; +} + +.mt-2 { + margin-top: 3.85rpx; +} + +.ml-4 { + margin-left: 7.69rpx; +} + +.mt-4 { + margin-top: 7.69rpx; +} + +.ml-6 { + margin-left: 11.54rpx; +} + +.mt-6 { + margin-top: 11.54rpx; +} + +.ml-8 { + margin-left: 15.38rpx; +} + +.mt-8 { + margin-top: 15.38rpx; +} + +.ml-10 { + margin-left: 19.23rpx; +} + +.mt-10 { + margin-top: 19.23rpx; +} + +.ml-12 { + margin-left: 23.08rpx; +} + +.mt-12 { + margin-top: 23.08rpx; +} + +.ml-14 { + margin-left: 26.92rpx; +} + +.mt-14 { + margin-top: 26.92rpx; +} + +.ml-16 { + margin-left: 30.77rpx; +} + +.mt-16 { + margin-top: 30.77rpx; +} + +.ml-18 { + margin-left: 34.62rpx; +} + +.mt-18 { + margin-top: 34.62rpx; +} + +.ml-20 { + margin-left: 38.46rpx; +} + +.mt-20 { + margin-top: 38.46rpx; +} + +.ml-22 { + margin-left: 42.31rpx; +} + +.mt-22 { + margin-top: 42.31rpx; +} + +.ml-24 { + margin-left: 46.15rpx; +} + +.mt-24 { + margin-top: 46.15rpx; +} + +.ml-26 { + margin-left: 50rpx; +} + +.mt-26 { + margin-top: 50rpx; +} + +.ml-28 { + margin-left: 53.85rpx; +} + +.mt-28 { + margin-top: 53.85rpx; +} + +.ml-30 { + margin-left: 57.69rpx; +} + +.mt-30 { + margin-top: 57.69rpx; +} + +.ml-32 { + margin-left: 61.54rpx; +} + +.mt-32 { + margin-top: 61.54rpx; +} + +.ml-34 { + margin-left: 65.38rpx; +} + +.mt-34 { + margin-top: 65.38rpx; +} + +.ml-36 { + margin-left: 69.23rpx; +} + +.mt-36 { + margin-top: 69.23rpx; +} + +.ml-38 { + margin-left: 73.08rpx; +} + +.mt-38 { + margin-top: 73.08rpx; +} + +.ml-40 { + margin-left: 76.92rpx; +} + +.mt-40 { + margin-top: 76.92rpx; +} + +.ml-42 { + margin-left: 80.77rpx; +} + +.mt-42 { + margin-top: 80.77rpx; +} + +.ml-44 { + margin-left: 84.62rpx; +} + +.mt-44 { + margin-top: 84.62rpx; +} + +.ml-46 { + margin-left: 88.46rpx; +} + +.mt-46 { + margin-top: 88.46rpx; +} + +.ml-48 { + margin-left: 92.31rpx; +} + +.mt-48 { + margin-top: 92.31rpx; +} + +.ml-50 { + margin-left: 96.15rpx; +} + +.mt-50 { + margin-top: 96.15rpx; +} + +.ml-52 { + margin-left: 100rpx; +} + +.mt-52 { + margin-top: 100rpx; +} + +.ml-54 { + margin-left: 103.85rpx; +} + +.mt-54 { + margin-top: 103.85rpx; +} + +.ml-56 { + margin-left: 107.69rpx; +} + +.mt-56 { + margin-top: 107.69rpx; +} + +.ml-58 { + margin-left: 111.54rpx; +} + +.mt-58 { + margin-top: 111.54rpx; +} + +.ml-60 { + margin-left: 115.38rpx; +} + +.mt-60 { + margin-top: 115.38rpx; +} + +.ml-62 { + margin-left: 119.23rpx; +} + +.mt-62 { + margin-top: 119.23rpx; +} + +.ml-64 { + margin-left: 123.08rpx; +} + +.mt-64 { + margin-top: 123.08rpx; +} + +.ml-66 { + margin-left: 126.92rpx; +} + +.mt-66 { + margin-top: 126.92rpx; +} + +.ml-68 { + margin-left: 130.77rpx; +} + +.mt-68 { + margin-top: 130.77rpx; +} + +.ml-70 { + margin-left: 134.62rpx; +} + +.mt-70 { + margin-top: 134.62rpx; +} + +.ml-72 { + margin-left: 138.46rpx; +} + +.mt-72 { + margin-top: 138.46rpx; +} + +.ml-74 { + margin-left: 142.31rpx; +} + +.mt-74 { + margin-top: 142.31rpx; +} + +.ml-76 { + margin-left: 146.15rpx; +} + +.mt-76 { + margin-top: 146.15rpx; +} + +.ml-78 { + margin-left: 150rpx; +} + +.mt-78 { + margin-top: 150rpx; +} + +.ml-80 { + margin-left: 153.85rpx; +} + +.mt-80 { + margin-top: 153.85rpx; +} + +.ml-82 { + margin-left: 157.69rpx; +} + +.mt-82 { + margin-top: 157.69rpx; +} + +.ml-84 { + margin-left: 161.54rpx; +} + +.mt-84 { + margin-top: 161.54rpx; +} + +.ml-86 { + margin-left: 165.38rpx; +} + +.mt-86 { + margin-top: 165.38rpx; +} + +.ml-88 { + margin-left: 169.23rpx; +} + +.mt-88 { + margin-top: 169.23rpx; +} + +.ml-90 { + margin-left: 173.08rpx; +} + +.mt-90 { + margin-top: 173.08rpx; +} + +.ml-92 { + margin-left: 176.92rpx; +} + +.mt-92 { + margin-top: 176.92rpx; +} + +.ml-94 { + margin-left: 180.77rpx; +} + +.mt-94 { + margin-top: 180.77rpx; +} + +.ml-96 { + margin-left: 184.62rpx; +} + +.mt-96 { + margin-top: 184.62rpx; +} + +.ml-98 { + margin-left: 188.46rpx; +} + +.mt-98 { + margin-top: 188.46rpx; +} + +.ml-100 { + margin-left: 192.31rpx; +} + +.mt-100 { + margin-top: 192.31rpx; +} \ No newline at end of file diff --git a/image/20250407154233.jpg b/image/20250407154233.jpg new file mode 100644 index 0000000..01e9409 Binary files /dev/null and b/image/20250407154233.jpg differ diff --git a/image/20250407154300.png b/image/20250407154300.png new file mode 100644 index 0000000..5615089 Binary files /dev/null and b/image/20250407154300.png differ diff --git a/image/20250407154310.png b/image/20250407154310.png new file mode 100644 index 0000000..e8ebb20 Binary files /dev/null and b/image/20250407154310.png differ diff --git a/image/jiatou.png b/image/jiatou.png new file mode 100644 index 0000000..03a91d5 Binary files /dev/null and b/image/jiatou.png differ diff --git a/image/jiedanhou.png b/image/jiedanhou.png new file mode 100644 index 0000000..269d511 Binary files /dev/null and b/image/jiedanhou.png differ diff --git a/image/logo.png b/image/logo.png new file mode 100644 index 0000000..2e31eed Binary files /dev/null and b/image/logo.png differ diff --git a/image/renwu.png b/image/renwu.png new file mode 100644 index 0000000..8d6a8ae Binary files /dev/null and b/image/renwu.png differ diff --git a/image/shaiixuan.png b/image/shaiixuan.png new file mode 100644 index 0000000..7b996d9 Binary files /dev/null and b/image/shaiixuan.png differ diff --git a/image/sousuo.png b/image/sousuo.png new file mode 100644 index 0000000..a0e7d9c Binary files /dev/null and b/image/sousuo.png differ diff --git a/image/wenhao.png b/image/wenhao.png new file mode 100644 index 0000000..99df08e Binary files /dev/null and b/image/wenhao.png differ diff --git a/image/wodeh.png b/image/wodeh.png new file mode 100644 index 0000000..1ce236c Binary files /dev/null and b/image/wodeh.png differ diff --git a/image/wodeq.png b/image/wodeq.png new file mode 100644 index 0000000..b960053 Binary files /dev/null and b/image/wodeq.png differ diff --git a/pages/find/find.js b/pages/find/find.js new file mode 100644 index 0000000..dce1762 --- /dev/null +++ b/pages/find/find.js @@ -0,0 +1,72 @@ +// pages/find/find.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + messageshop: [ + { name: '红枣夹核桃 500g 坚果大礼包', image: '/image/logo.png', price: 65, oldPrice: 99 }, + { name: '新疆大枣 1000g 优选原产地', image: '/image/logo.png', price: 48, oldPrice: 78 }, + { name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 }, + { name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 }, + // 继续添加... + ] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/find/find.json b/pages/find/find.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/find/find.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/find/find.wxml b/pages/find/find.wxml new file mode 100644 index 0000000..e69de29 diff --git a/pages/find/find.wxss b/pages/find/find.wxss new file mode 100644 index 0000000..3dc8f6e --- /dev/null +++ b/pages/find/find.wxss @@ -0,0 +1,74 @@ +/* pages/find/find.wxss */.show { + width: 100%; + display: flex; + flex-wrap: wrap; + justify-content: center; + padding: 20rpx; + box-sizing: border-box; +} + +.shopping { + width: 45%; + margin: 10rpx; + background-color: #ffffff; + border-radius: 20rpx; + box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.08); + overflow: hidden; + display: flex; + flex-direction: column; + transition: transform 0.2s ease; +} + +.shopping:active { + transform: scale(0.97); +} + +.imagebox { + width: 100%; + aspect-ratio: 1; + background-color: #f6f6f6; + overflow: hidden; +} + +.imagesize { + width: 100%; + height: 100%; + object-fit: cover; + display: block; +} + +.tetxt { + padding: 16rpx; + display: flex; + flex-direction: column; + gap: 10rpx; +} + +.wraptext { + font-size: 26rpx; + color: #333; + line-height: 1.4; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; /* 最多显示2行 */ + -webkit-box-orient: vertical; + text-overflow: ellipsis; +} + +.price-row { + display: flex; + justify-content: space-between; + align-items: center; +} + +.price-now { + color: #fc7e09; + font-size: 28rpx; + font-weight: bold; +} + +.price-old { + color: #aaa; + font-size: 24rpx; + text-decoration: line-through; +} diff --git a/pages/index/index.js b/pages/index/index.js new file mode 100644 index 0000000..758dca7 --- /dev/null +++ b/pages/index/index.js @@ -0,0 +1,18 @@ +// index.js +Page({ + data: { + + }, + tiaozhuan(){ + console.log('chenggongle '); + wx.switchTab({ + url: '/pages/jiedan/jiedan', + }) + }, + tiaozhuanzhuanqian(){ + console.log('chenggongle '); + wx.navigateTo({ + url: '/pages/logain/logain', + }) + } +}) diff --git a/pages/index/index.json b/pages/index/index.json new file mode 100644 index 0000000..7bf920d --- /dev/null +++ b/pages/index/index.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "青橙", + "usingComponents": { + } +} \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml new file mode 100644 index 0000000..13ccd69 --- /dev/null +++ b/pages/index/index.wxml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + 我要试用 + + + 了解详情 + + + + + + + 我要赚钱 + + + 了解详情 + + + + + + + diff --git a/pages/index/index.wxss b/pages/index/index.wxss new file mode 100644 index 0000000..782e204 --- /dev/null +++ b/pages/index/index.wxss @@ -0,0 +1,71 @@ +/**index.wxss**/ +.box{ + width: 100%; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; +} +.sidebox{ + width: 100%; + height: 90%; +} +.imagebox{ + width: 100%; + height: 60%; + display: flex; + justify-content: center; + align-items: center; +} +.iamgelogo{ + width: 100%; + height: 100%; +} +.buttombox{ + width: 100%; + height: 40%; + display: flex; + flex-direction: column; + align-items: center; +} +.wenzibox{ + width: 100%; + height: 30%; + margin-bottom: 40rpx; +} +.buttom{ + width: 80%; + height: 80%; + background-color: #FC7E09; + border-radius: 20px; +} +.liaojie{ + width: 80%; + height: 20%; + display: flex; + justify-content: flex-end; + align-items: center; +} +.wenhaoimage{ + width: 15px; + height: 15px; + margin-left: 8rpx; +} +.tongyong{ + display: flex; + justify-content: center; + align-items: center; +} +.shuiping{ + display: flex; + align-items: center; + flex-direction: column; +} +.text{ + font-size: 20px; + color: #ffffff; +} +.liaojietext{ + font-size: 12px; + color: #888685; +} \ No newline at end of file diff --git a/pages/jiedan/jiedan.js b/pages/jiedan/jiedan.js new file mode 100644 index 0000000..5730057 --- /dev/null +++ b/pages/jiedan/jiedan.js @@ -0,0 +1,160 @@ +// pages/jiedan/jiedan.js +Page({ + data: { + show:false, + picture:[{ + image:'/image/20250407154233.jpg' + }, + { + image:'/image/20250407154300.png' + }, + { + image:'/image/20250407154310.png' + } + ], + message:[ + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + { + person:'1000人正在进行', + level:'简单', + title:'推广豆包', + money:'40' + }, + ], + lie:[ + { + name:'全部分类' + }, + { + name:'派发' + }, + { + name:'推广' + }, + { + name:'注册' + }, + + ], + selectedIndex: 0, + }, + change(){ + this.setData({ + show:!this.data.show + }) + }, + bindKeyInput: function (e) { + this.setData({ + inputValue: e.detail.value + }) + console.log(this.data.inputValue); + }, + onSelect(e) { + console.log('jashdjkasdjahs'); + const index = e.currentTarget.dataset.index; + console.log(index); + const name = this.data.lie[index].name; + this.setData({ + selectedIndex: index, + show:!this.data.show + }); + console.log('你点击了:', name); + // 你也可以触发其他逻辑,比如发送请求等 + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/jiedan/jiedan.json b/pages/jiedan/jiedan.json new file mode 100644 index 0000000..90b5e5b --- /dev/null +++ b/pages/jiedan/jiedan.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "接单界面", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/jiedan/jiedan.wxml b/pages/jiedan/jiedan.wxml new file mode 100644 index 0000000..c8ff2d0 --- /dev/null +++ b/pages/jiedan/jiedan.wxml @@ -0,0 +1,86 @@ + + + + + + + + + + + 校园接单 实现财富自由 + + + + + + + + + + + + + + + + + + + + + 筛选 + + + + + + + + + + + {{item.title}} + 容易度:{{item.level}} + {{item.person}} + + + + 佣金:{{item.money}}积分 + + + + 接单 + + + + + + + + + + + + + + + + + + + + + + + 任务分类 + + + + + {{item.name}} + + + + + \ No newline at end of file diff --git a/pages/jiedan/jiedan.wxss b/pages/jiedan/jiedan.wxss new file mode 100644 index 0000000..1606c8a --- /dev/null +++ b/pages/jiedan/jiedan.wxss @@ -0,0 +1,197 @@ +/* pages/jiedan/jiedan.wxss */ +.box{ + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; +} +.text-overlay { + width: 100%; + position: absolute; + top: 80%; + left: 70%; + transform: translate(-50%, -50%); + color: white; + font-size: 25px; + font-weight: bold; + text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6); + z-index: 10; + font-style: italic; +} +.sousuo{ + width: 100%; + height: 7vh; +} +.zuo{ + width: 40%; + height: 100%; + background-color: rgba(36, 34, 34, 0.2); +} +.wenzi{ + width: 100%; + height: 40%; + +} +.you{ + width: 60%; + height: 100%; + background-color: #ffffff; +} +.chengsehezi{ + width: 100%; + height: 10%; + display: flex; + align-items: center; +} +.chengse{ + width: 4%; + height: 80%; + background-color: #FC7E09; + margin-left: 10rpx; +} +.wenzicheng{ + width: 96%; + height: 100%; + display: flex; + align-items: center; +} +.xuazhongbox{ + width: 100%; + display: flex; + flex: 1; + flex-wrap: wrap; + gap: 20rpx; +} +.he{ + display: flex; + justify-content: center; + align-items: center; + padding: 5px; + margin: 20rpx; +} +.he.active { + background-color: #f37b1d; /* 高亮背景色 */ +} +.cebianlan{ + width: 100%; + height: 100%; + display: flex; + position: fixed; + top: 0; + left: 0; + z-index: 9999; +} +.shuzhi{ + display: flex; + align-items: center; +} +.tongyong{ + display: flex; + justify-content: center; + align-items: center; +} +.souimage{ + width: 20%; + height: 100%; +} +.sousuosize{ + width: 20px; + height: 20px; +} +.sidebox{ + width: 20%; + height: 100%; +} +.saixuan{ + width: 100%; + height: 100%; +} +.hhhh{ + width: 80%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.inputk{ + width: 80%; + height: 100%; +} +.xiabox{ + width: 100%; + background-color: #EFEFEF; +} +.swiper { + width: 100%; + height: 30vh; + position: relative; + overflow: hidden; +} +.inputkuang{ + width: 80%; + height: 70%; + border-radius: 50px; + background-color: #ffffff; +} +.imageshai{ + width: 30px; + height: 30px; +} +.imagesize{ + width: 100%; + height: 100%; +} +swiper,swiper-item { + width: 100%; + height: 100%; +} +.messagebox{ + width: 100%; + height: 100%; + display: flex; + align-items: center; + flex-direction: column; +} +.kuang{ + width: 90%; + height: 140px; + border-radius: 20px; + margin-top: 20rpx; + background-color: #ffffff; + display: flex; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} +.touxianmg{ + width: 30%; + height: 100%; +} +.touxiangimage{ + width: 100px; + height: 100px; + border-radius: 50px; +} +.messagesize{ + width: 40%; + height: 100%; + display: flex; + flex-direction: column; +} +.text{ + margin-top: 20rpx; +} +.moneybox{ + width: 30%; + display: flex; + flex-direction: column; +} +.jiedan{ + width: 50px; + height: 30px; + background-color: #EFEFEF; + margin-right: 20rpx; +} +.weizhi{ + display: flex; + justify-content: flex-end; +} \ No newline at end of file diff --git a/pages/logain/logain.js b/pages/logain/logain.js new file mode 100644 index 0000000..967ff96 --- /dev/null +++ b/pages/logain/logain.js @@ -0,0 +1,40 @@ +Page({ + data: { + show: true, + morenshow: false, + currentTab: 'code', + }, + onShow(){ + this.setData({ + show: false, + morenshow: true, + currentTab: 'password' + }) + }, + showchange() { + this.setData({ + show: true, + morenshow: false, + currentTab: 'code' + }) + }, + gozucepage(){ + wx.navigateTo({ + url: '/pages/zucepage/zucepage', + }) + }, + + showchangeback() { + this.setData({ + show: false, + morenshow: true, + currentTab: 'password' + }) + }, + wangji() { + wx.navigateTo({ + url: '/pages/wangjimima/wangjimima', + }) + } +}) + diff --git a/pages/logain/logain.json b/pages/logain/logain.json new file mode 100644 index 0000000..fa42c9e --- /dev/null +++ b/pages/logain/logain.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "登录界面", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/logain/logain.wxml b/pages/logain/logain.wxml new file mode 100644 index 0000000..86265eb --- /dev/null +++ b/pages/logain/logain.wxml @@ -0,0 +1,46 @@ + + + 欢迎登陆—青橙校园 + + + + 密码登录 + 验证码登录 + + + + + + + + + 获取验证码 + + + + + + + + + + + 忘记密码 + + 登录 + + + + + + + 我已阅读并同意 + 用户服务协议、隐私政策 + + + 没有账号? + 去注册→ + + + \ No newline at end of file diff --git a/pages/logain/logain.wxss b/pages/logain/logain.wxss new file mode 100644 index 0000000..2bb80ea --- /dev/null +++ b/pages/logain/logain.wxss @@ -0,0 +1,132 @@ +.ml-7 { + margin-left: 13.46rpx; +} +.mt-21 { + margin-top: 40.38rpx; +} +.page { + padding: 121.15rpx 42.31rpx 440.48rpx 44.23rpx; + background-color: #ffffff; + width: 100%; + overflow-y: hidden; + overflow-x: hidden; + height: 100%; +} +.text-wrapper { + padding: 336.58rpx 0 19.48rpx; + background-image: url('https://ide.code.fun/api/image?token=680efc2c4ae84d00122e3b6c&name=b75462a220057be84813b1b06d446dac.png'); + background-size: 100% 100%; + background-repeat: no-repeat; + width: 384.62rpx; +} +.font { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text { + color: #000000; + line-height: 28.56rpx; +} +.group { + margin-top: 43.04rpx; +} +.group_2 { + padding: 0 4.73rpx; +} +.font_3 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 21.46rpx; + color: #383838; +} +.text_3 { + line-height: 21.5rpx; +} +.font_2 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text_2 { + color: #000000; + line-height: 25.02rpx; +} +.text-wrapper_2 { + padding: 35.46rpx 0 37.77rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_4 { + margin-left: 35.75rpx; +} +.font_4 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + color: #808080; +} +.text_1 { + line-height: 24.85rpx; + width: 590rpx; +} +.section { + padding: 37.27rpx 16.25rpx 35.79rpx 35.75rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_5 { + line-height: 24.92rpx; + width: 590rpx; +} +.text_6 { + color: #d43030; + line-height: 25.02rpx; +} +.text_7 { + margin-right: 4.73rpx; + margin-top: 20.62rpx; + line-height: 21.42rpx; +} +.text-wrapper_3 { + margin: 44.5rpx 17.31rpx 0 15.38rpx; + padding: 38.75rpx 0 32.94rpx; + background-color: #ff8d1a; + border-radius: 28.85rpx; +} +.text_8 { + color: #ffffff; + line-height: 28.31rpx; +} +.group_3 { + margin-top: 55.77rpx; + padding: 0 34.62rpx; +} +.font_5 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text_9 { + margin-left: 50.94rpx; + color: #000000; +} +.text_10 { + color: #d43030; + margin-left: 10rpx; +} +.group_4 { + line-height: 21.46rpx; +} +.text_11 { + line-height: 21.35rpx; +} +.text_12 { + color: #ff5733; +} +.radio { + flex-shrink: 0; +} +.radio .wx-radio-input { + width: 36.54rpx; + height: 36.54rpx; +} \ No newline at end of file diff --git a/pages/logs/logs.js b/pages/logs/logs.js new file mode 100644 index 0000000..85f6aac --- /dev/null +++ b/pages/logs/logs.js @@ -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 + } + }) + }) + } +}) diff --git a/pages/logs/logs.json b/pages/logs/logs.json new file mode 100644 index 0000000..b55b5a2 --- /dev/null +++ b/pages/logs/logs.json @@ -0,0 +1,4 @@ +{ + "usingComponents": { + } +} \ No newline at end of file diff --git a/pages/logs/logs.wxml b/pages/logs/logs.wxml new file mode 100644 index 0000000..85cf1bf --- /dev/null +++ b/pages/logs/logs.wxml @@ -0,0 +1,6 @@ + + + + {{index + 1}}. {{log.date}} + + diff --git a/pages/logs/logs.wxss b/pages/logs/logs.wxss new file mode 100644 index 0000000..33f9d9e --- /dev/null +++ b/pages/logs/logs.wxss @@ -0,0 +1,16 @@ +page { + height: 100vh; + display: flex; + flex-direction: column; +} +.scrollarea { + flex: 1; + overflow-y: hidden; +} +.log-item { + margin-top: 20rpx; + text-align: center; +} +.log-item:last-child { + padding-bottom: env(safe-area-inset-bottom); +} diff --git a/pages/mypage/mypage.js b/pages/mypage/mypage.js new file mode 100644 index 0000000..97e72fa --- /dev/null +++ b/pages/mypage/mypage.js @@ -0,0 +1,66 @@ +// pages/mypage/mypage.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/mypage/mypage.json b/pages/mypage/mypage.json new file mode 100644 index 0000000..c0a8251 --- /dev/null +++ b/pages/mypage/mypage.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "我的", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/mypage/mypage.wxml b/pages/mypage/mypage.wxml new file mode 100644 index 0000000..dfd7a77 --- /dev/null +++ b/pages/mypage/mypage.wxml @@ -0,0 +1,122 @@ + + + + + + + 蒙娜丽莎 + ID:1829378126738 + + + + + + + + 我的积分 + + + + + 500 + + + + 提现 + + + + + + + 30积分 + 支出 + + + 500 + 收入 + + + 5.00 + 兑换金额 + + + + + + + + 更多设置 + + + + + + 客服 + + + + + + + + + + 我的课程 + + + + + + + + + + 接单记录 + + + + + + + + + + 勤工俭学 + + + + + + + + + + 我的推广码 + + + + + + + + + + 更多设置 + + + + + + + + + + 审核查询 + + + + + + + \ No newline at end of file diff --git a/pages/mypage/mypage.wxss b/pages/mypage/mypage.wxss new file mode 100644 index 0000000..d2673fc --- /dev/null +++ b/pages/mypage/mypage.wxss @@ -0,0 +1,111 @@ +/* pages/mypage/mypage.wxss */ +.touxiangbox{ + width: 100%; + height: 25vh; + display: flex; + flex-direction: column; + +} +.imagesize{ + width: 100px; + height: 100px; + border-radius: 50px; + +} +.imagebox{ + width: 100%; + height: 60%; + display: flex; + justify-content: center; + align-items: center; +} +.wenzibox{ + width: 100%; + height: 30%; + display: flex; + align-items: center; + flex-direction: column; +} +.jifenbox{ + width: 100%; + height: 25vh; + display: flex; + align-items: center; + justify-content: center; +} +.kuang{ + width: 90%; + height: 90%; + border-radius: 20px; + background-image:url(https://img.ixintu.com/download/jpg/201912/9ce015df2a7c79ee7498367168b41bfc.jpg!con); +} +.baioti{ + width: 100%; + height: 20%; + display: flex; + align-items: center; +} +.jifenbufen{ + width: 100%; + height: 50%; + display: flex; +} +.zuo{ + width: 50%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.tixian{ + width: 50%; + height: 50%; + display: flex; + justify-content: center; + align-items: center; + border-radius: 50px; + border: 1px solid #FC7E09; + background-color: #FC7E09; + margin-left: 60rpx; +} +.tongjibox{ + width: 100%; + height: 30%; + display: flex; +} +.jifenxiao{ + width: 33%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} +.number{ + color: #BD3124; +} +.gengduo{ + width: 100%; + height: 50vh; + display: flex; + align-items: center; + flex-direction: column; + margin-top: 50rpx; +} +.shezhitiao{ + width: 90%; + height: 50px; + display: flex; + align-items: center; + border-bottom: 1px solid #b1adaa ; +} +.imagebiao{ + width: 30px; + height: 30px; +} +.neibu{ + width: 50%; + height: 100%; + display: flex; + align-items: center; +} \ No newline at end of file diff --git a/pages/shop/shop.js b/pages/shop/shop.js new file mode 100644 index 0000000..51483d8 --- /dev/null +++ b/pages/shop/shop.js @@ -0,0 +1,73 @@ +// pages/shop/shop.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + messageshop: [ + { name: '红枣夹核桃 500g 坚果大礼包', image: '/image/logo.png', price: 65, oldPrice: 99 }, + { name: '新疆大枣 1000g 优选原产地', image: '/image/logo.png', price: 48, oldPrice: 78 }, + { name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 }, + { name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 }, + { name: '每日坚果混合果仁干果套餐', image: '/image/logo.png', price: 88, oldPrice: 129 }, + // 继续添加... + ] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/shop/shop.json b/pages/shop/shop.json new file mode 100644 index 0000000..1ddf198 --- /dev/null +++ b/pages/shop/shop.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "商城", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/shop/shop.wxml b/pages/shop/shop.wxml new file mode 100644 index 0000000..7f28cf4 --- /dev/null +++ b/pages/shop/shop.wxml @@ -0,0 +1,56 @@ + + + + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + 秒杀 + + + + + + + + + + + + {{item.name}} + + ¥{{item.price}} + ¥{{item.oldPrice}} + + + + + + diff --git a/pages/shop/shop.wxss b/pages/shop/shop.wxss new file mode 100644 index 0000000..1295e6d --- /dev/null +++ b/pages/shop/shop.wxss @@ -0,0 +1,110 @@ +/* pages/shop/shop.wxss */ +.shopbox{ + width: 100%; + height: auto; + display: flex; + justify-content: center; + align-items: center; + margin-top: 20rpx; +} +.kuai{ + width: 95%; + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: 10rpx; + box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.08); + border-radius: 20px; +} +.logosize{ + width: 50px; + height: 50px; +} +.xiaohe{ + width: 23%; + aspect-ratio: 1 / 1; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} +.show { + width: 100%; + display: flex; + flex-wrap: wrap; + justify-content: flex-start; + padding: 20rpx; + box-sizing: border-box; +} + +.shopping { + width: 45%; + margin: 19rpx; + background-color: #ffffff; + border-radius: 20rpx; + box-shadow: 0 6rpx 20rpx rgba(0, 0, 0, 0.08); + overflow: hidden; + display: flex; + flex-direction: column; + transition: transform 0.2s ease; +} + +.shopping:active { + transform: scale(0.97); +} + +.imagebox { + width: 100%; + aspect-ratio: 1; + background-color: #f6f6f6; + overflow: hidden; +} + +.imagesize { + width: 100%; + height: 100%; + object-fit: cover; + display: block; +} + +.tetxt { + padding: 16rpx; + display: flex; + flex-direction: column; + gap: 10rpx; +} + +.wraptext { + font-size: 26rpx; + color: #333; + line-height: 1.4; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; /* 最多显示2行 */ + -webkit-box-orient: vertical; + text-overflow: ellipsis; +} + +.price-row { + display: flex; + justify-content: space-between; + align-items: center; +} + +.price-now { + color: #fc7e09; + font-size: 28rpx; + font-weight: bold; +} + +.price-old { + color: #aaa; + font-size: 24rpx; + text-decoration: line-through; +} +.box{ + width: 100%; + display: flex; + justify-content: center; + align-items: center; +} diff --git a/pages/wangjimima/wangjimima.js b/pages/wangjimima/wangjimima.js new file mode 100644 index 0000000..2db73e1 --- /dev/null +++ b/pages/wangjimima/wangjimima.js @@ -0,0 +1,66 @@ +// pages/wangjimima/wangjimima.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.json b/pages/wangjimima/wangjimima.json new file mode 100644 index 0000000..eece2ba --- /dev/null +++ b/pages/wangjimima/wangjimima.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "忘记密码", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.wxml b/pages/wangjimima/wangjimima.wxml new file mode 100644 index 0000000..012418f --- /dev/null +++ b/pages/wangjimima/wangjimima.wxml @@ -0,0 +1,25 @@ + + + 欢迎登陆—青橙校园 + + + 忘记密码 + + + + + + 获取验证码 + + + + + + + 登陆账号 + + + + 重置密码 + + \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.wxss b/pages/wangjimima/wangjimima.wxss new file mode 100644 index 0000000..70f5166 --- /dev/null +++ b/pages/wangjimima/wangjimima.wxss @@ -0,0 +1,88 @@ +.page { + padding: 73.08rpx 38.46rpx 275rpx 48.08rpx; + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.text-wrapper { + padding: 384.65rpx 0 19.48rpx; + background-image: url('https://ide.code.fun/api/image?token=680efc2c4ae84d00122e3b6c&name=9927844a76c9298d1ba7d7f5f997ca65.png'); + background-size: 100% 100%; + background-repeat: no-repeat; + width: 432.69rpx; +} +.font { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 28.56rpx; +} +.text { + color: #000000; +} +.group { + padding: 42.96rpx 0 42.96rpx; +} +.text-wrapper_1 { + padding: 35.46rpx 0 37.77rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_1 { + margin-left: 31.9rpx; +} +.font_2 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 25.02rpx; + color: #808080; +} +.text_2 { + margin-left: 12.75rpx; + color: #000000; + line-height: 24.98rpx; +} +.text_4 { + line-height: 24.85rpx; +} +.section { + padding: 37.27rpx 20.1rpx 35.79rpx 31.9rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_5 { + line-height: 24.92rpx; +} +.text_6 { + color: #d43030; +} +.text-wrapper_2 { + padding: 35.27rpx 0 37.79rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text-wrapper_4 { + padding: 37.19rpx 0 35.73rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_7 { + line-height: 25.15rpx; +} +.text_8 { + margin-right: 9.02rpx; + color: #383838; + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 21.31rpx; +} +.text-wrapper_3 { + margin: 32.15rpx 21.15rpx 0 11.54rpx; + padding: 38.38rpx 0 33.06rpx; + background-color: #ff8d1a; + border-radius: 28.85rpx; +} +.text_9 { + color: #ffffff; +} \ No newline at end of file diff --git a/pages/zucepage/zucepage.js b/pages/zucepage/zucepage.js new file mode 100644 index 0000000..8fe8109 --- /dev/null +++ b/pages/zucepage/zucepage.js @@ -0,0 +1,66 @@ +// pages/zucepage/zucepage.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/zucepage/zucepage.json b/pages/zucepage/zucepage.json new file mode 100644 index 0000000..0af3aa4 --- /dev/null +++ b/pages/zucepage/zucepage.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "注册账号", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/zucepage/zucepage.wxml b/pages/zucepage/zucepage.wxml new file mode 100644 index 0000000..8c027d3 --- /dev/null +++ b/pages/zucepage/zucepage.wxml @@ -0,0 +1,30 @@ + + + 欢迎登陆—青橙校园 + + + 账号注册 + + + + + + 获取验证码 + + + + + + + + 我已阅读并同意 + 青橙用户服务协议、隐私政策 + + + 注册 + + + 已有帐号? + 去登录→ + + \ No newline at end of file diff --git a/pages/zucepage/zucepage.wxss b/pages/zucepage/zucepage.wxss new file mode 100644 index 0000000..6e5675f --- /dev/null +++ b/pages/zucepage/zucepage.wxss @@ -0,0 +1,148 @@ +.mt-15 { + margin-top: 28.85rpx; +} +.page { + padding: 30.77rpx 42.31rpx 71.27rpx 44.23rpx; + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.text-wrapper { + padding: 426.96rpx 0 6.02rpx; + background-image: url('https://ide.code.fun/api/image?token=680efc2c4ae84d00122e3b6c&name=ac6edf59808d551877b71d448fce5024.png'); + background-size: 100% 100%; + background-repeat: no-repeat; + width: 461.54rpx; +} +.font { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text { + color: #000000; + line-height: 28.56rpx; +} +.group { + margin-top: 70.04rpx; +} +.font_2 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text_2 { + margin-left: 12.54rpx; + color: #000000; + line-height: 25.04rpx; +} +.text-wrapper_2 { + padding: 35.46rpx 0 37.73rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_3 { + margin-left: 35.75rpx; +} +.font_3 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + color: #808080; +} +.text_4 { + line-height: 24.88rpx; + width: 590rpx; +} +.view { + margin-top: 40.38rpx; + padding: 37.38rpx 0 35.85rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_5 { + line-height: 24.85rpx; + width: 590rpx; +} +.section { + margin-top: 32.69rpx; + padding: 35.35rpx 27.79rpx 37.71rpx 35.75rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_6 { + line-height: 24.92rpx; +} +.text_7 { + color: #d43030; + line-height: 25.02rpx; +} +.view_2 { + margin-top: 40.38rpx; + padding: 37.38rpx 0 35.87rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_8 { + line-height: 24.83rpx; + width: 590rpx; +} +.view_3 { + margin-top: 26.92rpx; + padding: 37.19rpx 0 35.77rpx; + background-color: #ffffff; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_9 { + line-height: 25.12rpx; + width: 590rpx; +} +.group_2 { + margin-left: 3.85rpx; + margin-top: 42.31rpx; + width: 560.77rpx; +} +.image { + width: 36.54rpx; + height: 36.54rpx; +} +.font_4 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text_10 { + margin-left: 35.56rpx; + color: #000000; +} +.text_11 { + color: #d43030; + margin-left: 10rpx; +} +.text-wrapper_3 { + margin: 59.62rpx 17.31rpx 0 15.38rpx; + padding: 38.75rpx 0 32.94rpx; + background-color: #ff8d1a; + border-radius: 28.85rpx; +} +.text_12 { + color: #ffffff; + line-height: 28.31rpx; +} +.group_3 { + margin-top: 45.83rpx; + line-height: 21.35rpx; +} +.font_5 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 21.35rpx; +} +.text_13 { + color: #383838; +} +.text_14 { + color: #ff5733; + line-height: 21.31rpx; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..8fad851 --- /dev/null +++ b/project.config.json @@ -0,0 +1,28 @@ +{ + "compileType": "miniprogram", + "libVersion": "trial", + "packOptions": { + "ignore": [], + "include": [] + }, + "setting": { + "coverView": true, + "es6": true, + "postcss": true, + "minified": true, + "enhance": true, + "showShadowRootInWxmlPanel": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + } + }, + "condition": {}, + "editorSetting": { + "tabIndent": "auto", + "tabSize": 2 + }, + "appid": "wxc8a6a6a076b37247" +} \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json new file mode 100644 index 0000000..e82d0ce --- /dev/null +++ b/project.private.config.json @@ -0,0 +1,8 @@ +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "qingcheng", + "setting": { + "compileHotReLoad": true + }, + "condition": {} +} \ No newline at end of file diff --git a/sitemap.json b/sitemap.json new file mode 100644 index 0000000..ca02add --- /dev/null +++ b/sitemap.json @@ -0,0 +1,7 @@ +{ + "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html", + "rules": [{ + "action": "allow", + "page": "*" + }] +} \ No newline at end of file diff --git a/utils/util.js b/utils/util.js new file mode 100644 index 0000000..764bc2c --- /dev/null +++ b/utils/util.js @@ -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 +}