Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
e8f3475b
Commit
e8f3475b
authored
Nov 10, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
63699c6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
8 deletions
+70
-8
pages/chat/chat/chat.vue
pages/chat/chat/chat.vue
+4
-3
pages/order/detail/detail.vue
pages/order/detail/detail.vue
+51
-4
pages/order/shoporderdetail/shoporderdetail.vue
pages/order/shoporderdetail/shoporderdetail.vue
+15
-1
static/chat/chaticon.png
static/chat/chaticon.png
+0
-0
No files found.
pages/chat/chat/chat.vue
View file @
e8f3475b
...
...
@@ -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.wechat
link"
>
点击查看 > >
</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
.
app
link
url
:
item
.
customdata
.
s_
link
})
}
else
{
uni
.
navigateTo
({
url
:
item
.
customdata
.
app
link
,
url
:
item
.
customdata
.
s_
link
,
})
}
}
...
...
pages/order/detail/detail.vue
View file @
e8f3475b
...
...
@@ -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
>
pages/order/shoporderdetail/shoporderdetail.vue
View file @
e8f3475b
...
...
@@ -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
{
.i
sline
:after
,
.i
temboxss
:nth-child
(
1
)
:after
{
content
:
""
;
width
:
1px
;
height
:
89upx
;
...
...
@@ -501,6 +513,8 @@
top
:
0
;
right
:
0
;
}
}
//客服end
...
...
static/chat/chaticon.png
0 → 100644
View file @
e8f3475b
4.07 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment