| | |
| | | "van-row": "@vant/weapp/row/index", |
| | | "van-col": "@vant/weapp/col/index", |
| | | "van-notify": "@vant/weapp/notify/index", |
| | | "van-toast": "@vant/weapp/toast/index" |
| | | "van-toast": "@vant/weapp/toast/index", |
| | | "van-checkbox": "@vant/weapp/checkbox/index", |
| | | "van-checkbox-group": "@vant/weapp/checkbox-group/index" |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | "navigationBarTitleText": "青羊分局经侦大队", |
| | | "navigationBarTextStyle": "black" |
| | | }, |
| | | |
| | | "sitemapLocation": "sitemap.json" |
| | | } |
| | |
| | | success: (res) => { |
| | | console.log(res.data.data) |
| | | res.data.data.map(item=>{ |
| | | if (item.time) { |
| | | item.time = item.time.substr(-8) |
| | | } |
| | | }) |
| | | this.setData({ |
| | | groupList: res.data.data |
| | |
| | | memberConut: null, |
| | | managerList: [], |
| | | memberList: [], |
| | | groupId: null |
| | | groupId: null, |
| | | checkedAll:false |
| | | }, |
| | | seach(e) { |
| | | console.log(e.detail.value) |
| | |
| | | icon: "none", |
| | | title: '禁言成功!', |
| | | }) |
| | | |
| | | this.setData({ |
| | | checkedAll : !this.data.checkedAll |
| | | }) |
| | | console.log(this.data.checkedAll); |
| | | |
| | | wx.request( |
| | | { |
| | | url: groupBanSpeech.globalData.url + "/wx/group/member", |
| | |
| | | }) |
| | | }, |
| | | pick(e) { |
| | | console.log(e); |
| | | wx.request( |
| | | { |
| | | url: groupBanSpeech.globalData.url + "/wx/group/member/banSpeech", |
| | | url:e.currentTarget.dataset.checked==1?groupBanSpeech.globalData.url + "/wx/group/member/allowSpeech" :groupBanSpeech.globalData.url + "/wx/group/member/banSpeech", |
| | | method: "GET", |
| | | data: { |
| | | id: e.detail.value, |
| | | id: e.currentTarget.dataset.value, |
| | | groupId: this.data.groupId |
| | | }, |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | var temp_str='.memberList['+e.currentTarget.dataset.index+'].banSpeech'; |
| | | // this.data.memberList[e.currentTarget.dataset.index].banSpeech=0 |
| | | this.setData({ |
| | | chencked: false |
| | | [temp_str]:e.currentTarget.dataset.checked==1?0:1 |
| | | }) |
| | | console.log(this.data.memberList); |
| | | |
| | | // this.setData({ |
| | | // chencked: false |
| | | // }) |
| | | wx.showToast({ |
| | | icon: "none", |
| | | title: '禁言成功!', |
| | | title:this.data.memberList[e.currentTarget.dataset.index].banSpeech==0?'已允许发言!':'禁言成功!' |
| | | // title: e.currentTarget.dataset.chencked==0?'已允许发言!':'禁言成功!' |
| | | }) |
| | | } |
| | | }) |
| | |
| | | <view class="manager"> |
| | | <view> |
| | | <view class="wenzi">群成员 ({{memberConut}})人</view> |
| | | <radio bindtap="allPick" color="red" class="radio">全选</radio> |
| | | <van-checkbox value="{{ checkedAll }}" bind:change="allPick" class="radio">全选</van-checkbox> |
| | | <!-- <radio bindtap="allPick" color="red" class="radio">全选</radio> --> |
| | | </view> |
| | | |
| | | <view class="list" wx:for="{{memberList}}" wx:key="index" > |
| | |
| | | <image class="managerIcon" src="{{item.pic}}"></image> |
| | | <view class="name">{{item.realName}}</view> |
| | | <!-- <button class="button" wx:if="{{item.banSpeech==0}}" id="{{item.id}}" bindtap="memberDetail" size="mini">禁言</button> --> |
| | | <radio-group bindchange="pick" > |
| | | <van-checkbox |
| | | class="button" |
| | | value="{{ item.banSpeech==1 }}" |
| | | bind:change="pick" |
| | | data-value="{{item.id}}" |
| | | data-index="{{index}}" |
| | | data-checked="{{item.banSpeech}}"></van-checkbox> |
| | | <!-- <radio-group bindchange="pick" > |
| | | <radio checked="{{item.banSpeech==1}}" value="{{item.id}}" bindtap="cancel" color="red" class="button"></radio> |
| | | </radio-group> |
| | | </radio-group> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | .low{ |
| | | position: fixed; |
| | | bottom: 1.5rem; |
| | | bottom: 0rem; |
| | | width: 100%; |
| | | background-color: white; |
| | | /* height: 7%; */ |
| | |
| | | <view class="low" style="height: {{height}}px;"> |
| | | <image wx:if="{{isInput==1}}" class="more" src="../../../icon/more.png" bindtap="more"></image> |
| | | <button bindtap="sendMsg" size="mini" wx:if="{{isInput==2}}" class="button">发送</button> |
| | | <input disabled="{{ban==1}}" value="{{value}}" class="input" bindinput="inputWenzi" /> |
| | | <input disabled="{{ban==1}}" value="{{ban==1?'您已被禁言':value}}" class="input" bindinput="inputWenzi" /> |
| | | <view class="moreList" wx:if="{{isShow}}" > |
| | | <!-- <view class="view-0" bindtap="groupMenber"> |
| | | <image src="../../../icon/groupmembers.png" class="bottom-icon"></image> |
| | |
| | | }, |
| | | |
| | | getName(e){ |
| | | console.log(e.detail.value) |
| | | if(e.detail.value){ |
| | | this.setData({'viewData.style': myStyle}) |
| | | } |
| | |
| | | }) |
| | | return |
| | | } |
| | | console.log("meizhic") |
| | | |
| | | wx.request({ |
| | | url:loginInfo.globalData.url+"/wx/user/add", |
| | | method:"POST", |