Commit b8e5c3de authored by 罗林杰's avatar 罗林杰

修改bug

parent 0d98c893
...@@ -253,6 +253,7 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article"; ...@@ -253,6 +253,7 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
numtwo: 0, numtwo: 0,
tipMsg: "", tipMsg: "",
openId: '', openId: '',
share: false,
}; };
}, },
onShow(){ onShow(){
...@@ -284,6 +285,9 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article"; ...@@ -284,6 +285,9 @@ import {articleList, getOssUrl, userArticleList} from "../../api/article";
}) })
} }
this.articleImg = [] this.articleImg = []
if (options.share != null) {
this.share = options.share;
}
}, },
methods: { methods: {
/** /**
......
...@@ -157,8 +157,10 @@ export default{ ...@@ -157,8 +157,10 @@ export default{
//设置上级评论id 加这个逻辑是为了保证永远只有两层结构 //设置上级评论id 加这个逻辑是为了保证永远只有两层结构
if (value.parentId == null){ if (value.parentId == null){
//点击的第一层评论 //点击的第一层评论
console.log('1`11111111')
this.parentId = value.businessId this.parentId = value.businessId
} else { } else {
console.log('222222222222')
//点击的第二层评论 //点击的第二层评论
this.parentId = value.parentId this.parentId = value.parentId
} }
......
<template> <template>
<view :class="['bigBox']"> <view :class="['bigBox']">
<view class="box"> <view class="box">
<textarea style="width: 100%;height: 260rpx;" v-model="content" :maxlength="-1" :auto-height="false" <textarea style="width: 100%;height: 260rpx;" v-model="content" :maxlength="250" :auto-height="false"
:showConfirmBar="false" :adjust-position="false" @focus="focusFn" :focus="focus" @blur="blurFn" :showConfirmBar="false" :adjust-position="false" @focus="focusFn" :focus="focus" @blur="blurFn"
border="none" placeholder="分享生活、表达思考、提出困惑..."></textarea> border="none" placeholder="分享生活、表达思考、提出困惑..."></textarea>
<view class="upload"> <view class="upload">
<u-upload :fileList="fileList" accept="image" uploadIcon="plus" :capture="['album', 'camera']" <u-upload :fileList="fileList" accept="image" uploadIcon="plus" :capture="['album', 'camera']"
@afterRead="afterRead" @delete="deletePic" width="200rpx" height="200rpx" multiple :maxCount="9" @afterRead="afterRead" @delete="deletePic" width="200rpx" height="200rpx" multiple :maxCount="4"
:previewFullImage="true"></u-upload> :previewFullImage="true"></u-upload>
</view> </view>
<view class="bot" :style="{'bottom':heightFn}"> <view class="bot" :style="{'bottom':heightFn}">
<view class="btn"> <view class="btn">
<view class="l"> <view class="l">
</view> </view>
<view class="r" @click="submit"> <view class="r" @click="submit">
发布 发布
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment