| xqd
@@ -1,10 +1,11 @@
|
|
|
<template>
|
|
|
- <view style="width: 100%;height: 100%;background-color: #FFFFFF;">
|
|
|
+ <view style="width: 100%;height: 100%;background-color: #FFFFFF;">
|
|
|
<!-- 头像 -->
|
|
|
<view style="padding: 36rpx 28rpx;" class="flex align-center justify-around">
|
|
|
<view style="width: 80%;font-size: 28rpx;background-color: ;">头像</view>
|
|
|
<view class="flex align-center">
|
|
|
- <image style="border-radius: 50%;margin-right:20rpx;width: 88rpx;height: 88rpx;" @click="ChooseImage" :src='imgList[0]' mode='aspectFill'></image>
|
|
|
+ <image style="border-radius: 50%;margin-right:20rpx;width: 88rpx;height: 88rpx;" @click="ChooseImage" :src='imgList[0]'
|
|
|
+ mode='aspectFill'></image>
|
|
|
<u-icon name="arrow-right" color="#C0C0C0"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -12,8 +13,8 @@
|
|
|
<view style="margin: 36rpx 28rpx;" class="flex align-center justify-around">
|
|
|
<view style="width: 40%;font-size: 28rpx;">个人签名</view>
|
|
|
<view class="flex align-center" style="width: 60%;">
|
|
|
- <u-input v-model="value" @input="inputTextAreaBlur" type="text" :placeholder="placeholder1" input-align="right" :clearable="false"
|
|
|
- :customStyle="inputStyle" />
|
|
|
+ <u-input v-model="value" @input="inputTextAreaBlur" type="text" :placeholder="placeholder1" input-align="right"
|
|
|
+ :clearable="false" :customStyle="inputStyle" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 服务简介和输入域 -->
|
| xqd
@@ -112,30 +113,21 @@
|
|
|
return false;
|
|
|
},
|
|
|
ChooseImage() {
|
|
|
- let that=this;
|
|
|
uni.chooseImage({
|
|
|
count: 1, //默认9
|
|
|
sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
sourceType: ['album', 'camera'], //从相册选择
|
|
|
success: (res) => {
|
|
|
- let tempFilePaths = res.tempFilePaths;
|
|
|
- const uploadTask = wx.uploadFile({
|
|
|
- url: 'http://182.92.112.142/api/v2/Common/uploadFile',
|
|
|
- filePath: tempFilePaths[0],
|
|
|
- name: 'file',
|
|
|
- success: function (uploadFileRes) {
|
|
|
- let arr=[];
|
|
|
- arr.push(imglocal+JSON.parse(uploadFileRes.data).data.url);
|
|
|
- that.imgList = arr
|
|
|
- that.src = JSON.parse(uploadFileRes.data).data.url
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ this.imgList = res.tempFilePaths
|
|
|
+ this.$request.upload("Common/uploadFile",this.imgList[0],{}).then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
</script>
|
|
|
|
|
|
<style>
|
| xqd
@@ -154,7 +146,7 @@
|
|
|
background-color: #0B73B9;
|
|
|
color: #FFFFFF;
|
|
|
font-size: 32rpx;
|
|
|
- z-index: 1;
|
|
|
+ z-index: 99;
|
|
|
|
|
|
}
|
|
|
|