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