Commit b24afdf5 by 陈超

T

parent c5bc87f0
......@@ -180,7 +180,6 @@
<div @click="onHotKeyword('{$vo.video_title|mStr=10}')" class="search_flex_item layout_center">
<span class="text_14_400 color_999999">{$vo.video_title|mStr=10}</span>
</div>
<!-- <li><a <eq name="vo.type" value="1">href="{:U('course/Video/view',array('id'=>$vo['id']))}"<else/>href="{:U('live/Index/view',array('id'=>$vo['id']))}"</eq>>{$vo.video_title|mStr=10}</a></li> -->
</volist>
</div>
</div>
......
......@@ -34,6 +34,7 @@
</div>
<script>
let uid = '{$uid}'
new Vue({
el: "#app",
......@@ -51,9 +52,33 @@
methods: {
onBuy: function() {
if(uid<=0) {
ui.confirm('请先登录', {
yes: function () {
window.location.href = "{:U('basic/Passport/login')}"
}
})
} else {
$.ajax({
type: "POST",
url: "{:U('mall/Goods/getPayUrl')}",
data:{
count:count,
goods_id: this.info.uid,
},
dataType:"json",
success:function(res){
var res = getResponseData(res);
if(res.status == 1){
window.location.href = res.data;
}else{
ui.error(res.message);
}
}
})
}
},
}
})
</script>
<include file="__THEME__/public_footer_w3g"/>
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