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
9bb1cf50
Commit
9bb1cf50
authored
Aug 13, 2024
by
彭佳妮(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
df91642d
d30ace17
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
29 deletions
+30
-29
Search.vue
src/components/index/Search.vue
+11
-14
ConfirmOrder.vue
src/pages/assistingAgriculture/cart/ConfirmOrder.vue
+3
-1
building.vue
src/pages/assistingAgriculture/index/building.vue
+2
-5
presale.vue
src/pages/assistingAgriculture/index/presale.vue
+6
-6
loading.vue
src/pages/index/loading.vue
+8
-3
No files found.
src/components/index/Search.vue
View file @
9bb1cf50
...
@@ -40,25 +40,22 @@ const emit = defineEmits(['toSearch']);
...
@@ -40,25 +40,22 @@ const emit = defineEmits(['toSearch']);
const
title
=
ref
(
'小程序平台'
);
const
title
=
ref
(
'小程序平台'
);
const
{
countInfo
,
addCount
}
=
useCountStore
();
const
{
countInfo
,
addCount
}
=
useCountStore
();
const
test
=
ref
(
''
);
const
test
=
ref
(
''
);
onMounted
(()
=>
{
onLoad
(()
=>
{
// xma.xh.getUserProfile({
xma
.
xh
.
getMenuButtonBoundingClientRect
({
// range: ['ACCOUNT', 'MOBILE', 'CITIZEN'],
success
(
res
)
{
// async success(info) {
console
.
log
(
'宽度'
,
res
.
width
);
// 宽度,单位:px
// const info2 = JSON.stringify(info);
console
.
log
(
'高度'
,
res
.
height
);
// 高度,单位:px
// test.value = info2;
console
.
log
(
'上边界坐标'
,
res
.
top
);
// 上边界坐标,单位:px
// },
console
.
log
(
'右边界坐标'
,
res
.
right
);
// 右边界坐标,单位:px
// });
console
.
log
(
'下边界坐标'
,
res
.
bottom
);
// 下边界坐标,单位:px
console
.
log
(
'左边界坐标'
,
res
.
left
);
// 左边界坐标,单位:px
},
});
});
});
const
search
=
(
res
)
=>
{
const
search
=
(
res
)
=>
{
const
keyword
=
res
.
detail
.
value
;
const
keyword
=
res
.
detail
.
value
;
emit
(
'toSearch'
,
keyword
);
emit
(
'toSearch'
,
keyword
);
};
};
const
test2
=
()
=>
{
xma
.
navigateTo
({
url
:
'/pages/shop/shop'
,
});
};
// 返回上一级
// 返回上一级
const
back
=
()
=>
{
const
back
=
()
=>
{
...
...
src/pages/assistingAgriculture/cart/ConfirmOrder.vue
View file @
9bb1cf50
...
@@ -251,7 +251,9 @@ onShow(() => {
...
@@ -251,7 +251,9 @@ onShow(() => {
});
});
}
}
});
});
const
openZfType
=
()
=>
{
PaymentRef
.
value
.
open
();
};
function
groupBuyConfirmFn
(
prodId
,
skuId
)
{
function
groupBuyConfirmFn
(
prodId
,
skuId
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
groupBuyConfirm
({
prodId
,
skuId
}).
then
((
res
)
=>
{
groupBuyConfirm
({
prodId
,
skuId
}).
then
((
res
)
=>
{
...
...
src/pages/assistingAgriculture/index/building.vue
View file @
9bb1cf50
...
@@ -100,12 +100,9 @@
...
@@ -100,12 +100,9 @@
v-for=
"(item, index) in testData"
v-for=
"(item, index) in testData"
:key=
"index"
:key=
"index"
style=
"margin-left: 20rpx"
style=
"margin-left: 20rpx"
@
tap=
"toDetail(item)"
>
>
<img
<img
:src=
"item.imgUrl"
style=
"width: 330rpx; height: 330rpx; border-radius: 16rpx"
/>
@
tap=
"toDetail(item)"
:src=
"item.imgUrl"
style=
"width: 330rpx; height: 330rpx; border-radius: 16rpx"
/>
<view
class=
"detail-title"
>
{{
whh
}}
</view>
<view
class=
"detail-title"
>
{{
whh
}}
</view>
<view
class=
"price-page"
>
<view
class=
"price-page"
>
<text
class=
"price"
>
¥
{{
item
.
price
}}
</text>
<text
class=
"price"
>
¥
{{
item
.
price
}}
</text>
...
...
src/pages/assistingAgriculture/index/presale.vue
View file @
9bb1cf50
...
@@ -76,9 +76,9 @@
...
@@ -76,9 +76,9 @@
</view>
</view>
<view
class=
"waterfall"
>
<view
class=
"waterfall"
>
<view
class=
"wt-left wt-list"
>
<view
class=
"wt-left wt-list"
>
<view
class=
"wt-item"
v-for=
"(
good
, index) in buyList"
:key=
"index"
@
tap=
"toDetail(item)"
>
<view
class=
"wt-item"
v-for=
"(
item
, index) in buyList"
:key=
"index"
@
tap=
"toDetail(item)"
>
<view
class=
"item-img"
>
<view
class=
"item-img"
>
<image
:src=
"
good
.img"
mode=
"widthFix"
style=
"border-radius: 16rpx"
></image>
<image
:src=
"
item
.img"
mode=
"widthFix"
style=
"border-radius: 16rpx"
></image>
<image
<image
class=
"presale-img"
class=
"presale-img"
src=
"/static/assistingAgriculture/presale/presale.png"
src=
"/static/assistingAgriculture/presale/presale.png"
...
@@ -100,11 +100,11 @@
...
@@ -100,11 +100,11 @@
</view>
</view>
<!-- 介绍部分 -->
<!-- 介绍部分 -->
<view
class=
"introduce-section"
>
<view
class=
"introduce-section"
>
<text
class=
"title"
>
{{
good
.
prodName
}}
</text>
<text
class=
"title"
>
{{
item
.
prodName
}}
</text>
<view
class=
"tags-box"
>
<view
class=
"tags-box"
>
<text
class=
"good-detail"
>
{{
good
.
detail
}}
</text>
<text
class=
"good-detail"
>
{{
item
.
detail
}}
</text>
<text
class=
"introduction"
>
{{
good
.
introduction
}}
</text>
<text
class=
"introduction"
>
{{
item
.
introduction
}}
</text>
<text
class=
"good-price"
>
¥
{{
good
.
price
}}
</text>
<text
class=
"good-price"
>
¥
{{
item
.
price
}}
</text>
<img
class=
"add"
src=
"/static/assistingAgriculture/presale/add.png"
/>
<img
class=
"add"
src=
"/static/assistingAgriculture/presale/add.png"
/>
</view>
</view>
</view>
</view>
...
...
src/pages/index/loading.vue
View file @
9bb1cf50
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
...
@@ -10,8 +10,8 @@ import { getTokenUser } from '../../api/index';
import
{
getToken
}
from
'../../utils/auth'
;
import
{
getToken
}
from
'../../utils/auth'
;
onLoad
(
async
(
options
)
=>
{
onLoad
(
async
(
options
)
=>
{
//
await signIn();
await
signIn
();
if
(
!
getToken
())
await
signIn2
();
//
if (!getToken()) await signIn2();
const
{
type
}
=
options
;
const
{
type
}
=
options
;
switch
(
type
)
{
switch
(
type
)
{
case
'0'
:
case
'0'
:
...
@@ -24,7 +24,12 @@ onLoad(async (options) => {
...
@@ -24,7 +24,12 @@ onLoad(async (options) => {
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/index/building?categoryId=3266'
});
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/index/building?categoryId=3266'
});
break
;
break
;
case
'3'
:
case
'3'
:
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268'
});
xma
.
reLaunch
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel?categoryId=3268'
,
});
break
;
default
:
xma
.
reLaunch
({
url
:
'/pages/index/index'
});
}
}
});
});
onMounted
(
async
()
=>
{
onMounted
(
async
()
=>
{
...
...
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