Commit e6d705b4 authored by xieyishang's avatar xieyishang

addxx

parent 5508f298
...@@ -432,6 +432,16 @@ ...@@ -432,6 +432,16 @@
} }
} }
}, },
{
"path": "pages/chat/report/report",
"style": {
"navigationBarTitleText": "投诉举报",
"app-plus": {
"scrollIndicator": "none"
}
}
},
{ {
"path": "pages/chat/message/message", "path": "pages/chat/message/message",
"style": { "style": {
......
...@@ -242,6 +242,12 @@ ...@@ -242,6 +242,12 @@
<image class="navimgs" src="/static/chat/xiangce.png" mode=""></image> <image class="navimgs" src="/static/chat/xiangce.png" mode=""></image>
<view class="navnames">打开相册</view> <view class="navnames">打开相册</view>
</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> </view>
</view> </view>
......
<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: 28upx;
}
.input-view {
font-size: 28upx;
}
.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: 16upx;
}
.uni-uploader__files {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.uni-uploader__file {
margin: 10upx;
width: 210upx;
height: 210upx;
}
.uni-uploader__img {
display: block;
width: 210upx;
height: 210upx;
}
.uni-uploader__input-box {
position: relative;
margin:10upx;
width: 208upx;
height: 208upx;
border: 2upx 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: 4upx;
height: 79upx;
}
.uni-uploader__input-box:after {
width: 79upx;
height: 4upx;
}
.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: 20upx;
color: #8f8f94;
font-size: 28upx;
}
.feedback-star-view.feedback-title {
justify-content: flex-start;
margin: 0;
}
.feedback-quick {
position: relative;
padding-right: 40upx;
}
.feedback-quick:after {
font-family: uniicons;
font-size: 40upx;
content: '\e581';
position: absolute;
right: 0;
top: 50%;
color: #bbb;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.inputsboxss{
height: 100upx;
}
.feedback-body {
background: #fff;
}
.feedback-textare {
height: 200upx;
font-size: 34upx;
line-height: 50upx;
width: 100%;
box-sizing: border-box;
padding: 20upx 30upx 0;
}
.feedback-input {
font-size: 34upx;
height: 100upx;
min-height: 100upx;
padding: 15upx 20upx;
line-height: 100upx;
}
.feedback-uploader {
padding: 22upx 20upx;
}
.feedback-star {
font-family: uniicons;
font-size: 40upx;
margin-left: 6upx;
}
.feedback-star-view {
margin-left: 20upx;
}
.feedback-star:after {
content: '\e408';
}
.feedback-star.active {
color: #F64F15;
}
.feedback-star.active:after {
content: '\e438';
}
.feedback-submit {
background: #F64F15;
color: #FFFFFF;
margin: 20upx;
}
</style>
static/chat/telephony.png

3.18 KB | W: | H:

static/chat/telephony.png

2.39 KB | W: | H:

static/chat/telephony.png
static/chat/telephony.png
static/chat/telephony.png
static/chat/telephony.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -20,14 +20,15 @@ module.exports = { ...@@ -20,14 +20,15 @@ module.exports = {
Private_key: 'QAZWSXEDC123RFVA', //私钥 与后台基础设置中API安全秘钥相同,谨慎修改 Private_key: 'QAZWSXEDC123RFVA', //私钥 与后台基础设置中API安全秘钥相同,谨慎修改
// //测试 IM
// sdkAppID:1400494134,
// sdkAppKey:"8abfcf51fcf43b18f8ec01b6e924f058109502da7905ef4fb043ea90b0fb64ea",
//测试 IM
// sdkAppID:1400583520 ,
// sdkAppKey:"2a901ba4178ea5d194aa6bfd3c6a7d2da8dccd7ccc85155d618d8921d8bddbda",
//正式 IM //正式 IM
sdkAppID:1400583520 , sdkAppID:1400594916 ,
sdkAppKey:"2a901ba4178ea5d194aa6bfd3c6a7d2da8dccd7ccc85155d618d8921d8bddbda", sdkAppKey:"e813c0858ecffe636df73328940b03c84dda12c2fefb7e59ab2c72d025da943b",
} }
......
...@@ -5,8 +5,8 @@ module.exports = { ...@@ -5,8 +5,8 @@ module.exports = {
// isdebug:false,//正式 isdebug:false,//正式
isdebug:true,//测试 // isdebug:true,//测试
// xqdebug:false,//正式权限 // xqdebug:false,//正式权限
xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios xqdebug:true,//发布审核权限 也是测试环境的 主要用于ios
......
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