...
|
...
|
@@ -17,6 +17,18 @@ |
|
|
border="none"></u--input>
|
|
|
<u-icon slot="right" name="arrow-right"></u-icon>
|
|
|
</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>
|
|
|
</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>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="出厂年限" labelWidth="200rpx" prop="userInfo.year" borderBottom
|
|
|
ref="item1">
|
|
|
<u--input v-model="model1.userInfo.year" border="none"></u--input>
|
...
|
...
|
@@ -55,7 +67,9 @@ |
|
|
name: '',
|
|
|
year: '',
|
|
|
hours:'',
|
|
|
address:''
|
|
|
address:'',
|
|
|
brand_name:'',
|
|
|
xh_name:''
|
|
|
},
|
|
|
},
|
|
|
actions: [{
|
...
|
...
|
@@ -84,6 +98,16 @@ |
|
|
url: '/pages/subPages/more?val=2'
|
|
|
})
|
|
|
},
|
|
|
goLogo() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/sellAndBuy/logo'
|
|
|
})
|
|
|
},
|
|
|
goNum() {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/sellAndBuy/chooseNum'
|
|
|
})
|
|
|
},
|
|
|
goMap(){
|
|
|
let that = this
|
|
|
uni.chooseLocation({
|
...
|
...
|
@@ -145,6 +169,10 @@ |
|
|
console.log('option:', currentPage) //获取页面传递的信息
|
|
|
this.model1.userInfo.category_id = currentPage.$vm.category_id
|
|
|
this.model1.userInfo.name = currentPage.$vm.name
|
|
|
this.model1.userInfo.brand_id = currentPage.$vm.brand_id
|
|
|
this.model1.userInfo.brand_name = currentPage.$vm.brand_name
|
|
|
this.model1.userInfo.xinghao_id = currentPage.$vm.xh_id
|
|
|
this.model1.userInfo.xh_name = currentPage.$vm.xh_name
|
|
|
console.log(this.model1.userInfo);
|
|
|
},
|
|
|
goUpload() {
|
...
|
...
|
@@ -158,7 +186,17 @@ |
|
|
},
|
|
|
onReady() {
|
|
|
//如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
|
|
|
this.$refs.uForm.setRules(this.rules)
|
|
|
// this.$refs.uForm.setRules(this.rules)
|
|
|
},
|
|
|
onShow() {
|
|
|
let pagearr = getCurrentPages(); //获取应用页面栈
|
|
|
let currentPage = pagearr[pagearr.length - 1]; //获取当前页面信息
|
|
|
console.log('option:', currentPage) //获取页面传递的信息
|
|
|
this.model1.userInfo.brand_id = currentPage.$vm.brand_id
|
|
|
this.model1.userInfo.brand_name = currentPage.$vm.brand_name
|
|
|
this.model1.userInfo.xinghao_id = currentPage.$vm.xh_id
|
|
|
this.model1.userInfo.xh_name = currentPage.$vm.xh_name
|
|
|
console.log(this.model1.userInfo);
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
console.log(option);
|
...
|
...
|
|