Commit 5d4f1a14 by 陈超

A

parent d43755bf
...@@ -319,7 +319,22 @@ ...@@ -319,7 +319,22 @@
let url = "{:U('exams/index/examsroom')}" + "&paper_id=" + item.id + "&joinType=1" let url = "{:U('exams/index/examsroom')}" + "&paper_id=" + item.id + "&joinType=1"
window.location.href = url window.location.href = url
} else { } else {
$.ajax({
type: "POST",
url: "{:U('exams/index/getPayUrl')}",
data:{
paper_id: item.id,
},
dataType:"json",
success:function(res){
var res = getResponseData(res)
if(res.status == 1){
window.location.href = res.data
}else{
ui.error(res.message)
}
}
})
} }
}, },
//点击实物 //点击实物
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<span class="text_14_600 color_333333" style="margin-right: 0.5rem;">合计</span> <span class="text_14_600 color_333333" style="margin-right: 0.5rem;">合计</span>
<span class="text_14_600 color_FF3B3B">¥{$price}</span> <span class="text_14_600 color_FF3B3B">¥{$price}</span>
<div class="weight_full layout_h_r"> <div class="weight_full layout_h_r">
<div @click="onBuy({$id}, 'video')" class="vip_buy_pay_button layout_center"><span class="text_14_400 color_white">确认支付</span></div> <div @click="onBuy({$id}, 'exam')" class="vip_buy_pay_button layout_center"><span class="text_14_400 color_white">确认支付</span></div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -363,6 +363,10 @@ ...@@ -363,6 +363,10 @@
} }
} }
}) })
},
//加载我收藏的题
loadMyTi: function() {
} }
} }
}) })
......
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