Commit be0fb6f4 by zujiaozhang

'添加结束咨询弹框'

parent 019fba6c
......@@ -342,7 +342,7 @@ body {
color:#1D8AEF
}
.footer_tip{
display: none;
/* display: none; */
position: fixed;
bottom: 1.1rem;
width:100%;
......@@ -362,4 +362,7 @@ body {
float:right;
color:#1D8AEF;
margin-right:0.3rem
}
input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea{
margin: 0;
}
\ No newline at end of file
define(['zepto', 'medtap'], function($, medtap) {
define(['zepto', 'medtap','mui'], function($, medtap,mui) {
var main = {
orderSn: medtap.getRequest('orderSn'),
userId: '',
......@@ -74,10 +74,16 @@ define(['zepto', 'medtap'], function($, medtap) {
main.rejectOrder();
});
$('.close_consult').unbind().bind('click', function() {
$('.footer_tip').hide()
main.finishOrder()
mui.confirm('确认已给出明确建议,结束本次咨询?','结束提醒',['取消','结束'],function(e){
if(e.index=='1'){
$('.footer_tip').hide()
main.finishOrder()
// console.log('确认了')
}else if(e.index=='0'){
// console.log('取消了')
}
})
});
},
getOrderDetail: function() {
$.ajax({
......@@ -397,6 +403,7 @@ define(['zepto', 'medtap'], function($, medtap) {
},
// 完成订单
finishOrder:function(){
medtap.jzz(1);
$.ajax({
url: 'https://testdevgw.medtap.cn/trade/order/completeOrder',
type: 'post',
......@@ -407,6 +414,7 @@ define(['zepto', 'medtap'], function($, medtap) {
orderSn: main.orderSn
}),
success: function(res) {
medtap.jzz(0);
}
})
}
......
......@@ -9,6 +9,7 @@
<meta content="telephone=no" name="format-detection">
<meta content="email=no" name="format-detection">
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/wechat_Reset.min.css" />
<link rel="stylesheet" type="text/css" href="https://review-formal.iplusmed.com/Common/css/mui.min.css"/>
<link rel="stylesheet" type="text/css" href="css/rukou.css"/>
<script src="https://review-formal.iplusmed.com/Common/javaScript/calRem.js" type="text/javascript" charset="utf-8"></script>
<title>图文咨询</title>
......@@ -19,7 +20,8 @@
paths: {
"zepto": "https://review-formal.iplusmed.com/Common/javaScript/zepto.min",
"medtap": "https://review-formal.iplusmed.com/Common/javaScript/medtap-core-1.0.3Dev",
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min"
"md5": "https://review-formal.iplusmed.com/Common/javaScript/md5.min",
"mui": "https://review-formal.iplusmed.com/Common/javaScript/mui.min",
},
shim: {
"zepto": {
......
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