修改头像昵称接口调整

This commit is contained in:
2021-09-25 16:51:34 +08:00
parent 2ee15b9d97
commit f5cb5733a6
5 changed files with 14 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ const browsers = (page) => {
// 修改用户头像或昵称 // 修改用户头像或昵称
const resetUserInfo= (data) => { const resetUserInfo= (data) => {
return request({ return request({
url: 'user/'+data.key, url: 'user/setting/'+data.key,
method: 'PUT', method: 'PUT',
data:{ data:{
value:data.value value:data.value

View File

@@ -25,7 +25,7 @@ const wechatbind = (data) => {
// 修改用户头像或昵称 // 修改用户头像或昵称
const resetUserInfo = (data) => { const resetUserInfo = (data) => {
return request({ return request({
url: 'user/' + data.key, url: 'user/setting/' + data.key,
method: 'PUT', method: 'PUT',
data: { data: {
value: data.value value: data.value

View File

@@ -216,6 +216,11 @@
</script> </script>
<style lang="scss"> <style lang="scss">
page{
width: 100%;
min-height: 100vh;
background-color: #fff;
}
.hasmore { .hasmore {
color: #808080; color: #808080;
font-size: $title-size-m; font-size: $title-size-m;
@@ -328,12 +333,11 @@
} }
.btn { .btn {
// background-color: $text-price; background-image: linear-gradient(to right, #7c52fc, #976dff);
background-image: linear-gradient(to right, $text-price, $mian-color);
color: #fff; color: #fff;
border-radius: 20rpx; border-radius: 10rpx;
text-align: center; text-align: center;
padding: $padding * .7 ; padding: $padding * .9 ;
margin: $margin * 2; margin: $margin * 2;
font-size: $title-size; font-size: $title-size;
font-weight: bold; font-weight: bold;

View File

@@ -34,7 +34,7 @@
<image src="/static/imgs/record-icon.png" mode="widthFix" class="record-icon" /> <image src="/static/imgs/record-icon.png" mode="widthFix" class="record-icon" />
<view class=""> <view class="">
<view class="record-list-item-top"> <view class="record-list-item-top">
<view class="title ellipsis-2">完成任务获得碎片完成任务获得碎片完成任务获得碎片完成任务获得碎片完成任务获得碎片完成任务获得碎片</view> <view class="title ellipsis-2">完成任务获得碎片</view>
<view class="money" >{{cointype==='in'?'+':'-'}}5</view> <view class="money" >{{cointype==='in'?'+':'-'}}5</view>
</view> </view>
<view class="record-list-item-date">2021-12-22 12:12:12</view> <view class="record-list-item-date">2021-12-22 12:12:12</view>
@@ -316,7 +316,7 @@
width: 600rpx; width: 600rpx;
.title { .title {
font-size: 32rpx; font-size: 28rpx;
width: 600rpx; width: 600rpx;
color: #444; color: #444;
} }
@@ -329,7 +329,7 @@
} }
.record-list-item-date { .record-list-item-date {
font-size: 24rpx; font-size: 26rpx;
color: #a6a6a6; color: #a6a6a6;
margin-top: 10rpx; margin-top: 10rpx;
} }

View File

@@ -9,7 +9,7 @@
<view class="balance-flex"> <view class="balance-flex">
<view class="balance-flex-item" @click="showAddress">区块链地址</view> <view class="balance-flex-item" @click="showAddress">区块链地址</view>
<!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> --> <!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> -->
<view class="balance-flex-item" @click="$Router.push({name: 'Extract'})">提现</view> <view class="balance-flex-item" @click="$Router.push({name: 'Extract'})">能量球提现</view>
</view> </view>
</view> </view>
</view> </view>