From bb8497391352c4eb24de9abbd545d746b3a1671f Mon Sep 17 00:00:00 2001 From: Ling53666 <14656070+ling53666@user.noreply.gitee.com> Date: Sun, 11 May 2025 15:12:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=B7=B2=E7=9F=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 7 +- pages/find/find.js | 16 ++ pages/find/find.wxml | 70 +++++ pages/find/find.wxss | 261 ++++++++++++----- pages/findxiangqing/findxiangqing.js | 66 +++++ pages/findxiangqing/findxiangqing.json | 4 + pages/findxiangqing/findxiangqing.wxml | 36 +++ pages/findxiangqing/findxiangqing.wxss | 135 +++++++++ pages/jiedan/jiedan.js | 121 ++------ pages/jiedan/jiedan.wxml | 119 +++----- pages/jiedan/jiedan.wxss | 338 ++++++++++------------ pages/logain/logain.js | 273 +++++++++++++++++- pages/logain/logain.wxml | 18 +- pages/logain/logain.wxss | 2 - pages/mingxi/mingxi.js | 66 +++++ pages/mingxi/mingxi.json | 4 + pages/mingxi/mingxi.wxml | 43 +++ pages/mingxi/mingxi.wxss | 125 +++++++++ pages/mypage/mypage.js | 53 ++-- pages/mypage/mypage.wxml | 256 +++++++++-------- pages/mypage/mypage.wxss | 373 ++++++++++++++++++------- pages/wangjimima/wangjimima.js | 197 +++++++++---- pages/wangjimima/wangjimima.wxml | 13 +- pages/wangjimima/wangjimima.wxss | 4 +- pages/wodetuandui/wodetuandui.js | 66 +++++ pages/wodetuandui/wodetuandui.json | 4 + pages/wodetuandui/wodetuandui.wxml | 61 ++++ pages/wodetuandui/wodetuandui.wxss | 205 ++++++++++++++ pages/woyaojiedan/woyaojiedan.js | 66 +++++ pages/woyaojiedan/woyaojiedan.json | 4 + pages/woyaojiedan/woyaojiedan.wxml | 13 + pages/woyaojiedan/woyaojiedan.wxss | 58 ++++ pages/xiangqing/xiangqing.js | 107 +++++++ pages/xiangqing/xiangqing.json | 4 + pages/xiangqing/xiangqing.wxml | 105 +++++++ pages/xiangqing/xiangqing.wxss | 239 ++++++++++++++++ pages/zucepage/zucepage.js | 212 ++++++++++---- pages/zucepage/zucepage.wxml | 17 +- pages/zucepage/zucepage.wxss | 2 - project.private.config.json | 17 +- request.js | 1 + 41 files changed, 2980 insertions(+), 801 deletions(-) create mode 100644 pages/findxiangqing/findxiangqing.js create mode 100644 pages/findxiangqing/findxiangqing.json create mode 100644 pages/findxiangqing/findxiangqing.wxml create mode 100644 pages/findxiangqing/findxiangqing.wxss create mode 100644 pages/mingxi/mingxi.js create mode 100644 pages/mingxi/mingxi.json create mode 100644 pages/mingxi/mingxi.wxml create mode 100644 pages/mingxi/mingxi.wxss create mode 100644 pages/wodetuandui/wodetuandui.js create mode 100644 pages/wodetuandui/wodetuandui.json create mode 100644 pages/wodetuandui/wodetuandui.wxml create mode 100644 pages/wodetuandui/wodetuandui.wxss create mode 100644 pages/woyaojiedan/woyaojiedan.js create mode 100644 pages/woyaojiedan/woyaojiedan.json create mode 100644 pages/woyaojiedan/woyaojiedan.wxml create mode 100644 pages/woyaojiedan/woyaojiedan.wxss create mode 100644 pages/xiangqing/xiangqing.js create mode 100644 pages/xiangqing/xiangqing.json create mode 100644 pages/xiangqing/xiangqing.wxml create mode 100644 pages/xiangqing/xiangqing.wxss create mode 100644 request.js diff --git a/app.json b/app.json index d2bff46..18b1eab 100644 --- a/app.json +++ b/app.json @@ -8,7 +8,12 @@ "pages/find/find", "pages/logain/logain", "pages/zucepage/zucepage", - "pages/wangjimima/wangjimima" + "pages/wangjimima/wangjimima", + "pages/xiangqing/xiangqing", + "pages/woyaojiedan/woyaojiedan", + "pages/mingxi/mingxi", + "pages/findxiangqing/findxiangqing", + "pages/wodetuandui/wodetuandui" ], "window": { "navigationBarTextStyle": "black", diff --git a/pages/find/find.js b/pages/find/find.js index dce1762..0a66c0e 100644 --- a/pages/find/find.js +++ b/pages/find/find.js @@ -5,6 +5,17 @@ Page({ * 页面的初始数据 */ data: { + picture:[{ + image:'/image/20250407154233.jpg' + }, + { + image:'/image/20250407154300.png' + }, + { + image:'/image/20250407154310.png' + } + ], + items: [null, null], messageshop: [ { name: '红枣夹核桃 500g 坚果大礼包', image: '/image/logo.png', price: 65, oldPrice: 99 }, { name: '新疆大枣 1000g 优选原产地', image: '/image/logo.png', price: 48, oldPrice: 78 }, @@ -17,6 +28,11 @@ Page({ /** * 生命周期函数--监听页面加载 */ + goumai(){ + wx.navigateTo({ + url: '/pages/findxiangqing/findxiangqing', + }) + }, onLoad(options) { }, diff --git a/pages/find/find.wxml b/pages/find/find.wxml index e69de29..33d53ce 100644 --- a/pages/find/find.wxml +++ b/pages/find/find.wxml @@ -0,0 +1,70 @@ + + + + + + + + 全部 + 公考笔试 + 事业单位 + 教师资格证 + + + + 【早晚课】最全面公考资料 + 2025.5.10开课至2025.10.10日 早7晚10 每周休一天 + + 一周六天 + 名师授课 + + + + + + + + + + 教师1 + 教师2 + + + + + 教师3 + + + + + + 购买 + + ¥1000 + + + + 试听 + + 50积分 + + + + + + \ No newline at end of file diff --git a/pages/find/find.wxss b/pages/find/find.wxss index 3dc8f6e..d1a2a40 100644 --- a/pages/find/find.wxss +++ b/pages/find/find.wxss @@ -1,74 +1,199 @@ -/* pages/find/find.wxss */.show { - width: 100%; - display: flex; - flex-wrap: wrap; - justify-content: center; - padding: 20rpx; - box-sizing: border-box; +.mt-13 { + margin-top: 25rpx; } - -.shopping { - width: 45%; - margin: 10rpx; +.page { + padding-bottom: 313.46rpx; 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; + overflow-y: auto; + overflow-x: hidden; } - -.imagesize { +.image { + width: 100vw; + height: 48.7179vw; +} +.group { + padding: 0 13.46rpx; +} +.text-wrapper { + padding: 7.69rpx 0; + background-color: #ff8d1a; + border-radius: 19.23rpx; + width: 111.54rpx; + height: 46.15rpx; +} +.font { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 23.35rpx; + color: #000000; +} +.text { + color: #ffffff; + line-height: 25.02rpx; +} +.text-wrapper_2 { + padding: 7.69rpx 0; + background-color: #ffffff; + border-radius: 19.23rpx; + width: 184.62rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.text_2 { + line-height: 24.83rpx; +} +.text-wrapper_3 { + padding: 7.69rpx 0; + background-color: #ffffff; + border-radius: 19.23rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.text_3 { + margin-left: 11.54rpx; + line-height: 25.04rpx; +} +.text_4 { + margin: 0 15.38rpx; + line-height: 24.88rpx; +} +.list { + padding: 0 25rpx; +} +.list-item { + padding: 26.92rpx 15.38rpx 53.85rpx 23.08rpx; + background-color: #ffffff; + border-radius: 19.23rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.list-item:first-child { + margin-top: 0; +} +.font_2 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 28.83rpx; + color: #000000; +} +.text_5 { + margin-left: 7.69rpx; +} +.font_3 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 30.77rpx; + color: #808080; +} +.text_6 { + margin-left: 7.69rpx; + margin-top: 23.08rpx; + font-size: 25rpx; + text-align: center; + width: 444.23rpx; +} +.group_2 { + margin-top: 23.08rpx; + padding: 0 5.77rpx; +} +.font_4 { + font-size: 15.38rpx; + font-family: SourceHanSansCN; + line-height: 14.17rpx; + color: #e33c64; +} +.text_7 { + margin: 0 7.69rpx; +} +.text-wrapper_4 { + padding: 3.85rpx 0; + background-color: #fc7e0961; + height: 23.08rpx; +} +.text_8 { + margin: 0 7.69rpx; + line-height: 14.21rpx; +} +.group_3 { + margin-top: 34.62rpx; +} +.image_2 { + border-radius: 288.46rpx; + width: 76.92rpx; + height: 76.92rpx; +} +.image_3 { + border-radius: 288.46rpx; + width: 69.23rpx; + height: 76.92rpx; +} +.group_4 { + padding-left: 11.54rpx; +} +.font_8 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 19.52rpx; + color: #000000; +} +.text-wrapper_5 { + padding: 26.92rpx 0 11.54rpx; + background-color: #a5d63fcc; + border-radius: 19.23rpx; + width: 111.54rpx; + height: 65.38rpx; +} +.text_9 { + line-height: 19.37rpx; +} +.font_5 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 23.35rpx; + color: #d43030; +} +.text_10 { + margin-top: 26.92rpx; +} +.text-wrapper_6 { + padding: 15.38rpx 0 23.08rpx; + background-color: #ff8d1a; + border-radius: 19.23rpx; + width: 111.54rpx; + height: 65.38rpx; +} +.font_6 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 28.83rpx; + color: #ffffff; +} +.text_11 { + line-height: 35.1rpx; +} +.font_7 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 28.83rpx; + color: #d43030; +} +.text_12 { + line-height: 28.12rpx; +} +.text_13 { + margin-top: 11.54rpx; +} +.swiper{ 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; + height:400rpx; } +.imagesize{ +width: 100%; +height: 100%; +} \ No newline at end of file diff --git a/pages/findxiangqing/findxiangqing.js b/pages/findxiangqing/findxiangqing.js new file mode 100644 index 0000000..a8a4950 --- /dev/null +++ b/pages/findxiangqing/findxiangqing.js @@ -0,0 +1,66 @@ +// pages/findxiangqing/findxiangqing.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/findxiangqing/findxiangqing.json b/pages/findxiangqing/findxiangqing.json new file mode 100644 index 0000000..bd522e4 --- /dev/null +++ b/pages/findxiangqing/findxiangqing.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "课程详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/findxiangqing/findxiangqing.wxml b/pages/findxiangqing/findxiangqing.wxml new file mode 100644 index 0000000..f765ecb --- /dev/null +++ b/pages/findxiangqing/findxiangqing.wxml @@ -0,0 +1,36 @@ + + + + 【早晚课】最全面公考资料 + 早7晚10 每周休一天 + + 一周六天 + + 名师授课 + + + + 2025.5.10-2025.10.10 300课时 + + + 课程介绍 + 课程表 + 老师介绍 + + + + + + 1000+人购买 500人试听 + + 购买 + + 试听 + + + + + \ No newline at end of file diff --git a/pages/findxiangqing/findxiangqing.wxss b/pages/findxiangqing/findxiangqing.wxss new file mode 100644 index 0000000..6e7972a --- /dev/null +++ b/pages/findxiangqing/findxiangqing.wxss @@ -0,0 +1,135 @@ +.ml-128 { + margin-left: 244.27rpx; +} +.ml-25 { + margin-left: 47.71rpx; +} +.page { + background-color: #f8f8f8; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.group { + padding: 34.35rpx 22.9rpx; +} +.image { + width: 34.35rpx; + height: 19.08rpx; +} +.font { + font-size: 24.81rpx; + font-family: SourceHanSansCN; + line-height: 23.05rpx; + color: #000000; +} +.text { + font-size: 26.72rpx; + line-height: 24.64rpx; +} +.section { + padding: 38.17rpx 34.35rpx 34.35rpx; + background-color: #ffffff; +} +.group_2 { + margin-left: 7.63rpx; +} +.text_2 { + color: #000000; + font-size: 30.53rpx; + font-family: SourceHanSansCN; + line-height: 28.61rpx; +} +.group_3 { + padding: 0 7.63rpx; +} +.text-wrapper { + padding: 3.82rpx 0; + background-color: #fc7e0961; + height: 22.9rpx; +} +.font_3 { + font-size: 15.27rpx; + font-family: SourceHanSansCN; + line-height: 14.06rpx; + color: #e33c64; +} +.text_4 { + margin:0 7.63rpx; +} +.text_5 { + line-height: 14.1rpx; +} +.font_2 { + font-size: 20.99rpx; + font-family: SourceHanSansCN; + line-height: 23.05rpx; + color: #a6a6a6; +} +.text_3 { + line-height: 24.81rpx; + width: 276.34rpx; +} +.text_6 { + line-height: 24.81rpx; + width: 404.2rpx; + margin-top: 20rpx; +} +.group_4 { + padding: 26.72rpx 76.34rpx 3.82rpx; +} +.text-wrapper_2 { + width: 101.15rpx; +} +.text_7 { + line-height: 22.81rpx; +} +.text-wrapper_3 { + margin-right: 22.9rpx; +} +.section_2 { + margin-left: 78.24rpx; + background-color: #ff5733; + width: 91.6rpx; + height: 5.73rpx; +} +.group_5 { + padding-top: 30.53rpx; +} +.image_2 { + width: 100vw; + height: 377.6081vw; +} +.section_3 { + padding: 24.81rpx 17.18rpx 15.27rpx 106.87rpx; + background-color: #ffffff; +} +.text_10 { + margin-top: 41.98rpx; + color: #a6a6a6; + line-height: 19.08rpx; + text-align: center; + width: 118.32rpx; +} +.text-wrapper_4 { + padding: 22.9rpx 0 15.27rpx; + background-color: #a5d63fcc; + border-radius: 19.08rpx; + width: 198.47rpx; + height: 59.16rpx; +} +.text_8 { + line-height: 22.88rpx; +} +.text-wrapper_5 { + padding: 22.9rpx 0 15.27rpx; + background-color: #ff5733cc; + border-radius: 19.08rpx; + width: 198.47rpx; + height: 59.16rpx; +} +.text_9 { + color: #ffffff; + line-height: 22.65rpx; +} \ No newline at end of file diff --git a/pages/jiedan/jiedan.js b/pages/jiedan/jiedan.js index 5730057..82ca1a1 100644 --- a/pages/jiedan/jiedan.js +++ b/pages/jiedan/jiedan.js @@ -1,6 +1,7 @@ -// pages/jiedan/jiedan.js +import {url} from '../../request' Page({ data: { + list:[], show:false, picture:[{ image:'/image/20250407154233.jpg' @@ -12,99 +13,18 @@ Page({ 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 + + xiangqing(e){ + const item = e.currentTarget.dataset.item; + const id = item.id + console.log(item); + wx.navigateTo({ + url: `/pages/xiangqing/xiangqing?id=${id}`, }) }, - 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) { }, @@ -120,7 +40,26 @@ Page({ * 生命周期函数--监听页面显示 */ onShow() { - + const that =this + wx.request({ + url: url + '/project/query/card', + method: 'POST', + data: { + + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('查询成功', res); + that.setData({ + list:res.data.data + }) + }, + fail(err) { + console.error('请求失败', err); + } + }); }, /** diff --git a/pages/jiedan/jiedan.wxml b/pages/jiedan/jiedan.wxml index c8ff2d0..169a1d9 100644 --- a/pages/jiedan/jiedan.wxml +++ b/pages/jiedan/jiedan.wxml @@ -1,86 +1,43 @@ - - - - - - - - - - - 校园接单 实现财富自由 - - - - - - - - - - - - - - - - - - - - - 筛选 - - - - - - - - - - - {{item.title}} - 容易度:{{item.level}} - {{item.person}} - - - - 佣金:{{item.money}}积分 - - - - 接单 - - - - - - - - - - - - - - - - - - - - - - - 任务分类 - + + + + + + + + + + + {{item.projectName}} + + 结算T+{{item.projectSettlementCycle}} + + + + 最高价 + ¥{{item.projectPrice}} - - - {{item.name}} - + + 正在推广 + {{item.currentPromotionCount}}人 + + + 参与推广 + + \ No newline at end of file diff --git a/pages/jiedan/jiedan.wxss b/pages/jiedan/jiedan.wxss index 1606c8a..5fa7e1c 100644 --- a/pages/jiedan/jiedan.wxss +++ b/pages/jiedan/jiedan.wxss @@ -1,197 +1,169 @@ -/* pages/jiedan/jiedan.wxss */ -.box{ - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; +.mt-5 { + margin-top: 9.62rpx; } -.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%; +.page { + padding-bottom: 144.23rpx; background-color: #ffffff; -} -.chengsehezi{ width: 100%; - height: 10%; - display: flex; - align-items: center; + overflow-y: auto; + overflow-x: hidden; } -.chengse{ - width: 4%; - height: 80%; - background-color: #FC7E09; - margin-left: 10rpx; +.image { + width: 100vw; + height: 48.7179vw; } -.wenzicheng{ - width: 96%; - height: 100%; - display: flex; - align-items: center; +.group { + padding: 0 15.38rpx; } -.xuazhongbox{ - width: 100%; - display: flex; - flex: 1; - flex-wrap: wrap; - gap: 20rpx; +.text-wrapper { + padding: 7.69rpx 0; + background-color: #ff8d1a; + border-radius: 19.23rpx; + width: 112.12rpx; + height: 46.15rpx; } -.he{ - display: flex; - justify-content: center; - align-items: center; - padding: 5px; - margin: 20rpx; +.font { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 25.17rpx; + color: #000000; } -.he.active { - background-color: #f37b1d; /* 高亮背景色 */ +.text { + color: #ffffff; + line-height: 25.02rpx; } -.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; +.text-wrapper_2 { + padding: 7.69rpx 0; background-color: #ffffff; + border-radius: 19.23rpx; + width: 185.54rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; } -.imageshai{ - width: 30px; - height: 30px; +.text_2 { + line-height: 27.52rpx; +} +.text-wrapper_3 { + padding: 7.69rpx 0; + background-color: #ffffff; + border-radius: 19.23rpx; + width: 125.63rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.text_3 { + line-height: 24.96rpx; +} +.text-wrapper_4 { + margin-right: 23.08rpx; + padding: 7.69rpx 0; + background-color: #ffffff; + border-radius: 19.23rpx; + width: 173.94rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.text_4 { + line-height: 24.77rpx; +} +.list { + padding: 0 23.08rpx; +} +.list-item { + padding: 26.92rpx 30.77rpx 19.23rpx 50rpx; + background-color: #ffffff; + border-radius: 19.23rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.list-item:first-child { + margin-top: 0; +} +.image_2 { + width: 111.54rpx; + height: 111.54rpx; +} +.group_2 { + margin-left: 38.46rpx; + width: 281.6rpx; +} +.view { + margin-left: 0; +} +.text_5 { + margin-left: 15.38rpx; +} +.text_6 { + line-height: 24.9rpx; +} +.text-wrapper_6 { + margin-left: 15.38rpx; + margin-top: 15.38rpx; + padding: 3.85rpx 0; + background-color: #fc7e0961; + width: 75.38rpx; +} +.font_3 { + font-size: 15.38rpx; + font-family: SourceHanSansCN; + line-height: 14.33rpx; + color: #e33c64; +} +.text_7 { + line-height: 14.25rpx; +} +.equal-division { + align-self: stretch; + margin-top: 7.69rpx; +} +.equal-division-item { + padding: 11.54rpx; + width: 140.81rpx; +} +.font_4 { + font-size: 15.38rpx; + font-family: SourceHanSansCN; + line-height: 14.33rpx; + color: #00000080; +} +.font_5 { + font-size: 15.38rpx; + font-family: SourceHanSansCN; + line-height: 11.67rpx; + color: #e33c64; +} +.text-wrapper_5 { + margin-left: 53.85rpx; + margin-top: 21.15rpx; + padding: 15.38rpx 0; + background-color: #a5d63fcc; + border-radius: 19.23rpx; + width: 127.58rpx; + height: 51.92rpx; +} +.view_2 { + margin-left: 0; + margin-top: 19.23rpx; +} +.font_2 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 19.79rpx; + color: #ffffff; +} +.swiper{ + width: 100%; + height:400rpx; } .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; +width: 100%; +height: 100%; } \ No newline at end of file diff --git a/pages/logain/logain.js b/pages/logain/logain.js index 967ff96..2cdbcc4 100644 --- a/pages/logain/logain.js +++ b/pages/logain/logain.js @@ -1,9 +1,11 @@ +import {url} from '../../request' Page({ data: { show: true, morenshow: false, currentTab: 'code', }, + // 初始加载 onShow(){ this.setData({ show: false, @@ -11,6 +13,7 @@ Page({ currentTab: 'password' }) }, +// 账号密码登录 showchange() { this.setData({ show: true, @@ -18,12 +21,39 @@ Page({ currentTab: 'code' }) }, + // 注册界面 gozucepage(){ wx.navigateTo({ url: '/pages/zucepage/zucepage', }) }, - + yanzhengphone(e){ + this.setData({ + yanzhengphone: e.detail.value + }) + console.log(e.detail.value); + }, + yanzhengcode(e){ + this.setData({ + yanzhengcode: e.detail.value + }) + console.log(e.detail.value); + }, + // 账号登录账号 + bindKeyInput(e){ + this.setData({ + inputValue: e.detail.value + }) + console.log(e.detail.value); + }, + // 账号登录密码 + bindKeyInputpassword(e){ + this.setData({ + inputValuepassword: e.detail.value + }) + console.log(e.detail.value); + }, + // 验证码登录 showchangeback() { this.setData({ show: false, @@ -31,10 +61,251 @@ Page({ currentTab: 'password' }) }, + // 忘记密码 wangji() { wx.navigateTo({ url: '/pages/wangjimima/wangjimima', }) + }, +// 账号密码登录提交 +submit(){ + const that = this + const phone = this.data.inputValue; + const password = this.data.inputValuepassword; + // 手机号验证(6~11位数字) + if (!/^\d{6,11}$/.test(phone)) { + wx.showToast({ + title: '请输入6到11位的账号', + icon: 'none' + }); + return; } + + // 密码验证(6~10位字符) + if (!/^.{6,10}$/.test(password)) { + wx.showToast({ + title: '请输入6到10位的密码', + icon: 'none' + }); + return; + } + // 勾选校验 + if (this.data.isAgree!=true) { + wx.showToast({ + title: '请先勾选协议', + icon: 'none' + }); + return; + } + console.log("sakldhasjdhja"); + wx.request({ + url: url + '/userInfo/mini/pwd/login', + method: 'POST', + data: { + phoneNumber: this.data.inputValue, + userPassword: this.data.inputValuepassword + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('登录成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '登录成功', + icon: 'success', + duration: 2000 + }); + wx.setStorage({ + key: "logmessage", + data: { + Authorization:res.data.data + }, + success() { + console.log("信息存储成功"); + } + }) + setTimeout(() => { + that.setmessage(); + wx.switchTab({ + url: '/pages/jiedan/jiedan', + }); + }, 2000); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'error', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); +}, +// 勾选 +onAgreeChange(e) { + this.setData({ + isAgree: true + }); + console.log("gaibianler",this.data.isAgree); +}, +// 获取验证码 +getcode(){ + const phone = this.data.yanzhengphone; + if (!/^\d{11}$/.test(phone)) { + wx.showToast({ + title: '请输入11位的手机号', + icon: 'none' + }); + return; + } + wx.request({ + url: url + '/userInfo/code', + method: 'POST', + data: { + templateString: this.data.yanzhengphone + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('发送成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '发送成功', + icon: 'success', + duration: 2000 + }); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'success', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); +}, +// 验证码登录提交 +submityanzhengma(){ + const _this = this; + const code = this.data.yanzhengcode + if (!/^\d{6}$/.test(code)) { + wx.showToast({ + title: '请输入6位的有效验证码', + icon: 'none' + }); + return; + } + if (this.data.isAgree!=true) { + wx.showToast({ + title: '请先勾选协议', + icon: 'none' + }); + return; + } + console.log("sakldhasjdhja"); + wx.request({ + url: url + '/userInfo/mini/vcd/login', + method: 'POST', + data: { + phoneNumber: this.data.yanzhengphone, + verificationCode: this.data.yanzhengcode + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('登录成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '登录成功', + icon: 'success', + duration: 2000 + }); + wx.setStorage({ + key: "logmessage", + data: { + Authorization:res.data.data + }, + success() { + console.log("信息存储成功"); + } + }) + setTimeout(() => { + _this.setmessage(); + wx.switchTab({ + url: '/pages/jiedan/jiedan', + }); + }, 2000); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'error', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); +}, +setmessage() { + const that = this; + wx.getStorage({ + key: "logmessage", + success(res) { + console.log(res.data, 'sajlkdlasjdkl'); + const userinfo = res.data; + wx.request({ + url: url + '/userInfo/get/jwt', + method: 'GET', + data: {}, + header: { + 'content-type': 'application/json', + 'Authorization': userinfo.Authorization + }, + success(res) { + console.log('查询成功', res); + if (res.data.code==1) { + wx.setStorage({ + key: "usermessage", + data: { + nickName:res.data.data.nickName, + phoneNumber:res.data.data.phoneNumber, + userRole:res.data.data.userRole, + invitationCode:res.data.data.invitationCode, + userAvatar:res.data.data.userAvatar + }, + success() { + console.log("信息存储成功"); + } + }) + } else { + wx.showToast({ + title: res.data.message, + icon: 'error', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); + }, + fail(err) { + console.error("获取 logmessage 失败", err); + } + }); +} + + }) diff --git a/pages/logain/logain.wxml b/pages/logain/logain.wxml index 86265eb..421fd61 100644 --- a/pages/logain/logain.wxml +++ b/pages/logain/logain.wxml @@ -1,5 +1,6 @@ + 欢迎登陆—青橙校园 @@ -11,30 +12,33 @@ - + - - 获取验证码 + + 获取验证码 - + - + 忘记密码 - + + 登录 + + 登录 - + 我已阅读并同意 用户服务协议、隐私政策 diff --git a/pages/logain/logain.wxss b/pages/logain/logain.wxss index 2bb80ea..6a7855d 100644 --- a/pages/logain/logain.wxss +++ b/pages/logain/logain.wxss @@ -13,8 +13,6 @@ 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; diff --git a/pages/mingxi/mingxi.js b/pages/mingxi/mingxi.js new file mode 100644 index 0000000..28ece12 --- /dev/null +++ b/pages/mingxi/mingxi.js @@ -0,0 +1,66 @@ +// pages/mingxi/mingxi.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + items: [null, null], + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/mingxi/mingxi.json b/pages/mingxi/mingxi.json new file mode 100644 index 0000000..172907b --- /dev/null +++ b/pages/mingxi/mingxi.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "明细", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/mingxi/mingxi.wxml b/pages/mingxi/mingxi.wxml new file mode 100644 index 0000000..b722637 --- /dev/null +++ b/pages/mingxi/mingxi.wxml @@ -0,0 +1,43 @@ + + + + 业务员 : 高婧怡 + + 结算日期 + + + + + 美团省钱包 + + + + 结算标准 + 结算数量 + 结算收益 + + + 完成订单 + 3 + ¥2.00 + + + 合计金额 + 3 + ¥2.00 + + + 时间:2025-04-16 + + + + \ No newline at end of file diff --git a/pages/mingxi/mingxi.wxss b/pages/mingxi/mingxi.wxss new file mode 100644 index 0000000..109bdea --- /dev/null +++ b/pages/mingxi/mingxi.wxss @@ -0,0 +1,125 @@ +.mt-25 { + margin-top: 48.08rpx; +} +.mt-15 { + margin-top: 28.85rpx; +} +.ml-123 { + margin-left: 236.54rpx; +} +.page { + padding-bottom: 238.46rpx; + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.section { + padding: 34.62rpx 23.08rpx; + background-color: #f8f8f8; +} +.image { + width: 34.62rpx; + height: 19.23rpx; +} +.group { + padding: 0 38.46rpx; +} +.text-wrapper { + padding: 46.15rpx 0 38.46rpx; + background-color: #ffffff; + border-radius: 28.85rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_2 { + margin-left: 42.31rpx; + color: #000000; + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 36.54rpx; + width: 100%; +} +.list { + margin-top: 26.92rpx; +} +.list-item { + padding: 0 38.46rpx 50rpx; + background-color: #ffffff; + border-radius: 9.62rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.list-item:first-child { + margin-top: 0; +} +.group_2 { + padding: 38.46rpx 0; +} +.image_2 { + width: 82.69rpx; + height: 82.69rpx; +} +.section_2 { + margin-left: 13.46rpx; + margin-right: 5.77rpx; + padding: 30.77rpx 46.15rpx 53.85rpx; + background-color: #f7f7f7; + border-radius: 8.15rpx; +} +.font { + font-size: 25rpx; + font-family: SourceHanSansCN; + line-height: 23.15rpx; + color: #000000; +} +.text_4 { + font-size: 26.92rpx; + line-height: 24.9rpx; +} +.text_3 { + margin-left: 11.54rpx; + margin-top: 42.31rpx; + line-height: 23.23rpx; +} +.text { + font-size: 26.92rpx; + line-height: 25.1rpx; +} +.text_5 { + line-height: 23.19rpx; +} +.text_6 { + line-height: 23.4rpx; +} +.font_2 { + font-size: 25rpx; + font-family: SourceHanSansCN; + line-height: 18.98rpx; + color: #000000; +} +.text_7 { + margin-left: 107.69rpx; +} +.text_8 { + margin-left: 138.46rpx; +} +.text_9 { + line-height: 23.33rpx; +} +.text_10 { + margin-left: 103.85rpx; +} +.text_11 { + margin-left: 142.31rpx; +} +.font_3 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 18.98rpx; + color: #808080; +} +.text_12 { + margin-left: 19.23rpx; + margin-top: 23.08rpx; + line-height: 19.37rpx; +} \ No newline at end of file diff --git a/pages/mypage/mypage.js b/pages/mypage/mypage.js index 97e72fa..fbc231a 100644 --- a/pages/mypage/mypage.js +++ b/pages/mypage/mypage.js @@ -1,65 +1,56 @@ // pages/mypage/mypage.js Page({ - /** - * 页面的初始数据 - */ + data: { }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - + myteam(){ + wx.navigateTo({ + url: '/pages/wodetuandui/wodetuandui', + }) + }, + onLoad(options) { + }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ onReady() { }, - /** - * 生命周期函数--监听页面显示 - */ onShow() { - + const that = this + wx.getStorage({ + key: "usermessage", + success(res) { + console.log(res.data,'aslkdjas'); + const userInfo = res.data + that.setData({ + nickName : userInfo.nickName, + phoneNumber: userInfo.phoneNumber, + invitationCode:userInfo.invitationCode, + userAvatar:userInfo.userAvatar + }); + } + }) }, - /** - * 生命周期函数--监听页面隐藏 - */ onHide() { }, - /** - * 生命周期函数--监听页面卸载 - */ onUnload() { }, - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ onPullDownRefresh() { }, - /** - * 页面上拉触底事件的处理函数 - */ onReachBottom() { }, - /** - * 用户点击右上角分享 - */ onShareAppMessage() { } diff --git a/pages/mypage/mypage.wxml b/pages/mypage/mypage.wxml index dfd7a77..1cda906 100644 --- a/pages/mypage/mypage.wxml +++ b/pages/mypage/mypage.wxml @@ -1,122 +1,154 @@ - - - - - - - 蒙娜丽莎 - ID:1829378126738 - - - - - - - - 我的积分 - - - - - 500 - - - - 提现 + + + + + + + + {{nickName}} + + + {{phoneNumber}} - - - - 30积分 - 支出 + + 邀请码:{{invitationCode}} + + + + + 当前金额: + ¥5.00 - - 500 - 收入 + + 立即提现 + - - 5.00 - 兑换金额 + + + + 待结算 + 提现中 + 已提现 + 累计收入 + + + ¥0.00 + ¥0.00 + ¥0.00 + ¥0.00 - - - - - 更多设置 - - - - - - 客服 - - - + + + + + 资金明细 + + + + 提现账户 + + + + 提现记录 + + + + + + + 我的课程 + + + + 我的接单 + + + + 勤工俭学 + + + + 购物订单 + + + + + + + 账号设置 + + + + + + + 佣金设置 + + + + + 我的团队 + + + + 项目 + + + - - - - - - 我的课程 - - - - - - - - - - 接单记录 - - - - - - - - - - 勤工俭学 - - - - - - - - - - 我的推广码 - - - - - - - - - - 更多设置 - - - - - - - - - - 审核查询 - - - - - - \ No newline at end of file diff --git a/pages/mypage/mypage.wxss b/pages/mypage/mypage.wxss index d2673fc..042c4a4 100644 --- a/pages/mypage/mypage.wxss +++ b/pages/mypage/mypage.wxss @@ -1,111 +1,290 @@ -/* pages/mypage/mypage.wxss */ -.touxiangbox{ - width: 100%; - height: 25vh; - display: flex; - flex-direction: column; - +.mt-15 { + margin-top: 28.85rpx; } -.imagesize{ - width: 100px; - height: 100px; - border-radius: 50px; - +.mt-7 { + margin-top: 13.46rpx; } -.imagebox{ - width: 100%; - height: 60%; - display: flex; - justify-content: center; - align-items: center; +.ml-29 { + margin-right: 15.77rpx; } -.wenzibox{ - width: 100%; - height: 30%; - display: flex; - align-items: center; - flex-direction: column; +.youmian{ + margin-right: 18.77rpx; } -.jifenbox{ - width: 100%; - height: 25vh; - display: flex; - align-items: center; - justify-content: center; +.ml-7 { + margin-left: 13.46rpx; } -.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%; +.page { + background-color: #ffffff; 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; + overflow-y: auto; + overflow-x: hidden; } -.jifenxiao{ - width: 33%; - height: 100%; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; +.section { + background-image: linear-gradient(180deg, #ff8d1a -34.1%, #ffffff1a 134.1%); + height: 446.15rpx; } -.number{ - color: #BD3124; +.group_2 { + margin-top: -305.77rpx; + padding: 0 42.31rpx; } -.gengduo{ - width: 100%; - height: 50vh; - display: flex; - align-items: center; - flex-direction: column; - margin-top: 50rpx; +.section_2 { + padding: 0 26.92rpx 38.46rpx 30.77rpx; + background-color: #ffffff; + border-radius: 28.85rpx; + height: 446.15rpx; } -.shezhitiao{ - width: 90%; - height: 50px; - display: flex; - align-items: center; - border-bottom: 1px solid #b1adaa ; +.group { + margin-top: -46.15rpx; + padding: 0 15.38rpx; } -.imagebiao{ - width: 30px; - height: 30px; +.image { + margin-bottom: 7.69rpx; + width: 134.62rpx; + height: 134.62rpx; + border-radius: 40px; } -.neibu{ - width: 50%; - height: 100%; - display: flex; - align-items: center; +.font { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 21.27rpx; + color: #000000; +} +.text { + margin-left: 3.85rpx; + font-size: 23.08rpx; +} +.image_2 { + width: 17.31rpx; + height: 17.31rpx; +} +.left{ + margin-left: 160rpx; +} +.section_3 { + margin-top: 17.31rpx; + padding: 7.69rpx 0 7.69rpx 11.54rpx; + background-color: #ffc3006e; + border-radius: 30.44rpx; + width: 205.77rpx; +} +.text_3 { + color: #d43030; + font-size: 17.31rpx; + font-family: SourceHanSansCN; + line-height: 15.9rpx; +} +.image_3 { + width: 25rpx; + height: 23.08rpx; +} +.group_3 { + padding: 46.15rpx 0; +} +.group_4 { + line-height: 23.35rpx; + height: 24.88rpx; +} +.text_5 { + color: #d43030; + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 23.35rpx; +} +.section_4 { + padding: 11.54rpx 19.23rpx 11.54rpx 26.92rpx; + background-color: #ffffff; + border-radius: 38.46rpx; + height: 48.08rpx; + border-left: solid 1.92rpx #ff8d1a; + border-right: solid 1.92rpx #ff8d1a; + border-top: solid 1.92rpx #ff8d1a; + border-bottom: solid 1.92rpx #ff8d1a; +} +.image_4 { + width: 17.31rpx; + height: 23.08rpx; +} +.section_5 { + margin-right: 3.85rpx; + padding: 15.38rpx 42.31rpx 34.62rpx 50rpx; + background-color: #f7f7f7; + border-radius: 9.62rpx; +} +.text_9 { + font-size: 23.08rpx; +} +.section_6 { + padding-bottom: 11.54rpx; + background-color: #ffffff; + border-radius: 19.23rpx; + height: 136.54rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.equal-division { + padding: 7.69rpx 23.08rpx 0; +} +.group_5 { + flex: 1 1 205.56rpx; +} +.equal-division-item { + padding: 7.69rpx 0; +} +.image_5 { + width: 64rpx; + height: 64rpx; +} +.font_3 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 19.5rpx; + color: #000000; +} +.equal-division_2 { + position: relative; + margin-top: 28.85rpx; +} +.section_7 { + padding: 7.69rpx; + background-color: #ffffff; + border-radius: 19.23rpx; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.equal-division-item_2 { + padding: 11.54rpx 34.62rpx; +} +.image_6 { + margin-left: 7.69rpx; +} +.font_4 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 19.62rpx; + color: #000000; +} +.group_6 { + margin-left: 326.92rpx; +} +.group_7 { + position: absolute; + right: 170rpx; + top: 50%; + transform: translateY(-50%); +} +.equal-division-item_3 { + padding: 11.54rpx 0; + width: 160.88rpx; +} +.equal-division-item_4 { + position: absolute; + right: 9.12rpx; + top: 50%; + transform: translateY(-50%); +} +.group_8 { + padding: 11.54rpx 38.46rpx; +} +.section_8 { + margin-top: 30.77rpx; + padding: 11.54rpx 19.23rpx 338.46rpx 46.15rpx; + background-color: #ffffff; + border-radius: 19.23rpx 19.23rpx 0 0; + border-left: solid 1.92rpx #e5e5e5; + border-right: solid 1.92rpx #e5e5e5; + border-top: solid 1.92rpx #e5e5e5; + border-bottom: solid 1.92rpx #e5e5e5; +} +.group_9 { + padding: 26.92rpx 0 11.54rpx; +} +.image_7 { + width: 30.77rpx; + height: 34.62rpx; +} +.font_2 { + font-size: 21.15rpx; + font-family: SourceHanSansCN; + line-height: 17.52rpx; + color: #000000; +} +.text_16 { + line-height: 19.46rpx; +} +.text_15 { + line-height: 19.73rpx; +} +.text_14 { + font-size: 23.08rpx; +} +.text_13 { + font-size: 23.08rpx; +} +.text_12 { + font-size: 23.08rpx; +} +.text_11 { + font-size: 23.08rpx; +} +.text_10 { + font-size: 23.08rpx; + line-height: 21.25rpx; +} +.text_8 { + font-size: 23.08rpx; + line-height: 21.31rpx; +} +.text_7 { + font-size: 23.08rpx; + line-height: 21.37rpx; +} +.text_6 { + font-size: 23.08rpx; + line-height: 21.44rpx; +} +.text_4 { + font-size: 23.08rpx; + line-height: 21.54rpx; +} +.text_2 { + color: #808080; + line-height: 16.06rpx; +} +.text_17 { + line-height: 19.19rpx; +} +.image_8 { + width: 15.38rpx; + height: 25rpx; +} +.image_9 { + margin-right: 19.23rpx; + margin-top: 11.54rpx; +} +.group_10 { + padding: 26.92rpx 0 9.62rpx; + border-top: solid 3.85rpx #e5e5e5; + border-bottom: solid 3.85rpx #e5e5e5; +} +.image_10 { + width: 51.92rpx; + height: 46.15rpx; +} +.text_18 { + line-height: 19.71rpx; +} +.image_11 { + margin-right: 19.23rpx; +} +.group_11 { + padding: 23.08rpx 19.23rpx 23.08rpx 61.54rpx; + border-bottom: solid 3.85rpx #e5e5e5; +} +.text_19 { + line-height: 18.52rpx; } \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.js b/pages/wangjimima/wangjimima.js index 2db73e1..4b04b1d 100644 --- a/pages/wangjimima/wangjimima.js +++ b/pages/wangjimima/wangjimima.js @@ -1,66 +1,151 @@ -// pages/wangjimima/wangjimima.js +import {url} from '../../request' Page({ - - /** - * 页面的初始数据 - */ data: { }, - - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - + phone(e){ + this.setData({ + phone:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - + yanzhengma(e){ + this.setData({ + yanzhengma:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - + password(e){ + this.setData({ + password:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - + passwordagain(e){ + this.setData({ + passwordagain:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - + subimt(){ + const phone = this.data.phone + const yanzhengma = this.data.yanzhengma + const password = this.data.password + const passwordagain = this.data.passwordagain + console.log(phone,'aslkjyhdkjashdjkashkj'); + if (!/^\d{11}$/.test(phone)) { + wx.showToast({ + title: '请输入11位的手机号', + icon: 'none' + }); + return; + } + if (!/^\d{6}$/.test(yanzhengma)) { + wx.showToast({ + title: '请输入6位的验证码', + icon: 'none' + }); + return; + } + if (!/^[a-zA-Z0-9]{6,10}$/.test(password)) { + wx.showToast({ + title: '请输入6~10位的密码', + icon: 'none' + }); + return; + } + if (!/^[a-zA-Z0-9]{6,10}$/.test(passwordagain)) { + wx.showToast({ + title: '请再次输入密码', + icon: 'none' + }); + return; + } + if(password !== passwordagain){ + wx.showToast({ + title: '两次输入的密码不一致,请重新输入', + icon: 'none' + }); + return; + } + wx.request({ + url: url + '/userInfo/mini/out/reset/pwd', + method: 'POST', + data: { + phoneNumber: this.data.phone, + verificationCode: this.data.yanzhengma, + userPassword: this.data.password, + userConfirmPassword: this.data.passwordagain + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('重置成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '重置成功', + icon: 'success', + duration: 2000 + }); + setTimeout(() => { + wx.navigateBack({ + delta: 1 + }) + }, 2000); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'error', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); + }, + // 获取验证码 +getcode(){ + const phone = this.data.phone; + console.log(phone,'askjhdsakjhdjkashjk'); + if (!/^\d{11}$/.test(phone)) { + wx.showToast({ + title: '请输入11位的手机号', + icon: 'none' + }); + return; } + wx.request({ + url: url + '/userInfo/code', + method: 'POST', + data: { + templateString: this.data.phone + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('发送成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '发送成功', + icon: 'success', + duration: 2000 + }); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'success', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); +}, + }) \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.wxml b/pages/wangjimima/wangjimima.wxml index 012418f..c03c9f3 100644 --- a/pages/wangjimima/wangjimima.wxml +++ b/pages/wangjimima/wangjimima.wxml @@ -1,25 +1,26 @@ + 欢迎登陆—青橙校园 忘记密码 - + - - 获取验证码 + + 获取验证码 - + - + 登陆账号 - + 重置密码 \ No newline at end of file diff --git a/pages/wangjimima/wangjimima.wxss b/pages/wangjimima/wangjimima.wxss index 70f5166..781be08 100644 --- a/pages/wangjimima/wangjimima.wxss +++ b/pages/wangjimima/wangjimima.wxss @@ -2,13 +2,11 @@ padding: 73.08rpx 38.46rpx 275rpx 48.08rpx; background-color: #ffffff; width: 100%; - overflow-y: auto; + overflow-y: hidden; 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; diff --git a/pages/wodetuandui/wodetuandui.js b/pages/wodetuandui/wodetuandui.js new file mode 100644 index 0000000..f8f7c6b --- /dev/null +++ b/pages/wodetuandui/wodetuandui.js @@ -0,0 +1,66 @@ +// pages/wodetuandui/wodetuandui.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + items: [null, null, null], + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/wodetuandui/wodetuandui.json b/pages/wodetuandui/wodetuandui.json new file mode 100644 index 0000000..c529cb3 --- /dev/null +++ b/pages/wodetuandui/wodetuandui.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "我的团队", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/wodetuandui/wodetuandui.wxml b/pages/wodetuandui/wodetuandui.wxml new file mode 100644 index 0000000..ea261fd --- /dev/null +++ b/pages/wodetuandui/wodetuandui.wxml @@ -0,0 +1,61 @@ + + + + + + + + 直接代理人数(人) + 4 + + + 团队总人数(人) + 12 + + + 团队总收益(人) + ¥10.88 + + + + 查看直属下级 + + + + 请设置邀请下级抽成比例如:0% + + + + + + + 成员列表 + + + + + + + + 张新然 + + 手机号:1234567797 + 团队人数:0 给我创造的收益:¥0 + + 注册时间:2025-10-31 13:20:30 + + + + \ No newline at end of file diff --git a/pages/wodetuandui/wodetuandui.wxss b/pages/wodetuandui/wodetuandui.wxss new file mode 100644 index 0000000..5faf265 --- /dev/null +++ b/pages/wodetuandui/wodetuandui.wxss @@ -0,0 +1,205 @@ +.ml-127 { + margin-left: 244.23rpx; +} +.mt-23 { + margin-top: 44.23rpx; +} +.mt-11 { + margin-top: 21.15rpx; +} +.mt-9 { + margin-top: 17.31rpx; +} +.ml-15 { + margin-left: 28.85rpx; + position: relative; + bottom: 6rpx; +} +.mt-27 { + margin-top: 51.92rpx; +} +.page { + padding-bottom: 105.77rpx; + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.section { + padding-top: 44.23rpx; + background-image: linear-gradient(180deg, #ff8d1a -34.1%, #ffffff1a 134.1%); +} +.group { + padding: 0 48.08rpx; +} +.image { + width: 15.38rpx; + height: 23.08rpx; +} +.font { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 24.77rpx; + color: #000000; +} +.text { + color: #ffffff; + line-height: 24.85rpx; +} +.group_2 { + padding-left: 61.54rpx; + padding-right: 53.85rpx; +} +.section_2 { + padding: 47.37rpx 0 24.04rpx; + background-color: #ffffff; + border-radius: 28.85rpx; +} +.equal-division { + align-self: stretch; +} +.group_3 { + flex: 1 1 211.54rpx; +} +.group_7 { + padding: 10rpx 5.79rpx 10rpx 23.1rpx; +} +.font_2 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 24.77rpx; + color: #000000; +} +.text_2 { + line-height: 23.92rpx; +} +.font_3 { + font-size: 38.46rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; +} +.text_5 { + margin-left: 46.9rpx; + color: #ff8d1a; + line-height: 28.19rpx; +} +.group_1 { + padding: 10rpx 27.02rpx 11.92rpx 29.29rpx; +} +.font_4 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; + color: #808080; +} +.text_3 { + color: #000000; + text-align: center; +} +.text_15 { + color: #d43030; + line-height: 28.69rpx; +} +.group_5 { + padding: 11.94rpx 0 11.42rpx; +} +.text_4 { + line-height: 23.9rpx; +} +.text_1 { + color: #d43030; + font-size: 38.46rpx; + font-family: SourceHanSansCN; + line-height: 29.19rpx; +} +.text-wrapper { + padding: 20.4rpx 0 21.9rpx; + background-color: #ffffff; + border-radius: 38.46rpx; + width: 436.54rpx; + border: solid 1.92rpx #a5d63f; +} +.text_6 { + color: #a5d63f; + font-size: 25rpx; + line-height: 23.08rpx; +} +.section_3 { + padding: 36.15rpx 31.9rpx 36.92rpx; + background-color: #ffffff; + border-radius: 28.85rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.text_7 { + line-height: 24.98rpx; +} +.image_2 { + width: 23.08rpx; + height: 26.92rpx; +} +.group_4 { + padding-left: 39.85rpx; + padding-right: 37.5rpx; +} +.text_8 { + color: #000000; + line-height: 35.65rpx; +} +.section_4 { + padding: 13.96rpx 31.27rpx 12.9rpx; + background-color: #ffffff; + border-radius: 38.46rpx; + width: 365.38rpx; + height: 55.77rpx; + border: solid 1.92rpx #a6a6a6; +} +.image_3 { + border-radius: 50%; + width: 23.08rpx; + height: 25.06rpx; +} +.text_9 { + line-height: 21.5rpx; +} +.list { + padding-left: 21.69rpx; + padding-right: 10.58rpx; +} +.list-item { + margin-left: 5.77rpx; + padding: 32.67rpx 27.71rpx 35.02rpx; + background-color: #ffffff; + border-radius: 16.94rpx; + box-shadow: 0rpx 3.85rpx 7.69rpx #00000040; +} +.list-item:first-child { + margin-top: 0; +} +.font_5 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; + color: #000000; +} +.text_10 { + line-height: 28.71rpx; +} +.section_5 { + margin: 30.92rpx 20.37rpx 0 33.83rpx; + padding: 31.69rpx 26.35rpx 36.69rpx; + background-color: #f7f7f7cc; +} +.font_6 { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 32.69rpx; + color: #000000; +} +.text_12 { + width: 450.77rpx; +} +.text_13 { + margin-top: 26.52rpx; + width: 338.46rpx; +} \ No newline at end of file diff --git a/pages/woyaojiedan/woyaojiedan.js b/pages/woyaojiedan/woyaojiedan.js new file mode 100644 index 0000000..36e75e5 --- /dev/null +++ b/pages/woyaojiedan/woyaojiedan.js @@ -0,0 +1,66 @@ +// pages/woyaojiedan/woyaojiedan.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/woyaojiedan/woyaojiedan.json b/pages/woyaojiedan/woyaojiedan.json new file mode 100644 index 0000000..8144931 --- /dev/null +++ b/pages/woyaojiedan/woyaojiedan.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "我要接单", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/woyaojiedan/woyaojiedan.wxml b/pages/woyaojiedan/woyaojiedan.wxml new file mode 100644 index 0000000..962c2c9 --- /dev/null +++ b/pages/woyaojiedan/woyaojiedan.wxml @@ -0,0 +1,13 @@ + + + + 姓名 + + 手机号 + + + + + 申请资料报备 + + \ No newline at end of file diff --git a/pages/woyaojiedan/woyaojiedan.wxss b/pages/woyaojiedan/woyaojiedan.wxss new file mode 100644 index 0000000..bedffc6 --- /dev/null +++ b/pages/woyaojiedan/woyaojiedan.wxss @@ -0,0 +1,58 @@ +.ml-124 { + margin-left: 238.46rpx; +} +.mt-609 { + margin-top: 1171.15rpx; +} +.page { + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.section { + padding: 34.62rpx 23.08rpx 37.69rpx; + background-color: #f8f8f8; +} +.image { + width: 34.62rpx; + height: 19.23rpx; +} +.font { + font-size: 26.92rpx; + font-family: SourceHanSansCN; + line-height: 24.83rpx; + color: #000000; +} +.group { + padding: 33.65rpx 39.42rpx 0; +} +.text-wrapper { + padding: 34.42rpx 0 33.06rpx; + background-color: #ffffff; + border-radius: 28.85rpx; + border: solid 1.92rpx #e5e5e5; +} +.text-wrapper_1 { + padding: 32.58rpx 0 34.96rpx; + background-color: #ffffff; + border-radius: 28.85rpx; + border: solid 1.92rpx #e5e5e5; +} +.text-wrapper_2 { + padding: 42.44rpx 0 31.02rpx; + background-color: #ff8d1a; +} +.text_3 { + color: #ffffff; + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 28.46rpx; +} +.input { + padding: 34.62rpx 38.38rpx 32.69rpx 38.38rpx; +} +.input_1 { + padding: 32.69rpx 38.77rpx 34.62rpx 38.77rpx; +} \ No newline at end of file diff --git a/pages/xiangqing/xiangqing.js b/pages/xiangqing/xiangqing.js new file mode 100644 index 0000000..6f06c1e --- /dev/null +++ b/pages/xiangqing/xiangqing.js @@ -0,0 +1,107 @@ +import {url} from '../../request' +Page({ + + /** + * 页面的初始数据 + */ + data: { + projectImage:"" + }, + + /** + * 生命周期函数--监听页面加载 + */ + jiedan(){ + wx.navigateTo({ + url: '/pages/woyaojiedan/woyaojiedan', + }) + }, + mingxi(){ + wx.navigateTo({ + url: '/pages/mingxi/mingxi', + }) + }, + onLoad(options) { + const that = this + const id = options.id + wx.request({ + url: url + '/project/query/id', + method: 'POST', + data: { + "id": id + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('查询成功', res); + if(res.data.code==1){ + const defalt = res.data.data + + that.setData({ + projectDesc:defalt.projectDesc, + projectDescription:defalt.projectDescription, + projectFlow:defalt.projectFlow, + projectImage:defalt.projectImage, + projectName:defalt.projectName, + projectStatus:defalt.projectStatus, + settlementDesc:defalt.settlementDesc, + projectPrice:defalt.projectPrice, + }) + } + }, + fail(err) { + console.error('请求失败', err); + } + }); + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/xiangqing/xiangqing.json b/pages/xiangqing/xiangqing.json new file mode 100644 index 0000000..503673b --- /dev/null +++ b/pages/xiangqing/xiangqing.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "项目详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/xiangqing/xiangqing.wxml b/pages/xiangqing/xiangqing.wxml new file mode 100644 index 0000000..b507210 --- /dev/null +++ b/pages/xiangqing/xiangqing.wxml @@ -0,0 +1,105 @@ + + + + + + {{projectName}} + + {{projectDescription}} + + 结算明细 + + + + + 最高价 + ¥{{projectPrice}} + + + + + + 项目详情 + 我的推广码 + + + + + + + + 项目政策 + + + 结算说明 + 新增推广码→填写信息→开码记录查看推广码 + + + + + + + 项目说明 + + 1.此业务需要用户扫描二维码/通过小程序链接跳转至小程序购买; + + 2.必须通过我们链接/二维码购买才能统计数据,例如:用户第二次直接在小程序/APP购买,那么第二次购买的就不能算作结算数据。 + + + 推广口令 报备流程(口令有效期一个月) 应各位合伙人要求,开通美团 外卖省钱包-春季活动 口令推广申请权限 + + + + 开头口令推广权限注意点: 1:先正常申请一个省钱包的推广sid,后扫下方二维码报备。 + 2:注意查看报备结果,审核通过后可使用 3:注意口令有效期,为申请开始的一个月有效,到期后重新申请。 + 4:每天16:00前申请的,次日12点查看结果。每天16:00后申请的。次日19点查看结果 + + + + 项目流程 + + + + + + + + + + + + + 再想想 + + + 我要接单 + + + + + \ No newline at end of file diff --git a/pages/xiangqing/xiangqing.wxss b/pages/xiangqing/xiangqing.wxss new file mode 100644 index 0000000..4bc28d5 --- /dev/null +++ b/pages/xiangqing/xiangqing.wxss @@ -0,0 +1,239 @@ +.ml-123 { + margin-left: 236.54rpx; +} +.mt-7 { + margin-top: 13.46rpx; +} +.ml-3 { + margin-left: 5.77rpx; +} +.mt-19 { + margin-top: 36.54rpx; +} +.mt-3 { + margin-top: 5.77rpx; +} +.page { + background-color: #ffffff; + width: 100%; + overflow-y: auto; + overflow-x: hidden; + height: 100%; +} +.section { + padding: 34.62rpx 23.08rpx; + background-color: #f8f8f8; +} +.image { + width: 34.62rpx; + height: 19.23rpx; +} +.font { + font-size: 25rpx; + font-family: SourceHanSansCN; + line-height: 23.1rpx; + color: #000000; +} +.text { + font-size: 26.92rpx; + line-height: 24.83rpx; +} +.group { + padding-left: 57.69rpx; + padding-right: 25rpx; +} +.image_2 { + width: 103.85rpx; + height: 103.85rpx; +} +.text_2 { + margin-left: 38.46rpx; + margin-top: 11.54rpx; + font-size: 26.92rpx; + line-height: 24.9rpx; +} +.group_2 { + padding-top: 38.46rpx; + width: 526rpx; +} +.pos { + position: absolute; + right: 0; + top: 15.38rpx; +} +.font_2 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 23.1rpx; +} +.text_4 { + color: #00000080; + font-size: 21.15rpx; + line-height: 21.75rpx; +} +.text-wrapper { + padding: 15.38rpx 0; + background-color: #a5d63fcc; + border-radius: 19.23rpx; + width: 126.92rpx; +} +.pos_2 { + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); +} +.text_3 { + color: #ffffff; + line-height: 21.5rpx; +} +.group_3 { + padding: 0 142.31rpx; +} +.text_5 { + color: #00000080; + font-size: 15.38rpx; + font-family: HarmonyOSSansTC; + line-height: 14.42rpx; +} +.text_6 { + color: #e33c64; + font-size: 17.31rpx; + font-family: SourceHanSansCN; + line-height: 13.13rpx; +} +.group_4 { + padding-left: 138.46rpx; + padding-right: 134.62rpx; +} +.group_5 { + padding-bottom: 11.54rpx; +} +.section_2 { + margin-left: 26.92rpx; + background-color: #ff8d1a; + width: 48.08rpx; + height: 3.85rpx; +} +.group_6 { + padding-left: 32.69rpx; + padding-right: 25rpx; +} +.section_3 { + margin-right: 13.46rpx; + padding: 21.15rpx 25rpx 284.62rpx; + background-color: #f8f8f8; + border-radius: 19.23rpx; +} +.image_3 { + width: 34.62rpx; + height: 38.46rpx; +} +.font_3 { + font-size: 25rpx; + font-family: HarmonyOSSansTC; + line-height: 23.1rpx; + color: #000000; +} +.text_8 { + line-height: 23.56rpx; +} +.text_7 { + color: #ff8d1a; + line-height: 23.06rpx; +} +.text_9 { + line-height: 23.19rpx; +} +.section_4 { + margin-left: 13.46rpx; + padding: 15.38rpx 30.77rpx 36.54rpx; + background-color: #f8f8f8; + border-radius: 19.23rpx; +} +.text_10 { + margin-left: 34.62rpx; + line-height: 23.52rpx; +} +.font_4 { + font-size: 23.08rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; + color: #000000; +} +.text_11 { + line-height: 21.69rpx; +} +.equal-division { + align-self: stretch; + margin: 0 15.38rpx; +} +.image_4 { + flex: 1 1 292.31rpx; +} +.equal-division-item { + height: 403.85rpx; +} +.section_5 { + margin-left: 13.46rpx; + padding: 23.08rpx 26.92rpx 30.77rpx; + background-color: #f8f8f8; + border-radius: 19.23rpx; +} +.text_12 { + margin-left: 38.46rpx; +} +.group_7 { + margin-top: 23.08rpx; +} +.text_13 { + text-indent: 0rpx; +} +.text_14 { + margin-top: 38.46rpx; +} +.section_6 { + margin-left: 13.46rpx; + padding: 30.77rpx 46.15rpx 40.38rpx; + background-color: #f8f8f8; + border-radius: 30.81rpx; +} +.text_15 { + margin-left: 19.23rpx; + line-height: 22.88rpx; +} +.image_5 { + flex: 1 1 292.31rpx; +} +.image_6 { + margin-left: -7.69rpx; + margin-right: 7.69rpx; + flex: 1 1 292.31rpx; +} +.equal-division_2 { + align-self: stretch; +} +.text-wrapper_2 { + padding: 26.92rpx 0; + flex: 1 1 375rpx; + background-color: #cccccc; + height: 84.62rpx; +} +.font_5 { + font-size: 30.77rpx; + font-family: SourceHanSansCN; + line-height: 26.92rpx; + color: #000000; +} +.text_16 { + line-height: 28.31rpx; +} +.text-wrapper_3 { + padding: 26.92rpx 0; + flex: 1 1 375rpx; + background-color: #ff8d1a; + height: 84.62rpx; +} +.text_17 { + line-height: 28.37rpx; +} \ No newline at end of file diff --git a/pages/zucepage/zucepage.js b/pages/zucepage/zucepage.js index 8fe8109..ff90e4c 100644 --- a/pages/zucepage/zucepage.js +++ b/pages/zucepage/zucepage.js @@ -1,4 +1,4 @@ -// pages/zucepage/zucepage.js +import {url} from '../../request' Page({ /** @@ -8,59 +8,171 @@ Page({ }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad(options) { - + name(e){ + this.setData({ + name:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady() { - + phone(e){ + this.setData({ + phone:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow() { - + code(e){ + this.setData({ + code:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide() { - + yanzhengma(e){ + this.setData({ + yanzhengma:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload() { - + password(e){ + this.setData({ + password:e.detail.value + }) + console.log(e.detail.value); }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh() { - + getcode(){ + const phone = this.data.phone; + if (!/^\d{11}$/.test(phone)) { + wx.showToast({ + title: '请输入11位的手机号', + icon: 'none' + }); + return; + } + wx.request({ + url: url + '/userInfo/code', + method: 'POST', + data: { + templateString: this.data.phone + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('发送成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '发送成功', + icon: 'success', + duration: 2000 + }); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'success', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom() { - + // 注册 + submit(){ + const yanzhengma = this.data.yanzhengma + const phone = this.data.phone + const password = this.data.password + const code = this.data.code + const name = this.data.name + if (!name) { + wx.showToast({ + title: '请输入昵称', + icon: 'none' + }); + return; + } + if (!/^\d{6}$/.test(yanzhengma)) { + wx.showToast({ + title: '请输入6位验证码', + icon: 'none' + }); + return; + } + if (!/^\d{6,11}$/.test(phone)) { + wx.showToast({ + title: '请输入6到11位的账号', + icon: 'none' + }); + return; + } + + // 密码验证(6~10位字符) + if (!/^.{6,10}$/.test(password)) { + wx.showToast({ + title: '请输入6到10位的密码', + icon: 'none' + }); + return; + } + if (!/^\d{6}$/.test(code)) { + wx.showToast({ + title: '请输入6位的邀请码', + icon: 'none' + }); + return; + } + if (this.data.isAgree!=true) { + wx.showToast({ + title: '请先勾选协议', + icon: 'none' + }); + return; + } + console.log("sakldhasjdhja"); + wx.request({ + url: url + '/userInfo/register', + method: 'POST', + data: { + nickName: this.data.name, + phoneNumber: this.data.phone, + verificationCode: this.data.yanzhengma, + invitationCode: this.data.code, + userPassword: this.data.password + }, + header: { + 'content-type': 'application/json' + }, + success(res) { + console.log('注册成功', res); + if(res.data.code==1){ + wx.showToast({ + title: '注册成功', + icon: 'success', + duration: 2000 + }); + setTimeout(() => { + wx.navigateBack({ + delta: 1 + }) + }, 2000); + }else{ + wx.showToast({ + title: res.data.message, + icon: 'error', + duration: 2000 + }); + } + }, + fail(err) { + console.error('请求失败', err); + } + }); }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage() { - - } -}) \ No newline at end of file + // 勾选 + onAgreeChange(e) { + this.setData({ + isAgree: true + }); + console.log("gaibianler",this.data.isAgree); + }, +}) diff --git a/pages/zucepage/zucepage.wxml b/pages/zucepage/zucepage.wxml index 8c027d3..fdbc7a6 100644 --- a/pages/zucepage/zucepage.wxml +++ b/pages/zucepage/zucepage.wxml @@ -1,26 +1,27 @@ + 欢迎登陆—青橙校园 账号注册 - - + + - - 获取验证码 + + 获取验证码 - - + + - + 我已阅读并同意 青橙用户服务协议、隐私政策 - + 注册 diff --git a/pages/zucepage/zucepage.wxss b/pages/zucepage/zucepage.wxss index 6e5675f..c352857 100644 --- a/pages/zucepage/zucepage.wxss +++ b/pages/zucepage/zucepage.wxss @@ -10,8 +10,6 @@ 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; diff --git a/project.private.config.json b/project.private.config.json index e82d0ce..14f28f0 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -2,7 +2,20 @@ "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", "projectname": "qingcheng", "setting": { - "compileHotReLoad": true + "compileHotReLoad": true, + "urlCheck": false }, - "condition": {} + "condition": { + "miniprogram": { + "list": [ + { + "name": "pages/xiangqing/xiangqing", + "pathName": "pages/logain/logain", + "query": "", + "launchMode": "default", + "scene": null + } + ] + } + } } \ No newline at end of file diff --git a/request.js b/request.js new file mode 100644 index 0000000..d60944f --- /dev/null +++ b/request.js @@ -0,0 +1 @@ +export const url='http://localhost:3456';