diff --git a/pages.json b/pages.json
index 0cad8e7..c42c272 100644
--- a/pages.json
+++ b/pages.json
@@ -62,6 +62,24 @@
"enablePullDownRefresh": false
}
}
+ ,{
+ "path" : "pages/index/upload/upload",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
+ ,{
+ "path" : "pages/index/material/material",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 1d2c04c..66d7c62 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -2,22 +2,43 @@
-
-
-
- {{index+1}}
-
-
-
+ field="content">
+
+
+
+ {{index+1}}
+
+
+
- 素材管理、上传图片
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
@@ -37,18 +58,65 @@
mode: 'nav',
swiperDotIndex: 0,
autoplay: true,
- interval: 5000,
- duration: 500
+ interval: 5000,
+ duration: 500,
+ pageUrl:'',
+ funcList: [{
+ title: '素材管理',
+ url: '/pages/index/material/material'
+ }, {
+ title: '上传素材',
+ url: '/pages/index/upload/upload'
+ }],
+ list: [{
+ url: '/static/c1.png',
+ text: '头像',
+ num: '16'
+ },
+ {
+ url: '/static/c2.png',
+ text: '背景图',
+ num: '1'
+ },
+ {
+ url: '/static/c3.png',
+ text: '手机壁纸',
+ num: '99'
+ },
+ {
+ url: '/static/c4.png',
+ text: '动态壁纸',
+ num: '23',
+ },
+ {
+ url: '/static/c5.png',
+ text: 'apple watch',
+ num: '15'
+ },
+ {
+ url: '/static/c6.png',
+ text: '表情包',
+ num: '31'
+ }
+ ]
};
},
- methods:{
+ methods: {
change(e) {
- this.current = e.detail.current;
- //console.log('this.current',this.current)
+ let {
+ index
+ } = e.detail
+ this.funcList[index].badge && this.funcList[index].badge++
+ this.pageUrl = this.funcList[index].url
+ console.log('this.pageUrl',this.pageUrl)
+ /** 跳转指定页面*/
+ uni.navigateTo({
+ url: this.pageUrl
+ });
},
clickItem(e) {
this.swiperDotIndex = e
- console.log('this.swiperDotIndex',this.swiperDotIndex)
+ console.log('this.swiperDotIndex', this.swiperDotIndex)
},
// 获取用户信息
getUserInfo() {
@@ -64,12 +132,12 @@
iv: userInfo.iv
}
// 用户授权登录
- console.log('params',params);
+ console.log('params', params);
loginWx(params).then(res => {
if (res.data.code === 200) {
uni.setStorage({
key: 'userInfo',
- data: res.data.data.userInfo,
+ data: res.data.data.userInfo,
})
} else {
uni.showToast({
@@ -89,96 +157,42 @@
console.log(`login 调用失败`);
},
});
-
+
},
}
}
diff --git a/pages/index/upload/upload.vue b/pages/index/upload/upload.vue
new file mode 100644
index 0000000..a3ed044
--- /dev/null
+++ b/pages/index/upload/upload.vue
@@ -0,0 +1,22 @@
+
+
+ 我是上传界面
+
+
+
+
+
+
diff --git a/pages/profit/profit.vue b/pages/profit/profit.vue
index 20db052..97b8f70 100644
--- a/pages/profit/profit.vue
+++ b/pages/profit/profit.vue
@@ -1,27 +1,28 @@
-
+
+
+ 啦啦啦
+
+
-
-
-
-
diff --git a/pages/userInfo/notice/notice.vue b/pages/userInfo/notice/notice.vue
index 4a8ea0d..2c88f17 100644
--- a/pages/userInfo/notice/notice.vue
+++ b/pages/userInfo/notice/notice.vue
@@ -5,176 +5,8 @@
-
-
- image {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
+
diff --git a/pages/userInfo/userInfo.vue b/pages/userInfo/userInfo.vue
index 102e434..a69f714 100644
--- a/pages/userInfo/userInfo.vue
+++ b/pages/userInfo/userInfo.vue
@@ -3,25 +3,35 @@
-
+
+
+
+
+
+
+ {{userInfo.username}}
+
-
- 錢包餘額
+
+
+ 啦啦啦
+
@@ -30,35 +40,79 @@
export default {
data() {
return {
- list:['美團外賣','支付助手','廣告助手','上傳圖片','消息通知','我的信息','我的短信','我的頭像']
+ list:[{
+ url: '/pages/userInfo/about/about',
+ title: '关于节点',
+ img: ''
+ },{
+ url: '/pages/userInfo/contact/contact',
+ title: '联系我们',
+ img: ''
+ },{
+ url: '/pages/userInfo/extends/extends',
+ title: '邀请他人',
+ img: ''
+ },{
+ url: '/pages/userInfo/inviteLog/inviteLog',
+ title: '邀请记录',
+ img: ''
+ },{
+ url: '/pages/userInfo/notice/notice',
+ title: '通知公告',
+ img: ''
+ },{
+ url: '/pages/userInfo/withdraw/withdraw',
+ title: '提现记录',
+ img: ''
+ }],
+ pageUrl: ''
}
},
methods: {
change(e) {
- // this.index = e.detail.index
let {
index
} = e.detail
this.list[index].badge && this.list[index].badge++
-
- uni.showToast({
- title: `点击第${index+1}个宫格`,
- icon: 'none'
- })
+ this.pageUrl = this.list[index].url
+ console.log('this.pageUrl',this.pageUrl)
+ /** 跳转指定页面*/
+ uni.navigateTo({
+ url: this.pageUrl
+ });
},
},
}