@@ -605,7 +605,7 @@ export default {
|
||||
})
|
||||
},
|
||||
infoClick: function (info) {
|
||||
this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
||||
// this.$yrouter.push('/pagesInn/inn/innInfoDetail?id=' + info.id)
|
||||
},
|
||||
publishBtnClick: function () {
|
||||
this.$yrouter.push('/pagesInn/inn/innInfoPublish?hotelId=' + this.inn.id)
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
@change="uploadedImgChange"
|
||||
/>
|
||||
</view>
|
||||
<!--
|
||||
<view class="form-item">
|
||||
<view class="title">资讯详情:</view>
|
||||
<view class="inp">
|
||||
@@ -55,6 +56,7 @@
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
-->
|
||||
<view class="form-btn">
|
||||
<button form-type="submit">发布</button>
|
||||
</view>
|
||||
@@ -64,7 +66,6 @@
|
||||
|
||||
<script>
|
||||
import tmUpload from '@/pagesInn/components/tm-upload/tm-upload.vue'
|
||||
import jinEdit from '@/pagesInn/components/jin-edit/jin-edit.vue'
|
||||
import {
|
||||
VUE_APP_API_URL
|
||||
} from '@/config'
|
||||
@@ -73,8 +74,7 @@
|
||||
} from '@/api/inn.js'
|
||||
export default {
|
||||
components: {
|
||||
tmUpload,
|
||||
jinEdit
|
||||
tmUpload
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -129,7 +129,7 @@
|
||||
},
|
||||
//文件上传结果
|
||||
uploadedImgChange: function(uploadedFilesList) {
|
||||
this.uploadedFilesArray = uploadedFilesList;
|
||||
this.uploadedFilesArray = uploadedFilesList
|
||||
},
|
||||
formSubmit(e) {
|
||||
if (!this.form.title) {
|
||||
@@ -140,10 +140,10 @@
|
||||
this.$dialog.error('请输入简介')
|
||||
return
|
||||
}
|
||||
if (!this.form.content) {
|
||||
this.$dialog.error('请输入资讯详情')
|
||||
return
|
||||
}
|
||||
// if (!this.form.content) {
|
||||
// this.$dialog.error('请输入资讯详情')
|
||||
// return
|
||||
// }
|
||||
if (this.uploadedFilesArray.length == 0) {
|
||||
this.$dialog.error('请上传动态图片或视频')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user