forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-10 800ffe29f328c84d4de46e8867ad3ca5cbae0d4f
提交
32 files added
19 files modified
2136 ■■■■ changed files
SunshineIns/src/fetch/_fetch.js 4 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/app.js 2 ●●● patch | view | raw | blame | history
SunshineLnsMinApp/app.json 7 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcx/flcx.js 138 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcx/flcx.json 3 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcx/flcx.wxml 50 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.js 47 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.json 12 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.wxml 25 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.wxss 8 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/index/index.wxml 11 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.js 107 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.json 6 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.wxml 27 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.wxss 47 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/me/me.js 5 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/me/me.wxml 102 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjb/wdjb.js 112 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjb/wdjb.json 3 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjb/wdjb.wxml 23 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjb/wdjb.wxss 110 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.js 66 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.json 3 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.wxml 2 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.wxss 1 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsjb/xsjb.js 224 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsjb/xsjb.wxml 158 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsjb/xsjb.wxss 28 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojb/xsuojb.js 32 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojb/xsuojb.json 7 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojb/xsuojb.wxml 12 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojb/xsuojb.wxss 1 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.js 227 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.json 22 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.wxml 105 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.wxss 71 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhghInfo/zhghInfo.js 3 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zhwj/zhwj.wxml 8 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/znjj/znjj.js 41 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/znjj/znjj.json 6 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/znjj/znjj.wxml 32 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/znjj/znjj.wxss 9 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.js 102 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.json 3 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.wxml 18 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.wxss 11 ●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.js 47 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.json 12 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.wxml 25 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.wxss 8 ●●●●● patch | view | raw | blame | history
SunshineLnsMinApp/project.config.json 3 ●●●●● patch | view | raw | blame | history
SunshineIns/src/fetch/_fetch.js
@@ -1,8 +1,8 @@
import fetch from 'hife/fetch';
// export const base = 'http://xnwj.gznsjc.gov.cn';
export const base = 'http://nsjc.vaiwan.com';
// export const base = 'http://nsjcy.hugeinfo.com.cn';
// export const base = 'http://nsjc.vaiwan.com';
export const base = 'http://nsjcy.hugeinfo.com.cn';
// export const base = 'http://192.168.0.147:8081';
SunshineLnsMinApp/app.js
@@ -12,7 +12,7 @@
    pageData: {},
    // url: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    //url: 'http://192.168.0.31:8085/nsjc-charge',
    //imgUrl: 'https://hugeinfo.com.cn/nsjc-charge',
    // imgUrl: 'https://nsjcy.hugeinfo.com.cn/nsjc-charge',
    url: 'http://nsjc.vaiwan.com/nsjc-charge',
    imgUrl: 'http://nsjc.vaiwan.com/nsjc-charge'
  },
SunshineLnsMinApp/app.json
@@ -16,6 +16,8 @@
    "pages/zhdt/zhdt",
    "pages/zhdtInfo/zhdtInfo",
    "pages/me/me",
    "pages/wdjb/wdjb",
    "pages/wdjbInfo/wdjbInfo",
    "pages/drafts/drafts",
    "pages/personInfo/personInfo",
    "pages/guide/guide",
@@ -50,10 +52,14 @@
    "pages/schedulelawyer/schedulelawyer",
    "pages/schedulecase/schedulecase",
    "pages/face/face",
    "pages/znjj/znjj",
    "pages/xsuojb/xsuojb",
    "pages/xsuojbInfo/xsuojbInfo",
    "pages/lawServiceLogin/lawServiceLogin",
    "pages/visitAgentInfo/visitAgentInfo",
    "pages/countryAgentInfo/countryAgentInfo",
    "pages/lawPublicity/lawPublicity",
    "pages/law2Publicity/law2Publicity",
    "pages/lawPublicityDetail/lawPublicityDetail",
    "pages/developIng/developIng",
    "pages/publicSnapshot/publicSnapshot",
@@ -84,6 +90,7 @@
    "pages/zscqxsjb/zscqxsjb",
    "pages/zscqjb/zscqjb",
    "pages/zscqdxal/zscqdxal",
    "pages/zscqdxalInfo/zscqdxalInfo",
    "pages/createSub/createSub"
  ],
  "networkTimeout": {
SunshineLnsMinApp/pages/flcx/flcx.js
@@ -1,5 +1,11 @@
// pages/flcx/flcx.js
const app = getApp();
// pages/dxal/dxal.js
import {
  $startWuxRefresher,
  $stopWuxRefresher,
  $stopWuxLoader
} from '../../templeteDist/wuxDist/index';
var app = getApp();
Page({
@@ -7,19 +13,131 @@
   * 页面的初始数据
   */
  data: {
    CustomBar: app.globalData.CustomBar,
    wordList: ['标签', '标签', '标签', '标签', '标签', '标签', '标签', '标签', '标签'],
    items: [...new Array(20)].map((n, i) => ({
      title: `Pull down ${i}`,
      content: 'Wux Weapp'
    }))
    dongtai1_1: app.globalData.imgUrl + '/image/dongtai1-1.jpg',
    dongtai2_1: app.globalData.imgUrl + '/image/dongtai2-1.jpg',
    dongtai3_1: app.globalData.imgUrl + '/image/dongtai3-1.jpg',
    inputShowed: false,
    inputVal: "",
    value: '知识产权',
    items: [],
    count: 1000,
    scrollTop: 0,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
  onLoad: function (options) {
    $startWuxRefresher();
  },
  }
  showList: function () {
    var that = this;
    // wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/v1/searchLaw/search?page=1&size=' + this.data.count + '&words=' + this.data.value,
      success: function (res) {
        // wx.hideLoading();
        console.log('res.data.data', res.data.data.data)
        console.log('res', res)
        if (res.data.code == 0) {
          that.setData({
            items: [...res.data.data.data]
          })
          $stopWuxRefresher()
          $stopWuxLoader('#wux-refresher', this, true)
        } else {
          wx.showToast({
            title: res.data.msg,
          })
        }
      }
    })
  },
  onPageScroll(e) {
    this.setData({
      scrollTop: e.scrollTop
    })
  },
  onRefresh() {
    console.log('onRefresh')
    // this.setData({
    //   count: 10
    // })
    this.showList();
    // setTimeout(() => {
    //   this.setData({
    //     items: this.getList()
    //   })
    //   $stopWuxRefresher()
    // }, 1000)
  },
  onLoadmore() {
    console.log('onLoadmore')
    this.showList();
  },
  getList: (count = 10, step = 0) => [...new Array(count)].map((n, i) => ({
    title: `Pull down ${i + step}`,
    content: 'Wux Weapp'
  })),
  linkFunction: function (event) {
    var str = event.currentTarget.dataset['str'];
    var id = event.currentTarget.dataset['id'];
    wx.navigateTo({
      url: '../' + str + '/' + str + '?id=' + id
    })
  },
  showInput: function () {
    this.setData({
      inputShowed: true
    });
  },
  hideInput: function () {
    this.setData({
      inputVal: "",
      inputShowed: false
    });
  },
  clearInput: function () {
    this.setData({
      inputVal: ""
    }, () => {});
  },
  onChange(e) {
    console.log('onChange', e)
    this.setData({
      value: e.detail.value,
    })
  },
  onFocus(e) {
    console.log('onFocus', e)
  },
  onBlur(e) {
    console.log('onBlur', e)
    this.setData({
      value: e.detail.value
    })
    this.showList();
  },
  onConfirm(e) {
    console.log('onConfirm', e)
  },
  onClear(e) {
    console.log('onClear', e)
    this.setData({
      value: '',
    })
  },
  onCancel(e) {
    console.log('onCancel', e)
  },
})
SunshineLnsMinApp/pages/flcx/flcx.json
@@ -5,6 +5,7 @@
  "navigationBarTextStyle": "black",
  "usingComponents": {
    "wux-refresher": "../../templeteDist/wuxDist/refresher/index",
    "wux-cell": "../../templeteDist/wuxDist/cell/index"
    "wux-cell": "../../templeteDist/wuxDist/cell/index",
    "wux-search-bar": "../../templeteDist/wuxDist/search-bar/index"
  }
}
SunshineLnsMinApp/pages/flcx/flcx.wxml
@@ -1,44 +1,30 @@
<!--pages/flcx/flcx.wxml-->
<view class="cu-bar bg-white search solid-top" style="top:{{CustomBar}}px">
<!-- <view class="cu-bar bg-white search solid-top fixed" style="top:{{CustomBar}}px">
  <view class="search-form round">
    <text class="cuIcon-search"></text>
    <input type="text" placeholder="搜索" confirm-type="search" bindinput="searchIcon"></input>
  </view>
</view>
<!-- <view class="flex1">
  <view class="cu-bar bg-white margin-top">
    <view class="action">
      <text class="cuIcon-title text-blue"></text>热门搜索
    </view>
  </view>
  <view class="padding-sm flex flex-wrap">
    <view class="padding-xs" wx:for="{{wordList}}" wx:key  >
      <view class="cu-tag bg-white">{{item}}</view>
    </view>
  </view>
   <view class="cu-bar bg-white margin-top">
    <view class="action">
      <text class="cuIcon-title text-blue"></text>历史搜索
    </view>
  </view>
  <view class="padding-sm flex flex-wrap">
    <view class="padding-xs" wx:for="{{wordList}}" wx:key  >
      <view class="cu-tag bg-white">{{item}}</view>
    </view>
    <wux-search-bar clear value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/>
  </view>
</view> -->
        <wux-search-bar class="zscqdxal-top" clear value="{{ value }}" controlled placeholder="搜索" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/>
        <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> -->
<view class="flex1 bg-white margin-top">
<wux-refresher id="wux-refresher" bind:pulling="onPulling" bind:refresh="onRefresh" bind:loadmore="onLoadmore" scrollTop="{{scrollTop}}">
  <view class="weui-panel weui-panel_access">
    <view class="weui-panel__bd">
      <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key="">
        <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view>
        <view class="weui-media-box__desc">{{ item.content }}</view>
        <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view>
                <view class="weui-media-box__desc">{{ item.content }}</view> -->
        <view class="zhwj-b-main" data-str="flcxInfo" data-id="{{item.code_id}}" bindtap='linkFunction'>
          <view class="zhwj-b-head-l">
            <view class="zhwj-b-head-l-title text-black"><rich-text nodes="{{item.code_name}}"></rich-text></view>
            <view class="text-grey">{{item.law_type}} {{item.issuing_agency}} {{item.release}} {{item.implement_date}}</view>
          </view>
          <!-- <view class="zhwj-b-head-r">
            <image mode='widthFix' src="{{dongtai1_1}}"></image>
          </view> -->
        </view>
      </view>
    </view>
  </view>
</view>
</wux-refresher>
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.js
New file
@@ -0,0 +1,47 @@
// pages/zscqdxalInfo/zscqdxalInfo.js
var app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    data: {},
    ywsqjd: app.globalData.imgUrl +'/image/ywsqjd.svg',
    fulltextList:[]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.showList(options.id)
  },
  showList: function (id) {
    var that = this;
    wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/v1/searchLaw/lawInfo?id=' + id,
      success: function (res) {
        wx.hideLoading();
        console.log('data', res.data.data.data.laws)
        console.log('res', res)
        if (res.data.code == 0) {
          that.setData({
            data: res.data.data.data,
            fulltextList:res.data.data.data.laws.filter((item)=>(item.tag !=='开始'&&item.tag!=='结束'))
          })
        } else {
          wx.showToast({
            title: res.data.msg,
          })
        }
      }
    })
  },
})
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.json
New file
@@ -0,0 +1,12 @@
{
  "navigationBarTitleText": "法律查询详情",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black",
  "usingComponents": {
    "wux-refresher": "../../templeteDist/wuxDist/refresher/index",
    "wux-search-bar": "../../templeteDist/wuxDist/search-bar/index",
    "wux-cell-group": "../../templeteDist/wuxDist/cell-group/index",
    "wux-cell": "../../templeteDist/wuxDist/cell/index"
  }
}
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.wxml
New file
@@ -0,0 +1,25 @@
<!--pages/zscqdxalInfo/zscqdxalInfo.wxml-->
<view class="zhgk-main">
    <view class=" text-lg" style="padding:30rpx 30rpx 0;">
        <text class="zhgk-main-title text-black">{{data.code_name}}</text>
    </view>
    <!-- <view class=' text-df padding'> 2016年4月,南沙检察成立了未成年人检察工作办公室。2019年1月,我院成立“许淑妍命名检察官办公室”,适用“捕诉监防助”一体化工作模式,负责办理未成年人犯罪和侵害未成年人犯罪案件,开展未成年人司法保护和预防未成年人犯罪等工作。南沙检察以专业化办案为依托,以规范化建设为抓手,认真贯彻“教育、感化、挽救”方针,坚持“教育为主、惩罚为辅”原则,全面落实未成年人指定辩护、社会调查、心理评估、合适成年人等特别程序,不断打造未检新品牌。以社会化服务为路径,以多元化平台为支点,组建心理咨询师团队和社工团队,通过法治宣传大平台、两微一端、“沙鸥”法治宣讲团开展普法宣传,构建多维度的未成年人维权、犯罪预防网络。近年来,南沙检察先后获评全国青少年维权岗、全国检察机关未成年人检察工作联系点。队伍中涌现出全国检察机关未成年人检察业务竞赛能手和全市检察机关未成年人检察业务标兵。</view> -->
    <view class=' text-df padding'>
        <view class="zhgk-main"  wx:for="{{fulltextList}}">
            <!-- <view class=" text-lg" style="padding:30rpx 30rpx 0;">
                <text class="zhgk-main-title text-black">{{item.tag}}</text>
            </view> -->
            <view class="padding">
                <view class=' text-df'> {{item.text}}</view>
            </view>
        </view>
    </view>
</view>
<!-- <wux-cell-group title="{{item.tag}}" wx:for="{{fulltextList}}">
    <wux-cell extra="{{item.content}}"></wux-cell>
</wux-cell-group> -->
SunshineLnsMinApp/pages/flcxInfo/flcxInfo.wxss
New file
@@ -0,0 +1,8 @@
/* pages/zscqdxalInfo/zscqdxalInfo.wxss */
.zhgk-main {
  background-color: #fff;
}
.zhgk-main-title {
  color: #249eff;
}
SunshineLnsMinApp/pages/index/index.wxml
@@ -39,7 +39,7 @@
        <image class="eight-pane-icon " src="{{sjxf}} " />
        <div class="eight-pane-title ">在线申诉</div>
      </div>
      <div class="eight-pane-bottom-item " data-url='../lawPublicity/lawPublicity' bindtap="login">
      <div class="eight-pane-bottom-item " data-str="lawPublicity" bindtap='linkFunction'>
        <image class="eight-pane-icon " src="{{flxc}} " />
        <div class="eight-pane-title ">法律宣传</div>
      </div>
@@ -144,7 +144,7 @@
    <!-- 营商环境企业服务 -->
    <view class='VerticalNav-flex' wx:if="{{moduleDiv==3}}">
      <view class='VerticalNav-flex-t'>
        <view class="bg-img" data-str="weiwc" bindtap='linkFunction' style="background-image: url('https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576727354981&di=56a2d7e671ad06e8afcd30f52f17f9a6&imgtype=0&src=http%3A%2F%2Fpic4.zhimg.com%2Fv2-ea6a66baa63645a810559de96c015dd9_1200x500.jpg');margin: 6px;height: 78px;flex: 1; line-height: 78px;">
        <view class="bg-img" data-str="law2Publicity" bindtap='linkFunction' style="background-image: url('https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1576727354981&di=56a2d7e671ad06e8afcd30f52f17f9a6&imgtype=0&src=http%3A%2F%2Fpic4.zhimg.com%2Fv2-ea6a66baa63645a810559de96c015dd9_1200x500.jpg');margin: 6px;height: 78px;flex: 1; line-height: 78px;">
          <view class="bg-shadeTop">
            自贸区法律服务
          </view>
@@ -294,7 +294,7 @@
          </view>
        </view>
        <view class="bg-img" style="margin: 6px;height: 78px;flex: 1; line-height: 78px;">
          <view class="bg-img" data-str="fzxkt" bindtap='linkFunction' style="background-image: url('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1291150546,1510144282&fm=26&gp=0.jpg');">
          <view class="bg-img" data-str="znjj" bindtap='linkFunction' style="background-image: url('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1291150546,1510144282&fm=26&gp=0.jpg');">
            <view class="bg-shadeTop">
              职能简介
            </view>
@@ -308,13 +308,16 @@
            典型案例
          </view>
        </view>
        <view class="bg-img" style="margin: 6px;height: 78px;flex: 1; line-height: 78px;">
          <view class="bg-img" data-str="zscqjb" bindtap='linkFunction' style="background-image: url('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1291150546,1510144282&fm=26&gp=0.jpg');">
          <view class="bg-img" data-str="xsuojb" bindtap='linkFunction' style="background-image: url('https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1291150546,1510144282&fm=26&gp=0.jpg');">
            <view class="bg-shadeTop">
              线索举报
            </view>
          </view>
        </view>
        <!-- <view class="bg-img" style="margin: 6px;height: 78px;flex: 1; line-height: 78px;">
        </view> -->
      </view>
    </view>
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.js
New file
@@ -0,0 +1,107 @@
// lawPublicity.js
const app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    dataSet: [],
    isHideLoadMore: true, //loading样式
    isHideMorebtn: true, //更多按钮样式
    isHideEnd: true, //有底线样式  (三者默认隐藏)
    size: 10
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    this.setData({
      isHideLoadMore: false
    }, this.showList(options.id))
  },
  showList: function(id) {
    var that = this;
    // d46ee05998ce48f893a63623cbde6875
    wx.request({
      url: app.globalData.url + '/api/article/legalServiceQuery?page=1&size=' + that.data.size + '&ownerId=' +id,
      success: function(res) {
        console.log(res)
        if (res.data.code == 0) {
          (res.data.data.content).forEach(e => {
            (e.createTime) = app.formatDate(e.createTime)
          })
          var dataSet = res.data.data.content;
          if (res.data.data.totalElements < that.data.size) {
            // 到底了,没数据加载
            that.setData({
              dataSet,
              isHideMorebtn: true, //隐藏更多按钮
              isHideEnd: false //显示已到底
            })
          } else {
            that.setData({
              dataSet,
              size: that.data.size + 10,
              isHideMorebtn: false, //显示更多按钮
              isHideEnd: true //隐藏已到底
            })
          }
        } else {
          wx.showModal({
            title: '提示',
            content: "请求失败!"
          })
        }
      },
      complete: function() {
        that.setData({
          isHideLoadMore: true
        })
      }
    })
  },
  // 跳转详情
  link: function(e) {
    var id = e.currentTarget.dataset.id;
    console.log(e.currentTarget.dataset.id);
    wx.navigateTo({
      url: '../lawPublicityDetail/lawPublicityDetail?id=' + id
    })
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {
  },
  // 加载更多
  getMore: function() {
    // 有加载更多按钮
    if (!this.data.isHideMorebtn) {
      this.setData({
        isHideMorebtn: true, //隐藏点击按钮
        isHideLoadMore: false //显示loading状态
      })
      setTimeout(() => {
        this.setData({
          isHideLoadMore: true //1.2s后隐藏loading
        });
        this.showList() //重新定义列表
      }, 1200)
    }
  }
})
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.json
New file
@@ -0,0 +1,6 @@
{
  "navigationBarTitleText": "自贸区法律服务",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black"
}
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.wxml
New file
@@ -0,0 +1,27 @@
<!--lawPublicity.wxml-->
<view class="lawPublicity-list">
  <view class="lawPublicity-item" wx:for="{{dataSet}}" wx:key="{{item.id}}">
    <view class="content-left">
      <view class="headLineTitle" data-Id="{{item.id}}" bindtap="link">
        {{item.title}}
      </view>
      <view class="headLineInfo">
        <view class="info-source">{{item.createTime}}</view>
        <view class="info-viewer">{{item.readCount}}人阅读</view>
      </view>
    </view>
    <view class="content-right" data-Id="{{item.id}}" bindtap="link">
    <image src="{{item.coverUrl}}"></image>
    </view>
  </view>
</view>
<view class="weui-loadmore" hidden="{{isHideMorebtn}}">
  <view class="weui-loadmore__tips" bindtap='getMore'>点击加载更多</view>
</view>
<view class="weui-loadmore" hidden="{{isHideLoadMore}}">
  <view class="weui-loading"></view>
  <view class="weui-loadmore__tips">正在加载</view>
</view>
<view class="weui-loadmore" hidden="{{isHideEnd}}">
  <view class="weui-loadmore__tips">------------我是有底线的------------</view>
</view>
SunshineLnsMinApp/pages/law2Publicity/law2Publicity.wxss
New file
@@ -0,0 +1,47 @@
/* lawPublicity.wxss */
.lawPublicity-item {
  height: 148rpx;
  display: flex;
  flex-direction: row;
  color: rgba(51, 51, 51, 1);
  text-align: left;
  font-family: PingFangSC-Regular;
  padding: 24rpx 24rpx 0 24rpx;
}
.content-left {
  width: 416rpx;
}
.content-right {
  flex: 1;
  margin-left: 50rpx;
  background: #ccc;
  width: 100%;
  height: 100%;
}
.content-right image{
  width: 100%;
  height: 100%;
}
.headLineTitle {
  height: 88rpx;
  font-size: 16px;
  line-break: 44rpx;
  color: rgba(51, 51, 51, 1);
  margin-bottom: 26rpx;
}
.headLineInfo {
  display: flex;
  font-size: 12px;
  color: rgba(153, 153, 153, 1);
}
.info-source{
  margin-right: 20rpx;
}
SunshineLnsMinApp/pages/me/me.js
@@ -40,6 +40,11 @@
      url: '../myTranslate/myTranslate',
    })
  },
  wdjb: function() {
    wx.navigateTo({
      url: '../wdjb/wdjb',
    })
  },
  onLoad: function() {
    this.notification();
SunshineLnsMinApp/pages/me/me.wxml
@@ -1,57 +1,67 @@
<div class="me-main">
  <!-- 页头 -->
  <div class="me-item">
    <view class="userinfo-avatar">
      <open-data class="me-item-icon" type="userAvatarUrl"></open-data>
    </view>
    <div class="me-item-name">
    <!-- 页头 -->
    <div class="me-item">
        <view class="userinfo-avatar">
            <open-data class="me-item-icon" type="userAvatarUrl"></open-data>
        </view>
        <div class="me-item-name">
      <open-data class="me-item-name-top" type="userNickName"></open-data>
            <open-data class="me-item-name-top" type="userNickName"></open-data>
      <div class="me-item-name-bottom">欢迎你</div>
    </div>
    <image class="me-item-logo" src="{{logo}}" />
  </div>
  <div class="index-gray"></div>
            <div class="me-item-name-bottom">欢迎你</div>
        </div>
        <image class="me-item-logo" src="{{logo}}" />
    </div>
    <div class="index-gray"></div>
  <div class="shadow-bottom">
    <div class="shadow-bottom">
    <div class="me-business-nav" bindtap='businessSchedule'>
      <image class="me-business-icon" src="{{ywsqjd}}" />
      <div class="me-business-title">业务申请进度</div>
      <image class="me-business-right-icon" src="{{user}}" />
    </div>
        <div class="me-business-nav" bindtap='businessSchedule'>
            <image class="me-business-icon" src="{{ywsqjd}}" />
            <div class="me-business-title">业务申请进度</div>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
    <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}}">
        <div class="me-business-info">{{notRead}}</div>
      </block>
        <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}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
      <image class="me-business-right-icon" src="{{user}}" />
    </div>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
    <div class="me-business-nav" bindtap="msg">
      <image class="me-business-icon" src="{{xxtx}}" />
      <div class="me-business-title">消息提醒</div>
      <block wx:if="{{notRead > 0}}">
        <div class="me-business-info">{{notRead}}</div>
      </block>
        <div class="me-business-nav" bindtap="msg">
            <image class="me-business-icon" src="{{xxtx}}" />
            <div class="me-business-title">消息提醒</div>
            <block wx:if="{{notRead > 0}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
      <image class="me-business-right-icon" src="{{user}}" />
    </div>
    <div class="me-business-nav" bindtap='drafts'>
      <image class="me-business-icon" src="{{cgx}}" />
      <div class="me-business-title">我的草稿箱</div>
      <image class="me-business-right-icon" src="{{user}}" />
    </div>
    <div class="me-business-nav" bindtap='personInfo'>
      <image class="me-business-icon" src="{{zdtx}}" />
      <div class="me-business-title">补充个人信息</div>
      <image class="me-business-right-icon" src="{{user}}" />
    </div>
  </div>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
  <div class="index-gray"></div>
        <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}}">
                <div class="me-business-info">{{notRead}}</div>
            </block>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
        <div class="me-business-nav" bindtap='drafts'>
            <image class="me-business-icon" src="{{cgx}}" />
            <div class="me-business-title">我的草稿箱</div>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
        <div class="me-business-nav" bindtap='personInfo'>
            <image class="me-business-icon" src="{{zdtx}}" />
            <div class="me-business-title">补充个人信息</div>
            <image class="me-business-right-icon" src="{{user}}" />
        </div>
    </div>
    <div class="index-gray"></div>
</div>
SunshineLnsMinApp/pages/wdjb/wdjb.js
New file
@@ -0,0 +1,112 @@
// pages/wdjb/wdjb.js
const app = getApp()
Page({
  /**
   * 页面的初始数据
   */
  data: {
    loading: app.globalData.imgUrl + '/image/loading.svg',
    navbar: ['未检举报', '线索举报'],
    currentTab: 0,
    size: 10,
    size1: 10,
    content: '------加载中------',
    hasMoreData: true,
    createTime: '',
    dataSet: []
  },
  navbarTap: function (e) {
    this.setData({
      currentTab: e.currentTarget.dataset.idx
    })
    this.showList(this.data.currentTab)
  },
  showList: function (tab) {
    var userinfo = wx.getStorageSync("user");
    var that = this;
    var id = userinfo.id
    var str;
    var sizeQty;
    switch (tab) {
      case 0:
        str = "&businessType=1";
        sizeQty = 'size';
        break;
      case 1:
        str = "&businessType=2";
        sizeQty = 'size1';
        break;
    }
    wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/tipoff/query?page=1&rows=' + that.data[sizeQty] + '&createId=' + id+ str,
      success: function (res) {
        wx.hideLoading();
        console.log(res)
        if (res.data.code == 0) {
          let content = res.data.data.rows.map(({
            createTime,
            ...i
          }) => ({
            ...i,
            createTime: app.formatDate(createTime),
          }));
          if (res.data.data.total < that.data[sizeQty]) {
            that.setData({
              dataSet: content,
              hasMoreData: false,
              content: '------我是有底线的------'
            })
          } else {
            that.setData({
              dataSet: content,
              hasMoreData: true,
              content: '------加载更多------',
              size: that.data[sizeQty] + 10
            })
          }
        } else {
          wx.showToast({
            title: res.data.msg,
          })
        }
      }
    })
  },
  businessSchedule: function (event) {
    var id = event.currentTarget.dataset.id;
    console.log(id)
    console.log(event);
    wx.navigateTo({
      url: '../xsjb/xsjb?id=' + id,
    })
  },
  onLoad: function () {
    this.showList(0)
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    if (this.data.hasMoreData) {
      this.showList(this.data.currentTab)
      this.setData({
        content: '------加载更多------'
      })
    } else {
      this.setData({
        content: '------我是有底线的------'
      })
    }
  },
})
SunshineLnsMinApp/pages/wdjb/wdjb.json
New file
@@ -0,0 +1,3 @@
{
  "usingComponents": {}
}
SunshineLnsMinApp/pages/wdjb/wdjb.wxml
New file
@@ -0,0 +1,23 @@
<!--pages/wdjb/wdjb.wxml-->
<!--导航条-->
<view class="navbar">
  <text wx:for="{{navbar}}" data-idx="{{index}}" class="item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap">{{item}}</text>
</view>
<!--列表数据-->
<view style='flex-direction:column;height:94vh;background-color:rgba(80, 119, 170, 0.06)'>
    <div class="businessSchedule" bindtap='businessSchedule' data-id="{{item.id}}" id="{{key}}" wx:for="{{dataSet}}" wx:for-index='key' wx:key="*this">
        <div class="businessSchedule-top">
            <div class="businessSchedule-top-img">
                <div class="businessSchedule-center">{{item.tipoffObject}}</div>
            </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 backgroundgray-title" wx:else>未知文件</div>
        </div>
        <div class="businessSchedule-center">{{item.tipoffContent}}</div>
        <div class="businessSchedule-bottom">于 {{item.createTime}} 提交申请</div>
    </div>
    <div class="businessSchedule-load">------{{content}}------</div>
</view>
SunshineLnsMinApp/pages/wdjb/wdjb.wxss
New file
@@ -0,0 +1,110 @@
/* pages/wdjb/wdjb.wxss */
view {
  display: flex;
}
.navbar {
  flex: none;
  display: flex;
  background: #fff;
  font-size: 18px;
  color: #999;
  height: 6vh;
}
.navbar .item {
  position: relative;
  flex: auto;
  text-align: center;
  line-height: 80rpx;
}
.navbar .item.active {
  color: #2195ff;
}
.navbar .item.active:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rpx;
  background: #2195ff;
}
.businessSchedule {
  font-size: 16px;
  padding: 2vh;
  margin: 2vh;
  background-color: #fff;
  box-shadow: 0px 6px 6px 0 rgba(80, 119, 170, 0.06);
}
.businessSchedule-top {
  display: flex;
  color: #333;
  align-items: center;
  padding-bottom: 1vh;
  border-bottom: 1px solid #f2f2f2;
}
.businessSchedule-top-img {
}
.businessSchedule-top-title {
  padding-left: 1vh;
}
.businessSchedule-top-status {
  margin-left: auto;
  display: flex;
  justify-content: center;
  box-shadow: 0px 4px 8px 0px rgba(136, 136, 136, 0.11);
  padding: 1vh;
  border-radius: 18px;
  color: #fff;
}
.businessSchedule-center {
  font-size: 14px;
  display: flex;
  padding: 1vh 0;
  color: #333;
}
.businessSchedule-bottom {
  display: flex;
  font-size: 14px;
  color: #999;
}
.loading {
  padding: 10rpx;
  text-align: center;
}
.loading:before {
  display: inline-block;
  margin-right: 5rpx;
  vertical-align: middle;
  content: '';
  width: 40rpx;
  height: 40rpx;
  background-size: contain;
  animation: rotate 1s linear infinite;
}
.loading.complete:before {
  display: none;
}
.businessSchedule-load {
  display: flex;
  justify-content: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 4vh;
}
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.js
New file
@@ -0,0 +1,66 @@
// pages/wdjbInfo/wdjbInfo.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  },
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  }
})
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.json
New file
@@ -0,0 +1,3 @@
{
  "usingComponents": {}
}
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.wxml
New file
@@ -0,0 +1,2 @@
<!--pages/wdjbInfo/wdjbInfo.wxml-->
<text>pages/wdjbInfo/wdjbInfo.wxml</text>
SunshineLnsMinApp/pages/wdjbInfo/wdjbInfo.wxss
New file
@@ -0,0 +1 @@
/* pages/wdjbInfo/wdjbInfo.wxss */
SunshineLnsMinApp/pages/xsjb/xsjb.js
@@ -1,63 +1,227 @@
// pages/xsjb/xsjb.js
import { $wuxForm } from '../../templeteDist/wuxDist/index';
import {
  $wuxForm
} from '../../templeteDist/wuxDist/index';
var app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    add: app.globalData.imgUrl + '/image/add.svg',
    del: app.globalData.imgUrl + '/image/del.svg',
    meetingWayList: [{
      value: 'HY000001',
      title: '线下调解'
      value: '1',
      title: '违反犯罪暴力'
    }, {
      value: 'HY000002',
      title: '视频调解'
      value: '2',
      title: '未违反犯罪暴力'
    }],
    displaymeetingWay: '请选择',
    meetingWayList1: [{
      value: '1',
      title: '匿名'
    }, {
      value: '2',
      title: '实名'
    }],
    uploadUrl: app.globalData.url + '/api/v1/attachment/materials',
    displaytipoffAction: '请选择',
    displaytipoffType: '请选择',
    thisData: {},
    evalList: {},
    disabled: true,
    showInfo: false,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
  onLoad: function (options) {
    const id = options.id || 'new';
    let that = this;
    var userinfo = wx.getStorageSync("user");
    wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/tipoff/find',
      method: 'GET',
      data: {
        id,
      },
      success: function (res) {
        console.log('res', res);
        var dataSet = res.data;
        var evalList1000 = dataSet.attachments || [];
        var evalList = {
          evalList1000,
        };
        for (var i in evalList) {
          evalList[i] = evalList[i].map(({
            imgPath: pic,
            attachmentId: id
          }) => ({
            pic,
            id
          }))
        }
        const data = res.data || {}
        if (options.id) {
          that.setData({
            thisData: {
              ...data,
              createId: userinfo.id,
              businessType: 1
            },
            evalList,
            disabled: false,
            displaytipoffAction: data.tipoffAction == 1 ? '违反犯罪暴力' : data.tipoffAction == 2 ? '未违反犯罪暴力' : '请选择',
            displaytipoffType: data.tipoffType == 1 ? '匿名' : data.tipoffType == 2 ? '实名' : '请选择',
            showInfo: data.tipoffType == 2 ? true : false,
          })
        } else {
          that.setData({
            thisData: {
              ...data,
              createId: userinfo.id,
              businessType: 1
            },
            evalList,
          })
        }
        wx.hideLoading();
      }
    })
  },
  formSubmit(e) {
    console.log('Default Form Submit \n', e.detail.value)
  },
  onSubmit() {
    const {
      getFieldsValue,
      getFieldValue,
      setFieldsValue
    } = $wuxForm()
    const value = getFieldsValue()
    console.log('Wux Form Submit \n', value)
  },
  // 选择地理位置
  chooseLocation: function(e) {
    const that = this;
    wx.chooseLocation({
      success: function(res) {
        console.log('res', res);
  inputOnchange(e) {
    const key = e.currentTarget.dataset.key;
    console.log(key)
    console.log(e)
    this.setData({
      thisData: {
        ...this.data.thisData,
        [key]: e.detail.value
      }
    })
  },
  onSubmit() {
    console.log(this.data.thisData)
    if(!this.data.thisData.tipoffObject){
      return app.showModal("请填写举报对象!");
    }
    if(!this.data.thisData.tipoffAction){
      return app.showModal("请选择举报行为!");
    }
    if(!this.data.thisData.tipoffAddress){
      return app.showModal("请填写发生地!");
    }
    if(!this.data.thisData.tipoffContent){
      return app.showModal("请填写具体事项!");
    }
    if(!this.data.evalList){
      return app.showModal("请上传证明材料!");
    }
    if(!this.data.thisData.tipoffType){
      return app.showModal("请选择方式!");
    }
    if(this.data.thisData.tipoffType=='2'){
      if(!this.data.thisData.createrName){
        return app.showModal("请填写姓名!");
      }
      if(!this.data.thisData.createrMobile){
        return app.showModal("请填写手机号码!");
      }
      if(!this.data.thisData.createrAddress){
        return app.showModal("请填写联系方式!");
      }
    }
    wx.request({
      url: app.globalData.url + '/api/tipoff/save',
      data: this.data.thisData,
      method: 'POST',
      header: {
        "Content-Type": "application/json"
      },
      success: function (res) {
        if (res.data.code == 0) {
          wx.showToast({
            title: '提交成功!',
            icon: 'success',
            duration: 2000
          })
          wx.navigateTo({
            url: '../zhwj/zhwj',
          })
        }
      }
    })
  },
  // 选择地理位置
  chooseLocation: function (e) {
    const that = this;
    wx.chooseLocation({
      success: function (res) {
        console.log('res', res);
        that.setData({
          thisData: {
            ...that.data.thisData,
            tipoffAddress: res.address
          }
        })
      }
    })
  },
  //添加图片
  joinPicture: function (e) {
    console.log(e)
    var that = this;
    console.log(that)
    app.joinPicture(e, that, e.currentTarget.dataset.associatetypeid, that.data.id);
  },
  // 删除图片
  clearImg: function (e) {
    var that = this;
    app.clearImg(e, that);
  },
  //预览图片
  previewImage: function (e) {
    app.previewImage(e);
  },
  onPopupSelectChange(e) {
    let _this = this;
    var key = e.currentTarget.dataset['key'];
    console.log('key', key, e);
    this.setData({
      [key]: e.detail.value,
      [`display${key}`]: e.detail.label
    });
    if (key == 'tipoffType' && e.detail.value == '2') {
      this.setData({
        [key]: e.detail.value,
        [`display${key}`]: e.detail.label,
        showInfo:true,
        thisData: {
          ...this.data.thisData,
          [key]: e.detail.value,
        }
      });
    }else{
      this.setData({
        [key]: e.detail.value,
        [`display${key}`]: e.detail.label,
        thisData: {
          ...this.data.thisData,
          [key]: e.detail.value,
        }
      });
    }
  }
})
SunshineLnsMinApp/pages/xsjb/xsjb.wxml
@@ -1,22 +1,22 @@
<!--pages/xsjb/xsjb.wxml-->
<wux-form id="wux-form" bind:change="onChange">
  <form id="form-dom" bindsubmit="formSubmit">
    <wux-cell-group title="举报信息">
      <wux-field name="举报对象">
        <wux-cell hover-class="none">
          <wux-field name="举报对象" value="柯礼钦">
            <wux-input label="举报对象" bind:change="inputOnchange" data-key="handleContent" />
          </wux-field>
        </wux-cell>
      </wux-field>
    <form id="form-dom" bindsubmit="formSubmit">
        <wux-cell-group title="举报信息">
            <wux-field name="举报对象" >
                <wux-cell hover-class="none">
                    <wux-field name="举报对象" initialValue="{{ thisData.tipoffObject }}">
                        <wux-input label="举报对象" bind:change="inputOnchange" data-key="tipoffObject" />
                    </wux-field>
                </wux-cell>
            </wux-field>
      <wux-field name="举报行为" value="{{ meetingWay }}">
        <wux-popup-select options="{{ meetingWayList }}" bind:change="onPopupSelectChange" data-key="meetingWay">
          <wux-cell title="举报行为" is-link extra="{{ displaymeetingWay }}" required="{{true}}"></wux-cell>
        </wux-popup-select>
      </wux-field>
            <wux-field name="举报行为" initialValue="{{ displaytipoffAction }}">
                <wux-popup-select options="{{ meetingWayList }}" bind:change="onPopupSelectChange" data-key="tipoffAction">
                    <wux-cell title="举报行为" is-link extra="{{ displaytipoffAction }}" required="{{true}}"></wux-cell>
                </wux-popup-select>
            </wux-field>
      <!-- <wux-field name="发生地" value="{{ meetingWay }}">
            <!-- <wux-field name="发生地" value="{{ meetingWay }}">
      <wux-cell hover-class="none" extra="{{dom}}">
        <wux-field name="发生地" initialValue="123">
          <wux-input label="发生地" />
@@ -24,70 +24,82 @@
      </wux-cell>
    </wux-field> -->
      <view class="cu-form-group">
        <view class="title">发生地</view>
        <input placeholder="发生地"></input>
        <text class="cuIcon-locationfill text-orange" bindtap="chooseLocation"></text>
      </view>
            <!-- <view class="cu-form-group">
                <view class="title">发生地</view>
                <input value="{{data.tipoffAddress}}" bind:change="inputOnchange" data-key="tipoffAddress" placeholder="发生地"></input>
                 <text class="cuIcon-locationfill text-orange" bind:change="chooseLocation"></text>
             </view>  -->
      <wux-field name="具体事项" value="{{ meetingWay }}">
        <wux-cell hover-class="none">
          <wux-textarea rows="3" label="具体事项" placeholder="请输入具体事项" />
        </wux-cell>
      </wux-field>
            <wux-field name="发生地" >
                <wux-cell hover-class="none">
                    <wux-field name="发生地" initialValue="{{ thisData.tipoffAddress }}">
                        <wux-input label="发生地" bind:change="inputOnchange" data-key="tipoffAddress" />
                    </wux-field>
                </wux-cell>
            </wux-field>
    </wux-cell-group>
            <wux-field name="具体事项" initialValue="{{ thisData.tipoffContent }}">
                <wux-cell hover-class="none">
                    <wux-textarea rows="3" bind:change="inputOnchange" data-key="tipoffContent" label="具体事项" placeholder="请输入具体事项" />
                </wux-cell>
            </wux-field>
    <wux-cell-group title="证明材料上传">
      <view style="padding: 20rpx 28rpx 0 30rpx;">
        <wux-upload listType="picture-card" fileList="{{ supplyAttachmentList  }}" controlled url="{{uploadUrl}}entityId={{entityId}}&associateId={{5002}}" data-id="{{item.caseId}}" bind:change="onChange" bind:success="onSuccess" bind:fail="onFail" bind:complete="onComplete"
          bind:preview="onPreview" bind:remove="onRemove">
          <!-- <text>上传</text> -->
          <wux-icon type="ios-add-circle-outline" color="color:rgba(153,153,153,1);" />
        </wux-upload>
      </view>
    </wux-cell-group>
        </wux-cell-group>
    <view style="margin-top: 30rpx;">
      <wux-cell-group>
        <wux-field name="举报类型" value="{{ meetingWay }}">
          <wux-popup-select options="{{ meetingWayList }}" bind:change="onPopupSelectChange" data-key="meetingWay">
            <wux-cell title="举报类型" is-link extra="{{ displaymeetingWay }}" required="{{true}}"></wux-cell>
          </wux-popup-select>
        </wux-field>
      </wux-cell-group>
    </view>
        <wux-cell-group title="证明材料上传">
            <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}}" 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>
                </view>
            </div>
        </wux-cell-group>
    <wux-cell-group title="举报人信息">
      <wux-field name="姓名">
        <wux-cell hover-class="none">
          <wux-field name="姓名" initialValue="123">
            <wux-input label="姓名" />
          </wux-field>
        </wux-cell>
      </wux-field>
        <view style="margin-top: 30rpx;">
            <wux-cell-group>
                <wux-field name="举报方式" initialValue="{{displaytipoffType }}">
                    <wux-popup-select options="{{ meetingWayList1 }}" bind:change="onPopupSelectChange" data-key="tipoffType">
                        <wux-cell title="举报方式" is-link extra="{{ displaytipoffType }}" required="{{true}}"></wux-cell>
                    </wux-popup-select>
                </wux-field>
            </wux-cell-group>
        </view>
      <wux-field name="手机号码">
        <wux-cell hover-class="none">
          <wux-field name="手机号码" initialValue="123">
            <wux-input label="手机号码" />
          </wux-field>
        </wux-cell>
      </wux-field>
      <wux-field name="联系地址">
        <wux-cell hover-class="none">
          <wux-field name="联系地址" initialValue="123">
            <wux-input label="联系地址" />
          </wux-field>
        </wux-cell>
      </wux-field>
    </wux-cell-group>
        <wux-cell-group title="举报人信息" wx:if="{{showInfo}}">
            <wux-field name="姓名">
                <wux-cell hover-class="none">
                    <wux-field name="姓名" initialValue="{{ thisData.createrName }}">
                        <wux-input label="姓名" bind:change="inputOnchange" data-key="createrName" />
                    </wux-field>
                </wux-cell>
            </wux-field>
    <view class="padding-sm">
      <button class="cu-btn block bg-blue margin-tb-sm lg" bindtap="onSubmit">
        提交举报
      </button>
    </view>
  </form>
            <wux-field name="手机号码"  wx:if="{{showInfo}}">
                <wux-cell hover-class="none">
                    <wux-field name="手机号码" initialValue="{{ thisData.createrMobile }}">
                        <wux-input label="手机号码" bind:change="inputOnchange" data-key="createrMobile" />
                    </wux-field>
                </wux-cell>
            </wux-field>
            <wux-field name="联系地址"  wx:if="{{showInfo}}">
                <wux-cell hover-class="none">
                    <wux-field name="联系地址" initialValue="{{ thisData.createrAddress }}">
                        <wux-input label="联系地址" bind:change="inputOnchange" data-key="createrAddress" />
                    </wux-field>
                </wux-cell>
            </wux-field>
        </wux-cell-group>
        <view class="padding-sm" wx:if="{{disabled}}">
            <button class="cu-btn block bg-blue margin-tb-sm lg" bindtap="onSubmit">
                提交举报
            </button>
        </view>
    </form>
</wux-form>
SunshineLnsMinApp/pages/xsjb/xsjb.wxss
@@ -19,6 +19,34 @@
  font-size: 28rpx;
}
.activity-uploadImage {
  display: flex;
  padding:1vh 2vh;
}
.upload {
  width: 48px;
  height: 48px;
}
.activity-uploadImag-del {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 28px;
}
.educt_hasupload_pic {
  display: flex;
  position: relative;
  padding-right: 1vh;
}
.activity-uploadImag-icon {
  width: 48px;
  height: 48px;
}
#form-dom .cu-form-group:after {
  content: " ";
  position: absolute;
SunshineLnsMinApp/pages/xsuojb/xsuojb.js
New file
@@ -0,0 +1,32 @@
// pages/wjjb/wjjb.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },
  // 跳转
  linkFunction: function (event) {
    var str = event.currentTarget.dataset['str'];
    wx.navigateTo({
      url: `../${str}/${str}`
    })
  },
  makePhoneCall() {
    wx.makePhoneCall({
      phoneNumber: '12309' // 仅为示例,并非真实的电话号码
    })
  }
})
SunshineLnsMinApp/pages/xsuojb/xsuojb.json
New file
@@ -0,0 +1,7 @@
{
  "usingComponents": {},
  "navigationBarTitleText": "线索举报",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black"
}
SunshineLnsMinApp/pages/xsuojb/xsuojb.wxml
New file
@@ -0,0 +1,12 @@
<!--pages/wjjb/wjjb.wxml-->
<view class="padding-xl">
  <button class="cu-btn block line-blue lg" data-str="xsuojbInfo" bindtap='linkFunction'>
    <!-- <text class="cuIcon-upload"></text> -->
    线上举报
  </button>
  <button class="cu-btn block line-blue lg margin-tb-lg" bindtap='makePhoneCall'>
    <!-- <text class="cuIcon-upload"></text> -->
    电话举报
  </button>
</view>
SunshineLnsMinApp/pages/xsuojb/xsuojb.wxss
New file
@@ -0,0 +1 @@
/* pages/wjjb/wjjb.wxss */
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.js
New file
@@ -0,0 +1,227 @@
// pages/xsjb/xsjb.js
import {
  $wuxForm
} from '../../templeteDist/wuxDist/index';
var app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    add: app.globalData.imgUrl + '/image/add.svg',
    del: app.globalData.imgUrl + '/image/del.svg',
    meetingWayList: [{
      value: '1',
      title: '违反犯罪暴力'
    }, {
      value: '2',
      title: '未违反犯罪暴力'
    }],
    meetingWayList1: [{
      value: '1',
      title: '匿名'
    }, {
      value: '2',
      title: '实名'
    }],
    uploadUrl: app.globalData.url + '/api/v1/attachment/materials',
    displaytipoffAction: '请选择',
    displaytipoffType: '请选择',
    thisData: {},
    evalList: {},
    disabled: true,
    showInfo: false,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    const id = options.id || 'new';
    let that = this;
    var userinfo = wx.getStorageSync("user");
    wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/tipoff/find',
      method: 'GET',
      data: {
        id,
      },
      success: function (res) {
        console.log('res', res);
        var dataSet = res.data;
        var evalList1000 = dataSet.attachments || [];
        var evalList = {
          evalList1000,
        };
        for (var i in evalList) {
          evalList[i] = evalList[i].map(({
            imgPath: pic,
            attachmentId: id
          }) => ({
            pic,
            id
          }))
        }
        const data = res.data || {}
        if (options.id) {
          that.setData({
            thisData: {
              ...data,
              createId: userinfo.id,
              businessType: 2
            },
            evalList,
            disabled: false,
            displaytipoffAction: data.tipoffAction == 1 ? '违反犯罪暴力' : data.tipoffAction == 2 ? '未违反犯罪暴力' : '请选择',
            displaytipoffType: data.tipoffType == 1 ? '匿名' : data.tipoffType == 2 ? '实名' : '请选择',
            showInfo: data.tipoffType == 2 ? true : false,
          })
        } else {
          that.setData({
            thisData: {
              ...data,
              createId: userinfo.id,
              businessType: 2
            },
            evalList,
          })
        }
        wx.hideLoading();
      }
    })
  },
  formSubmit(e) {
    console.log('Default Form Submit \n', e.detail.value)
  },
  inputOnchange(e) {
    const key = e.currentTarget.dataset.key;
    console.log(key)
    console.log(e)
    this.setData({
      thisData: {
        ...this.data.thisData,
        [key]: e.detail.value
      }
    })
  },
  onSubmit() {
    console.log(this.data.thisData)
    if(!this.data.thisData.tipoffObject){
      return app.showModal("请填写举报对象!");
    }
    if(!this.data.thisData.tipoffAction){
      return app.showModal("请选择举报行为!");
    }
    if(!this.data.thisData.tipoffAddress){
      return app.showModal("请填写发生地!");
    }
    if(!this.data.thisData.tipoffContent){
      return app.showModal("请填写具体事项!");
    }
    if(!this.data.evalList){
      return app.showModal("请上传证明材料!");
    }
    if(!this.data.thisData.tipoffType){
      return app.showModal("请选择方式!");
    }
    if(this.data.thisData.tipoffType=='2'){
      if(!this.data.thisData.createrName){
        return app.showModal("请填写姓名!");
      }
      if(!this.data.thisData.createrMobile){
        return app.showModal("请填写手机号码!");
      }
      if(!this.data.thisData.createrAddress){
        return app.showModal("请填写联系方式!");
      }
    }
    wx.request({
      url: app.globalData.url + '/api/tipoff/save',
      data: this.data.thisData,
      method: 'POST',
      header: {
        "Content-Type": "application/json"
      },
      success: function (res) {
        if (res.data.code == 0) {
          wx.showToast({
            title: '提交成功!',
            icon: 'success',
            duration: 2000
          })
          wx.navigateTo({
            url: '../zhwj/zhwj',
          })
        }
      }
    })
  },
  // 选择地理位置
  chooseLocation: function (e) {
    const that = this;
    wx.chooseLocation({
      success: function (res) {
        console.log('res', res);
        that.setData({
          thisData: {
            ...that.data.thisData,
            tipoffAddress: res.address
          }
        })
      }
    })
  },
  //添加图片
  joinPicture: function (e) {
    console.log(e)
    var that = this;
    console.log(that)
    app.joinPicture(e, that, e.currentTarget.dataset.associatetypeid, that.data.id);
  },
  // 删除图片
  clearImg: function (e) {
    var that = this;
    app.clearImg(e, that);
  },
  //预览图片
  previewImage: function (e) {
    app.previewImage(e);
  },
  onPopupSelectChange(e) {
    let _this = this;
    var key = e.currentTarget.dataset['key'];
    console.log('key', key, e);
    if (key == 'tipoffType' && e.detail.value == '2') {
      this.setData({
        [key]: e.detail.value,
        [`display${key}`]: e.detail.label,
        showInfo:true,
        thisData: {
          ...this.data.thisData,
          [key]: e.detail.value,
        }
      });
    }else{
      this.setData({
        [key]: e.detail.value,
        [`display${key}`]: e.detail.label,
        thisData: {
          ...this.data.thisData,
          [key]: e.detail.value,
        }
      });
    }
  }
})
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.json
New file
@@ -0,0 +1,22 @@
{
  "navigationBarTitleText": "线索举报(线上举报)",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black",
  "usingComponents": {
    "wux-upload": "../../templeteDist/wuxDist/upload/index",
    "wux-popup-select": "../../templeteDist/wuxDist/popup-select/index",
    "wux-cell": "../../templeteDist/wuxDist/cell/index",
    "wux-accordion-group": "../../templeteDist/wuxDist/accordion-group/index",
    "wux-accordion": "../../templeteDist/wuxDist/accordion/index",
    "wux-icon": "../../templeteDist/wuxDist/icon/index",
    "wux-date-picker-view": "../../templeteDist/wuxDist/date-picker-view/index",
    "wux-date-picker": "../../templeteDist/wuxDist/date-picker/index",
    "wux-select": "../../templeteDist/wuxDist/select/index",
    "wux-field": "../../templeteDist/wuxDist/field/index",
    "wux-textarea": "../../templeteDist/wuxDist/textarea/index",
    "wux-cell-group": "../../templeteDist/wuxDist/cell-group/index",
    "wux-input": "../../templeteDist/wuxDist/input/index",
    "wux-form": "../../templeteDist/wuxDist/form/index"
  }
}
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.wxml
New file
@@ -0,0 +1,105 @@
<!--pages/xsjb/xsjb.wxml-->
<wux-form id="wux-form" bind:change="onChange">
    <form id="form-dom" bindsubmit="formSubmit">
        <wux-cell-group title="举报信息">
            <wux-field name="举报对象" >
                <wux-cell hover-class="none">
                    <wux-field name="举报对象" initialValue="{{ thisData.tipoffObject }}">
                        <wux-input label="举报对象" bind:change="inputOnchange" data-key="tipoffObject" />
                    </wux-field>
                </wux-cell>
            </wux-field>
            <wux-field name="举报行为" initialValue="{{ displaytipoffAction }}">
                <wux-popup-select options="{{ meetingWayList }}" bind:change="onPopupSelectChange" data-key="tipoffAction">
                    <wux-cell title="举报行为" is-link extra="{{ displaytipoffAction }}" required="{{true}}"></wux-cell>
                </wux-popup-select>
            </wux-field>
            <!-- <wux-field name="发生地" value="{{ meetingWay }}">
      <wux-cell hover-class="none" extra="{{dom}}">
        <wux-field name="发生地" initialValue="123">
          <wux-input label="发生地" />
        </wux-field>
      </wux-cell>
    </wux-field> -->
            <!-- <view class="cu-form-group">
                <view class="title">发生地</view>
                <input value="{{data.tipoffAddress}}" bind:change="inputOnchange" data-key="tipoffAddress" placeholder="发生地"></input>
                 <text class="cuIcon-locationfill text-orange" bind:change="chooseLocation"></text>
             </view>  -->
            <wux-field name="发生地" >
                <wux-cell hover-class="none">
                    <wux-field name="发生地" initialValue="{{ thisData.tipoffAddress }}">
                        <wux-input label="发生地" bind:change="inputOnchange" data-key="tipoffAddress" />
                    </wux-field>
                </wux-cell>
            </wux-field>
            <wux-field name="具体事项" initialValue="{{ thisData.tipoffContent }}">
                <wux-cell hover-class="none">
                    <wux-textarea rows="3" bind:change="inputOnchange" data-key="tipoffContent" label="具体事项" placeholder="请输入具体事项" />
                </wux-cell>
            </wux-field>
        </wux-cell-group>
        <wux-cell-group title="证明材料上传">
            <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}}" 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>
                </view>
            </div>
        </wux-cell-group>
        <view style="margin-top: 30rpx;">
            <wux-cell-group>
                <wux-field name="举报方式" initialValue="{{displaytipoffType }}">
                    <wux-popup-select options="{{ meetingWayList1 }}" bind:change="onPopupSelectChange" data-key="tipoffType">
                        <wux-cell title="举报方式" is-link extra="{{ displaytipoffType }}" required="{{true}}"></wux-cell>
                    </wux-popup-select>
                </wux-field>
            </wux-cell-group>
        </view>
        <wux-cell-group title="举报人信息" wx:if="{{showInfo}}">
            <wux-field name="姓名">
                <wux-cell hover-class="none">
                    <wux-field name="姓名" initialValue="{{ thisData.createrName }}">
                        <wux-input label="姓名" bind:change="inputOnchange" data-key="createrName" />
                    </wux-field>
                </wux-cell>
            </wux-field>
            <wux-field name="手机号码"  wx:if="{{showInfo}}">
                <wux-cell hover-class="none">
                    <wux-field name="手机号码" initialValue="{{ thisData.createrMobile }}">
                        <wux-input label="手机号码" bind:change="inputOnchange" data-key="createrMobile" />
                    </wux-field>
                </wux-cell>
            </wux-field>
            <wux-field name="联系地址"  wx:if="{{showInfo}}">
                <wux-cell hover-class="none">
                    <wux-field name="联系地址" initialValue="{{ thisData.createrAddress }}">
                        <wux-input label="联系地址" bind:change="inputOnchange" data-key="createrAddress" />
                    </wux-field>
                </wux-cell>
            </wux-field>
        </wux-cell-group>
        <view class="padding-sm" wx:if="{{disabled}}">
            <button class="cu-btn block bg-blue margin-tb-sm lg" bindtap="onSubmit">
                提交举报
            </button>
        </view>
    </form>
</wux-form>
SunshineLnsMinApp/pages/xsuojbInfo/xsuojbInfo.wxss
New file
@@ -0,0 +1,71 @@
/* pages/xsjb/xsjb.wxss */
page {
  background: #f1f1f1;
}
.cu-form-group .title {
  min-width: calc(4em + 30rpx);
}
#form-dom input {
  text-align: right;
}
#form-dom .cu-form-group {
  min-height: auto;
  padding: 20rpx 30rpx;
  position: relative;
  font-size: 28rpx;
}
.activity-uploadImage {
  display: flex;
  padding:1vh 2vh;
}
.upload {
  width: 48px;
  height: 48px;
}
.activity-uploadImag-del {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 28px;
}
.educt_hasupload_pic {
  display: flex;
  position: relative;
  padding-right: 1vh;
}
.activity-uploadImag-icon {
  width: 48px;
  height: 48px;
}
#form-dom .cu-form-group:after {
  content: " ";
  position: absolute;
  left: 30rpx;
  bottom: 0;
  right: 0;
  height: 2rpx;
  border-bottom: 2rpx solid #d9d9d9;
  color: #d9d9d9;
  transform-origin: 0 100%;
  transform: scaleY(0.5);
}
#form-dom .cu-form-group .title {
  height: 30rpx;
  line-height: 30rpx;
  font-size: 28rpx;
}
#form-dom .cu-form-group input {
  font-size: 28rpx;
}
SunshineLnsMinApp/pages/zhghInfo/zhghInfo.js
@@ -67,7 +67,8 @@
  },
  //输入框
  inputChange: function (e) {
    var taskReport = e.currentTarget.dataset.name;
    console.log(e)
    var taskReport = e.detail.value;
    this.setData({
      taskReport
    })
SunshineLnsMinApp/pages/zhwj/zhwj.wxml
@@ -36,14 +36,14 @@
            </view>
        </view>
    </view>
    <view class="zhwj-list-flex">
    <!-- <view class="zhwj-list-flex">
        <view class="zhwj-list-flex-l" data-str="weiwc" bindtap='linkFunction'>
            <view class="cu-avatar round margin-left zhwj-list-flex-l-img" style="background-image: url('https://xnwj.gznsjc.gov.cn/nsjc-charge/image/zuj5.png');"></view>
            <view class="zhwj-list-flex-l-text">
                <view class="text-black text-bold text-lg">入职查询</view>
                <view class="text-gray">未检职工入职查询</view>
            </view>
        </view>
        </view> -->
        <!-- <view class="zhwj-list-flex-r" data-str="weiwc" bindtap='linkFunction'>
      <view class="cu-avatar round margin-left zhwj-list-flex-l-img" style="background-image: url('https://xnwj.gznsjc.gov.cn/nsjc-charge/image/zuj6.png');"></view>
      <view class="zhwj-list-flex-l-text">
@@ -52,7 +52,7 @@
      </view>
    </view> -->
        <view class="zhwj-list-flex-r" data-str="fzjdvisitList" bindtap='linkFunction'>
        <!-- <view class="zhwj-list-flex-r" data-str="fzjdvisitList" bindtap='linkFunction'>
            <view class="cu-avatar round margin-left zhwj-list-flex-l-img" style="background-image: url('https://xnwj.gznsjc.gov.cn/nsjc-charge/image/zuj6.png');"></view>
            <view class="zhwj-list-flex-l-text">
                <view class="text-black text-bold text-lg">法治基地参观</view>
@@ -60,7 +60,7 @@
            </view>
        </view>
    </view>
    </view> -->
</view>
<view class="index-gray "></view>
SunshineLnsMinApp/pages/znjj/znjj.js
New file
@@ -0,0 +1,41 @@
// pages/zhgk/zhgk.js
var app = getApp()
Page({
  /**
   * 页面的初始数据
   */
  data: {
    wjgk: './../../images/wjgk.jpg',
    data:{},
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: app.globalData.url + '/api/article/findByName',
      data: {
        typeName:'知识产权职能简介',
      },
      success: function (res) {
        wx.hideLoading();
        console.log(res)
        if (res.data.code == 0) {
          that.setData({
            data: res.data.data
          })
        } else {
          wx.showModal({
            title: '提示',
            content: "请求失败!"
          })
        }
      }
    })
  },
})
SunshineLnsMinApp/pages/znjj/znjj.json
New file
@@ -0,0 +1,6 @@
{
  "navigationBarTitleText": "职能简介",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black"
}
SunshineLnsMinApp/pages/znjj/znjj.wxml
New file
@@ -0,0 +1,32 @@
<!--pages/zhgk/zhgk.wxml-->
<!-- <view class="bg-img padding-tb-xl" style="background-image: url({{wjgk}});background-size:100% auto;height:200px"></view> -->
<view class="zhgk-main">
    <view class=" text-lg" style="padding:30rpx 30rpx 0;">
        <text class="zhgk-main-title text-black">{{data.title}}</text>
    </view>
    <!-- <view class=' text-df padding'> 2016年4月,南沙检察成立了未成年人检察工作办公室。2019年1月,我院成立“许淑妍命名检察官办公室”,适用“捕诉监防助”一体化工作模式,负责办理未成年人犯罪和侵害未成年人犯罪案件,开展未成年人司法保护和预防未成年人犯罪等工作。南沙检察以专业化办案为依托,以规范化建设为抓手,认真贯彻“教育、感化、挽救”方针,坚持“教育为主、惩罚为辅”原则,全面落实未成年人指定辩护、社会调查、心理评估、合适成年人等特别程序,不断打造未检新品牌。以社会化服务为路径,以多元化平台为支点,组建心理咨询师团队和社工团队,通过法治宣传大平台、两微一端、“沙鸥”法治宣讲团开展普法宣传,构建多维度的未成年人维权、犯罪预防网络。近年来,南沙检察先后获评全国青少年维权岗、全国检察机关未成年人检察工作联系点。队伍中涌现出全国检察机关未成年人检察业务竞赛能手和全市检察机关未成年人检察业务标兵。</view> -->
    <view class=' text-df padding'>
        <rich-text nodes="{{data.content}}"></rich-text>
    </view>
</view>
<!-- <view class="zhgk-main">
  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
    <text class="zhgk-main-title text-black">指导文件</text>
  </view>
  <view class="padding">
    <view class=' text-df'>最高人民检察院《中华人民共和国最高人民检察院检察建议书》</view>
    <view class=' text-df'>最高人民检察院《2018-2022年检察改革工作规划》</view>
    <view class=' text-df'>最高人民检察院《最高人民检察院关于全面加强未成年人国家司法救助工作的意见》</view>
  </view>
</view>
<view class="zhgk-main">
  <view class=" text-lg" style="padding:30rpx 30rpx 0;">
    <text class="zhgk-main-title text-black">未检职能</text>
  </view>
  <view class="padding">
  <view class=' text-df'> 负责未成年人犯罪和侵害未成年人犯罪案件的审查批捕、审查起诉、出庭公诉、诉讼监督、犯罪预防、教育挽救工作,实现专人审查、全程办理,“一竿子捅到底”,为涉罪未成年人提供全面高效、协调一致的检察保护。</view>
  </view>
</view> -->
SunshineLnsMinApp/pages/znjj/znjj.wxss
New file
@@ -0,0 +1,9 @@
/* pages/zhgk/zhgk.wxss */
.zhgk-main {
  background-color: #fff;
}
.zhgk-main-title {
  color: #249eff;
}
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.js
@@ -18,17 +18,41 @@
    dongtai3_1: app.globalData.imgUrl + '/image/dongtai3-1.jpg',
    inputShowed: false,
    inputVal: "",
    value: '知识产权',
    items: [],
    count: 0,
    count: 1000,
    scrollTop: 0,
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
  onLoad: function (options) {
    $startWuxRefresher();
  },
  showList: function () {
    var that = this;
    // wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/v1/searchLaw/caseSearch?page=1&size=' + this.data.count + '&words=' + this.data.value,
      success: function (res) {
        // wx.hideLoading();
        console.log('res.data.data', res.data.data.data)
        console.log('res', res)
        if (res.data.code == 0) {
          that.setData({
            items: [...res.data.data.data]
          })
          $stopWuxRefresher()
          $stopWuxLoader('#wux-refresher', this, true)
        } else {
          wx.showToast({
            title: res.data.msg,
          })
        }
      }
    })
  },
  onPageScroll(e) {
    this.setData({
@@ -38,32 +62,23 @@
  onRefresh() {
    console.log('onRefresh')
    this.setData({
      count: 10
    })
    // this.setData({
    //   count: 10
    // })
    setTimeout(() => {
      this.setData({
        items: this.getList()
      })
      $stopWuxRefresher()
    }, 1000)
    this.showList();
    // setTimeout(() => {
    //   this.setData({
    //     items: this.getList()
    //   })
    //   $stopWuxRefresher()
    // }, 1000)
  },
  onLoadmore() {
    console.log('onLoadmore')
    setTimeout(() => {
      this.setData({
        items: [...this.data.items, ...this.getList(10, this.data.count)],
        count: this.data.count + 10,
      })
      if (this.data.items.length < 30) {
        $stopWuxLoader()
      } else {
        console.log('没有更多数据')
        $stopWuxLoader('#wux-refresher', this, true)
      }
    }, 1000)
    this.showList();
  },
  getList: (count = 10, step = 0) => [...new Array(count)].map((n, i) => ({
@@ -71,7 +86,7 @@
    content: 'Wux Weapp'
  })),
  linkFunction: function(event) {
  linkFunction: function (event) {
    var str = event.currentTarget.dataset['str'];
    var id = event.currentTarget.dataset['id'];
    wx.navigateTo({
@@ -79,21 +94,50 @@
    })
  },
  showInput: function() {
  showInput: function () {
    this.setData({
      inputShowed: true
    });
  },
  hideInput: function() {
  hideInput: function () {
    this.setData({
      inputVal: "",
      inputShowed: false
    });
  },
  clearInput: function() {
  clearInput: function () {
    this.setData({
      inputVal: ""
    }, () => {});
  },
  onChange(e) {
    console.log('onChange', e)
    this.setData({
      value: e.detail.value,
    })
  },
  onFocus(e) {
    console.log('onFocus', e)
  },
  onBlur(e) {
    console.log('onBlur', e)
    this.setData({
      value: e.detail.value
    })
    this.showList();
  },
  onConfirm(e) {
    console.log('onConfirm', e)
  },
  onClear(e) {
    console.log('onClear', e)
    this.setData({
      value: '',
    })
  },
  onCancel(e) {
    console.log('onCancel', e)
  },
})
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.json
@@ -4,6 +4,7 @@
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black",
  "usingComponents": {
    "wux-refresher": "../../templeteDist/wuxDist/refresher/index"
    "wux-refresher": "../../templeteDist/wuxDist/refresher/index",
    "wux-search-bar": "../../templeteDist/wuxDist/search-bar/index"
  }
}
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.wxml
@@ -1,9 +1,13 @@
<view class="cu-bar bg-white search solid-top fixed" style="top:{{CustomBar}}px">
<!-- <view class="cu-bar bg-white search solid-top fixed" style="top:{{CustomBar}}px">
  <view class="search-form round">
    <text class="cuIcon-search"></text>
    <input type="text" placeholder="搜索" confirm-type="search" bindinput="searchIcon"></input>
    <wux-search-bar clear value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/>
  </view>
</view>
</view> -->
        <wux-search-bar class="zscqdxal-top" clear value="{{ value }}" controlled placeholder="搜索" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel"/>
        <!-- <wux-search-bar clear show-cancel value="{{ value }}" controlled placeholder="Search" bind:change="onChange" bind:focus="onFocus" bind:blur="onBlur" bind:confirm="onConfirm" bind:clear="onClear" bind:cancel="onCancel" /> -->
<wux-refresher id="wux-refresher" bind:pulling="onPulling" bind:refresh="onRefresh" bind:loadmore="onLoadmore" scrollTop="{{scrollTop}}">
  <view class="weui-panel weui-panel_access">
@@ -11,14 +15,14 @@
      <view class="weui-media-box weui-media-box_text" wx:for="{{ items }}" wx:key="">
        <!-- <view class="weui-media-box__title weui-media-box__title_in-text">{{ item.title }}</view>
                <view class="weui-media-box__desc">{{ item.content }}</view> -->
        <view class="zhwj-b-main" data-str="zhdtInfo" data-id="1" bindtap='linkFunction'>
        <view class="zhwj-b-main" data-str="zscqdxalInfo" data-id="{{item.case_id}}" bindtap='linkFunction'>
          <view class="zhwj-b-head-l">
            <view class="zhwj-b-head-l-title text-black">南沙区院召开2019“沙鸥”法治宣讲团年度总结暨课件评选会</view>
            <view class="text-grey">检察宣传部 60阅读</view>
            <view class="zhwj-b-head-l-title text-black"><rich-text nodes="{{item.title}}"></rich-text></view>
            <view class="text-grey">{{item.case_number}} | 裁决日期{{item.decide_date}}</view>
          </view>
          <view class="zhwj-b-head-r">
          <!-- <view class="zhwj-b-head-r">
            <image mode='widthFix' src="{{dongtai1_1}}"></image>
          </view>
          </view> -->
        </view>
      </view>
    </view>
SunshineLnsMinApp/pages/zscqdxal/zscqdxal.wxss
@@ -1,9 +1,16 @@
/* pages/dxal/dxal.wxss */
@import '../../weui.wxss';
page{
page {
  margin-top: 130rpx;
  background: #f1f1f1;
}
.zscqdxal-top {
  top: 0;
  position: fixed;
  width: 100%;
}
.weui-media-box {
@@ -35,4 +42,4 @@
.zhwj-b {
  background-color: #fff;
}
}
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.js
New file
@@ -0,0 +1,47 @@
// pages/zscqdxalInfo/zscqdxalInfo.js
var app = getApp();
Page({
  /**
   * 页面的初始数据
   */
  data: {
    data: {},
    ywsqjd: app.globalData.imgUrl +'/image/ywsqjd.svg',
    fulltextList:[]
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.showList(options.id)
  },
  showList: function (id) {
    var that = this;
    wx.showLoading();
    wx.request({
      url: app.globalData.url + '/api/v1/searchLaw/caseInfo?id=' + id,
      success: function (res) {
        wx.hideLoading();
        console.log('data', res.data.data.data.fulltext)
        console.log('res', res)
        if (res.data.code == 0) {
          that.setData({
            data: res.data.data.data,
            fulltextList:res.data.data.data.fulltext.filter((item)=>(item.tag !=='开始'&&item.tag!=='结束'))
          })
        } else {
          wx.showToast({
            title: res.data.msg,
          })
        }
      }
    })
  },
})
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.json
New file
@@ -0,0 +1,12 @@
{
  "navigationBarTitleText": "典型案例详情",
  "backgroundTextStyle": "light",
  "navigationBarBackgroundColor": "#fff",
  "navigationBarTextStyle": "black",
  "usingComponents": {
    "wux-refresher": "../../templeteDist/wuxDist/refresher/index",
    "wux-search-bar": "../../templeteDist/wuxDist/search-bar/index",
    "wux-cell-group": "../../templeteDist/wuxDist/cell-group/index",
    "wux-cell": "../../templeteDist/wuxDist/cell/index"
  }
}
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.wxml
New file
@@ -0,0 +1,25 @@
<!--pages/zscqdxalInfo/zscqdxalInfo.wxml-->
<view class="zhgk-main">
    <view class=" text-lg" style="padding:30rpx 30rpx 0;">
        <text class="zhgk-main-title text-black">{{data.title}}</text>
    </view>
    <!-- <view class=' text-df padding'> 2016年4月,南沙检察成立了未成年人检察工作办公室。2019年1月,我院成立“许淑妍命名检察官办公室”,适用“捕诉监防助”一体化工作模式,负责办理未成年人犯罪和侵害未成年人犯罪案件,开展未成年人司法保护和预防未成年人犯罪等工作。南沙检察以专业化办案为依托,以规范化建设为抓手,认真贯彻“教育、感化、挽救”方针,坚持“教育为主、惩罚为辅”原则,全面落实未成年人指定辩护、社会调查、心理评估、合适成年人等特别程序,不断打造未检新品牌。以社会化服务为路径,以多元化平台为支点,组建心理咨询师团队和社工团队,通过法治宣传大平台、两微一端、“沙鸥”法治宣讲团开展普法宣传,构建多维度的未成年人维权、犯罪预防网络。近年来,南沙检察先后获评全国青少年维权岗、全国检察机关未成年人检察工作联系点。队伍中涌现出全国检察机关未成年人检察业务竞赛能手和全市检察机关未成年人检察业务标兵。</view> -->
    <view class=' text-df padding'>
        <view class="zhgk-main"  wx:for="{{fulltextList}}">
            <view class=" text-lg" style="padding:30rpx 30rpx 0;">
                <text class="zhgk-main-title text-black">{{item.tag}}</text>
            </view>
            <view class="padding">
                <view class=' text-df'> {{item.content}}</view>
            </view>
        </view>
    </view>
</view>
<!-- <wux-cell-group title="{{item.tag}}" wx:for="{{fulltextList}}">
    <wux-cell extra="{{item.content}}"></wux-cell>
</wux-cell-group> -->
SunshineLnsMinApp/pages/zscqdxalInfo/zscqdxalInfo.wxss
New file
@@ -0,0 +1,8 @@
/* pages/zscqdxalInfo/zscqdxalInfo.wxss */
.zhgk-main {
  background-color: #fff;
}
.zhgk-main-title {
  color: #249eff;
}
SunshineLnsMinApp/project.config.json
@@ -4,10 +4,13 @@
        "urlCheck": false,
        "es6": true,
        "postcss": true,
        "preloadBackgroundData": false,
        "minified": true,
        "newFeature": true,
        "coverView": true,
        "autoAudits": false,
        "showShadowRootInWxmlPanel": true,
        "scopeDataCheck": false,
        "checkInvalidKey": true,
        "checkSiteMap": true,
        "uploadWithSourceMap": true,