diff --git a/apis/interfaces/mine.js b/apis/interfaces/mine.js index 496fe58..c9836ff 100644 --- a/apis/interfaces/mine.js +++ b/apis/interfaces/mine.js @@ -66,6 +66,17 @@ const browsers = (page) => { }) } +// 修改用户头像或昵称 +const resetUserInfo= (data) => { + return request({ + url: 'user/'+data.key, + method: 'PUT', + data:{ + value:data.value + } + }) +} + export { shopSubscribe, @@ -74,5 +85,6 @@ export { getUserInfo, getUserSettingInfo, chaineb, - browsers + browsers, + resetUserInfo } diff --git a/pages.json b/pages.json index b79aa90..d415994 100644 --- a/pages.json +++ b/pages.json @@ -175,6 +175,15 @@ "navigationBarBackgroundColor": "#e93340", "navigationBarTitleText": "订单详情" } + },{ + "path": "pages/property/setting/setting", + "name": "Setting", + "style": { + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340", + "navigationBarTitleText": "设置中心" + } }, { "path": "pages/goods/details", diff --git a/pages/property/index.vue b/pages/property/index.vue index eeeddb5..1a8fd66 100644 --- a/pages/property/index.vue +++ b/pages/property/index.vue @@ -2,8 +2,8 @@ - - + + @@ -38,19 +38,19 @@ 我的资产 - + 0 原石 - + 0 贡献值 - + 0 易币 - + 0 零钱 @@ -66,7 +66,7 @@ 0 权证持有 - + 0 权证转让 @@ -145,14 +145,12 @@ 推广海报 - - - - 临时退出 - + + + - 易品新境 beta 1.0.0 + 易品新境 beta 1.0.0 @@ -164,7 +162,7 @@ }, data() { return { - tabsIndex: 1, + tabsIndex: 0, imgList: [{ url: 'https://img9.51tietu.net/pic/2019-091200/vgkpidei2tjvgkpidei2tj.jpg', id: 1 @@ -184,10 +182,18 @@ selectedBanner(item, index) { console.log('🥒', item, index) }, - copyright(){ - uni.clearStorageSync() - uni.navigateTo({ - url:'/pages/login/login' + // copyright(){ + // uni.clearStorageSync() + // uni.navigateTo({ + // url:'/pages/login/login' + // }) + // }, + // 努力开发中,,, + showToast(){ + this.$refs.uToast.show({ + title: '努力开发中', + type:'error', + duration: 3000 }) } } diff --git a/pages/property/setting/setting.vue b/pages/property/setting/setting.vue new file mode 100644 index 0000000..bc0bf57 --- /dev/null +++ b/pages/property/setting/setting.vue @@ -0,0 +1,357 @@ + + + + + diff --git a/static/icons/property_icon_00.png b/static/icons/property_icon_00.png index 456e22b..37b2cd1 100644 Binary files a/static/icons/property_icon_00.png and b/static/icons/property_icon_00.png differ diff --git a/static/icons/property_icon_01.png b/static/icons/property_icon_01.png index 4d2c9ce..b67c694 100644 Binary files a/static/icons/property_icon_01.png and b/static/icons/property_icon_01.png differ diff --git a/static/images/mine-self-name.png b/static/images/mine-self-name.png new file mode 100644 index 0000000..d527b4c Binary files /dev/null and b/static/images/mine-self-name.png differ diff --git a/static/images/reset-info.png b/static/images/reset-info.png new file mode 100644 index 0000000..06e2ea6 Binary files /dev/null and b/static/images/reset-info.png differ diff --git a/static/images/user-avatar.png b/static/images/user-avatar.png new file mode 100644 index 0000000..8f95acc Binary files /dev/null and b/static/images/user-avatar.png differ