Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
panyongping
uni-pdtravel
Commits
4cdda49e
Commit
4cdda49e
authored
Sep 04, 2023
by
潘永坪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式修改
parent
155f1cce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
7 deletions
+39
-7
index.vue
pages/indexs/index/index.vue
+1
-2
merchantListIndex.vue
pages/indexs/merchantListIndex/merchantListIndex.vue
+1
-1
combinationProduct.vue
pages/scenic/combinationProduct/combinationProduct.vue
+37
-4
No files found.
pages/indexs/index/index.vue
View file @
4cdda49e
...
@@ -62,8 +62,7 @@
...
@@ -62,8 +62,7 @@
</view>
</view>
<view
class=
"banner"
>
<view
class=
"banner"
>
<u-swiper
:list=
"list"
mode=
"number"
height=
"300"
indicator-pos=
"bottomRight"
@
click=
"swiperClick"
>
<u-swiper
:list=
"list"
mode=
"number"
height=
"300"
indicator-pos=
"bottomRight"
@
click=
"swiperClick"
>
</u-swiper>
</u-swiper>
</view>
</view>
</view>
</view>
...
...
pages/indexs/merchantListIndex/merchantListIndex.vue
View file @
4cdda49e
...
@@ -271,7 +271,7 @@ export default {
...
@@ -271,7 +271,7 @@ export default {
}
}
})
})
},
},
//---点击
购买须知
//---点击
详情
clikDetail
(
merchantId
){
clikDetail
(
merchantId
){
this
.
$refs
.
merchantDetail
.
showPop
=
true
this
.
$refs
.
merchantDetail
.
showPop
=
true
this
.
initDetail
(
merchantId
)
this
.
initDetail
(
merchantId
)
...
...
pages/scenic/combinationProduct/combinationProduct.vue
View file @
4cdda49e
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<swiper-item
class=
"swiper-item"
>
<swiper-item
class=
"swiper-item"
>
<checkbox-group
@
change=
"checkboxChange"
class=
"checkbox-box"
>
<checkbox-group
@
change=
"checkboxChange"
class=
"checkbox-box"
>
<view
class=
"merchant"
v-for=
"(item, index) in scenicList"
:key=
"index"
>
<view
class=
"merchant"
v-for=
"(item, index) in scenicList"
:key=
"index"
>
<view
class=
"merchant-title"
>
<view
class=
"merchant-title"
@
click=
"clikDetail(item.id)"
>
<view
class=
"title-left"
>
<view
class=
"title-left"
>
<text>
{{
item
.
name
}}
</text>
<text>
{{
item
.
name
}}
</text>
<template
v-if=
"item.couponVoList && item.couponVoList.length > 0"
>
<template
v-if=
"item.couponVoList && item.couponVoList.length > 0"
>
...
@@ -23,7 +23,10 @@
...
@@ -23,7 +23,10 @@
</
template
>
</
template
>
</view>
</view>
<view
v-if=
"showDistance"
class=
"title-right"
>
距您{{ item.distance ? parseFloat((item.distance / 1000).toFixed(2)) : 0 }}km
</view>
<view
v-if=
"showDistance"
class=
"title-right"
>
距您{{ item.distance ? parseFloat((item.distance / 1000).toFixed(2)) : 0 }}km
<u-icon
name=
"arrow-right"
style=
"margin-left: 4rpx;"
></u-icon>
</view>
</view>
</view>
<label
v-for=
"(items, a) in item.productListCopy"
:key=
"a"
:class=
"{ off: items.status == 2 }"
>
<label
v-for=
"(items, a) in item.productListCopy"
:key=
"a"
:class=
"{ off: items.status == 2 }"
>
...
@@ -159,8 +162,10 @@
...
@@ -159,8 +162,10 @@
<customer
:scenicList=
"scenicList"
ref=
"customer"
></customer>
<customer
:scenicList=
"scenicList"
ref=
"customer"
></customer>
<!-- 购买须知 -->
<!-- 购买须知 -->
<buyKnow
:buyKnowData=
"buyKnowData"
ref=
"buyKnow"
></buyKnow>
<buyKnow
:buyKnowData=
"buyKnowData"
ref=
"buyKnow"
></buyKnow>
<!--
详情
明细 -->
<!--
产品
明细 -->
<detail
:chooseProduct=
"chooseProduct"
ref=
"detail"
></detail>
<detail
:chooseProduct=
"chooseProduct"
ref=
"detail"
></detail>
<!-- 商户详情 -->
<merchantDetail
:detailData=
'detailData'
ref=
'merchantDetail'
></merchantDetail>
<!-- 模态框 -->
<!-- 模态框 -->
<u-modal
v-model=
"showModal"
@
confirm=
"chooseConfirm"
@
cancel=
"chooseCancel"
title=
"提示"
content=
"该产品不支持多选"
show-cancel-button=
"true"
>
<u-modal
v-model=
"showModal"
@
confirm=
"chooseConfirm"
@
cancel=
"chooseCancel"
title=
"提示"
content=
"该产品不支持多选"
show-cancel-button=
"true"
>
</u-modal>
</u-modal>
...
@@ -173,15 +178,18 @@ import customer from '@/components/customer.vue' //客服
...
@@ -173,15 +178,18 @@ import customer from '@/components/customer.vue' //客服
import
buyKnow
from
'@/components/buyKnow.vue'
//购买须知
import
buyKnow
from
'@/components/buyKnow.vue'
//购买须知
import
detail
from
'./components/detail.vue'
//购买须知
import
detail
from
'./components/detail.vue'
//购买须知
import
UWaterfall
from
'@/uview-ui/components/u-waterfall/u-waterfall.vue'
import
UWaterfall
from
'@/uview-ui/components/u-waterfall/u-waterfall.vue'
import
merchantDetail
from
'@/components/merchantDetail'
//详情弹窗
export
default
{
export
default
{
components
:
{
components
:
{
customer
,
customer
,
buyKnow
,
buyKnow
,
detail
,
detail
,
UWaterfall
UWaterfall
,
merchantDetail
},
},
data
()
{
data
()
{
return
{
return
{
detailData
:
''
,
//详情数据
companyId
:
''
,
//公司Id
companyId
:
''
,
//公司Id
merchantId
:
''
,
//商户Id
merchantId
:
''
,
//商户Id
// tabbar:['热门景点','一日游','摄影/旅拍','文创DIY'],//tabbar标题列表
// tabbar:['热门景点','一日游','摄影/旅拍','文创DIY'],//tabbar标题列表
...
@@ -345,6 +353,31 @@ export default {
...
@@ -345,6 +353,31 @@ export default {
this
.
buyKnowData
=
data
this
.
buyKnowData
=
data
this
.
$refs
.
buyKnow
.
showPop
=
true
this
.
$refs
.
buyKnow
.
showPop
=
true
},
},
//---点击详情
clikDetail
(
merchantId
){
this
.
$refs
.
merchantDetail
.
showPop
=
true
this
.
initDetail
(
merchantId
)
},
//---初始化详情
initDetail
(
merchantId
){
let
data
=
{
userId
:
uni
.
getStorageSync
(
'userId'
)
||
''
,
openid
:
uni
.
getStorageSync
(
'openid'
)
||
''
,
id
:
merchantId
,
//商户id
isDetail
:
1
,
//商户详情
}
this
.
detailData
=
''
this
.
$request
(
'scenic/user/merchant/findDetailInfo'
,
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
'00'
){
this
.
detailData
=
res
.
data
}
else
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
'none'
})
}
})
},
//---展示明细弹窗
//---展示明细弹窗
showDetail
()
{
showDetail
()
{
this
.
$refs
.
detail
.
showPop
=
true
this
.
$refs
.
detail
.
showPop
=
true
...
...
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