Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
9abf8342
Commit
9abf8342
authored
Jun 15, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
b9a342a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
apps/mall/Tpl/default/Goods/index_w3g.html
+13
-14
No files found.
apps/mall/Tpl/default/Goods/index_w3g.html
View file @
9abf8342
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
:finished=
"finished"
:finished=
"finished"
finished-text=
"没有更多了"
finished-text=
"没有更多了"
@
load=
"onLoad"
>
@
load=
"onLoad"
>
<template
v-if=
"tab == 0"
>
<template
v-if=
"tab == 0"
>
<div
@
click=
"onItem(item)"
v-for=
"(item, idx) in options[0].items"
:key=
"idx"
class=
"home_class_item layout_v"
>
<div
@
click=
"onItem(item)"
v-for=
"(item, idx) in options[0].items"
:key=
"idx"
class=
"home_class_item layout_v"
>
<div
class=
"layout_h"
>
<div
class=
"layout_h"
>
...
@@ -53,10 +53,10 @@
...
@@ -53,10 +53,10 @@
</div>
</div>
</div>
</div>
</template>
</template>
<template
v-if=
"tab == 1"
>
<template
v-if=
"tab == 1"
>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"layout_v home_question_item"
>
<div
v-for=
"(item, idx) in options[1].items"
:key=
"idx"
class=
"layout_v home_question_item"
>
<div
v-if=
"item.price == 0"
class=
"layout_h"
>
<div
v-if=
"item.price == 0
|| item.is_buy
"
class=
"layout_h"
>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<div
class=
"home_item_mark_green layout_center"
>
免费
</div>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<span
class=
"text_14_600 color_333333 weight_full van-multi-ellipsis--l2"
style=
"margin-right: 1.5rem;margin-left: 0.625rem;"
>
{{item.title}}
</span>
<div
@
click=
"onItem(item)"
class=
"home_button_green layout_center"
>
开始做题
</div>
<div
@
click=
"onItem(item)"
class=
"home_button_green layout_center"
>
开始做题
</div>
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<div
class=
"home_divider divider"
></div>
<div
class=
"home_divider divider"
></div>
</div>
</div>
</template>
</template>
<template
v-if=
"tab == 2"
>
<template
v-if=
"tab == 2"
>
<div
@
click=
"onItem(item)"
v-for=
"(item, idx) in options[2].items"
:key=
"idx"
class=
"home_item_goods layout_h"
>
<div
@
click=
"onItem(item)"
v-for=
"(item, idx) in options[2].items"
:key=
"idx"
class=
"home_item_goods layout_h"
>
<van-image
<van-image
...
@@ -92,14 +92,14 @@
...
@@ -92,14 +92,14 @@
</div>
</div>
</div>
</div>
</template>
</template>
</van-list>
</van-list>
</div>
</div>
</div>
</div>
<!-- <div class="maskbox"></div> -->
<!-- <div class="maskbox"></div> -->
<!-- <div class="body">
<!-- <div class="body">
<ul class="selectul">
<ul class="selectul">
<li class="r02 border_sx" name="list_dl" style="width: 50%">
<li class="r02 border_sx" name="list_dl" style="width: 50%">
<div class="hd"><php>if($cateId){</php>{$title}<php>}else{</php>全部<php>}</php><i></i></div>
<div class="hd"><php>if($cateId){</php>{$title}<php>}else{</php>全部<php>}</php><i></i></div>
<div class="bd">
<div class="bd">
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
<img src="{:getCover($vo['cover_ids'],360,360)}" class="lazyloading" alt="{$vo.title}" />
<img src="{:getCover($vo['cover_ids'],360,360)}" class="lazyloading" alt="{$vo.title}" />
<h3>{$vo.title}</h3>
<h3>{$vo.title}</h3>
<div class="info">
<div class="info">
<div class="num"><span><if condition="in_array('credpay',$payConfig['pay'])">{$vo.price}积分<else/>¥{$vo['price']/$sple_score}</if></span></div>
<div class="num"><span><if condition="in_array('credpay',$payConfig['pay'])">{$vo.price}积分<else/>¥{$vo['price']/$sple_score}</if></span></div>
<div class="num" style="float:right;">库存:{$vo.stock}</div>
<div class="num" style="float:right;">库存:{$vo.stock}</div>
</div>
</div>
</a>
</a>
...
@@ -183,7 +183,7 @@
...
@@ -183,7 +183,7 @@
</div> -->
</div> -->
<script>
<script>
new
Vue
({
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
data
:
function
()
{
data
:
function
()
{
...
@@ -213,7 +213,7 @@
...
@@ -213,7 +213,7 @@
document
.
title
=
"商城"
document
.
title
=
"商城"
},
},
computed
:
{
computed
:
{
},
},
methods
:
{
methods
:
{
onItem
:
function
(
item
)
{
onItem
:
function
(
item
)
{
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
let
url
=
"{:U('course/Video/view')}"
let
url
=
"{:U('course/Video/view')}"
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
window
.
location
.
href
=
url
.
replace
(
/
\[
.*
?\]
/g
,
item
.
id
)
}
else
{
}
else
{
}
}
},
},
onTab
:
function
(
idx
)
{
onTab
:
function
(
idx
)
{
...
@@ -315,7 +315,7 @@
...
@@ -315,7 +315,7 @@
},
},
}
}
})
})
/*确定点击*/
/*确定点击*/
// $(function () {
// $(function () {
// $(".bd").on("click",".one-nav-layer ul li a",function () {
// $(".bd").on("click",".one-nav-layer ul li a",function () {
...
@@ -400,7 +400,7 @@
...
@@ -400,7 +400,7 @@
}
}
window
.
location
.
href
=
getRequestUrl
(
type
,
value
,
baseUrl
);
window
.
location
.
href
=
getRequestUrl
(
type
,
value
,
baseUrl
);
});
});
function
getRequestUrl
(
field
,
value
,
baseUrl
){
function
getRequestUrl
(
field
,
value
,
baseUrl
){
//匹配是否有该参数
//匹配是否有该参数
var
reg
=
new
RegExp
(
"(^|&)"
+
field
+
"=([^&]*)(&|$)"
,
"i"
);
var
reg
=
new
RegExp
(
"(^|&)"
+
field
+
"=([^&]*)(&|$)"
,
"i"
);
...
@@ -472,4 +472,4 @@
...
@@ -472,4 +472,4 @@
});
});
</script>
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
<include
file=
"__THEME__/public_footer_w3g"
/>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment