| | |
| | | "van-tab": "@vant/weapp/tab/index", |
| | | "van-tabs": "@vant/weapp/tabs/index", |
| | | "van-uploader": "@vant/weapp/uploader/index", |
| | | "van-notice-bar": "@vant/weapp/notice-bar/index" |
| | | "van-notice-bar": "@vant/weapp/notice-bar/index", |
| | | "van-overlay": "@vant/weapp/overlay/index" |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | success:(res)=>{ |
| | | console.log(res); |
| | | wx.setStorageSync('phone', res.data.msg) |
| | | if (res.data.data==0) { |
| | | if (res.data.data==2) { |
| | | wx.redirectTo( |
| | | { |
| | | url: '../user/pubulicty/index' |
| | | // url: '../user/loginInfo/index' |
| | | } |
| | | ) |
| | | }else if(res.data.data==1){ |
| | | }else if(res.data.data==0){ |
| | | wx.redirectTo( |
| | | { |
| | | url: '../user/index' |
| | |
| | | |
| | | Page({ |
| | | data: { |
| | | showOverlay:false, |
| | | messageList: [], |
| | | isShow: false, |
| | | height: null, |
| | |
| | | // url: '../cause/detail/index?id=' + e.currentTarget.id, |
| | | // }) |
| | | // }, |
| | | onClickHide(e){ |
| | | console.log(e) |
| | | this.setData({ |
| | | showOverlay:false |
| | | }) |
| | | }, |
| | | onClickShow(e){ |
| | | console.log(e); |
| | | |
| | | this.setData({ |
| | | showOverlay:true |
| | | }) |
| | | }, |
| | | groupMenber(){ |
| | | wx.navigateTo({ |
| | | url:'../message/member/index?id='+this.data.groupId |
| | |
| | | <!-- <scroll-view class="chat-main" scroll-y="true" :scroll-into-view="scrollToView" :scroll-with-animation="needScrollAnimation" :style="{height:paddingBottom}"> --> |
| | | <view class="pageWhole"> |
| | | <van-overlay show="{{ showOverlay }}" bind:click="onClickHide"> |
| | | <view class="wrapper"> |
| | | <view class="block"> |
| | | <view > |
| | | <label>姓名:</label> |
| | | </view> |
| | | <view > |
| | | <label>电话:</label> |
| | | </view> |
| | | <view > |
| | | <label>身份证:</label> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </van-overlay> |
| | | <view class="chat-item" id="chat"> |
| | | <view wx:for="{{messageList}}" wx:key="index"> |
| | | |
| | | <view class="time">{{item.time}}</view> |
| | | <!-- b - 对方的消息 --> |
| | | <view class="chat-left" wx:if="{{item.id!=uid}}"> |
| | | <image class="face" src="{{item.pic}}"></image> |
| | | <image class="face" bindtap="onClickShow" data-smile='smile every day' src="{{item.pic}}"></image> |
| | | <view class="chat-message-left">{{item.name}}-{{item.mobile}}</view> |
| | | <view class="chat-context-left">{{item.text}}</view> |
| | | <view class="chat-site-left"></view> |
| | |
| | | .view-4{ |
| | | |
| | | } |
| | | .wrapper { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | height: 100%; |
| | | } |
| | |
| | | url: '../logs/logs', |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onLoad() { |
| | | console.log('66666666666666666666666'); |
| | | |
| | | this.getToken() |
| | | }, |
| | | getToken(){ |
| | | wx.request({ |
| | | url: manager.globalData.url+"/wx/login", |
| | | data: { |
| | | "phone": wx.getStorageSync('phone'), |
| | | }, |
| | | method: "GET", |
| | | success: (res) => { |
| | | console.log(res); |
| | | wx.setStorageSync('token', res.data.data.token) |
| | | wx.setStorageSync('role', res.data.data.role) |
| | | wx.setStorageSync('id', res.data.data.id) |
| | | wx.setStorageSync('card',res.data.data.time) |
| | | }}) |
| | | }, |
| | | getReport() { |
| | | console.log("xxx") |
| | | wx.navigateTo({ |
| | | url: '../manager/report/index' |
| | | }) |
| | | } |
| | | ,getGroup(){ |
| | | }, |
| | | getGroup(){ |
| | | console.log("group") |
| | | wx.navigateTo({ |
| | | url:'../manager/group/index' |