Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d2018dc7
authored
May 24, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
h5zyly
parent
e804b2d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
15 deletions
src/App.vue
src/views/common/GoodsOne.vue
src/views/common/lyDetail.vue
src/views/common/zyDetail.vue
src/views/lxshop/lxshop.vue
src/views/xianhuo/xianhuo.vue
src/App.vue
View file @
d2018dc7
<
template
>
<
template
>
<div
id=
"app"
>
<div
id=
"app"
>
<keep-alive
exclude=
"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge"
>
<keep-alive
exclude=
"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge
,xianhuo
"
>
<router-view
class=
"router-view"
></router-view>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</keep-alive>
</div>
</div>
...
...
src/views/common/GoodsOne.vue
View file @
d2018dc7
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</a>
</a>
</dl>
</dl>
<div
class=
"mui-row block-but"
>
<div
class=
"mui-row block-but"
>
<div
class=
"morePrice"
>
<div
class=
"morePrice"
:id=
"'morePrice'+itemchild.goods_id"
>
<
template
v-if=
"isZy"
>
<
template
v-if=
"isZy"
>
<div
<div
class=
"mui-row list_data"
class=
"mui-row list_data"
...
@@ -56,7 +56,10 @@
...
@@ -56,7 +56,10 @@
<p
class=
"mui-col-sm-6 mui-col-xs-6"
v-html=
"itemPrice.purchases+'+'"
></p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
v-html=
"itemPrice.purchases+'+'"
></p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
¥
{{
itemPrice
.
price_cn
}}
</p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
¥
{{
itemPrice
.
price_cn
}}
</p>
</div>
</div>
<div
class=
"mui-row list_data f-fff"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length==0"
>
<div
class=
"mui-row list_data f-fff"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length==0"
>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
- -
</p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
- -
</p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
- -
</p>
<p
class=
"mui-col-sm-6 mui-col-xs-6"
>
- -
</p>
</div>
</div>
...
@@ -71,7 +74,10 @@
...
@@ -71,7 +74,10 @@
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
¥
{{
itemPrice
.
price_cn
}}
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
¥
{{
itemPrice
.
price_cn
}}
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
$
{{
itemPrice
.
price_us
}}
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
$
{{
itemPrice
.
price_us
}}
</p>
</div>
</div>
<div
class=
"mui-row list_data f-fff"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length==0"
>
<div
class=
"mui-row list_data f-fff"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length==0"
>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
<p
class=
"mui-col-sm-4 mui-col-xs-4"
>
- -
</p>
...
@@ -80,7 +86,7 @@
...
@@ -80,7 +86,7 @@
<div
<div
class=
"more-height"
class=
"more-height"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length>limitLength"
v-if=
"itemchild.ladder_price&&itemchild.ladder_price.length>limitLength"
@
click=
"priceRow(indexdata)"
@
click=
"priceRow(indexdata
,itemchild.goods_id
)"
v-html=
"itemchild.checkBtn||defaultBtn"
v-html=
"itemchild.checkBtn||defaultBtn"
>
>
更多梯度价格
更多梯度价格
...
@@ -90,15 +96,13 @@
...
@@ -90,15 +96,13 @@
<div
class=
"but-shop"
>
<div
class=
"but-shop"
>
<
template
v-if=
"isZy"
>
<
template
v-if=
"isZy"
>
<a
class=
"but"
v-if=
"itemchild.is_buy==1"
@
click=
"placeOrder(itemchild.goods_id)"
>
我要下单
</a>
<a
class=
"but"
v-if=
"itemchild.is_buy==1"
@
click=
"placeOrder(itemchild.goods_id)"
>
我要下单
</a>
<a
class=
"but but-orange"
v-else
@
click=
"xunjia"
>
立即询价
</a>
<a
class=
"but but-orange"
v-else
@
click=
"xunjia"
>
立即询价
</a>
</
template
>
</
template
>
<
template
v-else=
"isZy"
>
<
template
v-else=
"isZy"
>
<a
class=
"but"
v-if=
"itemchild.is_buy==1"
@
click=
"placeOrder(itemchild.goods_id)"
>
我要下单
</a>
<a
class=
"but"
v-if=
"itemchild.is_buy==1"
@
click=
"placeOrder(itemchild.goods_id)"
>
我要下单
</a>
<a
class=
"but but-orange"
v-else-if=
"itemchild.is_buy==0"
@
click=
"xunjia"
>
立即询价
</a>
<a
class=
"but but-orange"
v-else-if=
"itemchild.is_buy==0"
@
click=
"xunjia"
>
立即询价
</a>
<a
class=
"but but-orange"
v-else-if=
"itemchild.is_buy==3"
@
click=
"xunjia"
>
确认库存信息
</a>
<a
class=
"but but-orange"
v-else-if=
"itemchild.is_buy==3"
@
click=
"xunjia"
>
确认库存信息
</a>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -107,7 +111,7 @@
...
@@ -107,7 +111,7 @@
<
script
>
<
script
>
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
{
Lazyload
}
from
"vant"
;
import
{
Lazyload
}
from
"vant"
;
import
bus
from
'../../util/bus.js'
import
bus
from
"../../util/bus.js"
;
Vue
.
use
(
Lazyload
);
Vue
.
use
(
Lazyload
);
export
default
{
export
default
{
name
:
"GoodsOne"
,
name
:
"GoodsOne"
,
...
@@ -132,7 +136,9 @@ export default {
...
@@ -132,7 +136,9 @@ export default {
watch
:
{},
watch
:
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
priceRow
:
function
(
index
)
{
priceRow
:
function
(
index
,
id
)
{
let
dom
=
document
.
getElementById
(
"morePrice"
+
id
);
let
arrLength
=
this
.
dataList
[
index
].
ladder_price
.
length
;
if
(
this
.
dataList
[
index
][
"check"
])
{
if
(
this
.
dataList
[
index
][
"check"
])
{
this
.
$set
(
this
.
dataList
[
index
],
"check"
,
false
);
this
.
$set
(
this
.
dataList
[
index
],
"check"
,
false
);
this
.
$set
(
this
.
$set
(
...
@@ -140,6 +146,7 @@ export default {
...
@@ -140,6 +146,7 @@ export default {
"checkBtn"
,
"checkBtn"
,
'更多梯度价格
<
i
class
=
"icon-bot"
><
/i>
'
'更多梯度价格
<
i
class
=
"icon-bot"
><
/i>
'
);
);
dom
.
style
.
height
=
"81px"
;
}
else
{
}
else
{
this
.
$set
(
this
.
dataList
[
index
],
"check"
,
true
);
this
.
$set
(
this
.
dataList
[
index
],
"check"
,
true
);
this
.
$set
(
this
.
$set
(
...
@@ -147,13 +154,14 @@ export default {
...
@@ -147,13 +154,14 @@ export default {
"checkBtn"
,
"checkBtn"
,
'收起梯度价格
<
i
class
=
"icon-top"
><
/i>
'
'收起梯度价格
<
i
class
=
"icon-top"
><
/i>
'
);
);
dom
.
style
.
height
=
"200px"
;
}
}
},
},
placeOrder
(
id
)
{
placeOrder
(
id
)
{
this
.
$emit
(
"placeOrder"
,
id
);
this
.
$emit
(
"placeOrder"
,
id
);
},
},
xunjia
(){
xunjia
()
{
bus
.
$emit
(
'xunjia'
)
bus
.
$emit
(
"xunjia"
);
}
}
},
},
components
:
{}
components
:
{}
...
@@ -259,6 +267,8 @@ export default {
...
@@ -259,6 +267,8 @@ export default {
color
:
#666
;
color
:
#666
;
font-size
:
12px
;
font-size
:
12px
;
width
:
100%
;
width
:
100%
;
height
:
81px
;
transition
:
all
2s
ease-in
;
.list_data
{
.list_data
{
height
:
19px
;
height
:
19px
;
&.dataNo
{
&.dataNo
{
...
@@ -297,7 +307,7 @@ export default {
...
@@ -297,7 +307,7 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
4px
;
border-radius
:
4px
;
&.but-orange{
&.but-orange
{
background
:
#ffa200
;
background
:
#ffa200
;
}
}
}
}
...
...
src/views/common/lyDetail.vue
View file @
d2018dc7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"details-head"
>
<div
class=
"details-head"
>
<div
class=
"head_top clr"
>
<div
class=
"head_top clr"
>
<div
class=
"head_top_left fl"
>
<div
class=
"head_top_left fl"
>
<img
:src=
"goodDetail.brand_logo"
@
error=
"imgErr"
>
<img
:src=
"goodDetail.brand_logo"
@
error=
"imgErr"
@
click=
"showImagePreview"
>
</div>
</div>
<div
class=
"head_top_right"
>
<div
class=
"head_top_right"
>
<h4>
<h4>
...
@@ -183,6 +183,9 @@
...
@@ -183,6 +183,9 @@
</template>
</template>
<
script
>
<
script
>
import
util
from
"../../util/index"
;
import
util
from
"../../util/index"
;
import
Vue
from
'vue'
import
{
ImagePreview
}
from
'vant'
;
Vue
.
use
(
ImagePreview
);
export
default
{
export
default
{
props
:
{
props
:
{
goodDetail
:
{
goodDetail
:
{
...
@@ -282,6 +285,19 @@ export default {
...
@@ -282,6 +285,19 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
showImagePreview
(
position
,
timer
)
{
let
images
=
[
this
.
goodDetail
.
brand_logo
];
const
instance
=
ImagePreview
({
images
,
asyncClose
:
!!
timer
,
showIndex
:
false
});
if
(
timer
)
{
setTimeout
(()
=>
{
instance
.
close
();
},
timer
);
}
},
imgErr
()
{
imgErr
()
{
this
.
goodDetail
.
brand_logo
=
this
.
goodDetail
.
brand_logo
=
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
;
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
;
...
...
src/views/common/zyDetail.vue
View file @
d2018dc7
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"details-head"
>
<div
class=
"details-head"
>
<div
class=
"head_top clr"
>
<div
class=
"head_top clr"
>
<div
class=
"head_top_left fl"
>
<div
class=
"head_top_left fl"
>
<img
:src=
"goodDetail.brand_logo"
@
onerror=
"imgErr"
>
<img
:src=
"goodDetail.brand_logo"
@
onerror=
"imgErr"
@
click=
"showImagePreview"
>
</div>
</div>
<div
class=
"head_top_right"
>
<div
class=
"head_top_right"
>
<h4>
<h4>
...
@@ -199,6 +199,10 @@
...
@@ -199,6 +199,10 @@
</template>
</template>
<
script
>
<
script
>
import
util
from
"../../util/index"
;
import
util
from
"../../util/index"
;
import
Vue
from
'vue'
import
{
ImagePreview
}
from
'vant'
;
Vue
.
use
(
ImagePreview
);
export
default
{
export
default
{
props
:
{
props
:
{
goodDetail
:
{
goodDetail
:
{
...
@@ -210,6 +214,7 @@ export default {
...
@@ -210,6 +214,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
images
:[],
isShowMore
:
false
,
isShowMore
:
false
,
ypNum
:
0
,
//组
ypNum
:
0
,
//组
singlePrice
:
0
,
//单价
singlePrice
:
0
,
//单价
...
@@ -301,6 +306,19 @@ export default {
...
@@ -301,6 +306,19 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
showImagePreview
(
position
,
timer
)
{
let
images
=
[
this
.
goodDetail
.
brand_logo
]
const
instance
=
ImagePreview
({
images
,
asyncClose
:
!!
timer
,
showIndex
:
false
});
if
(
timer
)
{
setTimeout
(()
=>
{
instance
.
close
();
},
timer
);
}
},
imgErr
()
{
imgErr
()
{
this
.
goodDetail
.
brand_logo
=
this
.
goodDetail
.
brand_logo
=
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
;
"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"
;
...
...
src/views/lxshop/lxshop.vue
View file @
d2018dc7
This diff is collapsed.
Click to expand it.
src/views/xianhuo/xianhuo.vue
View file @
d2018dc7
...
@@ -243,6 +243,7 @@ export default {
...
@@ -243,6 +243,7 @@ export default {
},
},
created
()
{
created
()
{
this
.
getDefaultClass
();
this
.
getDefaultClass
();
this
.
$store
.
commit
(
"closeAlert"
);
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
...
...
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