|
|
<form catchsubmit="formSubmit">
|
|
|
<view style="border-top:1rpx solid #eeeeee;" wx:if="{{!isEdit}}"></view>
|
|
|
<view class="p10">
|
|
|
<view class="bgf br4" style="border-radius: 4px;padding-bottom: 96px;">
|
|
|
<!-- <view class="f18 c3 tc fw500" wx:if="{{!isEdit}}">{{record.articleTitle}}</view> -->
|
|
|
|
|
|
<input class="weui-input f18 c3 tc fw500" wx:if="{{isEdit}}" name="title" auto-focus placeholder="请输入标题" value="{{articleTitle}}"/>
|
|
|
|
|
|
<view style="border-top:1rpx solid #eeeeee;margin-top: 16px;" wx:if="{{isEdit}}"></view>
|
|
|
|
|
|
<!-- <view class="f14 c9 tc mb16">发布时间 : {{record.updateTime}}</view> -->
|
|
|
<view wx:if="{{!isEdit}}" style="white-space: pre-line;word-break: break-all;margin-top: 16px;">{{newContent}}</view>
|
|
|
<!-- <rich-text nodes="{{html}}"></rich-text> -->
|
|
|
<!-- <web-view src="http://a.matripe.com.cn/#/ShowPdf?url=https%3A%2F%2Fmatripe-cms.oss-cn-beijing.aliyuncs.com%2F2022-08-19%2F4d863b11-b0d9-4620-85b8-09ca7b8ed530_%E9%A1%B9%E7%9B%AE%E9%83%A8%E5%AE%BF%E8%88%8D%E7%AE%A1%E7%90%86%E8%A7%84%E5%AE%9A3.pdf" bindmessage=""></web-view> -->
|
|
|
<!-- <mp-html content="{{html}}" tag-style="{{tagStyle}}" container-style="font-size:14px;color:#333" scroll-table="true"/> -->
|
|
|
<textarea class="weui-textarea wta2" wx:if="{{isEdit}}" type="text" maxlength="-1" value="{{newContent}}" placeholder="请输入详情" cursor-spacing="100" placeholder-class="weui-input__placeholder" auto-height="true" bindlinechange="textareaFocus" style="height:{{height}} !important;white-space: pre-line;" id="textareawrap" name="textarea"></textarea>
|
|
|
</view>
|
|
|
|
|
|
<!-- <view class="mt24 mb16">
|
|
|
<button class="weui-btn mbtn newBtn" bindtap="showForm" wx:if="{{isEdit}}" style="margin-top:40px;" hover-class="thover" >编辑</button>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<view class="mt24 mb16" wx:if="{{!isEdit}}" style="width: 260px;margin:0 auto">
|
|
|
<button class="weui-btn mbtn newBtn dib quxiao" style="width: 120px;margin-right: 20px;" hover-class="thover" bindtap="showForm">取消</button>
|
|
|
<button class="weui-btn mbtn newBtn dib" formType="submit" style="width: 120px;" hover-class="thover" >确定</button>
|
|
|
</view> -->
|
|
|
|
|
|
|
|
|
<!-- <view class="btmFix display-flex" wx:if="{{!isEdit}}" style="justify-content: center;">
|
|
|
<view class="" wx:if="{{record.status == 0}}" style="margin-right: 20px;">
|
|
|
<button class="resetBtn" style="font-weight: 400" mark:ind='{{10}}' bindtap="fabu">确认发布</button>
|
|
|
</view>
|
|
|
<view class="" wx:if="{{record.status == 10}}" style="margin-right: 20px;">
|
|
|
<button class="resetBtn" style="font-weight: 400" mark:ind='{{0}}' bindtap="fabu">暂不发布</button>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<button type="primary" class="loginOut" bindtap="showForm" hover-class="behover" style="font-weight: 400">编辑</button>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
|
|
|
<view class="btmFix display-flex" wx:if="{{!isEdit && status == 10 && (roleOf41 || managerRoleClassify)}}" style="justify-content: center;">
|
|
|
<view class="" style="margin-right: 0;">
|
|
|
<!-- style="margin-right: 20px;" -->
|
|
|
<button class="resetBtn" style="font-weight: 400" mark:ind='{{10}}' bindtap="showForm">编辑</button>
|
|
|
</view>
|
|
|
<!-- <view class="">
|
|
|
<button type="primary" class="loginOut" bindtap="chooseTimeTap" hover-class="behover" style="font-weight: 400">发布</button>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
|
|
|
<!-- 项目客服{{roleOf41}}项目经理{{roleOf132}}管理角色{{managerRoleClassify}} -->
|
|
|
<view class="btmFix display-flex" wx:if="{{!isEdit && status == 30 && (roleOf41 || managerRoleClassify)}}" style="justify-content: center;">
|
|
|
<view class="" style="margin-right: 20px;">
|
|
|
<button class="resetBtn" style="font-weight: 400" mark:ind='{{10}}' bindtap="showForm">编辑</button>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<button type="primary" class="loginOut" bindtap="chexiaoTap" hover-class="behover" style="font-weight: 400">撤销</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="btmFix display-flex" wx:if="{{isEdit && status == 10}}" style="justify-content: center;">
|
|
|
<view class="" style="margin-right: 20px;">
|
|
|
<button class="resetBtn" style="font-weight: 400" bindtap="cancelForm">取消</button>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<button type="primary" class="loginOut" formType="submit" hover-class="behover" style="font-weight: 400">发布</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="btmFix display-flex" wx:if="{{isEdit && status == 30}}" style="justify-content: center;">
|
|
|
<view class="" style="margin-right: 20px;">
|
|
|
<button class="resetBtn" style="font-weight: 400" bindtap="cancelForm">取消</button>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<button type="primary" class="loginOut" formType="submit" hover-class="behover" style="font-weight: 400">确定</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="btmFix display-flex w98" wx:if="{{!isEdit && status == 15 && (roleOf41 || managerRoleClassify)}}" style="justify-content: center;padding: 0 12px;box-sizing: border-box;">
|
|
|
<view class="" style="justify-content: center;margin-right: 0;">
|
|
|
<button class="resetBtn" style="font-weight: 400" bindtap="showForm">编辑</button>
|
|
|
</view>
|
|
|
<view class="" style="justify-content: center;">
|
|
|
<button class="resetBtn" style="font-weight: 400" bindtap="bohuiTap">驳回</button>
|
|
|
</view>
|
|
|
<view class="" style="justify-content: center;">
|
|
|
<button type="primary" class="loginOut" bindtap="tongguoTap" hover-class="behover" style="font-weight: 400">通过</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</form>
|
|
|
|
|
|
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{bohui}}" style="position: relative;z-index: 1000;">
|
|
|
<view class="weui-mask"></view>
|
|
|
<view class="weui-dialog">
|
|
|
<view class="weui-dialog__bd">驳回后,系统不再自动生成明天的通告,如需自动推送,请在“通告库”手动完成。
|
|
|
</view>
|
|
|
<view class="weui-dialog__ft">
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="close">取消</view>
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:#00bebe" bindtap="bohuiClose">确认</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{tongguo}}" style="position: relative;z-index: 1000;">
|
|
|
<view class="weui-mask"></view>
|
|
|
<view class="weui-dialog">
|
|
|
<view class="weui-dialog__bd">通过后,该通告会进入到“待发布”列表,系统会在次日7:40自动推送到发单群。</view>
|
|
|
<view class="weui-dialog__ft">
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="close">取消</view>
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:#00bebe" bindtap="tongguoClose">确认</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{chexiao}}" style="position: relative;z-index: 1000;">
|
|
|
<view class="weui-mask"></view>
|
|
|
<view class="weui-dialog">
|
|
|
<view class="weui-dialog__bd">撤销后,系统将不再按设定时间自动推送。</view>
|
|
|
<view class="weui-dialog__ft">
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="close">取消</view>
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:#00bebe" bindtap="chexiaoClose">确认</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{minute3}}" style="position: relative;z-index: 1000;">
|
|
|
<view class="weui-mask"></view>
|
|
|
<view class="weui-dialog">
|
|
|
<view class="weui-dialog__bd">确认后,机器人将自动发布通知,是否确定?</view>
|
|
|
<view class="weui-dialog__ft">
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="onlyClose">取消</view>
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:#00bebe" bindtap="only3Close">确认</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{minute740}}" style="position: relative;z-index: 1000;">
|
|
|
<view class="weui-mask"></view>
|
|
|
<view class="weui-dialog">
|
|
|
<view class="weui-dialog__bd">系统将在【次日7:40】自动推送。</view>
|
|
|
<view class="weui-dialog__ft">
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="onlyClose">取消</view>
|
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:#00bebe" bindtap="only740Close">确认</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<view wx:if="{{chooseTime}}" aria-role="dialog" aria-modal="true" aria-labelledby="js_dialog_title" class="fadeIn" style="position: relative;z-index: 999;">
|
|
|
<view class="weui-mask" aria-role="button" aria-label="关闭" bindtap="close"></view>
|
|
|
<view class="weui-actionsheet weui-actionsheet_toggle">
|
|
|
<view class="weui-actionsheet__title">
|
|
|
<view class="weui-actionsheet__title-text" id="js_dialog_title">选择发布时间</view>
|
|
|
</view>
|
|
|
<view class="weui-actionsheet__menu">
|
|
|
<view aria-role="button" class="weui-actionsheet__cell" bindtap="minute3Tap">3分钟后</view>
|
|
|
<!-- <view aria-role="button" class="weui-actionsheet__cell" bindtap="minute740Tap">次日 7:40</view> -->
|
|
|
</view>
|
|
|
<view class="weui-actionsheet__action">
|
|
|
<view aria-role="button" class="weui-actionsheet__cell" bindtap="close">取消</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view> |