| | |
| | | // regAvatarUrl: 'https://youzhen123.oss-cn-huhehaote.aliyuncs.com/WechatOwnerProperty/images/mrtx.png', |
| | | regUserName: '', |
| | | regAvatarUrl: '', |
| | | previewImgSign:false, |
| | | } |
| | | }, |
| | | methods: { |
| | | copyTxt(txt) { |
| | | uni.setClipboardData({ |
| | | data: txt, //要被复制的内容 |
| | | success: () => { //复制成功的回调函数 |
| | | uni.showToast({ //提示 |
| | | title: '复制成功' |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | onChooseavatar(e) { |
| | | let self = this; |
| | | let { |
| | |
| | | this.regUserName = e.detail.value; // 获取微信昵称 |
| | | }, |
| | | |
| | | handleContact(e) { |
| | | console.log(e.detail.path) |
| | | console.log(e.detail.query) |
| | | }, |
| | | |
| | | |
| | | |
| | |
| | | } else { |
| | | //根据id去重正常 |
| | | var ids = [] |
| | | var idsMap = {} |
| | | for (var item of this.list) { |
| | | ids.push(item.id) |
| | | if (item.id) { |
| | | idsMap[item.id] = item |
| | | } |
| | | } |
| | | var hasnew = false |
| | | for (var item of data.records) { |
| | | if (ids.indexOf(item.id) < 0) { |
| | | this.list.push(item) |
| | | } else { |
| | | //最好更新一下 |
| | | idsMap[item.id] = { |
| | | ...idsMap[item.id], |
| | | ...item, //覆盖了 |
| | | } |
| | | hasnew = true |
| | | } |
| | | } |
| | | if (hasnew) { |
| | | this.$forceUpdate() |
| | | } |
| | | |
| | | } |
| | | this.page.total = data.total || 0 |