diff --git a/common/api/shop.js b/common/api/shop.js index fccbc0e..ab442b0 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -86,11 +86,12 @@ export default { return vm.$u.post('Goods/getGoodsClassRecommend'); }, // goodsListByClassId - goodsListByClassId({ gc_id, page, order }) { + goodsListByClassId({ gc_id, page, order, keyword }) { return vm.$u.post('goods/goodsListByClassId', { gc_id: gc_id, page: page, order: order, + keyword:keyword }); }, // 商品推荐 diff --git a/common/api/user.js b/common/api/user.js index 459f496..714350d 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -454,6 +454,19 @@ export default { //获取默认头像 getDefaultAvatar(){ return vm.$u.post("member/getDefaultAvatar") + }, + // 第三方账号绑定【微信|QQ】 + bindingThird({ openid, type }) { + return vm.$u.post("auth/memberBindThird", { + third_openid: openid, + third_type: type, + }) + }, + // 解绑 + unbindingThird({ type }) { + return vm.$u.post("auth/memberUnbindThird", { + third_type: type, + }) } } diff --git a/components/mine/coupon/mine.vue b/components/mine/coupon/mine.vue index 1fda7c3..fe67df5 100644 --- a/components/mine/coupon/mine.vue +++ b/components/mine/coupon/mine.vue @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/pageE/setting/updateVersion.vue b/pageE/setting/updateVersion.vue index 155e3c5..8f03321 100644 --- a/pageE/setting/updateVersion.vue +++ b/pageE/setting/updateVersion.vue @@ -49,7 +49,7 @@ const pages = getCurrentPages(); // console.log(pages); if(pages.length == 2) { - this.$u.route('/pageA/login/login'); + this.$u.route('/pageA/welcome/welcome'); } else { uni.navigateBack(); } diff --git a/pages.json b/pages.json index 12e4d19..a7488a7 100644 --- a/pages.json +++ b/pages.json @@ -988,6 +988,19 @@ } } }, + { + "path": "setting/binding", + "style": { + "navigationBarTitleText": "第三方绑定", + "app-plus": { + "titleSize": "36px", + "titleNView": { + "titleColor": "#333333", + "backgroundColor": "#FFFFFF" + } + } + } + }, { "path": "setting/ShieldUsers", "style": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 6888b10..9f6e93b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -262,7 +262,8 @@ loading: '努力加载中', nomore: '实在没有了' }, - refresher:true + refresher:true, + zqie:false } }, components: { @@ -354,7 +355,11 @@ tabLiveList() { uni.showLoading({ title: "loading..." - }) + }) + if(this.zqie){ + return ; + } + this.zqie = true; this.$u.api.tabLiveList({page:this.live_page}).then((res) => { // uni.stopPullDownRefresh(); this.status_live = "loading"; @@ -371,6 +376,7 @@ } else if (res.data.data.length == 0 && this.live_page > 1) { this.status_live = "nomore"; } else { + console.log(this.live_page,1223) this.tabLiveLists = this.tabLiveLists.concat(res.data.data); console.log(this.tabLiveLists) } @@ -381,6 +387,8 @@ } else { this.status_live = "nomore" } + this.zqie = false; + }) }, diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index 3050fb9..cf26a68 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -18,7 +18,7 @@ {{room.onlineUsers.users.length}} - + @@ -29,7 +29,7 @@ - + 发送 diff --git a/static/image/common/4.png b/static/image/common/4.png index de5ec6d..5ca8c7e 100644 Binary files a/static/image/common/4.png and b/static/image/common/4.png differ diff --git a/static/image/mine/41.png b/static/image/mine/41.png new file mode 100644 index 0000000..40dd234 Binary files /dev/null and b/static/image/mine/41.png differ diff --git a/static/image/mine/42.png b/static/image/mine/42.png new file mode 100644 index 0000000..40e3abd Binary files /dev/null and b/static/image/mine/42.png differ diff --git a/static/image/mine/43.png b/static/image/mine/43.png new file mode 100644 index 0000000..1d1ef78 Binary files /dev/null and b/static/image/mine/43.png differ diff --git a/static/image/mine/44.png b/static/image/mine/44.png new file mode 100644 index 0000000..3f3e255 Binary files /dev/null and b/static/image/mine/44.png differ diff --git a/static/imservice.js b/static/imservice.js index b276f2c..9d85284 100644 --- a/static/imservice.js +++ b/static/imservice.js @@ -8,6 +8,8 @@ import GoEasyIM from './goeasy-im-1.0.9'; // import GoEasyIM from './goeasy-im-1.1.1'; import restApi from './restapi'; +import music from './music.mp3' + function Friend(uuid, name, avatar,time = "", text = "",date = "",unReadMessage = 0) { this.uuid = uuid; @@ -52,6 +54,8 @@ function IMService() { //群聊消息记录,map格式,每个群对应一个数组 this.groupMessages = {}; + + this.uid = 0; /* * 监听器们 @@ -283,6 +287,14 @@ IMService.prototype.initialIMListeners = function () { friends.sort(paixu) } + if(message.senderId != this.uid){ + const innerAudioContext = uni.createInnerAudioContext(); + innerAudioContext.autoplay = true; + innerAudioContext.src = music; + innerAudioContext.onPlay(() => { + console.log('开始播放'); + }); + } let that = this if(!friend && friend == undefined){ diff --git a/static/music.mp3 b/static/music.mp3 new file mode 100644 index 0000000..61c030b Binary files /dev/null and b/static/music.mp3 differ