-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.html
123 lines (114 loc) · 4.74 KB
/
hello.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!doctype html>
<html lang="en" class="feedback">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>问题反馈</title>
<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
<link rel="stylesheet" type="text/css" href="../css/feedback.css" />
</head>
<body>
<header style="background-color:deepskyblue;" class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color:white;"></a>
<button id="submit" class="mui-btn mui-btn-blue mui-btn-link mui-pull-right"style="color:white;">发送</button>
<h1 class="mui-title"style="color:white;" >问题反馈</h1>
</header>
<div id="uyan_frame"></div>
<script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=2126782"></script>
<div class="mui-content">
<div class="mui-content-padded">
<div class="mui-inline">问题和意见</div>
<a class="mui-pull-right mui-inline" href="#popover">
快捷输入
<span class="mui-icon mui-icon-arrowdown"></span>
</a>
<!--快捷输入具体内容,开发者可自己替换常用语-->
<div id="popover" class="mui-popover">
<div class="mui-popover-arrow"></div>
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<ul class="mui-table-view">
<!--仅流应用环境下显示-->
<li class="mui-table-view-cell stream">
<a href="#">桌面快捷方式创建失败</a>
</li>
<li class="mui-table-view-cell"><a href="#">界面显示错乱</a></li>
<li class="mui-table-view-cell"><a href="#">启动缓慢,卡出翔了</a></li>
<li class="mui-table-view-cell"><a href="#">偶发性崩溃</a></li>
<li class="mui-table-view-cell"><a href="#">UI无法直视,丑哭了</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="row mui-input-row">
<textarea id='question' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
</div>
<p>图片(选填,提供问题截图,总大小10M以下)</p>
<div id='image-list' class="row image-list"></div>
<p>QQ/邮箱</p>
<div class="mui-input-row">
<input id='contact' type="text" class="mui-input-clear contact" placeholder="(选填,方便我们联系你 )" />
</div>
<div class="mui-content-padded">
<div class="mui-inline">应用评分</div>
<div class="icons mui-inline" style="margin-left: 6px;">
<i data-index="1" class="mui-icon mui-icon-star"></i>
<i data-index="2" class="mui-icon mui-icon-star"></i>
<i data-index="3" class="mui-icon mui-icon-star"></i>
<i data-index="4" class="mui-icon mui-icon-star"></i>
<i data-index="5" class="mui-icon mui-icon-star"></i>
</div>
</div><br />
</div>
<script src="../js/mui.min.js"></script>
<!--<script src=" ../js/feedback.js" type="text/javascript" charset="utf-8"></script>-->
<script type="text/javascript">
mui.init();
mui('.mui-scroll-wrapper').scroll();
</script>
<script type="text/javascript" charset="utf-8">
mui.init();
mui.plusReady(function(){
var submit=document.getElementById("submit");
submit.addEventListener('tap',function(){
var question=document.getElementById("question");
var contact=document.getElementById("contact");
var phone = localStorage.getItem("user_phone");
if(question.value.length==0){
plus.ui.toast("问题不能为空");
return;
}
if(contact.value.length==0){
plus.ui.toast("联系方式不能为空");
return;
}
mui.ajax('http://xiateam.com/xiaqi_edu/app.php/Home/Index/user_feedback',{
data:{
fd_info:question.value,
fd_userphone:phone,
fd_email:contact.value,
},
dataType:'json',
type:'POST',
timeout:10000,
success: function(res) {
var result = res['success'];
if(result == 1) {
mui.toast(res['info']);
mui.back();
}else{
mui.toast('反馈失败,稍后重试!');
}
},
error: function(xhr, type, errorThrown) {
//异常处理;
mui.toast('请求失败,请稍后重试!');
console.log(type);
}
})
})
})
</script>
</body>
</html>