梁航:发布页获取行业接口
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
<template>
|
||||
<view class="form">
|
||||
<u-form :model="form" ref="uForm">
|
||||
<u-form-item prop="image">
|
||||
<view class="upload">
|
||||
<u-upload max-count="5" upload-icon="photo"></u-upload>
|
||||
<text class="count">发布房源图片({{ShopInfomation.count}}/5)</text>
|
||||
</view>
|
||||
|
||||
</u-form-item>
|
||||
<u-form-item label="标题" label-position="top" border-bottom="true" prop="title">
|
||||
<u-input v-model="form.title" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class"
|
||||
border="none"></u-input>
|
||||
@@ -126,8 +127,8 @@
|
||||
submit() {
|
||||
this.$refs.uForm.validate().then(res => {
|
||||
console.log("提交表单信息:" + JSON.stringify(this.form))
|
||||
uni.$u.toast('发布成功')
|
||||
// 调用服务端入表接口W
|
||||
uni.$u.toast('发布成功');
|
||||
|
||||
}).catch(errors => {
|
||||
console.log("失败信息:" + JSON.stringify(errors))
|
||||
// uni.$u.toast('校验失败')
|
||||
@@ -181,7 +182,6 @@
|
||||
align-items: center;
|
||||
background-color: #F8F8F8;
|
||||
height: 300rpx;
|
||||
// margin-right: 20px;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
|
||||
Reference in New Issue
Block a user