Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
c271370a
Commit
c271370a
authored
Aug 16, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
5bc6c67f
c93bc1bf
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
259 additions
and
98 deletions
+259
-98
DepartureDate.vue
src/Components/assistingAgriculture/index/DepartureDate.vue
+7
-9
Sort.vue
src/Components/assistingAgriculture/index/Sort.vue
+5
-5
index.js
src/directive/index.js
+13
-0
waterfall.js
src/directive/waterfall.js
+10
-0
main.ts
src/main.ts
+2
-0
pages.json
src/pages.json
+2
-1
RouteDetails.vue
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
+69
-2
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+19
-6
card.vue
src/pages/assistingAgriculture/album/card.vue
+12
-6
index.vue
src/pages/assistingAgriculture/album/index.vue
+5
-2
cart.vue
src/pages/assistingAgriculture/cart/cart.vue
+1
-1
detail.vue
src/pages/assistingAgriculture/detail/detail.vue
+49
-14
index.vue
src/pages/assistingAgriculture/index/index.vue
+1
-1
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+22
-40
order.vue
src/pages/order/order.vue
+1
-2
detail.vue
src/pages/storeEntry/detail.vue
+23
-7
index.vue
src/pages/storeEntry/index.vue
+16
-1
ticket.vue
src/pages/ticket/ticket.vue
+2
-1
No files found.
src/Components/assistingAgriculture/index/DepartureDate.vue
View file @
c271370a
...
...
@@ -11,7 +11,7 @@
{{
item
.
startDate
}}
</li>
<wd-calendar
use-default-slot
v-model=
"value"
@
confirm=
"handleConfirm"
>
<li
@
tap=
"selectItem(index, item)"
>
选择日期
</li>
<li>
选择日期
</li>
</wd-calendar>
</ul>
</view>
...
...
@@ -37,11 +37,14 @@ const props = defineProps({
},
});
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
};
defineExpose
({
reset
});
onMounted
(
async
()
=>
{
getStartDateList
();
});
const
selectItem
=
(
index
,
item
)
=>
{
console
.
log
(
item
,
323
);
const
datePart
=
timestampToDateBasic
(
value
.
value
);
if
(
index
===
selectedItem
.
value
)
{
selectedItem
.
value
=
null
;
...
...
@@ -59,20 +62,15 @@ const getStartDateList = () => {
};
function
handleConfirm
({
value
})
{
const
datePart
=
timestampToDateBasic
(
value
);
console
.
log
(
datePart
,
'datePart---111'
);
selectItem
(
undefined
,
undefined
);
emit
(
'dataParams'
,
null
,
datePart
);
}
function
timestampToDateBasic
(
timestamp
)
{
const
date
=
new
Date
(
timestamp
);
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
/
${
month
}
/
${
day
}
`
;
return
`
${
year
}
-
${
month
}
-
${
day
}
00:00:00
`
;
}
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
};
defineExpose
({
reset
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/Components/assistingAgriculture/index/Sort.vue
View file @
c271370a
...
...
@@ -16,11 +16,11 @@
<
script
setup
>
import
{
ref
}
from
'vue'
;
const
items
=
ref
([
{
name
:
'距离优先'
,
sortMode
:
1
},
{
name
:
'好评优先'
,
sortMode
:
2
},
{
name
:
'销量优先'
,
sortMode
:
3
},
{
name
:
'低价优先'
,
sortMode
:
4
},
{
name
:
'高价优先'
,
sortMode
:
5
},
{
name
:
'距离优先'
,
sortMode
:
'1'
},
{
name
:
'好评优先'
,
sortMode
:
'2'
},
{
name
:
'销量优先'
,
sortMode
:
'3'
},
{
name
:
'低价优先'
,
sortMode
:
'4'
},
{
name
:
'高价优先'
,
sortMode
:
'5'
},
]);
const
emit
=
defineEmits
([
'sortParams'
]);
const
selectedItem
=
ref
(
null
);
...
...
src/directive/index.js
0 → 100644
View file @
c271370a
import
{
waterfall
}
from
'./waterfall'
;
const
directives
=
{
// 汇总自定义指令
waterfall
,
};
// 导出自定义指令
export
const
install
=
(
app
)
=>
{
// 以安装的方式插到app中
Object
.
keys
(
directives
).
forEach
((
key
)
=>
{
// 遍历directives对象的key
app
.
directive
(
key
,
directives
[
key
]);
// 将每个directive注册到app中
});
};
src/directive/waterfall.js
0 → 100644
View file @
c271370a
const
setStyle
=
(
el
,
style
)
=>
{
const
{
firstChild
}
=
el
;
const
offsetHeight
=
firstChild
.
offsetHeight
;
el
.
style
.
gridRow
=
`span
${
Math
.
ceil
(
offsetHeight
/
20
)}
`
;
el
.
style
.
padding
=
0
;
};
export
const
waterfall
=
{
mounted
:
setStyle
,
updated
:
setStyle
,
};
src/main.ts
View file @
c271370a
...
...
@@ -4,12 +4,14 @@ import store from './store';
import
'@/assets/iconfont/iconfont.css'
;
// 引入自定义图标样式文件
import
Vconsole
from
'vconsole'
;
import
'./styles/flex.scss'
;
import
{
install
}
from
'./directive'
;
// 字体
import
'@/assets/iconfont/font.css'
;
import
Search
from
'./components/index/Search.vue'
;
export
function
createApp
()
{
const
app
=
createSSRApp
(
App
);
app
.
component
(
'Search'
,
Search
);
install
(
app
);
const
vConsole
=
new
Vconsole
();
app
.
use
(
store
,
vConsole
);
return
{
...
...
src/pages.json
View file @
c271370a
...
...
@@ -120,7 +120,8 @@
{
"path"
:
"pages/storeEntry/index"
,
"style"
:
{
"navigationBarTitleText"
:
"我的店铺"
"navigationBarTitleText"
:
"我的店铺"
,
"enablePullDownRefresh"
:
true
}
},
{
...
...
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
View file @
c271370a
...
...
@@ -290,8 +290,22 @@
<timeLine
date=
"18:30"
>
<p
class=
"t1"
>
活动景点
</p>
</timeLine>
-->
<timeLine
:date=
"v.activityTime.split(' ')[1]"
v-for=
"(v, i) in itineraryData"
:key=
"i"
>
<div
v-html=
"v.activityDescribes"
></div>
<timeLine
:date=
"dateFormat(v.activityTime)"
v-for=
"(v, i) in itineraryData"
:key=
"i"
>
<div
class=
"t3"
>
<span
class=
"t1"
style=
"font-weight: bold"
>
{{
EnumRouteType
[
v
.
routeType
]
||
''
}}
</span>
<template
v-if=
"v.routeType == 1"
>
<img
class=
"icon"
@
click=
"openMapApp(v)"
src=
"/static/assistingAgriculture/routeDetails/position.png"
style=
"margin-top: -6rpx"
/>
<br
/>
</
template
>
<span
v-html=
"v.activityDescribes"
></span>
</div>
<p>
<img
class=
"icon"
src=
"/static/assistingAgriculture/routeDetails/clock.png"
/>
<span
class=
"t1"
>
活动时间:约{{ v.duration }}小时
</span>
...
...
@@ -330,6 +344,7 @@ import {
getItinerary
,
getStoreInformation
,
}
from
'@/api/assistingAgriculture/route'
;
import
{
navigationSelect
}
from
'@/utils/common'
;
import
{
sgyOrderOrderInfo
}
from
'@/api/assistingAgriculture/shop'
;
import
{
groupBuyConfirm
,
groupBuyUpdate
,
groupBuyCreate
}
from
'@/api/confirmOrder'
;
import
{
getCollect
}
from
'@/api/packageDetail'
;
...
...
@@ -528,7 +543,59 @@ const getStoreInformationFn = (id) => {
});
};
// 行程
// "活动类型1.集合 2.交通 了.参观景点 4.用餐 5.酒店 0.其他活动"
const
dateFormat
=
(
date
)
=>
{
const
hhmmss
=
date
.
split
(
' '
)[
1
];
const
hhmm
=
hhmmss
.
split
(
':'
).
splice
(
0
,
2
).
join
(
':'
);
return
hhmm
;
};
/**
* 跳转地图
*/
function
openMapApp
(
data
)
{
console
.
log
(
data
);
const
{
tripLat
,
tripLng
}
=
data
;
uni
.
showActionSheet
({
itemList
:
[
'高德地图'
,
'百度地图'
],
success
:
(
res
)
=>
{
const
item
=
{
shopAddress
:
'目的地'
,
latitude
:
tripLat
,
longitude
:
tripLng
,
name
:
''
,
};
switch
(
res
.
tapIndex
)
{
case
0
:
// 打开高德地图
item
.
name
=
'高德地图'
;
navigationSelect
(
item
);
break
;
case
1
:
item
.
name
=
'百度地图'
;
// 打开百度地图
navigationSelect
(
item
);
break
;
default
:
break
;
}
},
fail
:
(
err
)
=>
{
console
.
log
(
'取消选择'
,
err
);
},
});
}
const
itineraryData
=
ref
([]);
const
EnumRouteType
=
{
1
:
'集合点'
,
2
:
'交通'
,
3
:
'参观景点'
,
4
:
'用餐'
,
5
:
'酒店'
,
0
:
'其他活动'
,
};
/* shopId:1821388624367861761
prodId:43835 */
onLoad
(({
shopId
,
prodId
})
=>
{
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
c271370a
...
...
@@ -328,21 +328,34 @@ const sortParams = (sortMode) => {
getProd
();
};
// 出发日期
// const dataParams = (item, datePart) => {
// if (item !== undefined) {
// dateType.value = item.key;
// getProd();
// } else if (item === undefined) {
// dateType.value = 8;
// allocateDate.value = datePart;
// getProd();
// }
// };
const
dataParams
=
(
item
,
datePart
)
=>
{
if
(
item
!==
undefined
)
{
dateType
.
value
=
item
.
key
;
if
(
item
)
{
dateType
.
value
=
item
.
key
.
toString
()
;
getProd
();
}
else
if
(
item
===
undefined
)
{
dateType
.
value
=
8
;
}
else
{
dateType
.
value
=
'8'
;
if
(
datePart
&&
datePart
!==
'NaN/NaN/NaN'
)
{
allocateDate
.
value
=
datePart
;
rotate2
.
value
=
false
;
getProd
();
}
}
};
// 景点
const
placeParams
=
(
item
)
=>
{
const
ids
=
item
.
map
((
i
)
=>
i
.
id
);
const
arr
=
ids
.
join
(
','
);
attractionIdList
.
value
=
arr
.
split
(
','
).
map
(
Number
);
attractionIdList
.
value
=
arr
.
split
(
','
).
map
(
String
);
getProd
();
};
...
...
@@ -393,7 +406,7 @@ const getProd = (searchKeyword = '') => {
// ...(startCityList.value && { startCityList: startCityList.value.split(',') }),
// ...(serviceList.value && { serviceList: serviceList.value.split(',') }),
// ...(forPeopleList.value && { forPeopleList: forPeopleList.value.split(',') }),
...(
dateType
.
value
===
8
&&
{
allocateDate
:
allocateDate
.
value
}),
...(
dateType
.
value
===
'8'
&&
{
allocateDate
:
allocateDate
.
value
}),
...(
searchKeyword
&&
{
keyword
:
searchKeyword
}),
};
getProdList
(
params
).
then
((
res
)
=>
{
...
...
src/pages/assistingAgriculture/album/card.vue
View file @
c271370a
<
template
>
<div
class=
"card"
v-for=
"(item, index) in photoData"
:key=
"index"
>
<div
class=
"card"
>
<div
class=
"img-wrap"
>
<wd-img
v-for=
"(item, index) in item.images"
:key=
"index"
:src=
"item"
enable-preview
/>
</div>
...
...
@@ -12,10 +12,7 @@
<p>
{{
item
.
nickName
}}
</p>
</div>
<div
class=
"like flex-align-center"
@
click=
"like(item)"
>
<img
:src=
"`/static/assistingAgriculture/assets/$
{item.give == 0 ? 'like' : 'likeFilled'}.png`"
alt=""
/>
<img
:src=
"item.give == 0 ? likeImg : likeFilledImg"
alt=
""
/>
{{
item
.
giveCount
}}
</div>
</div>
...
...
@@ -24,12 +21,21 @@
<
script
setup
>
import
{
likeOrDislike
}
from
'../../../api/photo'
;
const
likeImg
=
new
URL
(
'@/static/assistingAgriculture/assets/like.png'
,
import
.
meta
.
url
).
href
;
const
likeFilledImg
=
new
URL
(
'@/static/assistingAgriculture/assets/likeFilled.png'
,
import
.
meta
.
url
,
).
href
;
const
showMore
=
ref
(
false
);
const
props
=
defineProps
({
const
{
item
}
=
defineProps
({
photoData
:
{
type
:
Array
,
default
:
()
=>
[],
},
item
:
{
type
:
Object
,
default
:
()
=>
({}),
},
});
// 查看评论详情
const
toReviewDetails
=
(
id
)
=>
{
...
...
src/pages/assistingAgriculture/album/index.vue
View file @
c271370a
...
...
@@ -3,7 +3,9 @@
<Search
backgroundBox=
"white"
title=
"用户相册"
:showTitle=
"true"
></Search>
<scroll-view
class=
"content"
@
scrolltolower=
"scrolltolower"
scroll-y
>
<div
class=
"card-wrap"
>
<card
:photoData=
"photoData"
/>
<div
class=
"item"
v-for=
"(item, index) in photoData"
:key=
"index"
v-waterfall
>
<card
:item=
"item"
/>
</div>
</div>
</scroll-view>
<div
class=
"back"
>
...
...
@@ -129,7 +131,8 @@ uni-page-body {
// margin-top: 10rpx;
display
:
grid
;
grid-template-columns
:
1fr
1fr
;
gap
:
10rpx
;
grid-auto-rows
:
10px
;
gap
:
10px
;
}
}
}
...
...
src/pages/assistingAgriculture/cart/cart.vue
View file @
c271370a
...
...
@@ -12,7 +12,7 @@
</div>
<div
class=
"type"
>
店铺
</div>
<div
class=
"shop-name"
@
click=
"toStore(item)"
>
{{
shop
.
shopName
}}
</div>
<wd-icon
name=
"arrow-right"
size=
"32rpx"
style=
"
margin-left: -15rpx
"
></wd-icon>
<wd-icon
name=
"arrow-right"
size=
"32rpx"
style=
"
position: relative
"
></wd-icon>
</div>
<div
class=
"commodity-list"
>
<div
class=
"commodity-item flex-align-center"
v-for=
"(item, j) in shop.prodInfos"
:key=
"j"
>
...
...
src/pages/assistingAgriculture/detail/detail.vue
View file @
c271370a
...
...
@@ -21,6 +21,24 @@
@change="onChange"
height="512rpx"
>
</wd-swiper>
<view
class=
"pre-icon"
>
<img
class=
"left-icon"
src=
"/static/assistingAgriculture/detail/img4.png"
style=
"width: 248rpx; height: 100rpx; position: relative; top: -20rpx; z-index: 99"
/>
<img
class=
"right-icon"
src=
"/static/assistingAgriculture/detail/img3.png"
style=
"width: 546rpx; height: 62rpx"
/>
</view>
<view
class=
"pre-text"
>
<text
class=
"left-text"
>
预售
</text>
<text
class=
"right-text"
>
预计
{{
dataDetails
.
prodPresale
.
presaleEndTime
.
split
(
' '
)[
0
]
}}
发货
</text>
</view>
</view>
<view
class=
"countDown"
>
...
...
@@ -36,7 +54,9 @@
<view
class=
"count-info"
>
<view
class=
"flex-center"
>
<view
style=
"color: #fa5151"
>
¥
{{
dataDetails
.
prod
.
price
}}
</view>
<text
style=
"margin-left: -30rpx"
>
/只
</text>
<text
v-if=
"dataDetails.skus[0].unity"
style=
"margin-left: -30rpx; font-size: 24rpx"
>
/
{{
dataDetails
.
skus
[
0
].
unity
}}
</text>
<view
style=
"z-index: 9999; color: #ffffff; margin-left: 320rpx; font-size: 28rpx"
>
距离结束仅剩
</view>
...
...
@@ -49,7 +69,13 @@
</view>
<wd-count-down
:time=
"timeLeft"
style=
"position: absolute; z-index: 999; left: 440rpx; margin-top: 10rpx"
style=
"
position: absolute;
z-index: 999;
left: 440rpx;
margin-top: 10rpx;
width: max-content;
"
>
<template
#
default=
"
{ current }">
<span
class=
"custom-count-down"
>
{{
current
.
days
}}
天
</span>
...
...
@@ -304,11 +330,12 @@ page {
}
.pre-icon
{
display
:
flex
;
margin-top
:
-
108
rpx
;
margin-top
:
-
30
rpx
;
}
.right-icon
{
margin-left
:
-20px
;
margin-top
:
19px
;
margin-left
:
-40rpx
;
margin-top
:
18rpx
;
z-index
:
9
;
}
.left-text
{
position
:
relative
;
...
...
@@ -323,8 +350,9 @@ page {
font-feature-settings
:
'kern'
on
;
color
:
#ffffff
;
margin-left
:
80rpx
;
margin-top
:
-
7
0rpx
;
margin-top
:
-
8
0rpx
;
display
:
block
;
z-index
:
99
;
}
.right-text
{
left
:
-60rpx
;
...
...
@@ -341,6 +369,7 @@ page {
color
:
#ffffff
;
float
:
right
;
margin-top
:
-30rpx
;
z-index
:
99
;
}
.detail
{
width
:
750rpx
;
...
...
@@ -362,21 +391,26 @@ page {
color
:
#3d3d3d
;
padding-top
:
20rpx
;
padding-left
:
20rpx
;
padding-bottom
:
4
0rpx
;
padding-bottom
:
3
0rpx
;
}
.detail-int
{
width
:
336
*
2rpx
;
height
:
64rpx
;
width
:
21rem
;
font-family
:
Source
Han
Sans
;
font-size
:
24rpx
;
font-size
:
0
.75rem
;
font-weight
:
normal
;
line-height
:
32rpx
;
letter-spacing
:
0em
;
font-variation-settings
:
'opsz'
auto
;
font-feature-settings
:
'kern'
on
;
color
:
#abaaaa
;
padding-left
:
20rpx
;
padding-bottom
:
20rpx
;
padding-left
:
0
.625rem
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
line-clamp
:
3
;
-webkit-line-clamp
:
2
;
line-height
:
40rpx
;
height
:
80rpx
;
}
.share-img
{
float
:
right
;
...
...
@@ -496,7 +530,7 @@ page {
box-shadow
:
0rpx
-8rpx
20rpx
0rpx
rgba
(
0
,
0
,
0
,
0
.12
);
z-index
:
10
;
position
:
fixed
;
top
:
9
1
%
;
top
:
9
2
%
;
}
.sort
{
width
:
750rpx
;
...
...
@@ -524,6 +558,7 @@ page {
}
.countDown
{
height
:
122rpx
;
margin-top
:
12rpx
;
}
.count-info
{
position
:
absolute
;
...
...
src/pages/assistingAgriculture/index/index.vue
View file @
c271370a
...
...
@@ -290,7 +290,7 @@ page {
background
:
#fcdbdb
;
text-align
:
center
;
line-height
:
24rpx
;
margin-left
:
1
2
0rpx
;
margin-left
:
1
4
0rpx
;
margin-top
:
-23rpx
;
color
:
#fa5151
;
}
...
...
src/pages/assistingAgriculture/index/presale.vue
View file @
c271370a
<
template
>
<view
class=
"container"
>
<view
class=
"top"
>
<Search
style=
"position: fixed; top: 0; width: 100%"
:backgroundBox=
"backgroundBox"
:backIcon=
"backIcon"
>
<Search
:backgroundBox=
"backgroundBox"
:backIcon=
"backIcon"
>
<view
class=
"searchBox"
:style=
"
{ border }">
<image
class=
"magnifyingGlass"
...
...
@@ -23,7 +17,7 @@
/>
</view>
</Search>
</view
>
<view
class=
"bck-img"
>
<view
class=
"nav"
>
<wd-swiper
:list=
"swiperList"
...
...
@@ -36,6 +30,7 @@
imageMode=
"aspectFill"
></wd-swiper>
</view>
</view>
<view
class=
"sort"
>
<view
style=
"display: flex; flex-direction: row"
>
<view
...
...
@@ -119,6 +114,8 @@
<view
class=
"tags-box"
>
<text
class=
"good-detail"
>
{{
item
.
detail
}}
</text>
<text
class=
"introduction"
>
{{
item
.
introduction
}}
</text>
</view>
<view
class=
"price-info"
>
<text
class=
"good-price"
>
¥
{{
item
.
price
}}
</text>
<img
class=
"add"
src=
"/static/assistingAgriculture/presale/add.png"
/>
</view>
...
...
@@ -126,17 +123,6 @@
</view>
</view>
</view>
</view>
<!-- 购物车悬浮按钮 -->
<!--
<view
class=
"cart-floating"
@
tap=
"toCart"
>
<wd-badge
:modelValue=
"subscript"
>
<img
class=
"shop-car"
src=
"/static/assistingAgriculture/presale/cart.png"
style=
"width: 40rpx; height: 40rpx"
/>
</wd-badge>
</view>
-->
<fab
position=
"2"
:cartCount=
"subscript"
/>
</
template
>
...
...
@@ -170,7 +156,7 @@ const params = {
};
const
subscript
=
ref
(
0
);
const
tabsList
=
ref
([]);
const
backgroundBox
=
ref
(
''
);
const
backgroundBox
=
ref
(
'
#71C456
'
);
const
border
=
ref
(
''
);
onMounted
(
async
()
=>
{
getPresale
();
...
...
@@ -279,7 +265,7 @@ onPageScroll((e) => {
backgroundBox
.
value
=
'#fff'
;
border
.
value
=
'1rpx solid gray'
;
}
else
{
backgroundBox
.
value
=
''
;
backgroundBox
.
value
=
'
#71C456
'
;
border
.
value
=
''
;
}
});
...
...
@@ -289,19 +275,12 @@ onPageScroll((e) => {
page
{
background
:
#f3f3f3
;
}
.container
{
.top
{
width
:
100%
;
height
:
440rpx
;
background
:
linear-gradient
(
180deg
,
#71c456
0%
,
rgba
(
243
,
243
,
243
,
0
)
100%
);
border-radius
:
0rpx
0rpx
0rpx
0rpx
;
overflow
:
hidden
;
}
.bck-img
{
background
:
linear-gradient
(
180deg
,
#71c456
0%
,
rgba
(
129
,
159
,
81
,
0
)
100%
);
}
.nav
{
width
:
710rpx
;
margin-left
:
18rpx
;
margin-top
:
-300rpx
;
}
.nav-img
{
width
:
710rpx
;
...
...
@@ -425,6 +404,7 @@ page {
width
:
360rpx
;
display
:
flex
;
flex-direction
:
row
;
height
:
442rpx
;
}
.wt-item
{
...
...
@@ -441,18 +421,21 @@ page {
/* 商品介绍 */
.introduce-section
{
background
:
#ffffff
;
padding
:
20rpx
3
0rpx
;
padding
:
10rpx
1
0rpx
;
border-radius
:
0
0
08px
8px
;
margin-top
:
-80rpx
;
height
:
110rpx
;
}
.introduce-section
.title
{
font-size
:
32rpx
;
.title
{
color
:
#303133
;
height
:
50rpx
;
line-height
:
50rpx
;
margin-left
:
-20rpx
;
font-size
:
28rpx
;
display
:
-
webkit-box
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
word-break
:
break-all
;
line-height
:
1
.2
;
max-height
:
2
.4em
;
}
.introduce-section
.tags-box
{
...
...
@@ -468,7 +451,6 @@ page {
margin-top
:
70rpx
;
color
:
#fa5151
;
font-size
:
28rpx
;
margin-left
:
-20rpx
;
}
.preview-img
{
margin-left
:
100rpx
;
...
...
@@ -515,8 +497,8 @@ page {
}
.add
{
position
:
relative
;
left
:
20
0rpx
;
top
:
3
0rpx
;
left
:
18
0rpx
;
top
:
1
0rpx
;
}
.searchBox
{
opacity
:
1
;
...
...
src/pages/order/order.vue
View file @
c271370a
...
...
@@ -195,8 +195,7 @@ const stateList = ref({});
const
orderDic
=
ref
();
onLoad
(
async
(
options
)
=>
{
// await signIn();
if
(
!
getToken
())
await
signIn
();
// if (!getToken()) await signIn2();
if
(
!
getToken
())
await
signIn2
();
if
(
!
getOrderDic
())
await
orderStatus
();
orderDic
.
value
=
getOrderDic
();
orderDic
.
value
.
baseOrder
[
0
].
value
=
'all'
;
...
...
src/pages/storeEntry/detail.vue
View file @
c271370a
...
...
@@ -166,6 +166,7 @@
<wd-button
type=
"error"
width=
"80%"
class=
"submitBTN"
@
tap=
"submitData"
>
提交
</wd-button>
</wd-cell-group>
<wd-popup
:safe-area-inset-bottom=
"true"
v-model=
"show"
position=
"bottom"
custom-style=
"height:500px;overflow:auto;"
...
...
@@ -179,6 +180,7 @@
</view>
<view
class=
"nr"
>
<view
class=
"left"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-Y"
>
<
template
v-for=
"(item, index) in shopCategoryTree"
:key=
"index"
>
<view
class=
"name"
...
...
@@ -188,8 +190,10 @@
{{
item
.
name
}}
</view>
</
template
>
</scroll-view>
</view>
<view
class=
"right"
>
<scroll-view
scroll-y=
"true"
class=
"scroll-Y"
>
<
template
v-for=
"(item, index) in shopCategoryTree"
:key=
"index"
>
<view
class=
"item"
v-show=
"categoryActiveIndex == index"
>
<view
...
...
@@ -219,6 +223,7 @@
</view>
</view>
</template>
</scroll-view>
</view>
</view>
</view>
...
...
@@ -724,7 +729,6 @@ async function changeLocation() {
location
:
`
${
res
.
latitude
}
,
${
res
.
longitude
}
`
,
},
success
:
function
(
res
)
{
// console.log('逆地理编码:' + JSON.stringify(res));
console
.
log
(
'进入成功回调'
);
console
.
log
(
res
.
data
.
status
);
if
(
res
.
data
.
status
===
0
)
{
...
...
@@ -798,11 +802,13 @@ page {
.hcontent
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
.flex1
{
padding
:
10px
;
display
:
flex
;
position
:
fixed
;
width
:
100%
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
...
...
@@ -812,15 +818,19 @@ page {
}
.nr
{
padding-top
:
42
px
;
padding-top
:
0
px
;
display
:
flex
;
flex
:
1
;
overflow
:
hidden
;
.left
{
background
:
rgb
(
244
,
244
,
244
);
width
:
28%
;
height
:
100%
;
position
:
fixed
;
overflow-y
:
hidden
;
.scroll-Y
{
height
:
100%
;
}
.name
{
text-align
:
left
;
padding-left
:
20rpx
;
...
...
@@ -836,10 +846,16 @@ page {
.right
{
background
:
#fff
;
width
:
72%
;
position
:
fixed
;
left
:
28%
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
hidden
;
padding
:
0
5px
5px
5px
;
box-sizing
:
border-box
;
.scroll-Y
{
height
:
100%
;
}
.item
{
height
:
auto
;
...
...
src/pages/storeEntry/index.vue
View file @
c271370a
...
...
@@ -52,6 +52,7 @@
import
Header
from
'@/pages/order/components/Header/index.vue'
;
import
{
shopList
,
deleteShopInfoById
}
from
'@/api/storeEntry'
;
const
itemUrl
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
const
shopStatus
=
reactive
({
0
:
'停业中'
,
1
:
'营业中'
,
...
...
@@ -83,7 +84,17 @@ const shopGto = (item) => {
onLoad
(()
=>
{
getList
();
});
onPullDownRefresh
(
async
()
=>
{
await
getList
();
xma
.
stopPullDownRefresh
({
success
:
function
(
res
)
{
xma
.
showToast
({
title
:
'刷新列表成功'
,
duration
:
1000
,
});
},
});
});
const
deleteShop
=
(
shopId
)
=>
{
xma
.
showModal
({
title
:
'删除提示'
,
...
...
@@ -114,6 +125,10 @@ const deleteShop = (shopId) => {
</
script
>
<
style
lang=
"scss"
scoped
>
:deep
(
.uni-page-refresh
)
{
top
:
50%
;
}
.container
{
position
:
relative
;
width
:
375
*
2rpx
;
...
...
src/pages/ticket/ticket.vue
View file @
c271370a
...
...
@@ -131,7 +131,8 @@ const fileDomain = import.meta.env.VITE_APP_IMG_URL;
const
contentHeight
=
ref
(
'88rpx'
);
onLoad
(
async
()
=>
{
if
(
!
getToken
())
await
signIn
();
// await signIn();
if
(
!
getToken
())
await
signIn2
();
xma
.
xh
.
getMenuButtonBoundingClientRect
({
success
(
res
)
{
contentHeight
.
value
=
res
.
bottom
*
2
+
10
+
'rpx'
;
// 左边界坐标,单位:px
...
...
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