tijiao
This commit is contained in:
15
App.vue
15
App.vue
@@ -18,13 +18,16 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
uni.setStorageSync("isJump", null);
|
|
||||||
// 禁止横屏
|
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
|
updata();
|
||||||
plus.screen.lockOrientation("portrait-primary");
|
plus.screen.lockOrientation("portrait-primary");
|
||||||
// 检测自动更新
|
// 检测自动更新
|
||||||
updata();
|
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
|
uni.setStorageSync("isJump", null);
|
||||||
|
// 禁止横屏
|
||||||
|
|
||||||
uni.getSystemInfo({
|
uni.getSystemInfo({
|
||||||
success(res) {
|
success(res) {
|
||||||
Vue.prototype.winWidth = res.screenWidth;
|
Vue.prototype.winWidth = res.screenWidth;
|
||||||
@@ -33,6 +36,7 @@ export default {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//取出缓存数据
|
//取出缓存数据
|
||||||
store.commit("setCacheData");
|
store.commit("setCacheData");
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
@@ -77,7 +81,10 @@ export default {
|
|||||||
});
|
});
|
||||||
store.commit("setChatScenesInfo", Object.assign(e.query, data));
|
store.commit("setChatScenesInfo", Object.assign(e.query, data));
|
||||||
// #endif
|
// #endif
|
||||||
},
|
},methods: {
|
||||||
|
// 处理通知权限
|
||||||
|
},
|
||||||
|
|
||||||
onHide: function() {
|
onHide: function() {
|
||||||
console.log('App Hide')
|
console.log('App Hide')
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -47,9 +47,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 0rpx 30rpx; width: calc(100% - 100rpx);margin-left: 100rpx;">
|
<view style="padding: 0rpx 30rpx; width: calc(100% - 100rpx);margin-left: 100rpx;"> <view class="title" style="text-indent: 0 !important">{{ title }}</view>
|
||||||
<u-read-more showHeight="120" :toggle="true" color="#5a6988">
|
<u-read-more showHeight="110" :toggle="true" color="#5a6988" @open="openRead()">
|
||||||
<view class="title" style="text-indent: 0 !important">{{ title }}</view>
|
|
||||||
<rich-text
|
<rich-text
|
||||||
:nodes="content"
|
:nodes="content"
|
||||||
style="
|
style="
|
||||||
@@ -178,6 +178,9 @@ export default {
|
|||||||
likeCount: {
|
likeCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
},
|
},
|
||||||
|
id: {
|
||||||
|
type: Number,
|
||||||
|
},
|
||||||
readCount: {
|
readCount: {
|
||||||
type: Number,
|
type: Number,
|
||||||
},
|
},
|
||||||
@@ -217,8 +220,9 @@ export default {
|
|||||||
operateDisplay: "block",
|
operateDisplay: "block",
|
||||||
shadowStyle: {
|
shadowStyle: {
|
||||||
// #ifndef APP-NVUE
|
// #ifndef APP-NVUE
|
||||||
|
|
||||||
backgroundImage:
|
backgroundImage:
|
||||||
"linear-gradient(-180deg, rgba(255, 255, 255, 0) 0%, #fff 80%)",
|
"linear-gradient((177deg, rgb(255, 255, 255) 0%, rgba(220, 230, 255, 0.4) 80%))",
|
||||||
// #endif
|
// #endif
|
||||||
// #ifdef APP-NVUE
|
// #ifdef APP-NVUE
|
||||||
// nvue上不支持设置复杂的backgroundImage属性
|
// nvue上不支持设置复杂的backgroundImage属性
|
||||||
@@ -247,8 +251,12 @@ export default {
|
|||||||
this.initOperate();
|
this.initOperate();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
openRead(){
|
||||||
|
this.$emit('addRead',this.id)
|
||||||
|
},
|
||||||
// 预览图片
|
// 预览图片
|
||||||
previewImg(index) {
|
previewImg(index) {
|
||||||
|
this.$emit('addRead',this.id)
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
urls: this.imgList,
|
urls: this.imgList,
|
||||||
// longPressActions: {
|
// longPressActions: {
|
||||||
@@ -554,4 +562,10 @@ export default {
|
|||||||
-webkit-line-clamp: 5;
|
-webkit-line-clamp: 5;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
::v-deep .u-read-more__toggle{
|
||||||
|
background-image: linear-gradient(177deg,
|
||||||
|
rgb(255, 255, 255) 0%,
|
||||||
|
rgba(220, 230, 255, 0.4) 80%
|
||||||
|
) !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ let baseUrl = "";
|
|||||||
let socketUrl = "";
|
let socketUrl = "";
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
// 开发环境
|
// 开发环境
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
||||||
} else if (process.env.NODE_ENV === 'production') {
|
} else if (process.env.NODE_ENV === 'production') {
|
||||||
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
|
||||||
// baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
baseUrl = "https://api.nuttyreading.com/"; //线上正式
|
||||||
}
|
}
|
||||||
const courtConfig = {
|
const courtConfig = {
|
||||||
//微信公众号APPID
|
//微信公众号APPID
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "太湖云医",
|
"name" : "太湖云医",
|
||||||
"appid" : "__UNI__1B1584A",
|
"appid" : "__UNI__1B1584A",
|
||||||
"description" : "太湖云医",
|
"description" : "太湖云医",
|
||||||
"versionName" : "1.0.03",
|
"versionName" : "1.0.05",
|
||||||
"versionCode" : 1003,
|
"versionCode" : 1005,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
@@ -130,7 +130,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"nativePlugins" : {}
|
||||||
},
|
},
|
||||||
/* 快应用特有相关 */
|
/* 快应用特有相关 */
|
||||||
"quickapp" : {},
|
"quickapp" : {},
|
||||||
|
|||||||
12
pages.json
12
pages.json
@@ -96,6 +96,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/articleList/articleAdd",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "文章",
|
||||||
|
|
||||||
|
"app-plus": {
|
||||||
|
"bounce": "none",
|
||||||
|
"titleNView": false,
|
||||||
|
"popGesture": "none"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"path": "pages/user/login",
|
"path": "pages/user/login",
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<view
|
<view
|
||||||
class="home_wrap home_wrap_analysis"
|
class="home_wrap home_wrap_analysis"
|
||||||
v-if="options.type != 'detail'"
|
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 class="home_form" style="position: relative">
|
||||||
<view
|
<view
|
||||||
@@ -133,8 +133,8 @@
|
|||||||
@afterRead="addPic"
|
@afterRead="addPic"
|
||||||
@delete="deletePic"
|
@delete="deletePic"
|
||||||
multiple
|
multiple
|
||||||
width="120"
|
width="110"
|
||||||
height="120"
|
height="110"
|
||||||
:previewFullImage="true"
|
:previewFullImage="true"
|
||||||
>
|
>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
v-if="articleInfo.createTime"
|
v-if="articleInfo.createTime"
|
||||||
>{{ articleInfo.createTime }}
|
>{{ articleInfo.createTime }}
|
||||||
<uni-icons
|
<uni-icons
|
||||||
v-if="articleInfo.come == 0"
|
|
||||||
type="trash-filled"
|
type="trash-filled"
|
||||||
size="24"
|
size="24"
|
||||||
@tap="showDel = true"
|
@tap="showDel = true"
|
||||||
@@ -632,6 +632,7 @@ export default {
|
|||||||
|
|
||||||
delArticle() {
|
delArticle() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
this.showDel=false
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "加载中",
|
title: "加载中",
|
||||||
});
|
});
|
||||||
@@ -649,6 +650,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "删除成功",
|
title: "删除成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
@@ -657,6 +659,7 @@ export default {
|
|||||||
|
|
||||||
this.$commonJS.refreshPrevPageData();
|
this.$commonJS.refreshPrevPageData();
|
||||||
} else {
|
} else {
|
||||||
|
this.showDel=false
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "删除失败",
|
title: "删除失败",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
@@ -685,7 +688,7 @@ export default {
|
|||||||
type: 0,
|
type: 0,
|
||||||
href: this.$apkUrl,
|
href: this.$apkUrl,
|
||||||
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
||||||
// summary: `${this.productInfo.content}`,
|
summary: `${this.articleInfo.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||||
imageUrl: image,
|
imageUrl: image,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log("success:" + JSON.stringify(res));
|
console.log("success:" + JSON.stringify(res));
|
||||||
@@ -702,7 +705,7 @@ export default {
|
|||||||
type: 0,
|
type: 0,
|
||||||
href: this.$apkUrl,
|
href: this.$apkUrl,
|
||||||
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
title: `我在【太湖云医】发布了文章 “ ${this.articleInfo.title} ”`,
|
||||||
// summary: `${this.taskInfo.content}`,
|
summary: `${this.articleInfo.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||||
imageUrl: image,
|
imageUrl: image,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log("success:" + JSON.stringify(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>
|
<template>
|
||||||
<view class="richtext" style="height: 100%;">
|
<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>
|
</view>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
><text
|
><text
|
||||||
style="margin-right: 30rpx; color: #e38d54"
|
style="margin-right: 30rpx; color: #e38d54"
|
||||||
v-if="item.come == 1"
|
v-if="item.come == 1"
|
||||||
>医案转发</text
|
>医案同步</text
|
||||||
><text style="letter-spacing: 1rpx">{{
|
><text style="letter-spacing: 1rpx">{{
|
||||||
item.createTime ? item.createTime : ""
|
item.createTime ? item.createTime : ""
|
||||||
}}</text></view
|
}}</text></view
|
||||||
@@ -273,7 +273,7 @@ export default {
|
|||||||
|
|
||||||
selectClick(e) {
|
selectClick(e) {
|
||||||
console.log(e.name);
|
console.log(e.name);
|
||||||
if (e.name == "删除") {
|
if (e.name == "删除文章") {
|
||||||
this.showDel=true;
|
this.showDel=true;
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
@@ -308,9 +308,9 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.come == 1) {
|
// if (item.come == 1) {
|
||||||
this.operateList = list;
|
// this.operateList = list;
|
||||||
} else {
|
// } else {
|
||||||
this.operateList = [
|
this.operateList = [
|
||||||
...list,
|
...list,
|
||||||
{
|
{
|
||||||
@@ -321,7 +321,7 @@ export default {
|
|||||||
fontSize: "16",
|
fontSize: "16",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
// }
|
||||||
this.selectArticleId = item.id;
|
this.selectArticleId = item.id;
|
||||||
this.showOperate = true;
|
this.showOperate = true;
|
||||||
// this.$refs.commentLikePopup.showCommentPopup();
|
// this.$refs.commentLikePopup.showCommentPopup();
|
||||||
@@ -343,7 +343,7 @@ export default {
|
|||||||
},
|
},
|
||||||
createFolder() {
|
createFolder() {
|
||||||
uni.navigateTo({
|
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() {
|
delArticle() {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
this.showDel=false;
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "加载中",
|
title: "加载中",
|
||||||
});
|
});
|
||||||
@@ -403,18 +404,27 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "删除成功",
|
title: "删除成功",
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
});
|
});
|
||||||
}
|
this.$nextTick(() => {
|
||||||
this.$nextTick(() => {
|
|
||||||
this.list = this.list.filter((e) => {
|
this.list = this.list.filter((e) => {
|
||||||
return e.id != this.selectArticleId;
|
return e.id != this.selectArticleId;
|
||||||
});
|
});
|
||||||
this.count = this.list.length;
|
this.count = this.list.length;
|
||||||
});
|
});
|
||||||
|
}else {
|
||||||
|
this.showDel=false
|
||||||
|
uni.showToast({
|
||||||
|
title: "删除失败",
|
||||||
|
icon: "success",
|
||||||
|
duration: 2000,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getListData(taihumedId, type) {
|
getListData(taihumedId, type) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
fontColor="#fff"
|
fontColor="#fff"
|
||||||
:backState="2000"
|
:backState="2000"
|
||||||
>
|
>
|
||||||
<template v-slot:right v-if="activeTab === 1">
|
<template v-slot:right v-if="activeTab === 1&&showArticleButton">
|
||||||
<view class="top_right" @tap="createFolder" style="margin-right: 20rpx">
|
<view class="top_right" @tap="createFolder" style="margin-right: 20rpx">
|
||||||
<uni-icons type="folder-add" size="17" color="#fff"></uni-icons>
|
<uni-icons type="folder-add" size="17" color="#fff"></uni-icons>
|
||||||
<text>发布文章</text>
|
<text>发布文章</text>
|
||||||
@@ -202,6 +202,7 @@
|
|||||||
:name="item.taihuTalent&&item.taihuTalent.name?item.taihuTalent.name:''"
|
:name="item.taihuTalent&&item.taihuTalent.name?item.taihuTalent.name:''"
|
||||||
:createTime="item.createTime"
|
:createTime="item.createTime"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
|
:id="item.id"
|
||||||
:content="item.content"
|
:content="item.content"
|
||||||
:isLike="item.likeFlag"
|
:isLike="item.likeFlag"
|
||||||
:isGiveReward="item.isGiveReward"
|
:isGiveReward="item.isGiveReward"
|
||||||
@@ -211,6 +212,7 @@
|
|||||||
:giveRewardNumber="item.giveRewardNumber"
|
:giveRewardNumber="item.giveRewardNumber"
|
||||||
:commentCount="item.commentCount"
|
:commentCount="item.commentCount"
|
||||||
@clickDynamic="clickDynamic(index)"
|
@clickDynamic="clickDynamic(index)"
|
||||||
|
@addRead="addRead"
|
||||||
@clickUser="clickUser(item)"
|
@clickUser="clickUser(item)"
|
||||||
@clickFocus="clickFocus(index)"
|
@clickFocus="clickFocus(index)"
|
||||||
@clickThumbsup="(type) => clickThumbsup(item.id, type)"
|
@clickThumbsup="(type) => clickThumbsup(item.id, type)"
|
||||||
@@ -265,6 +267,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
sysNotices_list:[],
|
sysNotices_list:[],
|
||||||
shareId: null,
|
shareId: null,
|
||||||
|
showArticleButton: false,
|
||||||
activeTab: 0,
|
activeTab: 0,
|
||||||
tabsList: [],
|
tabsList: [],
|
||||||
currentCateIndex: 0,
|
currentCateIndex: 0,
|
||||||
@@ -326,8 +329,34 @@ export default {
|
|||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
this.getTabData();
|
this.getTabData();
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {
|
||||||
|
this.isShowArticleButton()
|
||||||
|
if (this.activeTab == 0&&this.taihumedId!=null) {
|
||||||
|
this.getListData(this.taihumedId);
|
||||||
|
} else if (this.activeTab == 1) {
|
||||||
|
this.getArticleListData(true);
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async addRead(articleId){
|
||||||
|
// common/taihuTalentArticle/addReadCount
|
||||||
|
await $http
|
||||||
|
.request({
|
||||||
|
url: "common/taihuTalentArticle/addReadCount",
|
||||||
|
method: "POST",
|
||||||
|
data: {"articleId":articleId},
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then(async (res) => {
|
||||||
|
if(res.code == 0){
|
||||||
|
console.log(res)
|
||||||
|
this.getArticleDetail(articleId);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
confirm2(){
|
confirm2(){
|
||||||
this.$refs.customModal2.close();
|
this.$refs.customModal2.close();
|
||||||
this.sysNotices_list.forEach(e=>{
|
this.sysNotices_list.forEach(e=>{
|
||||||
@@ -358,6 +387,26 @@ readArticle(item){
|
|||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//已读记录
|
||||||
|
async isShowArticleButton() {
|
||||||
|
await $http
|
||||||
|
.request({
|
||||||
|
url: "common/taihuTalentArticle/getArticleRoleByUser",
|
||||||
|
method: "POST",
|
||||||
|
data: { },
|
||||||
|
header: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then(async (res) => {
|
||||||
|
if(res.code == 0 && res.roleFlag == 1){
|
||||||
|
this.showArticleButton=true
|
||||||
|
}else{
|
||||||
|
this.showArticleButton=false
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
async getSysNotices() {
|
async getSysNotices() {
|
||||||
@@ -378,8 +427,8 @@ readArticle(item){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
refreshData(reset) {
|
refreshData() {
|
||||||
if (reset) {
|
this.activeTab=1;
|
||||||
this.currentCateIndex = 0;
|
this.currentCateIndex = 0;
|
||||||
|
|
||||||
//重置
|
//重置
|
||||||
@@ -389,21 +438,21 @@ readArticle(item){
|
|||||||
this.count = 0;
|
this.count = 0;
|
||||||
this.current = 1;
|
this.current = 1;
|
||||||
this.getArticleListData();
|
this.getArticleListData();
|
||||||
}
|
|
||||||
},
|
},
|
||||||
createFolder() {
|
createFolder() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages/articleList/article?navTitle=文章&title=文章&type=add`,
|
url: `/pages/articleList/articleAdd?navTitle=文章&title=文章&type=add`,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
newOnShare() {
|
newOnShare() {
|
||||||
this.$refs.share.open();
|
this.$refs.share.open();
|
||||||
},
|
},
|
||||||
haveSelected() {
|
haveSelected(data) {
|
||||||
var data = this.list.find((item) => item.id == this.shareId);
|
var data1 = this.list.find((item) => item.id == this.shareId);
|
||||||
let image = "";
|
let image = "";
|
||||||
data.img && data.img != ""
|
data1.img && data1.img != ""
|
||||||
? (image = data.img.split(",")[0])
|
? (image = data1.img.split(",")[0])
|
||||||
: (image = "static/logo_zi.png");
|
: (image = "static/logo_zi.png");
|
||||||
console.log(data, " 选择的是");
|
console.log(data, " 选择的是");
|
||||||
if (data.index == 0) {
|
if (data.index == 0) {
|
||||||
@@ -413,8 +462,8 @@ readArticle(item){
|
|||||||
scene: "WXSceneSession",
|
scene: "WXSceneSession",
|
||||||
type: 0,
|
type: 0,
|
||||||
href: this.$apkUrl,
|
href: this.$apkUrl,
|
||||||
title: `我在【太湖云医】发布了文章 “ ${data.title} ”`,
|
title: `我在【太湖云医】发布了文章 “ ${data1.title} ”`,
|
||||||
// summary: `${this.productInfo.content}`,
|
summary: `${data1.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||||
imageUrl: image,
|
imageUrl: image,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log("success:" + JSON.stringify(res));
|
console.log("success:" + JSON.stringify(res));
|
||||||
@@ -430,8 +479,8 @@ readArticle(item){
|
|||||||
scene: "WXSceneTimeline",
|
scene: "WXSceneTimeline",
|
||||||
type: 0,
|
type: 0,
|
||||||
href: this.$apkUrl,
|
href: this.$apkUrl,
|
||||||
title: `我在【太湖云医】发布了文章 “ ${data.title} ”`,
|
title: `我在【太湖云医】发布了文章 “ ${data1.title} ”`,
|
||||||
// summary: `${this.taskInfo.content}`,
|
summary: `${data1.content.substring(0, 50).replace(/<[^>]*>/g, '').trim()}`,
|
||||||
imageUrl: image,
|
imageUrl: image,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log("success:" + JSON.stringify(res));
|
console.log("success:" + JSON.stringify(res));
|
||||||
@@ -597,6 +646,7 @@ readArticle(item){
|
|||||||
},
|
},
|
||||||
//获取列表数据
|
//获取列表数据
|
||||||
getArticleListData(type) {
|
getArticleListData(type) {
|
||||||
|
|
||||||
if (type) {
|
if (type) {
|
||||||
this.current = 1;
|
this.current = 1;
|
||||||
this.list = [];
|
this.list = [];
|
||||||
|
|||||||
@@ -173,18 +173,18 @@
|
|||||||
item.showFlag == 1 ? '#5188e5' : '#5e6d82'
|
item.showFlag == 1 ? '#5188e5' : '#5e6d82'
|
||||||
};display: flex;align-items: center;`"
|
};display: flex;align-items: center;`"
|
||||||
>
|
>
|
||||||
<template @click.stop="changeShowFlag(item)">
|
<view @click.stop="changeShowFlag(item)">
|
||||||
<text style="margin-right: 10rpx"
|
<text style="margin-right: 10rpx"
|
||||||
>是否在我的医案中展示</text
|
>是否在我的医案中展示</text
|
||||||
>
|
>
|
||||||
<uni-icons
|
<uni-icons style="margin-right: 10rpx;display: inline-block;"
|
||||||
:color="item.showFlag == 1 ? '#5188e5' : '#5e6d82'"
|
:color="item.showFlag == 1 ? '#5188e5' : '#5e6d82'"
|
||||||
:type="
|
:type="
|
||||||
item.showFlag == 0 ? 'eye-slash-filled' : 'eye-filled'
|
item.showFlag == 0 ? 'eye-slash-filled' : 'eye-filled'
|
||||||
"
|
"
|
||||||
size="24"
|
size="24"
|
||||||
></uni-icons>
|
></uni-icons>
|
||||||
</template>
|
</view>
|
||||||
|
|
||||||
<view @click.stop="changeShowArticleFlag(item)"
|
<view @click.stop="changeShowArticleFlag(item)"
|
||||||
v-if="item.articleFlag == 0"
|
v-if="item.articleFlag == 0"
|
||||||
|
|||||||
@@ -386,6 +386,10 @@ export default {
|
|||||||
this.$commonJS.showToast("请至少上传一张图片");
|
this.$commonJS.showToast("请至少上传一张图片");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (this.fileList1.length == 0) {
|
||||||
|
this.$commonJS.showToast("请至少上传一张图片");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
["妇科", "儿科"].includes(this.medicalForm.labelTitle) &&
|
["妇科", "儿科"].includes(this.medicalForm.labelTitle) &&
|
||||||
|
|||||||
@@ -128,11 +128,11 @@ export default {
|
|||||||
this.payType = 1;
|
this.payType = 1;
|
||||||
}
|
}
|
||||||
this.chargeOrderSn = options.orderSn;
|
this.chargeOrderSn = options.orderSn;
|
||||||
this.getDevName();
|
|
||||||
},
|
},
|
||||||
//页面显示
|
//页面显示
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.getDevName();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["userInfo"]),
|
...mapState(["userInfo"]),
|
||||||
@@ -373,8 +373,8 @@ export default {
|
|||||||
title: '加载中'
|
title: '加载中'
|
||||||
})
|
})
|
||||||
var data = {
|
var data = {
|
||||||
type: "point",
|
type: "vip",
|
||||||
qudao: "Android",
|
qudao: "google",
|
||||||
};
|
};
|
||||||
$http.request({
|
$http.request({
|
||||||
url: this.urlList.list,
|
url: this.urlList.list,
|
||||||
@@ -385,6 +385,7 @@ export default {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
console.log(res,'11111111111111')
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
this.cjList = res.bookBuyConfigList;
|
this.cjList = res.bookBuyConfigList;
|
||||||
//this.stepsCj = res.bookBuyConfigList[0];
|
//this.stepsCj = res.bookBuyConfigList[0];
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
class="hb-comment"
|
class="hb-comment"
|
||||||
:style="isDisable || isShowList || isPopup ? 'height:auto' : 'height: 70vh'"
|
:style="isDisable || isShowList || isPopup ? 'height:auto' : 'height: 70vh'"
|
||||||
id="commentData"
|
id="commentData"
|
||||||
|
|
||||||
>
|
>
|
||||||
<!-- 阅读数-start -->
|
<!-- 阅读数-start -->
|
||||||
|
|
||||||
@@ -73,7 +74,7 @@
|
|||||||
<view
|
<view
|
||||||
class="comment-main-content"
|
class="comment-main-content"
|
||||||
style="color: #232325; line-height: 38rpx"
|
style="color: #232325; line-height: 38rpx"
|
||||||
@click="reply(item.user.nickname, item.user.nickname, item.id)"
|
@click.stop="reply(item.user.nickname, item.user.nickname, item.id)"
|
||||||
>
|
>
|
||||||
{{ item.content }}
|
{{ item.content }}
|
||||||
<!-- {{
|
<!-- {{
|
||||||
@@ -90,9 +91,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="comment-main-foot">
|
<view class="comment-main-foot">
|
||||||
<view
|
<view
|
||||||
@click="
|
@click.stop="reply(item.user.nickname, item.user.nickname, item.id)"
|
||||||
reply(item.user.nickname, item.user.nickname, item.id)
|
|
||||||
"
|
|
||||||
class="foot-time"
|
class="foot-time"
|
||||||
style="color: #b7b8ba; letter-spacing: 1rpx; font-size: 24rpx"
|
style="color: #b7b8ba; letter-spacing: 1rpx; font-size: 24rpx"
|
||||||
>{{ item.createTime }}</view
|
>{{ item.createTime }}</view
|
||||||
@@ -101,7 +100,7 @@
|
|||||||
class="foot-btn"
|
class="foot-btn"
|
||||||
style="color: #777775"
|
style="color: #777775"
|
||||||
v-if="!isDisable"
|
v-if="!isDisable"
|
||||||
@click="
|
@click.stop="
|
||||||
reply(item.user.nickname, item.user.nickname, item.id)
|
reply(item.user.nickname, item.user.nickname, item.id)
|
||||||
"
|
"
|
||||||
>回复</view
|
>回复</view
|
||||||
@@ -145,7 +144,7 @@
|
|||||||
<view
|
<view
|
||||||
class="comment-main-content"
|
class="comment-main-content"
|
||||||
style="color: #232325 !important; line-height: 38rpx"
|
style="color: #232325 !important; line-height: 38rpx"
|
||||||
@click="
|
@click.stop="
|
||||||
reply(each.user.nickname, each.user.nickname, item.id)
|
reply(each.user.nickname, each.user.nickname, item.id)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -153,9 +152,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="comment-main-foot">
|
<view class="comment-main-foot">
|
||||||
<view
|
<view
|
||||||
@click="
|
@click.stop="
|
||||||
reply(each.user.nickname, each.user.nickname, item.id)
|
reply(each.user.nickname, each.user.nickname, item.id)
|
||||||
"
|
"
|
||||||
class="foot-time"
|
class="foot-time"
|
||||||
style="
|
style="
|
||||||
color: #b7b8ba;
|
color: #b7b8ba;
|
||||||
@@ -168,7 +167,7 @@
|
|||||||
class="foot-btn"
|
class="foot-btn"
|
||||||
style="color: #777775"
|
style="color: #777775"
|
||||||
v-if="each.user && !isDisable"
|
v-if="each.user && !isDisable"
|
||||||
@click="
|
@click.stop="
|
||||||
reply(each.user.nickname, each.user.nickname, item.id)
|
reply(each.user.nickname, each.user.nickname, item.id)
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
@@ -249,7 +248,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view
|
<view
|
||||||
class="input-container"
|
class="input-container"
|
||||||
:style="{ bottom: (show?205:0) + 'px' }"
|
:style="{ bottom: (show?200:0) + 'px' }"
|
||||||
v-if="showInput"
|
v-if="showInput"
|
||||||
>
|
>
|
||||||
<view style="overflow: hidden; margin-bottom: 4rpx; font-size: 32rpx"
|
<view style="overflow: hidden; margin-bottom: 4rpx; font-size: 32rpx"
|
||||||
@@ -262,7 +261,7 @@
|
|||||||
>取消</text
|
>取消</text
|
||||||
>
|
>
|
||||||
|
|
||||||
<text @click.stop="sendComment" style="float: right; color: #1985fd;margin-right:20rpx;margin-top:4rpx;"
|
<text @click.stop="sendComment" style="float: right; color: #1985fd;margin-right:20rpx;margin-top:4rpx;z-index: 99999;"
|
||||||
>发送</text
|
>发送</text
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
@@ -284,7 +283,7 @@
|
|||||||
|
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view :style="!show?'padding-bottom: 20rpx':'padding-bottom: 10rpx'">
|
||||||
<textarea
|
<textarea
|
||||||
auto-height
|
auto-height
|
||||||
|
|
||||||
@@ -294,8 +293,8 @@
|
|||||||
maxlength="-1"
|
maxlength="-1"
|
||||||
:placeholder="placeholder ? placeholder : '发表评论...'"
|
:placeholder="placeholder ? placeholder : '发表评论...'"
|
||||||
@focus.stop="onInputFocus"
|
@focus.stop="onInputFocus"
|
||||||
|
@blur.stop="onInputBlur"
|
||||||
:auto-focus="showInput"
|
:auto-focus="focus"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -542,8 +541,12 @@ export default {
|
|||||||
|
|
||||||
emojichet() {
|
emojichet() {
|
||||||
// this.reply("", "", 0);
|
// this.reply("", "", 0);
|
||||||
|
setTimeout(()=>{
|
||||||
this.show = true; // 打开 emoji 列表
|
this.focus=false
|
||||||
|
this.showInput=true
|
||||||
|
this.show = true;
|
||||||
|
},50)
|
||||||
|
// 打开 emoji 列表
|
||||||
// if(this.show){
|
// if(this.show){
|
||||||
// this.focus = false;
|
// this.focus = false;
|
||||||
// }else{
|
// }else{
|
||||||
@@ -568,20 +571,28 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 输入框失去焦点
|
// 输入框失去焦点
|
||||||
onInputBlur() {
|
onInputBlur(event) {
|
||||||
console.log(11111111111);
|
console.log(11111111111);
|
||||||
|
|
||||||
if (!this.commentContent.trim()) {
|
// 阻止焦点事件冒泡,防止冲突
|
||||||
this.showInput = false;
|
event.stopPropagation();
|
||||||
}
|
console.log('失去焦点');
|
||||||
|
|
||||||
|
// if (!this.commentContent.trim()) {
|
||||||
|
setTimeout(()=>{
|
||||||
|
this.showInput = false;
|
||||||
|
},50)
|
||||||
|
|
||||||
|
// }
|
||||||
// 如果输入框为空,点击空白处关闭输入框
|
// 如果输入框为空,点击空白处关闭输入框
|
||||||
},
|
},
|
||||||
|
|
||||||
// 发送评论
|
// 发送评论
|
||||||
sendComment() {
|
sendComment(event) {
|
||||||
if (this.commentContent.trim()) {
|
setTimeout(()=>{
|
||||||
|
event.stopPropagation();
|
||||||
|
console.log('按钮点击');
|
||||||
|
if (this.commentContent.trim()) {
|
||||||
// 这里添加发送评论的逻辑
|
// 这里添加发送评论的逻辑
|
||||||
console.log("发送评论:", this.commentContent);
|
console.log("发送评论:", this.commentContent);
|
||||||
this.$emit("add", this.commentContent, this.pId);
|
this.$emit("add", this.commentContent, this.pId);
|
||||||
@@ -592,6 +603,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.$commonJS.showToast("请输入评论");
|
this.$commonJS.showToast("请输入评论");
|
||||||
}
|
}
|
||||||
|
},0)
|
||||||
|
|
||||||
},
|
},
|
||||||
// 初始化评论
|
// 初始化评论
|
||||||
init(cmData) {
|
init(cmData) {
|
||||||
@@ -607,7 +620,9 @@ export default {
|
|||||||
stopPrevent() {},
|
stopPrevent() {},
|
||||||
// 回复评论
|
// 回复评论
|
||||||
reply(pUser, reUser, pId) {
|
reply(pUser, reUser, pId) {
|
||||||
|
this.showInput = false;
|
||||||
this.show=false
|
this.show=false
|
||||||
|
this.focus=false
|
||||||
if (this.isDisable) {
|
if (this.isDisable) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -632,7 +647,12 @@ export default {
|
|||||||
// } else {
|
// } else {
|
||||||
// this.commentReq.content = "";
|
// this.commentReq.content = "";
|
||||||
// }
|
// }
|
||||||
this.showInput = true;
|
setTimeout(()=>{
|
||||||
|
this.focus=true
|
||||||
|
this.showInput = true;
|
||||||
|
|
||||||
|
},20)
|
||||||
|
|
||||||
// this.showTag = true;
|
// this.showTag = true;
|
||||||
// this.commentInput();
|
// this.commentInput();
|
||||||
},
|
},
|
||||||
@@ -937,6 +957,7 @@ export default {
|
|||||||
// text-align: center;
|
// text-align: center;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<view class="page-body" style="height: 100%;">
|
<view class="page-body" style="height: 100%;">
|
||||||
<view class='wrapper' style="height: 100%;">
|
<view class='wrapper' style="height: 100%;">
|
||||||
<PickerColor ref="colorPicker" :color="{r: 255,g: 0,b: 0,a: 0.6}" @confirm="confirm"></PickerColor>
|
<PickerColor ref="colorPicker" :color="{r: 255,g: 0,b: 0,a: 0.6}" @confirm="confirm"></PickerColor>
|
||||||
<view class='toolbar' @tap="format">
|
<view class='toolbar' @tap="format" :style="`top:${toolbarTop?toolbarTop:0} ;`">
|
||||||
<!-- <view class="iconfont icon-undo" @tap="undo"></view>
|
<!-- <view class="iconfont icon-undo" @tap="undo"></view>
|
||||||
<view class="iconfont icon-redo" @tap="redo"></view> -->
|
<view class="iconfont icon-redo" @tap="redo"></view> -->
|
||||||
<!-- <view class="iconfont icon-charutupian" @tap="insertImage"></view> -->
|
<!-- <view class="iconfont icon-charutupian" @tap="insertImage"></view> -->
|
||||||
@@ -75,6 +75,10 @@
|
|||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
|
toolbarTop: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
@@ -399,8 +403,8 @@
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: -1px; /* 距离顶部的距离 */
|
top: -1px; /* 距离顶部的距离 */
|
||||||
z-index: 10; /* 确保在其他内容之上 */
|
z-index: 10; /* 确保在其他内容之上 */
|
||||||
background-color: #d8e6ff;
|
background-color: #fff;
|
||||||
border-bottom: 1rpx solid #5188e5;
|
border-bottom: 1rpx solid #f7f7f7;
|
||||||
/* position: fixed;
|
/* position: fixed;
|
||||||
bottom: 10upx;
|
bottom: 10upx;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -419,6 +423,9 @@
|
|||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding-bottom: 60upx;
|
padding-bottom: 60upx;
|
||||||
}
|
}
|
||||||
|
/deep/ .ql-container .ql-editor{
|
||||||
|
overflow: visible !important;
|
||||||
|
}
|
||||||
|
|
||||||
/deep/ .ql-editor.ql-blank:before {
|
/deep/ .ql-editor.ql-blank:before {
|
||||||
font-size: 28upx;
|
font-size: 28upx;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
18
unpackage/dist/build/app-plus/app-service.js
vendored
18
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/app-plus/app-view.js
vendored
6
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/manifest.json
vendored
2
unpackage/dist/build/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
8660
unpackage/dist/dev/app-plus/app-service.js
vendored
8660
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
3717
unpackage/dist/dev/app-plus/app-view.js
vendored
3717
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 966 B |
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user