<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="container main">
        <view class="one">
            <scroll-view scroll-y="true" class="scroll-view">
                <view class="infos">
                    <view class="top">
                        <view class="one_1">{{info.title}}</view>
                        <view class="one_2">
                            <view class="type"><text>来源：{{info.origin||'暂无'}}</text></view>
                            <view class="time">{{info.create_time||'暂无'}}</view>
                        </view>
                    </view>
                    <view class="cont">
                        <rich-text nodes="{{info.content}}"></rich-text>
                    </view>
                    <view class="bom">
                        <view class="list" wx:for="{{info.stick}}" wx:key="item">
                            <view class="list_1">
                                <view class="name">{{item.name}}</view>
                                <view class="list_bom">
                                    <view class="title">{{item.title}}</view>
                                    <view class="content">{{item.content}}</view>
                                </view>
                            </view>
                            <view class="time">{{item.create_time}}</view>
                        </view>
                    </view>
                </view>
            </scroll-view>
        </view>
        <view class="foot" wx:if="{{user.type=='0'}}">
            <text class="mymatch" bindtap="toDialog">我要发帖</text>
        </view>
    </view>
</mobile-main>
<e-dialog dialog="{{dialog}}" bind:toClose="toClose">
    <view slot="info">
        <view wx:if="{{dialog.type=='1'}}">
            <form catchsubmit="onSubmit">
                <view class="two">
                    <view class="two_1">
                        <input type="text" name="title" value="{{form.title}}" placeholder="请输入标题" />
                    </view>
                    <view class="two_1">
                        <textarea name="content" value="{{form.content}}" maxlength="-1" placeholder="请输入发帖内容" />
                    </view>
                    <view class="two_2">
                        <button type="primary" size="mini" formType="submit">发送</button>
                    </view>
                </view>
            </form>
        </view>
    </view>
</e-dialog>