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