-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeedback.html
168 lines (138 loc) · 6.51 KB
/
Feedback.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>聚美医</title>
<link rel="stylesheet" href="http://at.alicdn.com/t/font_1453083508_4721825.css">
<link rel="stylesheet" href="css/framework7.ios.css">
<link rel="stylesheet" href="css/framework7.ios.colors.css">
<!-- Path to your custom app styles-->
<link rel="stylesheet" href="css/my-app.css">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" sizes="57x57" href="img/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="img/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="img/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="img/android-chrome-192x192.png" sizes="192x192">
<meta name="msapplication-square70x70logo" content="img/smalltile.png">
<meta name="msapplication-square150x150logo" content="img/mediumtile.png">
<meta name="msapplication-wide310x150logo" content="img/widetile.png">
<meta name="msapplication-square310x310logo" content="img/largetile.png">
<style>
textarea {
}
</style>
</head>
<body>
<div class="statusbar-overlay"></div>
<div class="views">
<div class="view view-main">
<div class="navbar">
<div class="navbar-inner">
<div class="left"><a class=" link"><i class="icon icon-back"></i></a></div>
<div class="center sliding">意见反馈</div><div class="right"><a href="#" class="link send-button">提交</a></div>
</div>
</div>
<div class="pages">
<div class="page">
<div class="page-content">
<textarea placeholder="在此输入您遇到的问题或对产品的建议等,您的反馈是我们产品进步的动力!
" style="
padding-left:3%;
padding-right:3%;
width:94%;
height: 300px;
font-size: 16px;
margin-top: 44px;
border:none;
" class=""></textarea>
</div>
</div>
</div>
</div>
</div>
<script src="Scripts/jquery-1.11.3.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/framework7.min.js"></script>
<!-- Path to your app js-->
<script type="text/javascript" src="js/my-app.js"></script>
<script src="Scripts/FrameJs/global.js"></script>
<script src="Scripts/FrameJs/frame.ajax.js"></script>
<script type="text/javascript">
$('.send-button').click(function () {
if ($("textarea").val() == '') {
myApp.alert("不能发送空内容", "提示");
return;
}
$.Frame.Ajax.Ajax({
url: $.Frame.Config.Constant.ServerUrl + "doctor.sendsuggestion.go",
postdata: {
content: $("textarea").val(),
doctorsno: GetQueryString("doctorsno")
},
success: function (rtn) {
if (rtn.issuccess) {
myApp.hideIndicator();
$("textarea").val('');
$("#keleyi_com").val('');
myApp.alert('提交成功,感谢您的反馈!我们将尽快处理您的反馈,感谢您的支持!', '提示!', function () {
location.href = "more.html?drsno=" + localStorage.getItem('doctorSno');
});
} else {
myApp.alert(rtn.msg, "错误");
}
}, before: function () {
myApp.showIndicator();
}
})
})
$(".left").click(function () {
if ($("textarea").val() == '') {
history.go(-1);
} else {
myApp.confirm("", "是否要保存内容?", function () { deleterequst() }, function () { showalert() });
}
});
function deleterequst() {
savercontent();
}
function showalert() {
history.go(-1);
}
function savercontent() {
$.Frame.Ajax.Ajax({
url: $.Frame.Config.Constant.ServerUrl + "doctor.sendsuggestion.go",
postdata: {
content: $("textarea").val(),
doctorsno: GetQueryString("doctorsno")
},
success: function (rtn) {
if (rtn.issuccess) {
myApp.hideIndicator();
$("textarea").val('');
$("#keleyi_com").val('');
myApp.alert('提交成功,感谢您的反馈!我们将尽快处理您的反馈,感谢您的支持!', '提示!', function () {
location.href = "more.html";
});
} else {
myApp.alert(rtn.msg, "错误");
}
}, before: function () {
myApp.showIndicator();
}
})
}
</script>
</body>
</html>