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..22617cf
--- /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..d357258 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
}
})
diff --git a/app.json b/app.json
index 49d61fc..9947d36 100644
--- a/app.json
+++ b/app.json
@@ -1,10 +1,14 @@
{
"pages":[
-
"pages/home/index",
"pages/goodsList/index",
- "pages/login/index",
"pages/goodsDetail/index",
+ "pages/user/index",
+ "pages/user/myTeam/index",
+ "pages/user/bindCard/index",
+ "pages/user/cashOut/index",
+ "pages/user/profit/index",
+ "pages/login/index",
"pages/companyInfo/index",
"pages/index/index"
],
@@ -14,6 +18,26 @@
"navigationBarTitleText": "Weixin",
"navigationBarTextStyle":"black"
},
+ "tabBar": {
+ "selectedColor": "#E1994C",
+ "list": [{
+ "pagePath": "pages/home/index",
+ "iconPath": "/images/tab/home.png",
+ "selectedIconPath": "/images/tab/home-a.png",
+ "text": "首页"
+ }, {
+ "pagePath": "pages/goodsList/index",
+ "iconPath": "/images/tab/list.png",
+ "selectedIconPath": "/images/tab/list-a.png",
+ "text": "商品列表"
+ },
+ {
+ "pagePath": "pages/user/index",
+ "iconPath": "/images/tab/my.png",
+ "selectedIconPath": "/images/tab/my-a.png",
+ "text": "我的"
+ }]
+ },
"style": "v2",
"sitemapLocation": "sitemap.json"
}
diff --git a/app.wxss b/app.wxss
index f5deb0e..c505c9b 100644
--- a/app.wxss
+++ b/app.wxss
@@ -12,6 +12,8 @@ image {
}
image{
/* border-radius: 8rpx; */
+ width: 100%;
+ height: 100%;
}
/* layout */
.acea-row-nowrap {
@@ -92,4 +94,5 @@ image{
color: #fff;
font-weight: 500;
margin: 60rpx auto;
-}
\ No newline at end of file
+}
+
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/index-top.png b/images/index-top.png
index e85662f..f913454 100644
Binary files a/images/index-top.png and b/images/index-top.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/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/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/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/tab/home-a.png b/images/tab/home-a.png
new file mode 100644
index 0000000..7357d82
Binary files /dev/null and b/images/tab/home-a.png differ
diff --git a/images/tab/home.png b/images/tab/home.png
new file mode 100644
index 0000000..54d4528
Binary files /dev/null and b/images/tab/home.png differ
diff --git a/images/tab/list-a.png b/images/tab/list-a.png
new file mode 100644
index 0000000..1739007
Binary files /dev/null and b/images/tab/list-a.png differ
diff --git a/images/tab/list.png b/images/tab/list.png
new file mode 100644
index 0000000..321544a
Binary files /dev/null and b/images/tab/list.png differ
diff --git a/images/tab/my-a.png b/images/tab/my-a.png
new file mode 100644
index 0000000..b03bdb2
Binary files /dev/null and b/images/tab/my-a.png differ
diff --git a/images/tab/my.png b/images/tab/my.png
new file mode 100644
index 0000000..971c1c4
Binary files /dev/null and b/images/tab/my.png differ
diff --git a/pages/home/index.js b/pages/home/index.js
index bdfd9a3..fac40d0 100644
--- a/pages/home/index.js
+++ b/pages/home/index.js
@@ -1,31 +1,48 @@
// pages/home/index.js
+const app = getApp()
+const user = require('../../api/user.js')
Page({
/**
* 页面的初始数据
*/
data: {
+ isAuth: false, //是否认证
authorize: false,
- canIUseGetUserProfile: false
+ canIUseGetUserProfile: false,
+ name: '',
+ phone: ''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
-
+ // this.getUserInfo()
+ console.log(app)
+ if (wx.getUserProfile) {
+ this.setData({
+ canIUseGetUserProfile: true
+ })
+ }
+ app.globalData.$http()
},
getUserInfoProfile(){
- wx.getUserProfile({
- lang: 'zh_CN',
- desc: '需要获取您的信息用来展示',
- success: res => {
- console.log(res)
- uni.showLoading({
- title: '登录中',
- })
-
- },
+ app.login().then((res)=>{
+ console.log(res)
+ })
+ },
+ submitInfo(){
+ if(this.data.name == '' ){
+ return this.alertMessage('请输入您的姓名')
+ } else if(this.data.phone == ''){
+ return this.alertMessage('请输入您的电话')
+ }
+ },
+ alertMessage(msg){
+ wx.showToast({
+ title: msg,
+ icon: 'none'
})
},
toDetial(){
diff --git a/pages/home/index.wxml b/pages/home/index.wxml
index acbe672..03158f9 100644
--- a/pages/home/index.wxml
+++ b/pages/home/index.wxml
@@ -40,12 +40,12 @@
您的电话:
-
+
-
-
- 立即咨询
+
+
+ 立即咨询
diff --git a/pages/login/index.js b/pages/login/index.js
index 4ff5d7a..0b0aeff 100644
--- a/pages/login/index.js
+++ b/pages/login/index.js
@@ -19,17 +19,6 @@ Page({
canIUseGetUserProfile: true
})
}
- wx.login({
- success: res => {
- // 发送 res.code 到后台换取 openId, sessionKey, unionId
- this.setData({
- code: res.code
- })
- }
- })
- },
- setUserInfo(){
-
},
getUserProfile(e) {
// 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗
@@ -39,45 +28,8 @@ Page({
wx.showLoading({
title: '登陆中...',
})
- let data = {
- code: this.data.code,
- iv: response.iv,
- encryptedData:response.encryptedData,
- spread: 0,
- login_type: 0
- }
- app.http('POST','wxapp/auth',data).then(
- result =>{
- if(result.data.success){
- wx.hideLoading()
- wx.setStorageSync('token', 'Bearer '+ result.data.data.token)
- wx.setStorageSync('userInfo', result.data.data.user)
- wx.showToast({
- title: '授权成功!',
- duration: 1500
- })
- if(!result.data.data.user.phone){
- this.setData({
- login: true
- })
- } else{
- setTimeout(()=>{
- wx.navigateBack({
- delta: 1,
- })
- },1500)
- }
-
- } else{
- wx.showToast({
- title: result.data.msg,
- icon : 'none'
- })
- }
- }
- )
}
- })
+ })
},
getPhoneNumber(e) {
if(e.detail.errMsg == 'getPhoneNumber:ok'){
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..b77c4e8
--- /dev/null
+++ b/pages/user/index.js
@@ -0,0 +1,70 @@
+// pages/user/index.js
+const app = getApp()
+const userApi = require('../../api/user.js')
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ userApi.bingPhone().then(res=>{
+ console.log(res)
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ 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人
+
+
+
+
+ 积分详情
+
+
+
+
+
+
\ 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
diff --git a/project.config.json b/project.config.json
index 56c5d74..8f05af9 100644
--- a/project.config.json
+++ b/project.config.json
@@ -40,7 +40,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
- "appid": "wxdb1f3c2997df014a",
+ "appid": "wxfacd60a8724f128c",
"projectname": "%E7%91%9E%E6%A2%A6%E6%80%9D%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"debugOptions": {
"hidedInDevtools": []