diff --git a/components/GoEasyAudioPlayer/GoEasyAudioPlayer.vue b/components/GoEasyAudioPlayer/GoEasyAudioPlayer.vue new file mode 100644 index 0000000..4b72cf0 --- /dev/null +++ b/components/GoEasyAudioPlayer/GoEasyAudioPlayer.vue @@ -0,0 +1,62 @@ + + + + + \ No newline at end of file diff --git a/components/GoEasyAudioPlayer/images/play.gif b/components/GoEasyAudioPlayer/images/play.gif new file mode 100644 index 0000000..e367c87 Binary files /dev/null and b/components/GoEasyAudioPlayer/images/play.gif differ diff --git a/components/GoEasyAudioPlayer/images/voice.png b/components/GoEasyAudioPlayer/images/voice.png new file mode 100644 index 0000000..93d6090 Binary files /dev/null and b/components/GoEasyAudioPlayer/images/voice.png differ diff --git a/components/GoEasyVideoPlayer/GoEasyVideoPlayer.vue b/components/GoEasyVideoPlayer/GoEasyVideoPlayer.vue new file mode 100644 index 0000000..450d6f1 --- /dev/null +++ b/components/GoEasyVideoPlayer/GoEasyVideoPlayer.vue @@ -0,0 +1,55 @@ + + + + + \ No newline at end of file diff --git a/components/GoEasyVideoPlayer/images/play.png b/components/GoEasyVideoPlayer/images/play.png new file mode 100644 index 0000000..0e6338e Binary files /dev/null and b/components/GoEasyVideoPlayer/images/play.png differ diff --git a/main.js b/main.js index ff7a4ee..93a14ed 100644 --- a/main.js +++ b/main.js @@ -1,11 +1,12 @@ import Vue from 'vue' import App from './App' - +import IMService from './static/imservice.js' import uView from "uview-ui"; Vue.use(uView); Vue.config.productionTip = false - +Vue.prototype.imService = new IMService(); +Vue.prototype.a = 1; App.mpType = 'app' const app = new Vue({ diff --git a/pages.json b/pages.json index d60307e..9643366 100644 --- a/pages.json +++ b/pages.json @@ -37,6 +37,15 @@ } } }, + { + "path": "pages/messages/privateChat", + "style": { + "navigationBarTitleText": "uni-app", + "app-plus": { + "titleNView": true + } + } + }, { "path": "pages/index/index", "style": { @@ -59,17 +68,17 @@ } } } - }, - { - "path": "pages/index/otherdetails", - "style": { - "navigationBarTitleText": "试穿订单详情", - "app-plus": { - "titleNView": { - "titleColor": "#333333" - } - } - } + }, + { + "path": "pages/index/otherdetails", + "style": { + "navigationBarTitleText": "试穿订单详情", + "app-plus": { + "titleNView": { + "titleColor": "#333333" + } + } + } }, { "path": "pages/release/video", @@ -146,7 +155,7 @@ "titleColor": "#333333", "buttons": [ //原生标题栏按钮配置, { - "text": "保存", + "text": "保存", "fontSize":"14px" } ] @@ -285,4 +294,4 @@ }] } -} +} diff --git a/pages/index/index.vue b/pages/index/index.vue index 9c844dc..ee6fa34 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -150,6 +150,10 @@ export default { this.getswiper(); // 获取可投诉列表 this.getcarlist(); + const user = uni.getStorageSync('userinfo'); + console.log(user) + this.imService.login(user.userId,user.member_avatar,"") + this.imService.connectIM() // 订单状态: 0:全部 1已付款未发货 2已发货 3已完成 4申请退款/退货 5已退款/退货 6拒绝退款/退货 }, onShow() { diff --git a/pages/login/login.vue b/pages/login/login.vue index 6d79c8c..cbf53bf 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -99,7 +99,7 @@ export default { return } // 清除本地存储才可以正常登陆(具体原因没有仔细检查) - uni.clearStorage(); + // uni.clearStorage(); // 账号登录1达人0商家 if(this.state==1){ this.$u.api.login({ member_name: this.zhanghaoA, member_password: this.mimaA }).then(res => { diff --git a/pages/messages/messagesList.vue b/pages/messages/messagesList.vue index 62c09ad..d03676f 100644 --- a/pages/messages/messagesList.vue +++ b/pages/messages/messagesList.vue @@ -1,19 +1,20 @@