...
|
...
|
@@ -7,37 +7,46 @@ |
|
|
<view class="" style="padding: 32rpx; background: white;position: relative;">
|
|
|
<u--form labelPosition="left" :model="model1" :rules="rules" ref="uForm">
|
|
|
<u-form-item label="设备信息" labelWidth="200rpx" prop="userInfo.category_id" borderBottom ref="item1" @click="goChoose" style="position: relative;">
|
|
|
<u--input v-model="model1.userInfo.name" disabled disabledColor="#ffffff" placeholder="请选择设备" style="position: relative;"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox" style="top:32rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
<view class="flexb posa">
|
|
|
<u--input v-model="model1.userInfo.name" disabled disabledColor="#ffffff" placeholder="请选择设备" style="position: relative;"
|
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
<view class="posBox posb" >
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</u-form-item>
|
|
|
<u-form-item label="设备品牌" labelWidth="200rpx" prop="userInfo.brand_name" borderBottom
|
|
|
@click="goLogo" ref="item1">
|
|
|
<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:112rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
<view class="flexb posa">
|
|
|
<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 posb" >
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</u-form-item>
|
|
|
<u-form-item label="设备型号" labelWidth="200rpx" prop="userInfo.xh_name" borderBottom @click="goNum"
|
|
|
ref="item1">
|
|
|
<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:190rpx; left:32rpx">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
<view class="flexb posa">
|
|
|
<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 posb" >
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</u-form-item>
|
|
|
<u-form-item label="设备停放地" labelWidth="200rpx" prop="userInfo.region" borderBottom ref="item1" @click="goMap">
|
|
|
<view class="">
|
|
|
<view class="flexb posa" style="position: relative;">
|
|
|
<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:270rpx; left:32rpx">
|
|
|
<view class="posBox posb">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
...
|
...
|
@@ -66,10 +75,16 @@ |
|
|
<u--input v-model="model1.userInfo.hours" border="none"></u--input>
|
|
|
</u-form-item> -->
|
|
|
<u-form-item label="意向价格" labelWidth="200rpx" prop="userInfo.price" borderBottom ref="item1">
|
|
|
<view class="flexb">
|
|
|
<u--input type="number" v-model="model1.userInfo.price" border="none"></u--input>
|
|
|
<text>万元</text>
|
|
|
<view class="flexb posa">
|
|
|
<view class="flexb" style="width: 100%;">
|
|
|
<u--input type="number" v-model="model1.userInfo.price" border="none"></u--input>
|
|
|
<text>{{model1.userInfo.price_unit}}</text>
|
|
|
</view>
|
|
|
<view class="posBox posb">
|
|
|
<image src="../../static/Group 193@2x.png" style="width: 40rpx;height: 24rpx;" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
</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>
|
...
|
...
|
@@ -139,6 +154,7 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
bright: "",
|
|
|
brand_name:'',
|
|
|
xh_name:'',
|
|
|
price_unit:'',
|
|
|
dList:[],
|
|
|
xhList:[],
|
|
|
},
|
...
|
...
|
@@ -208,6 +224,7 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
this.model1.userInfo.brand_name = currentPage.$vm.brand_name || (this.model1.userInfo.brand && this.model1.userInfo.brand.name) || ''
|
|
|
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) || ''
|
|
|
this.model1.userInfo.price_unit = currentPage.$vm.price_unit || '万元'
|
|
|
console.log(this.model1.userInfo);
|
|
|
if(currentPage.$vm.isFlash !== 1){
|
|
|
this.getCate()
|
...
|
...
|
@@ -218,7 +235,7 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
methods: {
|
|
|
goLogo() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/sellAndBuy/logo'
|
|
|
url: '/pages/sellAndBuy/logo?category_id=' + this.model1.userInfo.category_id
|
|
|
})
|
|
|
},
|
|
|
getCate(){
|
...
|
...
|
@@ -265,6 +282,7 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
this.model1.userInfo.year = e.detail.value
|
|
|
},
|
|
|
goNum() {
|
|
|
console.log(this.model1.userInfo.category_id);
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/sellAndBuy/chooseNum'
|
|
|
})
|
...
|
...
|
@@ -298,10 +316,18 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
this.$refs.uForm.validateField('userInfo.sex')
|
|
|
},
|
|
|
goUpload(val){
|
|
|
console.log(this.model1);
|
|
|
uni.navigateTo({
|
|
|
url:`/pages/sellAndBuy/upload?info=${JSON.stringify(this.model1.userInfo)}&val=${val}`
|
|
|
})
|
|
|
if(this.model1.userInfo.price == 0){
|
|
|
uni.showToast({
|
|
|
title:'意向价格需大于0',
|
|
|
icon:'none'
|
|
|
})
|
|
|
}else{
|
|
|
console.log(this.model1);
|
|
|
uni.navigateTo({
|
|
|
url:`/pages/sellAndBuy/upload?info=${JSON.stringify(this.model1.userInfo)}&val=${val}`
|
|
|
})
|
|
|
}
|
|
|
|
|
|
}
|
|
|
},
|
|
|
onReady() {
|
...
|
...
|
@@ -328,4 +354,12 @@ import loadingPage from '../../uni_modules/uview-ui/libs/config/props/loadingPag |
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
.posa{
|
|
|
position: relative;
|
|
|
}
|
|
|
.posb{
|
|
|
position: absolute;
|
|
|
top: -25rpx;
|
|
|
left: -200rpx;
|
|
|
}
|
|
|
</style> |
|
|
\ No newline at end of file |
...
|
...
|
|