tijiao
This commit is contained in:
@@ -85,7 +85,7 @@
|
||||
<view
|
||||
class="home_wrap home_wrap_analysis"
|
||||
v-if="options.type != 'detail'"
|
||||
:style="`height: calc(100% - ${48 + statusBarHeight}px);`"
|
||||
:style="`height:auto;overflow-y: visible`"
|
||||
>
|
||||
<view class="home_form" style="position: relative">
|
||||
<view
|
||||
@@ -133,8 +133,8 @@
|
||||
@afterRead="addPic"
|
||||
@delete="deletePic"
|
||||
multiple
|
||||
width="120"
|
||||
height="120"
|
||||
width="110"
|
||||
height="110"
|
||||
:previewFullImage="true"
|
||||
>
|
||||
</u-upload>
|
||||
@@ -264,7 +264,7 @@
|
||||
v-if="articleInfo.createTime"
|
||||
>{{ articleInfo.createTime }}
|
||||
<uni-icons
|
||||
v-if="articleInfo.come == 0"
|
||||
|
||||
type="trash-filled"
|
||||
size="24"
|
||||
@tap="showDel = true"
|
||||
@@ -632,6 +632,7 @@ export default {
|
||||
|
||||
delArticle() {
|
||||
var that = this;
|
||||
this.showDel=false
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
});
|
||||
@@ -649,6 +650,7 @@ export default {
|
||||
.then((res) => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
|
||||
uni.showToast({
|
||||
title: "删除成功",
|
||||
icon: "success",
|
||||
@@ -657,6 +659,7 @@ export default {
|
||||
|
||||
this.$commonJS.refreshPrevPageData();
|
||||
} else {
|
||||
this.showDel=false
|
||||
uni.showToast({
|
||||
title: "删除失败",
|
||||
icon: "success",
|
||||
@@ -685,7 +688,7 @@ export default {
|
||||
type: 0,
|
||||
href: this.$apkUrl,
|
||||
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
||||
// summary: `${this.productInfo.content}`,
|
||||
summary: `${this.articleInfo.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||
imageUrl: image,
|
||||
success: function (res) {
|
||||
console.log("success:" + JSON.stringify(res));
|
||||
@@ -702,7 +705,7 @@ export default {
|
||||
type: 0,
|
||||
href: this.$apkUrl,
|
||||
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
||||
// summary: `${this.taskInfo.content}`,
|
||||
summary: `${this.articleInfo.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||
imageUrl: image,
|
||||
success: function (res) {
|
||||
console.log("success:" + JSON.stringify(res));
|
||||
|
||||
1853
pages/articleList/articleAdd.vue
Normal file
1853
pages/articleList/articleAdd.vue
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="richtext" style="height: 100%;">
|
||||
|
||||
<piaoyiEditor :height="height" :placeholder="placeholder" :values="values" @changes="saveContens" :readOnly="readOnly" :photoUrl="photoUrl" :api="api" :name="name"/>
|
||||
<piaoyiEditor :toolbarTop="`${48 + statusBarHeight}px`" :height="height" :placeholder="placeholder" :values="values" @changes="saveContens" :readOnly="readOnly" :photoUrl="photoUrl" :api="api" :name="name"/>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
><text
|
||||
style="margin-right: 30rpx; color: #e38d54"
|
||||
v-if="item.come == 1"
|
||||
>医案转发</text
|
||||
>医案同步</text
|
||||
><text style="letter-spacing: 1rpx">{{
|
||||
item.createTime ? item.createTime : ""
|
||||
}}</text></view
|
||||
@@ -273,7 +273,7 @@ export default {
|
||||
|
||||
selectClick(e) {
|
||||
console.log(e.name);
|
||||
if (e.name == "删除") {
|
||||
if (e.name == "删除文章") {
|
||||
this.showDel=true;
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
@@ -308,9 +308,9 @@ export default {
|
||||
|
||||
}
|
||||
|
||||
if (item.come == 1) {
|
||||
this.operateList = list;
|
||||
} else {
|
||||
// if (item.come == 1) {
|
||||
// this.operateList = list;
|
||||
// } else {
|
||||
this.operateList = [
|
||||
...list,
|
||||
{
|
||||
@@ -321,7 +321,7 @@ export default {
|
||||
fontSize: "16",
|
||||
},
|
||||
];
|
||||
}
|
||||
// }
|
||||
this.selectArticleId = item.id;
|
||||
this.showOperate = true;
|
||||
// this.$refs.commentLikePopup.showCommentPopup();
|
||||
@@ -343,7 +343,7 @@ export default {
|
||||
},
|
||||
createFolder() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/articleList/article?navTitle=文章&title=文章&type=add`,
|
||||
url: `/pages/articleList/articleAdd?navTitle=文章&title=文章&type=add`,
|
||||
});
|
||||
},
|
||||
//判断显示‘上/中/下’
|
||||
@@ -386,6 +386,7 @@ export default {
|
||||
//获取列表数据
|
||||
delArticle() {
|
||||
var that = this;
|
||||
this.showDel=false;
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
});
|
||||
@@ -403,18 +404,27 @@ export default {
|
||||
.then((res) => {
|
||||
uni.hideLoading();
|
||||
if (res.code == 0) {
|
||||
|
||||
uni.showToast({
|
||||
title: "删除成功",
|
||||
icon: "success",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$nextTick(() => {
|
||||
this.list = this.list.filter((e) => {
|
||||
return e.id != this.selectArticleId;
|
||||
});
|
||||
this.count = this.list.length;
|
||||
});
|
||||
}else {
|
||||
this.showDel=false
|
||||
uni.showToast({
|
||||
title: "删除失败",
|
||||
icon: "success",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
getListData(taihumedId, type) {
|
||||
|
||||
Reference in New Issue
Block a user