...
|
...
|
@@ -19,7 +19,7 @@ |
|
|
<u--input v-model="model1.userInfo.brand_name" disabled disabledColor="#ffffff"
|
|
|
placeholder="请选择" border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:12.5%; left:32rpx">
|
|
|
<view class="posBox" style="top:112rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</u-form-item>
|
...
|
...
|
@@ -28,7 +28,7 @@ |
|
|
<u--input v-model="model1.userInfo.xh_name" disabled disabledColor="#ffffff" placeholder="请选择"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:22%; left:32rpx">
|
|
|
<view class="posBox" style="top:194rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</u-form-item>
|
...
|
...
|
@@ -36,11 +36,13 @@ |
|
|
<u--input v-model="model1.userInfo.region" disabled disabledColor="#ffffff" placeholder="请选择"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:31.5%; left:32rpx">
|
|
|
<view class="posBox" style="top:276rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="出厂年限" labelWidth="200rpx" prop="userInfo.year" borderBottom @click="show = true;" ref="item1">
|
|
|
|
|
|
|
|
|
<!-- <u-form-item label="出厂年限" labelWidth="200rpx" prop="userInfo.year" borderBottom @click="show = true;" ref="item1">
|
|
|
<picker mode="date" :value="model1.userInfo.year" :start="startDate" :end="endDate" @change="bindDateChange">
|
|
|
<view class="uni-input">
|
|
|
<view class="" :style="model1.userInfo.year == '请选择' ? 'color: rgb(192, 196, 204);' : 'color: #303133;'">
|
...
|
...
|
@@ -50,26 +52,52 @@ |
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</picker>
|
|
|
</picker> -->
|
|
|
<!-- <u--input v-model="model1.userInfo.year" placeholder="请输入" border="none"></u--input> -->
|
|
|
<!-- <u--input v-model="model1.userInfo.year" disabled disabledColor="#ffffff" placeholder="请选择"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon> -->
|
|
|
</u-form-item>
|
|
|
<!-- <u-datetime-picker
|
|
|
:show="show"
|
|
|
v-model="model1.userInfo.year"
|
|
|
mode="year-month"
|
|
|
></u-datetime-picker> -->
|
|
|
<u-form-item label="表显小时数" labelWidth="200rpx" prop="userInfo.hours" borderBottom ref="item1">
|
|
|
<!-- </u-form-item> -->
|
|
|
|
|
|
<!-- <u-form-item label="表显小时数" labelWidth="200rpx" prop="userInfo.hours" borderBottom ref="item1">
|
|
|
<u--input v-model="model1.userInfo.hours" border="none"></u--input>
|
|
|
</u-form-item>
|
|
|
</u-form-item> -->
|
|
|
<u-form-item label="意向价格" labelWidth="200rpx" prop="userInfo.price" borderBottom ref="item1">
|
|
|
<u--input type="number" v-model="model1.userInfo.price" border="none"></u--input>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="设备亮点" labelWidth="200rpx" prop="userInfo.bright" labelPosition="top" borderBottom ref="item1">
|
|
|
<u--input v-model="model1.userInfo.bright" border="none"></u--input>
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
|
<u-form-item v-for="item in model1.userInfo.dList" :label="item.name" labelWidth="200rpx" borderBottom ref="item1">
|
|
|
<view class="flexb">
|
|
|
<u--input :type="item.type === 1 ? 'number' : item.type === 2 ? 'digit' : 'text'" v-model="item.value" border="none"></u--input>
|
|
|
<view class="" v-if="item.unit">
|
|
|
{{item.unit}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <u--input v-model="model1.userInfo.region" disabled disabledColor="#ffffff" placeholder="请选择"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:39%; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item v-for="item in model1.userInfo.xhList" :label="item.name" labelWidth="200rpx" borderBottom ref="item1">
|
|
|
<view class="flexb">
|
|
|
<u--input :type="item.type === 1 ? 'number' : item.type === 2 ? 'digit' : 'text'" v-model="item.value" border="none"></u--input>
|
|
|
<view class="" v-if="item.unit">
|
|
|
{{item.unit}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- <u--input :type="item.type == 1 ? number : text" v-model="model1.userInfo[item.id]" border="none"></u--input> --> <!-- <u--input v-model="model1.userInfo.region" disabled disabledColor="#ffffff" placeholder="请选择"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:39%; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view> -->
|
|
|
</u-form-item>
|
|
|
</u--form>
|
|
|
<view class="" v-if="flag == 1" style="width: 60%;margin-top: 50rpx;display: flex;justify-content: center;margin-left: 20%;">
|
|
|
<u-button shape="circle" text="上传设备照片" style="color: white;" color="linear-gradient(to right, #46BAEC,#2F67D3)"
|
...
|
...
|
@@ -98,14 +126,15 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
showSex: false,
|
|
|
userInfo: {
|
|
|
name: '',
|
|
|
year: '请选择',
|
|
|
region: '',
|
|
|
price: 0,
|
|
|
day: '',
|
|
|
hours:'',
|
|
|
bright: "",
|
|
|
brand_name:'',
|
|
|
xh_name:''
|
|
|
xh_name:'',
|
|
|
dList:[],
|
|
|
xhList:[],
|
|
|
},
|
|
|
},
|
|
|
actions: [{
|
...
|
...
|
@@ -146,7 +175,10 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
console.log(this.model1.userInfo);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
onShow() {
|
|
|
let pagearr = getCurrentPages(); //获取应用页面栈
|
|
|
let currentPage = pagearr[pagearr.length - 1]; //获取当前页面信息
|
...
|
...
|
@@ -158,6 +190,11 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
this.model1.userInfo.xinghao_id = currentPage.$vm.xh_id || (this.model1.userInfo.xinghao && this.model1.userInfo.xinghao.id) || ''
|
|
|
this.model1.userInfo.xh_name = currentPage.$vm.xh_name || (this.model1.userInfo.xinghao && this.model1.userInfo.xinghao.name) || ''
|
|
|
console.log(this.model1.userInfo);
|
|
|
if(currentPage.$vm.isFlash !== 1){
|
|
|
this.getCate()
|
|
|
this.getXh()
|
|
|
}
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
goLogo() {
|
...
|
...
|
@@ -165,6 +202,30 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
url: '/pages/sellAndBuy/logo'
|
|
|
})
|
|
|
},
|
|
|
getCate(){
|
|
|
uni.$u.http.post('/api/equip/get_category_fields',{
|
|
|
category_id: this.model1.userInfo.category_id
|
|
|
}).then(res => {
|
|
|
this.model1.userInfo.dList = []
|
|
|
console.log(res);
|
|
|
res && res.data && res.data.forEach(item => {
|
|
|
this.model1.userInfo.dList.push({...item, value:''})
|
|
|
})
|
|
|
console.log(this.model1.userInfo.dList);
|
|
|
})
|
|
|
|
|
|
},
|
|
|
getXh(){
|
|
|
uni.$u.http.post('/api/equip/get_xinghao_fields',{
|
|
|
xinghao_id: this.model1.userInfo.xinghao_id
|
|
|
}).then(res => {
|
|
|
console.log(res);
|
|
|
this.model1.userInfo.xhList = []
|
|
|
res && res.data && res.data.forEach(item => {
|
|
|
this.model1.userInfo.xhList.push({...item, value:''})
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
getDate(type) {
|
|
|
const date = new Date();
|
|
|
let year = date.getFullYear();
|
...
|
...
|
@@ -236,6 +297,10 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
height: 24rpx;
|
|
|
position: absolute;
|
|
|
}
|
|
|
.flexb{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
}
|
|
|
.uni-input{
|
|
|
|
|
|
font-size: 30rpx;
|
...
|
...
|
|