forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-31 b72fc1b10b08cf2fea1626d32e1ca2cccabe2edd
bug修复
27 files modified
404 ■■■■■ changed files
SunshineIns/src/data/menu.js 52 ●●●●● patch | view | raw | blame | history
SunshineIns/src/index.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/page/ActiveManage.jsx 9 ●●●● patch | view | raw | blame | history
SunshineIns/src/page/ActiveManageEdit.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/page/ActiveManageEditquestionnaire.jsx 14 ●●●●● patch | view | raw | blame | history
SunshineIns/src/page/CareList.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/page/CareListEdit.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/page/KeyWord.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/page/Login.jsx 4 ●●●● patch | view | raw | blame | history
SunshineIns/src/view/LoginView/index.jsx 2 ●●● patch | view | raw | blame | history
SunshineIns/src/view/QuestionnairContent/index.js 17 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/app.js 4 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/me/me.wxml 12 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/rzcxList/rzcxList.wxml 3 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsjb/xsjb.json 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsjb/xsjb.wxml 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.js 3 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhdt/zhdt.wxml 4 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhgh/zhgh.json 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhgh/zhgh.wxml 169 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhghInfo/zhghInfo.json 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhghLogin/zhghLogin.js 4 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhghLogin/zhghLogin.json 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhgk/zhgk.js 62 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhgk/zhgk.wxml 21 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhwj/zhwj.wxml 2 ●●● patch | view | raw | blame | history
SunshineIns/src/data/menu.js
@@ -83,20 +83,6 @@
  icon: active,
  iconCheck: activeCheck,
  path: '/sweeping'
},
{
  id: 'lawSubscribe',
  name: '普法预约',
  icon: active,
  iconCheck: activeCheck,
  path: '/lawSubscribe'
},
{
  id: 'keyWord',
  name: '关键词维护',
  icon: active,
  iconCheck: activeCheck,
  path: '/keyWord'
}, {
  id: 'activeManage',
  name: '法治活动',
@@ -104,20 +90,40 @@
  iconCheck: activeCheck,
  path: '/activeManage'
},
{
  id: 'careList',
  name: '社会关护管理',
  icon: active,
  iconCheck: activeCheck,
  path: '/careList'
  id: 'childManage',
  name: '智慧未检',
  icon: home,
  iconCheck: homeCheck,
  children: [{
    id: 'careList',
    name: '社会观护管理',
    path: '/careList'
  }, {
    id: 'underAgeList',
    name: '涉未成年负责部门组织',
    path: '/underAgeList'
  }, {
    id: 'lawSubscribe',
    name: '普法预约',
    path: '/lawSubscribe'
  }]
},
{
  id: 'underAgeList',
  name: '涉未成年负责部门组织',
  icon: active,
  id: 'keyWord',
  name: '关键词维护',
  icon: home,
  iconCheck: activeCheck,
  path: '/underAgeList'
  children: [{
    id: 'dxWords',
    name: '典型案例关键词',
    path: '/dxWords'
  }]
},
{
  id: 'noInspectionReportList',
  name: '举报管理',
SunshineIns/src/index.jsx
@@ -89,7 +89,7 @@
          <Route path='/supPerson' component={SupPerson} />
          <Route path='/company' component={Company} />
          <Route path='/underAgeList' component={UnderAgeList} />
          <Route path='/keyWord' component={KeyWord} />
          <Route path='/dxWords' component={KeyWord} />
          <Route path='/knowledgeBase' component={KnowledgeBase} />
          <Route path='/articlePublish' component={ArticlePublish} />
          <Route path='/articleEidt/:id' component={ArticleEidt} />
SunshineIns/src/page/ActiveManage.jsx
@@ -298,6 +298,8 @@
                            record.status == 3 ?
                                <span>
                                    <label className='theme-color' onClick={() => this.showModal(record.id)} style={{ cursor: 'pointer' }}>查看</label>
                                    <Divider type="vertical" />
                                    <label className='theme-color' onClick={() => this.signIn(record.id)} style={{ cursor: 'pointer' }}>签到上墙</label>
                                    {!record.result &&
                                        <React.Fragment>
                                            <Divider type="vertical" />
@@ -306,7 +308,12 @@
                                    }
                                </span>
                                :
                                <span><label className='theme-color' onClick={() => this.showModal(record.id)} style={{ cursor: 'pointer' }}>查看</label></span>
                                record.status == 99 ?
                                    <span><label className='theme-color' onClick={() => this.showModal(record.id)} style={{ cursor: 'pointer' }}>查看</label></span>
                                    :
                                    <span><label className='theme-color' onClick={() => this.showModal(record.id)} style={{ cursor: 'pointer' }}>查看</label>
                                        <Divider type="vertical" />
                                        <label className='theme-color' onClick={() => this.signIn(record.id)} style={{ cursor: 'pointer' }}>签到上墙</label></span>
                )
            ),
SunshineIns/src/page/ActiveManageEdit.jsx
@@ -693,7 +693,7 @@
                                                this.state.selectedQuestionnaireData.title ?
                                                    <div>
                                                        <span style={{ margin: '0 20px' }}>{this.state.selectedQuestionnaireData.title}</span>
                                                        <Button type="link" disabled onClick={this.questionnaireCancle}>查看</Button>
                                                        <Button type="link" onClick={this.questionnaireCancle}>查看</Button>
                                                        <Button type="link" disabled onClick={this.questionnaireDel}>删除</Button>
                                                    </div> :
                                                    <Button style={{ marginLeft: '15px', width: '150px' }} onClick={this.selectonClick}>请选择</Button>
SunshineIns/src/page/ActiveManageEditquestionnaire.jsx
@@ -107,7 +107,7 @@
                      问卷描述:{initData.content || '暂无'}
                    </h4>
                    <h4 style={{ marginBottom: 0 }}>
                      业务类型{initData.businessType || '暂无'}
                      业务类型{typeStatus(initData.businessType) || '暂无'}
                    </h4>
                  </div>
                </div>
@@ -124,3 +124,15 @@
  }
}
function typeStatus(type) {
  switch (type) {
    case 1:
      return "企业体检";
    case 2:
      return "培训活动";
    case 3:
      return "未检调查";
    case 4:
      return "刑执监督";
  }
}
SunshineIns/src/page/CareList.jsx
@@ -61,7 +61,7 @@
    }
    componentDidMount() {
        document.title = '社会关护管理';
        document.title = '社会观护管理';
        this.getData();
    }
SunshineIns/src/page/CareListEdit.jsx
@@ -526,7 +526,7 @@
                                    <Row type="flex" align='middle' justify="space-around">
                                        <Col span={6} pull={0} style={{ textAlign: 'center' }}><span>任务汇报</span></Col>
                                        <Col span={18} push={0} >
                                            <TextArea disabled={disabled} rows={4} value={socialTaskObject.taskReport || ""} onChange={this.saveInputChange} name='taskReport' />
                                            <TextArea disabled={disabled} rows={8} value={socialTaskObject.taskReport || ""} onChange={this.saveInputChange} name='taskReport' />
                                        </Col>
                                        <Col span={12} pull={0}></Col>
                                    </Row>
SunshineIns/src/page/KeyWord.jsx
@@ -26,7 +26,7 @@
  }
  componentDidMount() {
    document.title = '关键词维护';
    document.title = '典型案例关键词';
    this.getData();
  }
SunshineIns/src/page/Login.jsx
@@ -42,8 +42,8 @@
      // debugger;
      if (res.code === 0) {
        // location.href = res.data;
        location.href ='http://localhost:8080/index.html#/'
        // location.href ='http://nsjcy.hugeinfo.com.cn/nsjc-charge/pc/index.html#/'
        // location.href ='http://localhost:8080/index.html#/'
        location.href ='http://nsjcy.hugeinfo.com.cn/nsjc-charge/pc/index.html#/'
      } else {
        message.error(res.msg, 2)
      }
SunshineIns/src/view/LoginView/index.jsx
@@ -31,7 +31,7 @@
      <React.Fragment>
        <div className="login-view-main">
          <div><img src={logo} style={{ width: '200px' }} /></div>
          <div className='login-view-text'>南沙区人民检察院阳光检务后台管理</div>
          <div className='login-view-text'>南沙区人民检察院便利化诉讼服务智能平台管理后台</div>
        </div>
        <div className="login-view-content">
          <div className="login-view-body">
SunshineIns/src/view/QuestionnairContent/index.js
@@ -6,6 +6,19 @@
// import Default from '../../assets/scale_default.png'
const Option = Select.Option;
function typeStatus(type) {
  switch (type) {
    case 1:
      return "企业体检";
    case 2:
      return "培训活动";
    case 3:
      return "未检调查";
    case 4:
      return "刑执监督";
  }
}
class QuestionnairContent extends React.PureComponent {
  state = {
    questionnairSign: false,
@@ -20,7 +33,7 @@
    this.setState({
      questionnairTitle: title,
      questionnairDescription: content,
      questionnairBusinessType: businessType
      questionnairBusinessType: typeStatus(businessType)
    });
  }
  //新增题目时内容页滚动到底部
@@ -86,7 +99,7 @@
      questionnairBusinessType
    } = this.state;
    const { submitQuestionTemp, editors, btnLoading } = this.props;
    console.log(questionnairBusinessType)
    const questionnairtitleEl = (
      <div className="title-inner">
        <span style={{ color: 'red' }}>*</span>
SunshineLnsMinApp/app.js
@@ -10,8 +10,8 @@
  globalData: {
    userInfo: null,
    pageData: {},
    // url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    url: 'http://1p885086k1.iok.la/nsjc-charge',
    url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    // url: 'http://1p885086k1.iok.la/nsjc-charge',
    // url: 'http://192.168.0.31:8085/nsjc-charge',
    imgUrl: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    // url: 'http://nsjc.vaiwan.com/nsjc-charge',
SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js
@@ -242,7 +242,7 @@
          }))
        } else {
          wx.showToast({
            title: '报名失败,请稍后重试!',
            title: res.data.msg,
            icon: 'none'
          })
        }
SunshineLnsMinApp/pages/me/me.wxml
@@ -23,9 +23,9 @@
        <div class="me-business-nav" bindtap="myTranslate">
            <image class="me-business-icon" src="{{xxtx}}" />
            <div class="me-business-title">我的活动</div>
            <block wx:if="{{notRead > 0}}">
            <!-- <block wx:if="{{notRead > 0}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
            </block> -->
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
@@ -43,9 +43,9 @@
        <div class="me-business-nav" bindtap="rzcxList">
            <image class="me-business-icon" src="{{xxtx}}" />
            <div class="me-business-title">入职查询</div>
            <block wx:if="{{notRead > 0}}">
            <!-- <block wx:if="{{notRead > 0}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
            </block> -->
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
@@ -53,9 +53,9 @@
        <div class="me-business-nav" bindtap="wdjb">
            <image class="me-business-icon" src="{{xxtx}}" />
            <div class="me-business-title">我的举报</div>
            <block wx:if="{{notRead > 0}}">
            <!-- <block wx:if="{{notRead > 0}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
            </block> -->
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
SunshineLnsMinApp/pages/rzcxList/rzcxList.wxml
@@ -8,7 +8,8 @@
      </div>
      <div class="businessSchedule-top-title">入职查询</div>
      <div class="businessSchedule-top-status backgroundorange-title" wx:if="{{item.status==1}}">待回复</div>
      <div class="businessSchedule-top-status backgroundgreen-title" wx:elif="{{item.status==2}}">已回复</div>
      <div class="businessSchedule-top-status backgroundgreen-title" wx:elif="{{item.status==2}}">检察院已审核</div>
      <div class="businessSchedule-top-status backgroundgreen-title" wx:elif="{{item.status==3}}">公安已审核</div>
      <div class="businessSchedule-top-status backgroundgray-title" wx:else>未知文件</div>
    </div>
    <div class="businessSchedule-center">{{item.reason}}</div>
SunshineLnsMinApp/pages/xsjb/xsjb.json
@@ -1,5 +1,5 @@
{
  "navigationBarTitleText": "未检举报平台(线上举报)",
  "navigationBarTitleText": "举报平台详情",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black",
SunshineLnsMinApp/pages/xsjb/xsjb.wxml
@@ -50,7 +50,7 @@
            <div class="activity-uploadImage">
                <view class="educt_hasupload_pic" wx:for="{{evalList.evalList1000}}" wx:key="index">
                    <image src="{{item.pic}}" class="upload" bindtap="previewImage" data-src="{{item.pic}}"></image>
                    <image src="{{del}}" class="{{disabled? 'displayNone':'activity-uploadImag-del'}}" bindtap='clearImg' data-index="{{index}}" id="{{item.id}}" data-associatetypeid="{{1000}}"></image>
                    <!-- <image src="{{del}}" class="{{disabled? 'displayNone':'activity-uploadImag-del'}}" bindtap='clearImg' data-index="{{index}}" id="{{item.id}}" data-associatetypeid="{{1000}}"></image> -->
                </view>
                <view bindtap="joinPicture" data-index="{{0}}" data-associatetypeid="{{1000}}">
                    <image class="{{disabled? 'educt_upload_add activity-uploadImag-icon':'displayNone activity-uploadImag-icon'}}" src="{{add}}"></image>
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.js
@@ -182,8 +182,7 @@
  joinPicture: function(e) {
    console.log(e)
    var that = this;
    console.log(that)
    app.joinPicture(e, that, e.currentTarget.dataset.associatetypeid, that.data.id);
    app.joinPicture(e, that, e.currentTarget.dataset.associatetypeid, that.data.thisData.id);
  },
  // 删除图片
SunshineLnsMinApp/pages/zhdt/zhdt.wxml
@@ -1,6 +1,6 @@
<!--pages/zhdt/zhdt.wxml-->
<!-- 搜索 -->
  <view class="lawsList-search">
  <!-- <view class="lawsList-search">
    <view class="page">
      <view class="page__bd">
        <view class="weui-search-bar">
@@ -21,7 +21,7 @@
        </view>
      </view>
    </view>
  </view>
  </view> -->
<!-- <view class="index-gray "></view> -->
<view class="zhwj-b">
  <view class="zhwj-b-main" wx:for="{{ dataSet }}" data-str="zhdtInfo" data-Id="{{item.id}}" bindtap='linkFunction'>
SunshineLnsMinApp/pages/zhgh/zhgh.json
@@ -1,5 +1,5 @@
{
  "navigationBarTitleText": "社会关护任务",
  "navigationBarTitleText": "社会观护任务",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black"
SunshineLnsMinApp/pages/zhgh/zhgh.wxml
@@ -1,86 +1,101 @@
<!--pages/zhgh/zhgh.wxml-->
<view class='zhgh-bg'>
    <scroll-view scroll-x class="bg-white nav">
        <view class="flex text-center">
            <view class="cu-item flex-sub {{index==TabCur?'text-blue cur':''}}" wx:for="{{5}}" wx:key bindtap="tabSelect" data-id="{{index}}">
                {{list[index]}}
            </view>
        </view>
    </scroll-view>
  <scroll-view scroll-x class="bg-white nav">
    <view class="flex text-center">
      <view class="cu-item flex-sub {{index==TabCur?'text-blue cur':''}}" wx:for="{{5}}" wx:key bindtap="tabSelect" data-id="{{index}}">
        {{list[index]}}
      </view>
    </view>
  </scroll-view>
    <view class="zhgh-list" wx:if='{{TabCur==0}}' wx:for="{{infoList}}" wx:key>
        <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
            <view class="zhgh-list-b">
                <view class="zhgh-list-b-left">
                    <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
                    <view class="zhgh-list-b-left-div">{{item.taskRequire}}</view>
                    <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
                </view>
                <view class="zhgh-list-b-right">
                    <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
                </view>
            </view>
        </view>
    </view>
  <view class="zhgh-list" wx:if='{{TabCur==0}}' wx:for="{{infoList}}" wx:key>
    <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
      <view class="zhgh-list-b">
        <view class="zhgh-list-b-left">
          <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
          <view class="zhgh-list-b-left-div">
            <!-- <rich-text nodes="{{item.taskRequire}}"></rich-text> -->
            地址:{{item.taskAddress}}
          </view>
          <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
        </view>
        <view class="zhgh-list-b-right">
          <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
        </view>
      </view>
    </view>
  </view>
    <view class="zhgh-list" wx:if='{{TabCur==1}}' wx:for="{{infoList}}" wx:key>
        <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
            <view class="zhgh-list-b">
                <view class="zhgh-list-b-left">
                    <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
                    <view class="zhgh-list-b-left-div">{{item.taskRequire}}</view>
                    <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
                </view>
                <view class="zhgh-list-b-right">
                    <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
                </view>
            </view>
        </view>
    </view>
  <view class="zhgh-list" wx:if='{{TabCur==1}}' wx:for="{{infoList}}" wx:key>
    <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
      <view class="zhgh-list-b">
        <view class="zhgh-list-b-left">
          <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
          <view class="zhgh-list-b-left-div">
            <!-- <rich-text nodes="{{item.taskRequire}}"></rich-text> -->
            地址:{{item.taskAddress}}
          </view>
          <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
        </view>
        <view class="zhgh-list-b-right">
          <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
        </view>
      </view>
    </view>
  </view>
    <view class="zhgh-list" wx:if='{{TabCur==2}}' wx:for="{{infoList}}" wx:key>
        <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
            <view class="zhgh-list-b">
                <view class="zhgh-list-b-left">
                    <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
                    <view class="zhgh-list-b-left-div">{{item.taskRequire}}</view>
                    <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
                </view>
                <view class="zhgh-list-b-right">
                    <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
                </view>
            </view>
        </view>
    </view>
  <view class="zhgh-list" wx:if='{{TabCur==2}}' wx:for="{{infoList}}" wx:key>
    <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
      <view class="zhgh-list-b">
        <view class="zhgh-list-b-left">
          <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
          <view class="zhgh-list-b-left-div">
            <!-- <rich-text nodes="{{item.taskRequire}}"></rich-text> -->
            地址:{{item.taskAddress}}
          </view>
          <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
        </view>
        <view class="zhgh-list-b-right">
          <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
        </view>
      </view>
    </view>
  </view>
    <view class="zhgh-list" wx:if='{{TabCur==3}}' wx:for="{{infoList}}" wx:key>
        <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
            <view class="zhgh-list-b">
                <view class="zhgh-list-b-left">
                    <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
                    <view class="zhgh-list-b-left-div">{{item.taskRequire}}</view>
                    <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
                </view>
                <view class="zhgh-list-b-right">
                    <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
                </view>
            </view>
        </view>
    </view>
  <view class="zhgh-list" wx:if='{{TabCur==3}}' wx:for="{{infoList}}" wx:key>
    <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
      <view class="zhgh-list-b">
        <view class="zhgh-list-b-left">
          <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
          <view class="zhgh-list-b-left-div">
            <!-- <rich-text nodes="{{item.taskRequire}}"></rich-text> -->
            地址:{{item.taskAddress}}
          </view>
          <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
        </view>
        <view class="zhgh-list-b-right">
          <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
        </view>
      </view>
    </view>
  </view>
    <view class="zhgh-list" wx:if='{{TabCur==4}}' wx:for="{{infoList}}" wx:key>
        <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
            <view class="zhgh-list-b">
                <view class="zhgh-list-b-left">
                    <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
                    <view class="zhgh-list-b-left-div">{{item.taskRequire}}</view>
                    <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
                </view>
                <view class="zhgh-list-b-right">
                    <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
                </view>
            </view>
        </view>
    </view>
  <view class="zhgh-list" wx:if='{{TabCur==4}}' wx:for="{{infoList}}" wx:key>
    <view class="zhgh-list1" data-str="zhghInfo" data-id="{{item.id}}" bindtap='linkFunction'>
      <view class="zhgh-list-b">
        <view class="zhgh-list-b-left">
          <view class="zhgh-list-b-left-div font-lg">{{item.taskTitle}}</view>
          <view class="zhgh-list-b-left-div">
            <!-- <rich-text nodes="{{item.taskRequire}}"></rich-text> -->
            地址:{{item.taskAddress}}
          </view>
          <view class="text-grey">{{item.startTime}}~{{item.endTime}}</view>
        </view>
        <view class="zhgh-list-b-right">
          <view class="round cu-tag margin-tb-sm lg {{item.status=='未开始'?bg-grey:item.status=='进行中'?bg-red:bg-blue}}">{{item.status}}</view>
        </view>
      </view>
    </view>
  </view>
</view>
SunshineLnsMinApp/pages/zhghInfo/zhghInfo.json
@@ -1,5 +1,5 @@
{
  "navigationBarTitleText": "社会关护任务",
  "navigationBarTitleText": "社会观护任务",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black"
SunshineLnsMinApp/pages/zhghLogin/zhghLogin.js
@@ -8,8 +8,8 @@
  data: {
    src: app.globalData.imgUrl + '/image/bg1.jpg',
    logo: app.globalData.imgUrl + '/image/logo.png',
    companyAccount: 'admin456',
    companyPassword: 'admin'
    companyAccount: '',
    companyPassword: ''
  },
  /**
   * 生命周期函数--监听页面加载
SunshineLnsMinApp/pages/zhghLogin/zhghLogin.json
@@ -1,3 +1,3 @@
{
  "navigationBarTitleText": "社会关护"
  "navigationBarTitleText": "社会观护"
}
SunshineLnsMinApp/pages/zhgk/zhgk.js
@@ -42,44 +42,72 @@
          // var article = res.data.data;
          // WxParse.wxParse('article', 'html', article, that, 5);
          var attList = res.data.data.maps;
          var attList21 = app.where(attList, { type: 21 }) || [];
          var attList21 = app.where(attList, {
            type: 21
          }) || [];
          attList21.forEach(e => {
            e.iconSrc = that.data.mp4Src
          })
          var attList22 = app.where(attList, { type: 22 }) || [];
          var attList22 = app.where(attList, {
            type: 22
          }) || [];
          attList22.forEach(e => {
            e.iconSrc = that.data.pictureSrc
          })
          var attList23 = app.where(attList, { type: 23 }) || [];
          var attList23 = app.where(attList, {
            type: 23
          }) || [];
          attList23.forEach(e => {
            e.iconSrc = that.data.wordSrc
          })
          var attList24 = app.where(attList, { type: 24 }) || [];
          var attList24 = app.where(attList, {
            type: 24
          }) || [];
          attList24.forEach(e => {
            e.iconSrc = that.data.excelSrc
          })
          var attList25 = app.where(attList, { type: 25 }) || [];
          var attList25 = app.where(attList, {
            type: 25
          }) || [];
          attList25.forEach(e => {
            e.iconSrc = that.data.pptSrc
          })
          var attList26 = app.where(attList, { type: 26 }) || [];
          var attList26 = app.where(attList, {
            type: 26
          }) || [];
          attList26.forEach(e => {
            e.iconSrc = that.data.pdfSrc
          })
          var attList27 = app.where(attList, { type: 27 }) || [];
          var attList27 = app.where(attList, {
            type: 27
          }) || [];
          attList27.forEach(e => {
            e.iconSrc = that.data.zipSrc
          })
          var attList28 = app.where(attList, { type: 28 }) || [];
          var attList28 = app.where(attList, {
            type: 28
          }) || [];
          attList28.forEach(e => {
            e.iconSrc = that.data.fileSrc
          })
          var attList99 = app.where(attList, { type: 99 }) || [];
          var attList99 = app.where(attList, {
            type: 99
          }) || [];
          attList99.forEach(e => {
            e.iconSrc = that.data.fileSrc
          })
          var attList = { attList21, attList22, attList23, attList24, attList25, attList26, attList27, attList28, attList99 };
          var attList = {
            attList21,
            attList22,
            attList23,
            attList24,
            attList25,
            attList26,
            attList27,
            attList28,
            attList99
          };
          console.log(attList)
          that.setData({
            data: res.data.data,
@@ -95,17 +123,23 @@
    })
  },
  //预览图片
  previewImage: function(e) {
    app.previewImage(e)
  },
  // 预览附件
  open: function (e) {
  open: function(e) {
    var path = e.currentTarget.dataset.path;
    console.log(path)
    wx.downloadFile({
      url: path,
      success: function (res) {
      success: function(res) {
        console.log(res)
        const filePath = res.tempFilePath
        wx.openDocument({
          filePath: filePath,
          success: function (res) {
          success: function(res) {
            console.log('打开文档成功')
          }
        })
SunshineLnsMinApp/pages/zhgk/zhgk.wxml
@@ -17,35 +17,34 @@
    <span>相关附件</span>
  </div>
  <div class="detail-img">
    <view class="attList" wx:for="{{attList.attList22}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList22}}" wx:key="{{key}}">
      <image src="{{item.path}}" class="upload" bindtap="previewImage" data-src="{{item.pic}}"></image>
    </view>
    <view class="educt_hasupload_pic" wx:for="{{attList.attList23}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList23}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList24}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList24}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList25}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList25}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList26}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList26}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList27}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList27}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList28}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList28}}" class="file" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
    <view class="attList" wx:for="{{attList.attList99}}" class="file" wx:key="{{key}}">
    <view class="educt_hasupload_pic" wx:for="{{attList.attList99}}" wx:key="{{key}}">
      <image src="{{item.iconSrc}}" class="fileIcon" bindtap="open" data-path="{{item.path}}" class="detail-img-top"></image>
      <div class="detail-img-bottom">{{item.name}}</div>
    </view>
SunshineLnsMinApp/pages/zhwj/zhwj.wxml
@@ -24,7 +24,7 @@
        <view class="zhwj-list-flex-l" data-str="zhghLogin" bindtap='linkFunction'>
            <view class="cu-avatar round margin-leftl zhwj-list-flex-l-img" style="background-image: url('https://xnwj.gznsjc.gov.cn/nsjc-charge/image/zuj3.png');"></view>
            <view class="zhwj-list-flex-l-text">
                <view class="text-black text-bold text-lg">社会关护</view>
                <view class="text-black text-bold text-lg">社会观护</view>
                <view class="text-gray">社会支持与配合</view>
            </view>
        </view>