cmx #32
@ -2,7 +2,7 @@
|
|||||||
<view class="user">
|
<view class="user">
|
||||||
<view class="head" @click="toOthersPage('info')">
|
<view class="head" @click="toOthersPage('info')">
|
||||||
<view class="info" :key="num">
|
<view class="info" :key="num">
|
||||||
<image :src="info.member_avatar"></image>
|
<image :src="info.member_avatar+'?'+new Date().getTime()"></image>
|
||||||
<view class="name">
|
<view class="name">
|
||||||
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
<text>{{info.member_nickname==null?"新用户":info.member_nickname}}</text>
|
||||||
<text>账号:{{info.member_name}}</text>
|
<text>账号:{{info.member_name}}</text>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="head" @click="chooseImage">
|
<view class="head" @click="chooseImage">
|
||||||
<image :src="fileurl" :key="num"></image>
|
<image :src="fileurl+'?'+new Date().getTime()"></image>
|
||||||
<text>更换头像</text>
|
<text>更换头像</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@ -35,6 +35,12 @@ export default {
|
|||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
let obj ={
|
||||||
|
nickname:that.info.member_nickname,
|
||||||
|
avatar:that.filename,
|
||||||
|
signature:that.info.signature
|
||||||
|
}
|
||||||
|
console.log(obj)
|
||||||
this.$u.api.changeinfo({
|
this.$u.api.changeinfo({
|
||||||
nickname:that.info.member_nickname,
|
nickname:that.info.member_nickname,
|
||||||
avatar:that.filename,
|
avatar:that.filename,
|
||||||
@ -81,7 +87,6 @@ export default {
|
|||||||
success: function(res) {
|
success: function(res) {
|
||||||
console.log(JSON.stringify(res.tempFilePaths));
|
console.log(JSON.stringify(res.tempFilePaths));
|
||||||
const tempFilePaths = res.tempFilePaths;
|
const tempFilePaths = res.tempFilePaths;
|
||||||
that.fileurl = tempFilePaths[0]
|
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
url: 'https://dmmall.sdbairui.com/storeapi/Upload/uploadFile',
|
||||||
filePath: tempFilePaths[0],
|
filePath: tempFilePaths[0],
|
||||||
|
Loading…
Reference in New Issue
Block a user