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
e6d705b4
Commit
e6d705b4
authored
Nov 12, 2021
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
5508f298
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
324 additions
and
7 deletions
+324
-7
pages.json
pages.json
+10
-0
pages/chat/chat/chat.vue
pages/chat/chat/chat.vue
+6
-0
pages/chat/report/report.vue
pages/chat/report/report.vue
+300
-0
static/chat/reporticon.png
static/chat/reporticon.png
+0
-0
static/chat/telephony.png
static/chat/telephony.png
+0
-0
utils/config.js
utils/config.js
+6
-5
utils/debug.js
utils/debug.js
+2
-2
No files found.
pages.json
View file @
e6d705b4
...
...
@@ -432,6 +432,16 @@
}
}
},
{
"path"
:
"pages/chat/report/report"
,
"style"
:
{
"navigationBarTitleText"
:
"投诉举报"
,
"app-plus"
:
{
"scrollIndicator"
:
"none"
}
}
},
{
"path"
:
"pages/chat/message/message"
,
"style"
:
{
...
...
pages/chat/chat/chat.vue
View file @
e6d705b4
...
...
@@ -242,6 +242,12 @@
<image
class=
"navimgs"
src=
"/static/chat/xiangce.png"
mode=
""
></image>
<view
class=
"navnames"
>
打开相册
</view>
</view>
<navigator
hover-class=
"none"
url=
"/pages/chat/report/report"
class=
"xitonnavitem"
>
<image
class=
"navimgs"
src=
"/static/chat/reporticon.png"
mode=
""
></image>
<view
class=
"navnames"
>
投诉举报
</view>
</navigator>
</view>
</view>
</view>
...
...
pages/chat/report/report.vue
0 → 100644
View file @
e6d705b4
<
template
>
<view
class=
"page"
v-fonts
>
<view
class=
'feedback-title'
>
<text>
举报说明
</text>
<!--
<text
class=
"feedback-quick"
@
tap=
"chooseMsg"
>
快速键入
</text>
-->
</view>
<view
class=
"feedback-body"
>
<textarea
placeholder=
"请详细描述对方的违规行为..."
v-model=
"sendDate.content"
class=
"feedback-textare"
/>
</view>
<view
class=
'feedback-title'
>
<text>
图片(选填,提供证据截图,总大小10M以下)
</text>
</view>
<view
class=
"feedback-body feedback-uploader"
>
<view
class=
"uni-uploader"
>
<view
class=
"uni-uploader-head"
>
<view
class=
"uni-uploader-title"
>
点击预览图片
</view>
<view
class=
"uni-uploader-info"
>
{{
imageList
.
length
}}
/8
</view>
</view>
<view
class=
"uni-uploader-body"
>
<view
class=
"uni-uploader__files"
>
<block
v-for=
"(image,index) in imageList"
:key=
"index"
>
<view
class=
"uni-uploader__file"
style=
"position: relative;"
>
<image
class=
"uni-uploader__img"
:src=
"image"
@
tap=
"previewImage"
></image>
<view
class=
"close-view"
@
click=
"close(index)"
>
x
</view>
</view>
</block>
<view
class=
"uni-uploader__input-box"
v-show=
"imageList.length
<
8
"
>
<view
class=
"uni-uploader__input"
@
tap=
"chooseImg"
></view>
</view>
</view>
</view>
</view>
</view>
<button
type=
""
class=
"feedback-submit"
@
tap=
"send"
>
提交
</button>
</view>
</
template
>
<
script
>
// import {feedback} from "@/utils/api/api.js";
export
default
{
data
()
{
return
{
msgContents
:
[
"
登录不上去
"
,
"
订单问题
"
,
"
资金问题
"
,
"
偶发性崩溃
"
],
stars
:
[
1
,
2
,
3
,
4
,
5
],
imageList
:
[],
sendDate
:
{
score
:
0
,
content
:
""
,
contact
:
""
}
}
},
onLoad
()
{
// #ifdef APP-PLUS
let
deviceInfo
=
{
appid
:
plus
.
runtime
.
appid
,
imei
:
plus
.
device
.
imei
,
//设备标识
p
:
plus
.
os
.
name
===
"
Android
"
?
"
a
"
:
"
i
"
,
//平台类型,i表示iOS平台,a表示Android平台。
md
:
plus
.
device
.
model
,
//设备型号
app_version
:
plus
.
runtime
.
version
,
plus_version
:
plus
.
runtime
.
innerVersion
,
//基座版本号
os
:
plus
.
os
.
version
,
net
:
""
+
plus
.
networkinfo
.
getCurrentType
()
}
this
.
sendDate
=
Object
.
assign
(
deviceInfo
,
this
.
sendDate
);
// #endif
},
methods
:
{
close
(
e
){
this
.
imageList
.
splice
(
e
,
1
);
},
chooseMsg
()
{
//快速输入
uni
.
showActionSheet
({
itemList
:
this
.
msgContents
,
success
:
(
res
)
=>
{
this
.
sendDate
.
content
=
this
.
msgContents
[
res
.
tapIndex
];
}
})
},
chooseImg
()
{
//选择图片
uni
.
chooseImage
({
sourceType
:
[
"
camera
"
,
"
album
"
],
sizeType
:
"
compressed
"
,
count
:
8
-
this
.
imageList
.
length
,
success
:
(
res
)
=>
{
this
.
imageList
=
this
.
imageList
.
concat
(
res
.
tempFilePaths
);
}
})
},
chooseStar
(
e
)
{
//点击评星
this
.
sendDate
.
score
=
e
;
},
previewImage
()
{
//预览图片
uni
.
previewImage
({
urls
:
this
.
imageList
});
},
send
()
{
//发送反馈
console
.
log
(
JSON
.
stringify
(
this
.
sendDate
));
let
imgs
=
this
.
imageList
.
map
((
value
,
index
)
=>
{
return
{
name
:
"
image
"
+
index
,
uri
:
value
}
})
if
(
this
.
sendDate
.
content
==
""
){
this
.
$api
.
msg
(
"
反馈的内容不能为空
"
);
return
false
;
}
this
.
$api
.
msg
(
"
反馈成功,请等待客服处理
"
);
//先做一个jia的 过shenhe
// feedback({
// content:this.sendDate.content,//投诉内容
// cate:"投诉",
// }).then((res)=>{
// if(res.code==200){
// this.$api.msg("反馈成功,请等待客服处理");//先做一个jia的 过shenhe
// setTimeout(()=>{
// uni.navigateBack({
// })
// },1500)
// }else{
// this.$api.msg(res.msg);
// }
// })
}
}
}
</
script
>
<
style
>
page
{
background-color
:
#EFEFF4
;
}
view
{
font-size
:
28
upx
;
}
.input-view
{
font-size
:
28
upx
;
}
.close-view
{
text-align
:
center
;
line-height
:
14px
;
height
:
16px
;
width
:
16px
;
border-radius
:
50%
;
background
:
#FF5053
;
color
:
#FFFFFF
;
position
:
absolute
;
top
:
-6px
;
right
:
-4px
;
font-size
:
12px
;
}
/* 上传 */
.uni-uploader
{
flex
:
1
;
flex-direction
:
column
;
}
.uni-uploader-head
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
}
.uni-uploader-info
{
color
:
#B2B2B2
;
}
.uni-uploader-body
{
margin-top
:
16
upx
;
}
.uni-uploader__files
{
display
:
flex
;
flex-direction
:
row
;
flex-wrap
:
wrap
;
}
.uni-uploader__file
{
margin
:
10
upx
;
width
:
210
upx
;
height
:
210
upx
;
}
.uni-uploader__img
{
display
:
block
;
width
:
210
upx
;
height
:
210
upx
;
}
.uni-uploader__input-box
{
position
:
relative
;
margin
:
10
upx
;
width
:
208
upx
;
height
:
208
upx
;
border
:
2
upx
solid
#D9D9D9
;
}
.uni-uploader__input-box
:before
,
.uni-uploader__input-box
:after
{
content
:
" "
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
background-color
:
#D9D9D9
;
}
.uni-uploader__input-box
:before
{
width
:
4
upx
;
height
:
79
upx
;
}
.uni-uploader__input-box
:after
{
width
:
79
upx
;
height
:
4
upx
;
}
.uni-uploader__input-box
:active
{
border-color
:
#999999
;
}
.uni-uploader__input-box
:active:before
,
.uni-uploader__input-box
:active:after
{
background-color
:
#999999
;
}
.uni-uploader__input
{
position
:
absolute
;
z-index
:
1
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
opacity
:
0
;
}
/*问题反馈*/
.feedback-title
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
20
upx
;
color
:
#8f8f94
;
font-size
:
28
upx
;
}
.feedback-star-view.feedback-title
{
justify-content
:
flex-start
;
margin
:
0
;
}
.feedback-quick
{
position
:
relative
;
padding-right
:
40
upx
;
}
.feedback-quick
:after
{
font-family
:
uniicons
;
font-size
:
40
upx
;
content
:
'\e581'
;
position
:
absolute
;
right
:
0
;
top
:
50%
;
color
:
#bbb
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
.inputsboxss
{
height
:
100
upx
;
}
.feedback-body
{
background
:
#fff
;
}
.feedback-textare
{
height
:
200
upx
;
font-size
:
34
upx
;
line-height
:
50
upx
;
width
:
100%
;
box-sizing
:
border-box
;
padding
:
20
upx
30
upx
0
;
}
.feedback-input
{
font-size
:
34
upx
;
height
:
100
upx
;
min-height
:
100
upx
;
padding
:
15
upx
20
upx
;
line-height
:
100
upx
;
}
.feedback-uploader
{
padding
:
22
upx
20
upx
;
}
.feedback-star
{
font-family
:
uniicons
;
font-size
:
40
upx
;
margin-left
:
6
upx
;
}
.feedback-star-view
{
margin-left
:
20
upx
;
}
.feedback-star
:after
{
content
:
'\e408'
;
}
.feedback-star.active
{
color
:
#F64F15
;
}
.feedback-star.active
:after
{
content
:
'\e438'
;
}
.feedback-submit
{
background
:
#F64F15
;
color
:
#FFFFFF
;
margin
:
20
upx
;
}
</
style
>
static/chat/reporticon.png
0 → 100644
View file @
e6d705b4
7.04 KB
static/chat/telephony.png
View replaced file @
5508f298
View file @
e6d705b4
3.18 KB
|
W:
|
H:
2.39 KB
|
W:
|
H:
2-up
Swipe
Onion skin
utils/config.js
View file @
e6d705b4
...
...
@@ -20,14 +20,15 @@ module.exports = {
Private_key
:
'
QAZWSXEDC123RFVA
'
,
//私钥 与后台基础设置中API安全秘钥相同,谨慎修改
// //测试 IM
// sdkAppID:1400494134,
// sdkAppKey:"8abfcf51fcf43b18f8ec01b6e924f058109502da7905ef4fb043ea90b0fb64ea",
//测试 IM
// sdkAppID:1400583520 ,
// sdkAppKey:"2a901ba4178ea5d194aa6bfd3c6a7d2da8dccd7ccc85155d618d8921d8bddbda",
//正式 IM
sdkAppID
:
14005
83520
,
sdkAppKey
:
"
2a901ba4178ea5d194aa6bfd3c6a7d2da8dccd7ccc85155d618d8921d8bddbda
"
,
sdkAppID
:
14005
94916
,
sdkAppKey
:
"
e813c0858ecffe636df73328940b03c84dda12c2fefb7e59ab2c72d025da943b
"
,
}
...
...
utils/debug.js
View file @
e6d705b4
...
...
@@ -5,8 +5,8 @@ module.exports = {
//
isdebug:false,//正式
isdebug
:
true
,
//测试
isdebug
:
false
,
//正式
//
isdebug:true,//测试
// xqdebug:false,//正式权限
xqdebug
:
true
,
//发布审核权限 也是测试环境的 主要用于ios
...
...
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