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
e0b8281a
Commit
e0b8281a
authored
May 14, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
a25453c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
7 deletions
+48
-7
apps/mall/Tpl/default/Goods/index_w3g.html
+48
-7
No files found.
apps/mall/Tpl/default/Goods/index_w3g.html
View file @
e0b8281a
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<!-- <style>
<style>
.maskbox{position:fixed;left:0;top:100px;width:100%;height:100%;z-index:99;display:none}
.maskbox{position:fixed;left:0;top:100px;width:100%;height:100%;z-index:99;display:none}
.one-nav-layer{width:100%;overflow:hidden;background-color:#fff;padding-bottom:20px;overflow-y:auto;height:246px;position:relative}
.one-nav-layer{width:100%;overflow:hidden;background-color:#fff;padding-bottom:20px;overflow-y:auto;height:246px;position:relative}
.one-nav-layer ul{float:left;width:33%;line-height:40px}
.one-nav-layer ul{float:left;width:33%;line-height:40px}
...
@@ -15,8 +14,20 @@
...
@@ -15,8 +14,20 @@
.malllist .info .num{font-size:13px;line-height:13px}
.malllist .info .num{font-size:13px;line-height:13px}
.malllist .info .num:nth-child(2){font-size:12px}
.malllist .info .num:nth-child(2){font-size:12px}
</style>
</style>
<div
class=
"maskbox"
></div>
<div class="maskbox"></div> -->
<div
class=
"body"
>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<van-sticky>
<div
class=
"tabs_container"
>
<div
@
click=
"onTab(idx)"
v-for=
"(opt, idx) in options"
:key=
"idx"
:class=
"idx == tab ? 'tab_item_selected' : 'tab_item_normal'"
>
<span>
{{opt.title}}
</span>
</div>
</div>
</van-sticky>
</div>
</div>
<!-- <div class="maskbox"></div> -->
<!-- <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%">
...
@@ -84,12 +95,10 @@
...
@@ -84,12 +95,10 @@
<a href="{:U("mall/Goods/view",array('id'=>$vo['goods_id']))}">
<a href="{:U("mall/Goods/view",array('id'=>$vo['goods_id']))}">
<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>
<!--<p>{$vo.info|msubstr=0,10, 'utf-8',true}</p>-->
<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>
<!--<div class="places">剩余<span>{$vo.stock}</span>名额</div>-->
</a>
</a>
</li>
</li>
</volist>
</volist>
...
@@ -101,9 +110,40 @@
...
@@ -101,9 +110,40 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
-->
<script>
<script>
new
Vue
({
el
:
'#app'
,
data
:
function
()
{
return
{
tab
:
0
,
options
:
[{
title
:
'视频'
,
items
:
[
1
,
2
]
},{
title
:
'真题'
,
items
:
[
1
,
2
]
},{
title
:
'实物'
,
items
:
[
1
,
2
]
}]
}
},
created
:
function
(){
document
.
title
=
"商城"
},
computed
:
{
},
methods
:
{
onTab
:
function
(
idx
)
{
this
.
tab
=
idx
}
}
})
/*确定点击*/
/*确定点击*/
(
function
()
{
(
function
()
{
$
(
".bd"
).
on
(
"click"
,
".one-nav-layer ul li a"
,
function
()
{
$
(
".bd"
).
on
(
"click"
,
".one-nav-layer ul li a"
,
function
()
{
...
@@ -188,6 +228,7 @@
...
@@ -188,6 +228,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"
);
...
...
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