diff --git a/pageC/merchant/index.vue b/pageC/merchant/index.vue
index 83921d5..ccfc7f9 100644
--- a/pageC/merchant/index.vue
+++ b/pageC/merchant/index.vue
@@ -64,7 +64,7 @@
店铺信息
-
+
联系客服
@@ -109,6 +109,43 @@ export default {
// if(e.index == 0) this.show = true;
},
methods: {
+ customers(){
+ console.log(this.$store.state.hasLogin)
+ if(!this.$store.state.hasLogin){
+ this.$refs.uToast.show({
+ title: "请先登录",
+ type: 'warning'
+ })
+ }else{
+ function Friend(uuid, name, avatar,time = "", text = "",date = "") {
+ this.uuid = uuid;
+ this.name = name;
+ this.avatar = avatar;
+ this.online = false;
+ this.unReadMessage = 0;
+ this.text = text;
+ this.time = time;
+ this.date = date
+ }
+ console.log(123)
+ this.$u.api.getAtwillUserInfo({
+ id:this.sid
+ }).then((res)=>{
+ console.log(res)
+ let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
+ this.$u.route({
+ url:"/pageD/privateChat/privateChat",
+ params:{
+ id:JSON.stringify(user)
+ }
+
+ })
+ }).catch((err)=>{
+ console.log(err)
+ })
+ }
+
+ },
toDetailsPage(id) {
// console.log(11);
this.$u.route('pageB/photo/index', {
diff --git a/pages/information/information.vue b/pages/information/information.vue
index 8a4444d..e75d614 100644
--- a/pages/information/information.vue
+++ b/pages/information/information.vue
@@ -3,7 +3,7 @@
-
+
@@ -105,6 +105,49 @@
},
methods: {
+ kefu(){
+ if(!this.$store.state.hasLogin){
+ this.$refs.uToast.show({
+ title: "请先登录",
+ type: 'warning'
+ })
+ }else{
+ function Friend(uuid, name, avatar,time = "", text = "",date = "") {
+ this.uuid = uuid;
+ this.name = name;
+ this.avatar = avatar;
+ this.online = false;
+ this.unReadMessage = 0;
+ this.text = text;
+ this.time = time;
+ this.date = date
+ }
+ const token = uni.getStorageSync('token');
+ let that = this
+ uni.request({
+ url:"https://dmmall.sdbairui.com/api/Specialci/getAtwillUserInfo",
+ data:{
+ userId: 1
+ },
+ method:"POST",
+ header:{
+ "Authorization" : 'Bearer' + " " + token
+ },
+ success(res){
+ console.log(res)
+ res = res.data
+ let user = new Friend(res.data.member_id,res.data.member_nickname,res.data.member_avatar)
+ that.$u.route({
+ url:"/pageD/privateChat/privateChat",
+ params:{
+ id:JSON.stringify(user)
+ }
+ })
+ }
+ })
+ }
+
+ },
gochat(id){
this.$u.route({
url:"/pageD/privateChat/privateChat",