|
@@ -7,17 +7,17 @@
|
|
<image class="bg" src="https://t17.9026.com/web/statics/image/index/addcustomerbg.png" mode=""></image>
|
|
<image class="bg" src="https://t17.9026.com/web/statics/image/index/addcustomerbg.png" mode=""></image>
|
|
<view class="customerInfo">
|
|
<view class="customerInfo">
|
|
<view class="top">基本信息</view>
|
|
<view class="top">基本信息</view>
|
|
- <view class="head">
|
|
|
|
- <image class="bg" src="https://t17.9026.com/web/statics/image/index/headbg.png" mode=""></image>
|
|
|
|
|
|
+ <view class="head" @click="uploadHead">
|
|
|
|
+ <image class="bg" :src="avatar===''?'https://t17.9026.com/web/statics/image/index/headbg.png':avatar" mode=""></image>
|
|
<image class="camera" src="https://t17.9026.com/web/statics/image/index/camera.png" mode=""></image>
|
|
<image class="camera" src="https://t17.9026.com/web/statics/image/index/camera.png" mode=""></image>
|
|
</view>
|
|
</view>
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field">姓名</view>
|
|
<view class="field">姓名</view>
|
|
- <input type="text" value="" placeholder="请输入姓名" />
|
|
|
|
|
|
+ <input type="text" v-model="name" placeholder="请输入姓名" placeholder-style="font-size:28rpx" />
|
|
</view>
|
|
</view>
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field">手机号</view>
|
|
<view class="field">手机号</view>
|
|
- <input type="text" value="" placeholder="请输入手机号" />
|
|
|
|
|
|
+ <input type="text" v-model="mobile" placeholder="请输入手机号" placeholder-style="font-size:28rpx" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -25,21 +25,23 @@
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field" style="font-weight: bold;">楼盘信息</view>
|
|
<view class="field" style="font-weight: bold;">楼盘信息</view>
|
|
</view>
|
|
</view>
|
|
- <view class="main-left cross-center linp border_bottom">
|
|
|
|
- <view class="field">楼盘名称</view>
|
|
|
|
- <input type="text" value="" placeholder="请选择楼盘名称" />
|
|
|
|
- </view>
|
|
|
|
|
|
+ <picker mode="region" @change="bindPickerRegion">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field">区域信息</view>
|
|
<view class="field">区域信息</view>
|
|
- <input type="text" value="" placeholder="请选择区域信息" />
|
|
|
|
|
|
+ <input type="text" v-model="region" placeholder="请选择区域" placeholder-style="font-size:28rpx" />
|
|
|
|
+ </view>
|
|
|
|
+ </picker>
|
|
|
|
+ <view class="main-left cross-center linp border_bottom" @click="selectEstate">
|
|
|
|
+ <view class="field">楼盘名称</view>
|
|
|
|
+ <input type="text" value="" placeholder="请选择楼盘" placeholder-style="font-size:28rpx"/>
|
|
</view>
|
|
</view>
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field">楼盘性质</view>
|
|
<view class="field">楼盘性质</view>
|
|
- <input type="text" value="" placeholder="请选择楼盘性质" />
|
|
|
|
|
|
+ <input type="text" value="" placeholder="请选择楼盘性质" placeholder-style="font-size:28rpx"/>
|
|
</view>
|
|
</view>
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="main-left cross-center linp border_bottom">
|
|
<view class="field">楼盘户号</view>
|
|
<view class="field">楼盘户号</view>
|
|
- <input type="text" value="" placeholder="请输入楼盘户号" />
|
|
|
|
|
|
+ <input type="text" value="" placeholder="请输入楼盘户号" placeholder-style="font-size:28rpx"/>
|
|
</view>
|
|
</view>
|
|
<button type="default" class="complete">完成</button>
|
|
<button type="default" class="complete">完成</button>
|
|
</view>
|
|
</view>
|
|
@@ -49,11 +51,61 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ import uploadFile from '@/core/upload.js';
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ avatar:'',
|
|
|
|
+ name:'',
|
|
|
|
+ mobile:'',
|
|
|
|
+
|
|
|
|
+ estateInfoList:[
|
|
|
|
+ {
|
|
|
|
+ estate_id:'',
|
|
|
|
+ estate_no:'',
|
|
|
|
+ room_no:'',
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
|
|
|
|
+ region:'',
|
|
};
|
|
};
|
|
|
|
+ },
|
|
|
|
+ onShow() {
|
|
|
|
+ var pages = getCurrentPages();
|
|
|
|
+ var currPage = pages[pages.length - 1]; //当前页面
|
|
|
|
+ console.log(currPage.$vm.estateInfo)
|
|
|
|
+ },
|
|
|
|
+ methods:{
|
|
|
|
+ bindPickerRegion(e) {
|
|
|
|
+ this.region = e.target.value.join('')
|
|
|
|
+ },
|
|
|
|
+ uploadHead(){
|
|
|
|
+ uni.chooseImage({
|
|
|
|
+ count: 1,
|
|
|
|
+ sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
|
+ sourceType: ['album','camera'], //从相册选择
|
|
|
|
+ success: (res)=> {
|
|
|
|
+ console.log(res);
|
|
|
|
+ console.log(JSON.stringify(res.tempFilePaths));
|
|
|
|
+ uploadFile({
|
|
|
|
+ url: this.$api.upload.file,
|
|
|
|
+ filePath: res.tempFilePaths[0],
|
|
|
|
+ fileType: 'image',
|
|
|
|
+ fileName: ''
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ console.log(JSON.parse(res1.data))
|
|
|
|
+ if(JSON.parse(res1.data).code===0){
|
|
|
|
+ this.avatar=JSON.parse(res1.data).data.url
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ selectEstate(){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/sale/properties/addProperties?type=addCustomer'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -85,6 +137,7 @@
|
|
background: #FEFEFE;
|
|
background: #FEFEFE;
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
margin: 20rpx auto 39rpx;
|
|
margin: 20rpx auto 39rpx;
|
|
|
|
+ padding-bottom: 20rpx;
|
|
}
|
|
}
|
|
.linp{
|
|
.linp{
|
|
height: 104rpx;
|
|
height: 104rpx;
|
|
@@ -150,6 +203,7 @@ border-bottom: 1px solid #EAEAEA;
|
|
.bg{
|
|
.bg{
|
|
width: 127rpx;
|
|
width: 127rpx;
|
|
height: 127rpx;
|
|
height: 127rpx;
|
|
|
|
+ border-radius: 50%;
|
|
}
|
|
}
|
|
.camera{
|
|
.camera{
|
|
width: 41rpx;
|
|
width: 41rpx;
|