diff --git a/api/http.js b/api/http.js new file mode 100644 index 0000000..3f66ca9 --- /dev/null +++ b/api/http.js @@ -0,0 +1,37 @@ +const baseURL = 'http://192.168.0.112:8088/api/'; + +export function $http(methods,url,params){ + var header = { + 'content-type': 'application/json', + 'Authorization' : wx.getStorageSync('token') || '' + }; + return new Promise((resolve,reject)=>{ + wx.showLoading({ + title: '正在加载中...', + }) + wx.request({ + url: baseURL + url, + method: methods, + header: header, + data: params || {}, + success: res=> { + wx.hideLoading(); + if(!res.data.success && res.data.status == 401){ + // console.log('登陆失效') + wx.navigateTo({ + url: '/pages/login/index', + }) + } + resolve(res); + }, + fail: err=> { + wx.hideLoading(); + wx.showToast({ + title: '服务器错误,请稍后再试!', + icon : 'none' + }) + reject(err) + } + }) + }) +} \ No newline at end of file diff --git a/api/user.js b/api/user.js new file mode 100644 index 0000000..d13290b --- /dev/null +++ b/api/user.js @@ -0,0 +1,12 @@ +const http = require('./http.js') +export function bingPhone(){ + return new Promise((resolve,reject)=> { + // http.$http().then((res)=>{ + // if(res.success){ + // resolve(res) + // } else{ + // resolve(res) + // } + // }) + }) +} \ No newline at end of file diff --git a/app.js b/app.js index 5a55b4c..d1885b1 100644 --- a/app.js +++ b/app.js @@ -1,59 +1,38 @@ // app.js +const http = require('./api/http.js') App({ onLaunch() { - // 展示本地存储能力 - const logs = wx.getStorageSync('logs') || [] - logs.unshift(Date.now()) - wx.setStorageSync('logs', logs) - // 登录 - }, - login(loginInfo){ - wx.login({ - success: res => { - // 发送 res.code 到后台换取 openId, sessionKey, unionId - - } - }) - }, - http(methods,url,params){ - var header = { - 'content-type': 'application/json', - 'Authorization' : wx.getStorageSync('token') || '' - }; + login(){ return new Promise((resolve,reject)=>{ - wx.showLoading({ - title: '正在加载中...', - }) - wx.request({ - url: this.globalData.baseUrl + url, - method: methods, - header: header, - data: params || {}, - success: res=> { - wx.hideLoading(); - if(!res.data.success && res.data.status == 401){ - // console.log('登陆失效') - wx.navigateTo({ - url: '/pages/login/index', - }) - } - resolve(res); - }, - fail: err=> { - wx.hideLoading(); - wx.showToast({ - title: '服务器错误,请稍后再试!', - icon : 'none' + wx.getUserProfile({ + lang: 'zh_CN', + desc: '需要获取您的信息用来展示', + success: res => { + wx.showLoading({ title: '登录中' }) + wx.login({ + success: result => { + // 发送 res.code 到后台换取 openId, sessionKey, unionId + let data = { + code: result.code, + iv: res.iv, + encryptedData:res.encryptedData + } + http.$http('post','wxapp/auth',data).then((result)=>{ + console.log('数据已返回') + resolve(result) + }) + } }) - reject(err) + }, + fail: res=>{ + console.log('取消授权') } }) }) }, globalData: { - baseURL : 'http://192.168.0.114:8092/api/', - // baseURL : 'https://cloud.api.cyjyyjy.com/api/', + $http: http.$http } -}) +}) \ No newline at end of file diff --git a/app.json b/app.json index 75c6833..a6e17dc 100644 --- a/app.json +++ b/app.json @@ -1,19 +1,45 @@ { - "pages":[ - "pages/home/index", - "pages/goodsList/index", - - "pages/login/index", - "pages/goodsDetail/index", - "pages/companyInfo/index", - "pages/index/index" - ], - "window":{ - "backgroundTextStyle":"light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "Weixin", - "navigationBarTextStyle":"black" - }, - "style": "v2", - "sitemapLocation": "sitemap.json" + "pages": [ + "pages/home/index", + "pages/courseDetail/index", + "pages/courseReservation/index", + "pages/companyPage/index", + "pages/goodsDetail/index", + "pages/goodsList/index", + "pages/login/index", + "pages/companyInfo/index", + "pages/user/index", + "pages/user/myTeam/index", + "pages/user/bindCard/index", + "pages/user/cashOut/index", + "pages/user/profit/index" + ], + "tabBar": { + "selectedColor": "#E1994C", + "list": [{ + "pagePath": "pages/home/index", + "iconPath": "/images/lh.png", + "selectedIconPath": "/images/lh.png", + "text": "首页" + }, { + "pagePath": "pages/goodsList/index", + "iconPath": "/images/book-icon.png", + "selectedIconPath": "/images/book-icon.png", + "text": "商品列表" + }, + { + "pagePath": "pages/user/index", + "iconPath": "/images/user-icon.png", + "selectedIconPath": "/images/user-icon.png", + "text": "我的" + }] + }, + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "Weixin", + "navigationBarTextStyle": "black" + }, + "style": "v2", + "sitemapLocation": "sitemap.json" } diff --git a/app.wxss b/app.wxss index 1ee78cf..86c435c 100644 --- a/app.wxss +++ b/app.wxss @@ -12,6 +12,8 @@ image { } image{ /* border-radius: 8rpx; */ + width: 100%; + height: 100%; } /* layout */ .acea-row-nowrap { diff --git a/images/arror-d.png b/images/arror-d.png new file mode 100644 index 0000000..064a596 Binary files /dev/null and b/images/arror-d.png differ diff --git a/images/arror-r.png b/images/arror-r.png new file mode 100644 index 0000000..2092de8 Binary files /dev/null and b/images/arror-r.png differ diff --git a/images/book-icon.png b/images/book-icon.png new file mode 100644 index 0000000..9608a3e Binary files /dev/null and b/images/book-icon.png differ diff --git a/images/coursepage.png b/images/coursepage.png new file mode 100644 index 0000000..236b190 Binary files /dev/null and b/images/coursepage.png differ diff --git a/images/cy1.png b/images/cy1.png new file mode 100644 index 0000000..316b7b7 Binary files /dev/null and b/images/cy1.png differ diff --git a/images/cy2.png b/images/cy2.png new file mode 100644 index 0000000..2e2346d Binary files /dev/null and b/images/cy2.png differ diff --git a/images/cy3.png b/images/cy3.png new file mode 100644 index 0000000..a2f89dc Binary files /dev/null and b/images/cy3.png differ diff --git a/images/head.png b/images/head.png new file mode 100644 index 0000000..fb460c3 Binary files /dev/null and b/images/head.png differ diff --git a/images/jifen-icon.png b/images/jifen-icon.png new file mode 100644 index 0000000..3f2639e Binary files /dev/null and b/images/jifen-icon.png differ diff --git a/images/lh-bottom.png b/images/lh-bottom.png new file mode 100644 index 0000000..c86c5d3 Binary files /dev/null and b/images/lh-bottom.png differ diff --git a/images/lh-ico.png b/images/lh-ico.png new file mode 100644 index 0000000..b7a085e Binary files /dev/null and b/images/lh-ico.png differ diff --git a/images/lh-top.png b/images/lh-top.png new file mode 100644 index 0000000..3b3033b Binary files /dev/null and b/images/lh-top.png differ diff --git a/images/lh.png b/images/lh.png new file mode 100644 index 0000000..2091fcc Binary files /dev/null and b/images/lh.png differ diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..aa4b114 Binary files /dev/null and b/images/logo.png differ diff --git a/images/menu1.png b/images/menu1.png new file mode 100644 index 0000000..64aa530 Binary files /dev/null and b/images/menu1.png differ diff --git a/images/menu2.png b/images/menu2.png new file mode 100644 index 0000000..4e126b1 Binary files /dev/null and b/images/menu2.png differ diff --git a/images/menu3.png b/images/menu3.png new file mode 100644 index 0000000..af06aaa Binary files /dev/null and b/images/menu3.png differ diff --git a/images/menu4.png b/images/menu4.png new file mode 100644 index 0000000..7376837 Binary files /dev/null and b/images/menu4.png differ diff --git a/images/namebg.png b/images/namebg.png new file mode 100644 index 0000000..abf65d1 Binary files /dev/null and b/images/namebg.png differ diff --git a/images/panel.png b/images/panel.png new file mode 100644 index 0000000..631638a Binary files /dev/null and b/images/panel.png differ diff --git a/images/address.png b/images/placeicon.png similarity index 100% rename from images/address.png rename to images/placeicon.png diff --git a/images/profit.png b/images/profit.png new file mode 100644 index 0000000..6e18241 Binary files /dev/null and b/images/profit.png differ diff --git a/images/telbg.png b/images/telbg.png new file mode 100644 index 0000000..02d020f Binary files /dev/null and b/images/telbg.png differ diff --git a/images/user-icon.png b/images/user-icon.png new file mode 100644 index 0000000..2c6f336 Binary files /dev/null and b/images/user-icon.png differ diff --git a/images/yykc.png b/images/yykc.png new file mode 100644 index 0000000..7da7c4a Binary files /dev/null and b/images/yykc.png differ diff --git a/pages/companyPage/index.js b/pages/companyPage/index.js new file mode 100644 index 0000000..5150105 --- /dev/null +++ b/pages/companyPage/index.js @@ -0,0 +1,66 @@ +// pages/companyPage/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/companyPage/index.json b/pages/companyPage/index.json new file mode 100644 index 0000000..36bc204 --- /dev/null +++ b/pages/companyPage/index.json @@ -0,0 +1,7 @@ +{ + "usingComponents": {}, + "navigationBarBackgroundColor": "#343434", + "navigationBarTitleText": "公司介绍", + "navigationBarTextStyle": "white" + +} \ No newline at end of file diff --git a/pages/companyPage/index.wxml b/pages/companyPage/index.wxml new file mode 100644 index 0000000..472717a --- /dev/null +++ b/pages/companyPage/index.wxml @@ -0,0 +1,10 @@ + + + + + + + 全国咨询热线 + 400-631-8531 + + diff --git a/pages/companyPage/index.wxss b/pages/companyPage/index.wxss new file mode 100644 index 0000000..1d3ad5f --- /dev/null +++ b/pages/companyPage/index.wxss @@ -0,0 +1,26 @@ +/* pages/companyPage/index.wxss */ +.detail-page{ + min-height: 100vh; + background: linear-gradient(180deg, #343434 0%, #777777 100%); + font-size: 24rpx; + +} +.cy image{ + width: 100%; + +} +.cy1 image{ + height: 1354rpx; +} +.cy2 image{ + height: 1434rpx; +} +.cy3 image{ + height: 1531rpx; + +} +.footer{ + height: 214rpx; + font-size: 32rpx; + color: #fff; +} \ No newline at end of file diff --git a/pages/courseDetail/index.js b/pages/courseDetail/index.js new file mode 100644 index 0000000..071c189 --- /dev/null +++ b/pages/courseDetail/index.js @@ -0,0 +1,66 @@ +// pages/courseDetail/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/courseDetail/index.json b/pages/courseDetail/index.json new file mode 100644 index 0000000..eb20498 --- /dev/null +++ b/pages/courseDetail/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "课程详情" +} \ No newline at end of file diff --git a/pages/courseDetail/index.wxml b/pages/courseDetail/index.wxml new file mode 100644 index 0000000..4595d41 --- /dev/null +++ b/pages/courseDetail/index.wxml @@ -0,0 +1,48 @@ + + + + + 弘扬传统国学 + + + + + + 授课老师 + + + + + 李大辉 + 中国资深国学大师 + + + 中国杰出道家文化特邀嘉宾,互联网占扑界大师,资深命理大师家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师,资 + + + + + 授课老师 + + + + + 中国杰出道家文化特邀嘉宾,互联网占扑界大师,资深命理大师家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师,资中国杰出道家文化特邀嘉宾,互联网占扑界大师,资深命理大师家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师,资家文化特邀嘉宾,互联网占扑界大师 + + + + + \ No newline at end of file diff --git a/pages/courseDetail/index.wxss b/pages/courseDetail/index.wxss new file mode 100644 index 0000000..cc5b9d9 --- /dev/null +++ b/pages/courseDetail/index.wxss @@ -0,0 +1,158 @@ +/* pages/courseDetail/index.wxss */ +.detail-page{ + min-height: 100vh; + background-color: #F5F5F5; + font-size: 24rpx; +} +.subscribe{ + width: 100%; + height: 688rpx; +} +.subscribe,.introduse-box,.course-box{ + background-color: #fff; +} +.subscribe image{ + width: 100%; + height: 432rpx; + position: relative; + display: block; + +} +.title{ + width: 100%; + font-size: 96rpx; + position: absolute; + top: 76px; + color: #fff; + +} +.subscribe-con{ + width: 100%; + height: 256rpx; + position: relative; + right: 40rpx; + padding-left: 80rpx; +} + +.headline{ + font-size: 36rpx; + font-weight: 600; + color: #4A4A4A; + padding-top: 30rpx; +} + +.subtitle{ + font-weight: 400; + color: #A5A5A5; + padding-top: 8rpx; +} +.placeicon{ + float: left; + margin-top: 24rpx; +} +.placeicon image{ + width: 21rpx; + height: 25rpx; +} +.timeicon image{ + width: 26rpx; + height: 26rpx; + margin-left: 30rpx; +} +.timeicon text,.placeicon text{ + padding-left: 8rpx; + color: #A5A5A5; + font-weight: 400; +} +.timeicon{ + margin-top: 24rpx; +} +.num{ + color: #E19C01; + margin-top: 16rpx; +} +.order-btn{ + position: absolute; + width: 216rpx; + height: 64rpx; + font-size: 36rpx; + color: #FFFFFF; + right: 0; + bottom: 32rpx; + background: linear-gradient(225deg, #FFD87D 0%, #E19C00 100%); + border-radius: 40px; +} + +.introduse-box{ + width: 100%; + height: 416rpx; + margin-top: 20rpx; + padding-left: 40rpx; +} +.teach{ + padding-top: 28rpx; +} +.teach image{ + width: 44rpx; + height: 28rpx; +} +.teach text{ + font-size: 28rpx; + margin-left: 16rpx; + +} +.introduce-name{ + margin-top: 32rpx; +} +.introduce-name image{ + width: 76rpx; + height: 76rpx; + margin-right: 18rpx; +} +.introduce-name view{ + margin-bottom: 4rpx; + font-size: 28rpx; + color: #4A4A4A; +} +.name{ + font-weight: 600; +} +.desc{ + width: 672rpx; + height: 102rpx; + color: #989898; + margin-top: 16rpx; +} +.course-box{ + width: 100%; + height: 976rpx; + margin-top: 44rpx; + padding: 0 40rpx; +} +.course-con{ + background-color: #E7DBBD; + margin: 12rpx 0 48rpx 0; +} +.course-con image{ + width: 100%; + height: 178rpx; +} +.course-con view{ + color: #343434; + padding: 8rpx 22rpx 18rpx 24rpx; +} +.list-box{ + width: 100%; + height: 162rpx; + padding: 0 62rpx 0 64rpx; + box-shadow: 6rpx 0rpx 24rpx rgba(0, 0, 0, 0.16); +} +.list-box image{ + width: 96rpx; + height: 96rpx; +} +.list-box text{ + font-size: 32rpx; + font-weight: 500; + color: #4A4A4A; +} \ No newline at end of file diff --git a/pages/courseReservation/index.js b/pages/courseReservation/index.js new file mode 100644 index 0000000..3c43e1f --- /dev/null +++ b/pages/courseReservation/index.js @@ -0,0 +1,66 @@ +// pages/courseReservation/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/courseReservation/index.json b/pages/courseReservation/index.json new file mode 100644 index 0000000..9d58eb1 --- /dev/null +++ b/pages/courseReservation/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "课程预约" +} \ No newline at end of file diff --git a/pages/courseReservation/index.wxml b/pages/courseReservation/index.wxml new file mode 100644 index 0000000..b72ac7c --- /dev/null +++ b/pages/courseReservation/index.wxml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/pages/courseReservation/index.wxss b/pages/courseReservation/index.wxss new file mode 100644 index 0000000..370b266 --- /dev/null +++ b/pages/courseReservation/index.wxss @@ -0,0 +1,56 @@ +/* pages/courseReservation/index.wxss */ +.detail-page{ + min-height: 100vh; + background-color: #FDF1D3; + position: relative; +} +.top-bg image{ + width: 100%; + height: 200rpx; + position: absolute; + top: 0; +} +.title image{ + width: 408rpx; + height: 122rpx; + margin-top: 304rpx; + +} +.input-box{ + width: 100%; + padding: 44rpx 126rpx 100rpx 128rpx; +} +.name image{ + width: 104rpx; + height: 48rpx; +} +.input{ + width: 496rpx; + height: 80rpx; + background: #298C93; + border: 2px solid #CFBFA3; + border-radius: 56rpx; + margin-top: 16rpx; + padding-left: 32rpx; + font-size: 32rpx; + color: #FFFFFF; +} +.tel image{ + width: 184rpx; + height: 48rpx; + margin-top: 64rpx; +} +.submit{ + height: 80rpx; + background: linear-gradient(49deg, #E6A717 0%, #FFD471 100%); + border-radius: 16rpx; + font-size: 36rpx; + color: #fff; + margin-bottom: 224rpx; +} +.bottom-bg image{ + width: 100%; + height: 200rpx; + position: absolute; + bottom: 0; +} diff --git a/pages/index/index.js b/pages/index/index.js deleted file mode 100644 index 543a3f9..0000000 --- a/pages/index/index.js +++ /dev/null @@ -1,50 +0,0 @@ -// index.js -// 获取应用实例 -const app = getApp() - -Page({ - data: { - motto: 'Hello World', - userInfo: {}, - hasUserInfo: false, - canIUse: wx.canIUse('button.open-type.getUserInfo'), - canIUseGetUserProfile: false, - // canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName' // 如需尝试获取用户信息可改为false - canIUseOpenData: false - }, - // 事件处理函数 - bindViewTap() { - wx.navigateTo({ - url: '../logs/logs' - }) - }, - onLoad() { - console.log(wx.getUserProfile) - if (wx.getUserProfile) { - this.setData({ - canIUseGetUserProfile: true - }) - } - }, - getUserProfile(e) { - // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗 - wx.getUserProfile({ - desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 - success: (res) => { - console.log(res) - this.setData({ - userInfo: res.userInfo, - hasUserInfo: true - }) - } - }) - }, - getUserInfo(e) { - // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息 - console.log(e) - this.setData({ - userInfo: e.detail.userInfo, - hasUserInfo: true - }) - } -}) diff --git a/pages/index/index.json b/pages/index/index.json deleted file mode 100644 index 8835af0..0000000 --- a/pages/index/index.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml deleted file mode 100644 index f00d294..0000000 --- a/pages/index/index.wxml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - 请使用1.4.4及以上版本基础库 - - - - {{userInfo.nickName}} - - - - {{motto}} - - diff --git a/pages/index/index.wxss b/pages/index/index.wxss deleted file mode 100644 index eb64203..0000000 --- a/pages/index/index.wxss +++ /dev/null @@ -1,19 +0,0 @@ -/**index.wxss**/ -.userinfo { - display: flex; - flex-direction: column; - align-items: center; - color: #aaa; -} - -.userinfo-avatar { - overflow: hidden; - width: 128rpx; - height: 128rpx; - margin: 20rpx; - border-radius: 50%; -} - -.usermotto { - margin-top: 200px; -} \ No newline at end of file diff --git a/pages/logs/logs.js b/pages/logs/logs.js deleted file mode 100644 index 85f6aac..0000000 --- a/pages/logs/logs.js +++ /dev/null @@ -1,18 +0,0 @@ -// 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 deleted file mode 100644 index 3ee76c1..0000000 --- a/pages/logs/logs.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "navigationBarTitleText": "查看启动日志", - "usingComponents": {} -} \ No newline at end of file diff --git a/pages/logs/logs.wxml b/pages/logs/logs.wxml deleted file mode 100644 index 0b6b645..0000000 --- a/pages/logs/logs.wxml +++ /dev/null @@ -1,6 +0,0 @@ - - - - {{index + 1}}. {{log.date}} - - diff --git a/pages/logs/logs.wxss b/pages/logs/logs.wxss deleted file mode 100644 index 94d4b88..0000000 --- a/pages/logs/logs.wxss +++ /dev/null @@ -1,8 +0,0 @@ -.log-list { - display: flex; - flex-direction: column; - padding: 40rpx; -} -.log-item { - margin: 10rpx; -} diff --git a/pages/user/bindCard/index.js b/pages/user/bindCard/index.js new file mode 100644 index 0000000..e3ab625 --- /dev/null +++ b/pages/user/bindCard/index.js @@ -0,0 +1,66 @@ +// pages/user/bindCard/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/bindCard/index.json b/pages/user/bindCard/index.json new file mode 100644 index 0000000..b99eea8 --- /dev/null +++ b/pages/user/bindCard/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "绑定银行卡" +} \ No newline at end of file diff --git a/pages/user/bindCard/index.wxml b/pages/user/bindCard/index.wxml new file mode 100644 index 0000000..52650f9 --- /dev/null +++ b/pages/user/bindCard/index.wxml @@ -0,0 +1,18 @@ + + + + + 持卡人 + + + + 银行卡号 + + + + 开户行 + + + + 确定 + diff --git a/pages/user/bindCard/index.wxss b/pages/user/bindCard/index.wxss new file mode 100644 index 0000000..084af47 --- /dev/null +++ b/pages/user/bindCard/index.wxss @@ -0,0 +1,41 @@ +/* pages/user/bindCard/index.wxss */ +page{ + width: 100%; + height: 100%; + background: #F8F8F8; +} +.bindcard-page{ + width: 100%; + padding: 32rpx 38rpx; +} +.form{ + width: 100%; + background: #fff; + border-radius: 18rpx; +} +.form-item{ + width: 100%; + height: 100rpx; + padding: 0 36rpx; + font-size: 34rpx; + color: #000; + display: flex; + align-items: center; + justify-content: space-between; + border: 2rpx solid #F5F5F5; +} +.form-item input{ + text-align: right; + font-size: 32rpx; +} +.submit{ + width: 440rpx; + height: 88rpx; + background: #F7C37A; + border-radius: 44rpx; + text-align: center; + line-height: 88rpx; + font-size: 46rpx; + color: #fff; + margin: 60rpx auto; +} \ No newline at end of file diff --git a/pages/user/cashOut/index.js b/pages/user/cashOut/index.js new file mode 100644 index 0000000..36122bd --- /dev/null +++ b/pages/user/cashOut/index.js @@ -0,0 +1,66 @@ +// pages/user/cashOut/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/cashOut/index.json b/pages/user/cashOut/index.json new file mode 100644 index 0000000..bb2f852 --- /dev/null +++ b/pages/user/cashOut/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "提现", + "enablePullDownRefresh": true +} \ No newline at end of file diff --git a/pages/user/cashOut/index.wxml b/pages/user/cashOut/index.wxml new file mode 100644 index 0000000..6971c3f --- /dev/null +++ b/pages/user/cashOut/index.wxml @@ -0,0 +1,19 @@ + + + + + + 当前可提现积分(积分比例为1:1) + 300 + + + 注:提现需在每月20-26日进行,其他时间不可提现 + + 提现金额 + + + + 全部提现 + + + diff --git a/pages/user/cashOut/index.wxss b/pages/user/cashOut/index.wxss new file mode 100644 index 0000000..c50af4b --- /dev/null +++ b/pages/user/cashOut/index.wxss @@ -0,0 +1,68 @@ +/* pages/user/cashOut/index.wxss */ +.cashout-page{ + width: 100%; + min-height: 100vh; + padding: 40rpx; + background: #F8F8F8; +} +.profit-box{ + width: 100%; + height: 256rpx; + position: relative; + margin-top: 20rpx; +} +.profit-box image{ + position: absolute; + top: 0; +} +.profit-info{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + z-index: 3; + padding: 48rpx 94rpx 0 36rpx; + color: #fff; + font-weight: 500; +} +.s-word{ + font-size: 22rpx; +} +.fz70{ + font-size: 70rpx; + font-weight: 500; + line-height: 98rpx; +} +.tips{ + font-size: 20rpx; + color:#FF3434; + margin: 62rpx 0 20rpx; + font-weight: 600; +} +.handle-box{ + background: #fff; + border-radius: 18rpx; + font-size: 28rpx; +} +.handle-box .tit{ + width: 100%; + height: 98rpx; + line-height: 98rpx; + text-indent: 2em; + border-bottom: 2rpx solid #F5F5F5; + font-size: 28rpx; +} +.inp-box{ + width: 100%; + padding: 0 32rpx; + height: 108rpx; +} +.inp-box input{ + margin-left: -100rpx; +} +.fz50{ + font-size: 50rpx; +} +.colO{ + color: #F68514; +} \ No newline at end of file diff --git a/pages/user/index.js b/pages/user/index.js new file mode 100644 index 0000000..9b45927 --- /dev/null +++ b/pages/user/index.js @@ -0,0 +1,66 @@ +// pages/user/index.js +const app = getApp() +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/index.json b/pages/user/index.json new file mode 100644 index 0000000..7f39eb5 --- /dev/null +++ b/pages/user/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "我的" +} \ No newline at end of file diff --git a/pages/user/index.wxml b/pages/user/index.wxml new file mode 100644 index 0000000..31636cd --- /dev/null +++ b/pages/user/index.wxml @@ -0,0 +1,70 @@ + + + + + + 赵铁柱 + ID:2123 + + + + + + + + 今日收益 + 200积分 + + + 累计收益 + 200积分 + + + + + + 推广人数 + 20人 + + + 今日收益 + 20人 + + + + + 积分详情 + + + + + + + + + 去提现 + + + + + + + 我的团队 + + + + + + + 设置 + + + + + + + 官方客服电话:027-88888877 + + + + \ No newline at end of file diff --git a/pages/user/index.wxss b/pages/user/index.wxss new file mode 100644 index 0000000..c9c243e --- /dev/null +++ b/pages/user/index.wxss @@ -0,0 +1,113 @@ +/* pages/user/index.wxss */ +.user-page{ + width: 100%; + min-height: 100vh; + padding: 40rpx; + background: #F8F8F8; +} +.user-box{ + width: 100%; +} +.avatar{ + width: 128rpx; + height: 128rpx; + border-radius: 50%; + margin-right: 30rpx; +} +.avatar image{ + border-radius: 50%; +} +.userInfo{ + color: #333333; + font-size: 40rpx; + font-weight: 500; +} +.id-num{ + color: #E1994C; + font-weight: 400; + font-size: 36rpx; +} + +.panel-box{ + width: 100%; + height: 304rpx; + position: relative; + margin-top: 32rpx; +} +.panel-bg{ + position: absolute; + left: 0; +} +.panel-content{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + left: 0; + font-size: 28rpx; + color: #fff; + padding: 32rpx 0; +} +.profit-box{ + width: 312rpx; + text-align: center; +} +.fz40{ + font-size: 40rpx; +} +.mt20{ + margin: 20rpx 0; +} +.col-line{ + width: 2rpx; + height: 100%; + background: #fff; +} +.sale-box{ + width: 256rpx; + text-align: center; +} +.to-more-box{ + width: 100rpx; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} +.jifen-icon{ + width: 37rpx; + height: 42rpx; +} +.col-text{ + width: 30rpx; + margin: 4rpx 0; +} +.arror-r-icon{ + width: 28rpx; + height: 16rpx; +} + +.menu-list{ + width: 100%; + background: #fff; + border-radius: 24rpx; + margin-top: 24rpx; +} +.menu-item{ + width: 100%; + height: 136rpx; + padding: 0 32rpx; + border-bottom: 1px solid #F2F2F2; +} +.menu-item:nth-last-child(1){ + border: none; +} +.item-l image{ + width: 48rpx; + height: 48rpx; + margin-right: 16rpx; +} +.arrow-r{ + width: 16rpx; + height: 28rpx; +} \ No newline at end of file diff --git a/pages/user/myTeam/index.js b/pages/user/myTeam/index.js new file mode 100644 index 0000000..ae57f29 --- /dev/null +++ b/pages/user/myTeam/index.js @@ -0,0 +1,66 @@ +// pages/user/myTeam/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/myTeam/index.json b/pages/user/myTeam/index.json new file mode 100644 index 0000000..9825d33 --- /dev/null +++ b/pages/user/myTeam/index.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "我的团队" +} \ No newline at end of file diff --git a/pages/user/myTeam/index.wxml b/pages/user/myTeam/index.wxml new file mode 100644 index 0000000..ef7b4e1 --- /dev/null +++ b/pages/user/myTeam/index.wxml @@ -0,0 +1,30 @@ + + + + + 今日新增 + 20人 + + + 一级 + 12人 + + + 二级 + 8人 + + + + + 成员名称 + 一级积分收益 + 二级积分收益 + + + + 李元芳 + 500积分 + 9030积分 + + + diff --git a/pages/user/myTeam/index.wxss b/pages/user/myTeam/index.wxss new file mode 100644 index 0000000..9a6ee59 --- /dev/null +++ b/pages/user/myTeam/index.wxss @@ -0,0 +1,45 @@ +/* pages/user/myTeam/index.wxss */ + +.index-page{ + width: 100%; + min-height: 100vh; + background: #F8F8F8; + padding: 32rpx 38rpx; +} +.data-panel-box{ + width: 100%; + padding: 38rpx 66rpx; + background: #FFD092; + border-radius: 24rpx; + color: #fff; +} +.data-panel-box view{ + text-align: center; +} +.fz40{ + font-size: 40rpx; + line-height: 56rpx; +} +.t-header{ + width: 100%; + height: 48rpx; + border-radius: 16rpx; + color: #AF681B; + font-size: 28rpx; + background: #fff; + padding: 0 22rpx; + margin: 16rpx 0; +} +.b-item{ + width: 100%; + padding: 22rpx; + background: #fff; + border-radius: 24rpx; + margin-bottom: 24rpx; + font-size: 28rpx; + color: #CC8E46; +} +.w180{ + width: 180rpx; + text-align: center; +} \ No newline at end of file diff --git a/pages/user/profit/index.js b/pages/user/profit/index.js new file mode 100644 index 0000000..3738ff3 --- /dev/null +++ b/pages/user/profit/index.js @@ -0,0 +1,66 @@ +// pages/user/profit/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/profit/index.json b/pages/user/profit/index.json new file mode 100644 index 0000000..8e0619d --- /dev/null +++ b/pages/user/profit/index.json @@ -0,0 +1,5 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "我的收益", + "enablePullDownRefresh": true +} \ No newline at end of file diff --git a/pages/user/profit/index.wxml b/pages/user/profit/index.wxml new file mode 100644 index 0000000..936c642 --- /dev/null +++ b/pages/user/profit/index.wxml @@ -0,0 +1,42 @@ + + + + + + + 赵铁柱 + ID:2123 + + + + + + + + + 今日收益 + 200积分 + + + 累计收益 + 200积分 + + + 去提现 + + + + + 积分动态 + + + 禅易风云 + 2021-11-26 + + + +500积分 + 一级收益 + + + + diff --git a/pages/user/profit/index.wxss b/pages/user/profit/index.wxss new file mode 100644 index 0000000..47f3739 --- /dev/null +++ b/pages/user/profit/index.wxss @@ -0,0 +1,93 @@ +/* pages/user/profit/index.wxss */ +.profit-page{ + width: 100%; + min-height: 100vh; + padding: 40rpx; + background: #F8F8F8; +} +.user-box{ + width: 100%; +} +.avatar{ + width: 128rpx; + height: 128rpx; + border-radius: 50%; + margin-right: 30rpx; +} +.avatar image{ + border-radius: 50%; +} +.userInfo{ + color: #333333; + font-size: 40rpx; + font-weight: 500; +} +.id-num{ + color: #E1994C; + font-weight: 400; + font-size: 36rpx; +} +.profit-box{ + width: 100%; + height: 256rpx; + position: relative; + margin-top: 20rpx; +} +.profit-box image{ + position: absolute; + top: 0; +} +.profit-info{ + width: 100%; + height: 100%; + position: absolute; + top: 0; + z-index: 3; + padding: 48rpx 94rpx 0 94rpx; + color: #E18F38; + text-align: center; +} +.fz40{ + font-size: 40rpx; +} +.to-cash-out{ + width: 180rpx; + height: 64rpx; + background: #FFFFFF; + border-radius: 32rpx; + text-align: center; + line-height: 64rpx; + font-size: 28rpx; + color: #E1994C; + margin: 16rpx auto; +} + +.int-list{ + margin-top: 32rpx; + width: 100%; +} +.int-t{ + color: #AA6214; + font-size: 32rpx; + font-weight: 500; + margin-bottom: 16rpx; +} +.int-item{ + width: 100%; + padding: 36rpx 32rpx; + font-size: 28rpx; + color: #3A3A3A; + display: flex; + justify-content: space-between; + align-items: center; + background: #fff; + border: 24rpx; + margin-bottom: 16rpx; + border-radius: 32rpx; +} +.title{ + font-weight: 500; +} +.colR{ + color: #CC8E46; +} \ No newline at end of file