Commit e8f3475b authored by xieyishang's avatar xieyishang

addxx

parent 63699c6b
......@@ -102,7 +102,7 @@
<view class="ordernotice">
<view class="orderstatit">{{item.customdata.title}}</view>
<view class="ordertextets">{{item.customdata.content}}</view>
<view class="tovieews" v-show="item.customdata.applink|| item.customdata.wechatlink">点击查看 > ></view>
<view class="tovieews" v-show="item.customdata.s_link">点击查看 > ></view>
</view>
</view>
......@@ -1165,13 +1165,14 @@
tomsglink(item){
//item.customdata.applink
//item.customdata.wechatlink
//s_link
if(item.customdata.istab==1){
uni.switchTab({
url:item.customdata.applink
url:item.customdata.s_link
})
}else{
uni.navigateTo({
url:item.customdata.applink ,
url:item.customdata.s_link ,
})
}
}
......
......@@ -48,7 +48,19 @@
</view>
<view class="total">总计:¥ {{detail.total}}</view>
<view class="total flex ali-c jus-b">
<view @tap="toqunpages" v-if="Group_id" class="qunboxss flex ali-c" >
<image class="chaticon" src="/static/chat/chaticon.png"></image>
<text class="t11">进入聊天</text>
</view>
<view @tap="tousrrpages" v-if="!Group_id && user_IM_id" class="qunboxss flex ali-c" >
<image class="chaticon" src="/static/chat/chaticon.png"></image>
<text class="t11">联系用户</text>
</view>
<view>总计:¥ {{detail.total}}</view>
</view>
<view class="mess">
<view class="mess_01">订单信息</view>
......@@ -106,7 +118,10 @@
addr:{},//收获地址
detail:{},//订单详情信息
shop:{},//商家信息
products:[],//购买的商品列表
products:[],//购买的商品列表
Group_id:"",//IM 群id
user_IM_id:"",
};
},
onLoad(opdata) {
......@@ -136,14 +151,21 @@
async eleOrderDetails(){
let res = await eleOrderDetails({
order_id:this.order_id,
});
});
console.info("res",res);
if(res.code==0){
this.delivery_info=res.data.delivery_info;//?
this.delivery_rider=res.data.delivery_rider;//骑手信息
this.addr=res.data.addr;//收获地址
this.detail=res.data.detail;//订单详情信息
this.shop=res.data.shop;//商家信息
this.products=res.data.detail.products;//购买的商品列表
this.products=res.data.detail.products;//购买的商品列表
this.Group_id=res.data.Group_id;//IM 群id
this.user_IM_id=res.data.user_IM_id;
}else{
this.$api.msg(res.msg);
......@@ -174,6 +196,17 @@
uni.navigateBack({}); //返回上一页
},500)
}
},
//进入群聊天
toqunpages(){
uni.navigateTo({
url: `/pages/chat/chat/chat?type=2&userId=&groupId=${this.Group_id}`
})
},
tousrrpages(){
uni.navigateTo({
url: `/pages/chat/chat/chat?type=1&userId=${this.user_IM_id}&groupId=`
})
}
}
}
......@@ -232,5 +265,19 @@
.cu-btn{
margin-right: 20upx;
}
}
.qunboxss{
}
.qunboxss .t11{
font-size: 30rpx;
color: #f46f15;
}
.qunboxss .chaticon{
width: 44rpx;
height: 44rpx;
margin-right: 10rpx;
}
</style>
......@@ -112,6 +112,10 @@
<image class="img" src="/static/news/telicon1.png" mode=""></image>
<view class="name">联系客户</view>
</view>
<view v-if="user_IM_id" class="itemboxss flex1 flex flexc isline" @tap="lxchat">
<image class="img" src="/static/news/kefuicon.png" mode=""></image>
<view class="name">会话聊天</view>
</view>
<view class="itemboxss flex1 flex flexc" @tap="lxpt">
<image class="img" src="/static/news/kefuicon.png" mode=""></image>
<view class="name">联系平台</view>
......@@ -142,6 +146,7 @@
}
},
logs: {},
user_IM_id:"",
}
},
computed: {
......@@ -197,7 +202,9 @@
this.detail = res.data.detail;
this.logs = res.data.logs;
this.user_IM_id = res.data.logs.user_IM_id;
//this.CONFIG =
console.info(this.user_IM_id,"user_IM_id");
}
})
},
......@@ -206,6 +213,11 @@
phoneNumber: e.currentTarget.dataset.tel // 仅为示例,并非真实的电话号码
})
},
lxchat(){
uni.navigateTo({
url: `/pages/chat/chat/chat?type=1&userId=${this.user_IM_id}&groupId=`
})
}
},
......@@ -492,7 +504,7 @@
}
}
.itemboxss:nth-child(1):after {
.isline:after,.itemboxss:nth-child(1):after {
content: "";
width: 1px;
height: 89upx;
......@@ -501,6 +513,8 @@
top: 0;
right: 0;
}
}
//客服end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment