diff --git a/App.vue b/App.vue
index 91b6b40..3bfc11b 100644
--- a/App.vue
+++ b/App.vue
@@ -1,6 +1,10 @@
+
+
\ 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/components/release/shop-item.vue b/components/release/shop-item.vue
index 7f41cd7..5ce4d24 100644
--- a/components/release/shop-item.vue
+++ b/components/release/shop-item.vue
@@ -18,12 +18,19 @@ export default {
xuanzhong:false,
}
},
- props:['image','title','price','num','sid'],
+ props:['image','title','price','num','sid','wxuanzhong'],
methods:{
xuanzhongs(){
this.xuanzhong = !this.xuanzhong
this.$emit("xuanzhong")
}
+ },
+ watch:{
+
+ },
+ created(){
+ this.xuanzhong = this.wxuanzhong
+ console.log(this.wxuanzhong)
}
}
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 d5b70f5..11ac68c 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"
}
]
@@ -284,4 +293,4 @@
}]
}
-}
+}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 90492c9..42764ed 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -156,6 +156,10 @@ export default {
this.getcarlist();
// 所有订单
this.getallorder(0);
+ 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..97cab17 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -99,10 +99,11 @@ 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 => {
+ console.log(JSON.stringify(res))
if (res.errCode != 0) {
// 恢复按钮可点击状态
this.clickstate=false
@@ -122,6 +123,7 @@ export default {
});
}else{
this.$u.api.shoplogin({ member_name: this.zhanghao, member_password: this.mima }).then(res => {
+ console.log(JSON.stringify(res))
if (res.errCode != 0) {
// 恢复按钮可点击状态
this.clickstate=false
diff --git a/pages/messages/messagesList.vue b/pages/messages/messagesList.vue
index 62c09ad..b361f72 100644
--- a/pages/messages/messagesList.vue
+++ b/pages/messages/messagesList.vue
@@ -1,19 +1,21 @@
-
-
+
+
-
+
+
-
+
{{item.name}}
- {{item.content}}
+ {{item.text}}
{{item.time}}
+
@@ -23,37 +25,53 @@
data() {
return {
keyword: '搜索',
- list: [{
- name: '瘦瘦',
- content: "木糖少女小紫薯西装领连衣裙夏季新款女装装领连衣裙夏季装领连衣裙夏季装领连衣裙夏季夏收腰格子格纹裙子",
- url: '../../static/image/tosign/tosigin(5).png',
- id : '1',
- time : '10:15'
- },
- {
- name: '瘦瘦',
- content: "木糖少女小紫薯西装领连衣裙夏季新款女装装领连衣裙夏季装领连衣裙夏季装领连衣裙夏季夏收腰格子格纹裙子",
- url: '../../static/image/tosign/tosigin(5).png',
- id : '1',
- time : '10:15'
- },
- {
- name: '瘦瘦',
- content: "木糖少女小紫薯西装领连衣裙夏季新款女装装领连衣裙夏季装领连衣裙夏季装领连衣裙夏季夏收腰格子格纹裙子",
- url: '../../static/image/tosign/tosigin(5).png',
- id : '1',
- time : '10:15'
- },
+ list: [
+
],
};
},
methods: {
-
+ gochat(id){
+ console.log(id)
+ this.$u.route({
+ url:"/pages/messages/privateChat",
+ params:{
+ id:JSON.stringify(id)
+ }
+
+ })
+ },
+ onFriendListChange(onlineFriends) {
+ //todo:比较垃圾的处理方式,因为Uniapp的基于MAP的双向绑定在H5端不稳定,H5端偶尔会抽风
+ // 下边这一行删掉,有时候页面可以更新,有时候不行,大家有优雅的方式,也欢迎跟我们沟通
+ console.log(onlineFriends,121212)
+ this.information_dl = onlineFriends;
+
+ this.$forceUpdate();
+ },
+ },
+ onShow(){
+ // this.list = this.imService.friends;
+ this.imService.onFriendListChange=this.onFriendListChange;
+ },
+ onLoad(){
+ const res = uni.getSystemInfoSync();
+ this.swiperHeight = res.windowHeight;
+ this.list = this.imService.friends;
}
};
diff --git a/pages/release/selectshop.vue b/pages/release/selectshop.vue
index 76d78d7..811ee3b 100644
--- a/pages/release/selectshop.vue
+++ b/pages/release/selectshop.vue
@@ -3,10 +3,10 @@
我的商品
-
+
- 加入售货袋
+ 加入售货袋