Commit bbf743f9 by 陈超

A

parent c8528a1c
......@@ -51,11 +51,7 @@
<div class="layout_v">
<volist name="bestVideo" id="vo" offset="0" length='4'>
<switch name="vo.type">
<case value="1"><a href="{:U('course/Video/view',array('id'=>$vo['id']))}"></case>
<case value="2"><a href="{:U('live/Index/view',array('id'=>$vo['id']))}"></case>
<case value="6"><a href="{:U('course/Classes/view',array('id'=>$vo['id']))}"></case>
</switch>
<a href="{:U('course/Video/view',array('id'=>$vo['id']))}">
<div class="home_class_item layout_v">
<div class="layout_h">
<van-image style="margin-right: 0.75rem;" height="72" width="128" fit="cover" src="{:getCover($vo['cover'] ,580 , 320 )}">
......@@ -103,8 +99,12 @@
</if>
</div>
<div class="layout_h_b" style="margin-top: 0.5rem;">
<span class="text_14_600 color_FF3B3B"><if condition="$vo['price'] eq 0">免费<else />¥{$vo['price']}</if></span>
<van-image src="__THEME__/img/down_load_icon.png" width="13" height="16" ></van-icon>
<span class="text_14_600 color_FF3B3B">
<if condition="$vo['price'] eq 0">免费
<else />¥{$vo['price']}</if>
</span>
<van-image src="__THEME__/img/down_load_icon.png" width="13" height="16">
</van-icon>
</div>
<div class="home_divider divider"></div>
</div>
......@@ -115,14 +115,8 @@
</volist>
</div>
<div>
<van-tabbar
v-model="active"
@change="onChange"
:fixed="true"
:route="false"
:safe-area-inset-bottom="true"
active-color="#65C000"
inactive-color="#363636">
<van-tabbar v-model="active" @change="onChange" :fixed="true" :route="false" :safe-area-inset-bottom="true"
active-color="#65C000" inactive-color="#363636">
<van-tabbar-item>
<span class="text_10_400">名师课堂</span>
<template #icon="props">
......@@ -152,7 +146,7 @@
<template #icon="props">
<if condition="$_SESSION['mid']">
<a href="{:U('home/User/index')}">
<else/>
<else />
<a href="{:U('basic/Passport/login')}">
</if>
<img :src="props.active ? '__THEME__/img/huiyuan.png' : '__THEME__/img/huiyuan_s.png'" />
......@@ -171,8 +165,9 @@
active: 0
}
},
created:function(){
let j = {:json_encode($exams)};
created: function() {
let j = {: json_encode($exams)
};
console.log(j)
},
methods: {
......@@ -181,9 +176,9 @@
},
onPay: function(id) {
console.log("Id = " + id)
if(MID<=0) {
if (MID <= 0) {
ui.confirm('请先登录', {
yes: function () {
yes: function() {
window.location.href = "{:U('basic/Passport/login')}";
}
})
......@@ -192,24 +187,24 @@
$.ajax({
type: "POST",
url: "{:U('exams/index/getPayUrl')}",
data:{
data: {
paper_id: id,
},
dataType:"json",
success:function(res){
dataType: "json",
success: function(res) {
var res = getResponseData(res)
if(res.status == 1){
if (res.status == 1) {
window.location.href = res.data
}else{
} else {
ui.error(res.message)
}
}
})
},
onStart: function(id) {
if(MID<=0) {
if (MID <= 0) {
ui.confirm('请先登录', {
yes: function () {
yes: function() {
window.location.href = "{:U('basic/Passport/login')}";
}
})
......
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