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
8d88838b
Commit
8d88838b
authored
Aug 20, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
d1257955
2230cba5
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
9 deletions
+35
-9
.env.development
.env.development
+2
-2
foodClassification.vue
src/pages/index/foodClassification.vue
+11
-1
loading.vue
src/pages/index/loading.vue
+2
-2
packageDetails.vue
src/pages/packageDetails/packageDetails.vue
+12
-0
shop.vue
src/pages/shop/shop.vue
+3
-2
detail.vue
src/pages/storeEntry/detail.vue
+3
-0
vite.config.ts
vite.config.ts
+2
-2
No files found.
.env.development
View file @
8d88838b
...
@@ -5,7 +5,7 @@ VITE_APP_ENV = 'development'
...
@@ -5,7 +5,7 @@ VITE_APP_ENV = 'development'
VITE_APP_BASE_URL = '/api'
VITE_APP_BASE_URL = '/api'
# 照片url路径 (开发环境)
# 照片url路径 (开发环境)
VITE_APP_IMG_URL = 'http://file.rhhzkj.com:8080'
#
VITE_APP_IMG_URL = 'http://file.rhhzkj.com:8080'
# 照片url路径(正式环境)
# 照片url路径(正式环境)
#
VITE_APP_IMG_URL = 'https://file.rddyz.com'
VITE_APP_IMG_URL = 'https://file.rddyz.com'
src/pages/index/foodClassification.vue
View file @
8d88838b
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<view
class=
"bootom"
>
<view
class=
"bootom"
:style=
"
{ top }"
>
<view
class=
"bootom-top"
>
<view
class=
"bootom-top"
>
<view
class=
"option"
@
tap=
"locationFiltering(0)"
>
<view
class=
"option"
@
tap=
"locationFiltering(0)"
>
<text
:class=
"
{ rotate: rotate }">全部
{{
categoryNames
}}
</text>
<text
:class=
"
{ rotate: rotate }">全部
{{
categoryNames
}}
</text>
...
@@ -130,6 +130,7 @@ import fab from '../../components/fab/fab.vue';
...
@@ -130,6 +130,7 @@ import fab from '../../components/fab/fab.vue';
import
Sort
from
'../../components/index/Sort.vue'
;
import
Sort
from
'../../components/index/Sort.vue'
;
import
{
getByParentId
,
merchantList
,
prodSpecial
}
from
'../../api/index'
;
import
{
getByParentId
,
merchantList
,
prodSpecial
}
from
'../../api/index'
;
const
top
=
ref
(
null
);
const
backIconColor
=
ref
(
'white'
);
const
backIconColor
=
ref
(
'white'
);
const
textColor
=
ref
(
'#ffffff'
);
const
textColor
=
ref
(
'#ffffff'
);
const
backgroundBox
=
ref
(
''
);
const
backgroundBox
=
ref
(
''
);
...
@@ -162,11 +163,20 @@ onLoad((option) => {
...
@@ -162,11 +163,20 @@ onLoad((option) => {
params
.
value
.
categoryIds
=
[
parentId
];
params
.
value
.
categoryIds
=
[
parentId
];
pics
.
value
=
pic
;
pics
.
value
=
pic
;
query
(
parentId
);
query
(
parentId
);
getTop
();
prodSpecialFn
();
prodSpecialFn
();
getLocationFn
().
then
((
res
)
=>
{
getLocationFn
().
then
((
res
)
=>
{
getMerchantList
();
getMerchantList
();
});
});
});
});
// 获取位置板块贴合高度
const
getTop
=
()
=>
{
xma
.
xh
.
getMenuButtonBoundingClientRect
({
success
(
res
)
{
top
.
value
=
(
res
.
top
+
res
.
bottom
)
/
2
+
25
+
'px'
;
},
});
};
// distance参数来源
// distance参数来源
const
nearby
=
(
distance
)
=>
{
const
nearby
=
(
distance
)
=>
{
console
.
log
(
'distance'
,
distance
);
console
.
log
(
'distance'
,
distance
);
...
...
src/pages/index/loading.vue
View file @
8d88838b
...
@@ -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'
:
...
...
src/pages/packageDetails/packageDetails.vue
View file @
8d88838b
...
@@ -168,6 +168,18 @@
...
@@ -168,6 +168,18 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
style=
"
width: 100%;
text-align: center;
font-size: 24rpx;
background: #fdfdfd;
color: #888989;
"
v-if=
"productCombination.length === 0"
>
没有更多啦~
</view>
</view>
</view>
<view
class=
"rich-text-card"
>
<view
class=
"rich-text-card"
>
<text
class=
"title"
>
商品详情
</text>
<text
class=
"title"
>
商品详情
</text>
...
...
src/pages/shop/shop.vue
View file @
8d88838b
...
@@ -497,7 +497,6 @@ function getLocationFn() {
...
@@ -497,7 +497,6 @@ function getLocationFn() {
isHighAccuracy
:
true
,
isHighAccuracy
:
true
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 经纬度
// 经纬度
console
.
log
(
'res.latitude, res.longitude'
,
res
.
latitude
,
res
.
longitude
);
resolve
({
lat
:
res
.
latitude
,
lon
:
res
.
longitude
});
resolve
({
lat
:
res
.
latitude
,
lon
:
res
.
longitude
});
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
...
@@ -552,6 +551,7 @@ const getStoreInformationFn = (id) => {
...
@@ -552,6 +551,7 @@ const getStoreInformationFn = (id) => {
if
(
res
.
data
.
shop
.
labels
&&
res
.
data
.
shop
.
labels
!==
''
)
{
if
(
res
.
data
.
shop
.
labels
&&
res
.
data
.
shop
.
labels
!==
''
)
{
shopInfo
.
value
.
tagList
=
res
.
data
.
shop
.
labels
.
split
(
','
);
shopInfo
.
value
.
tagList
=
res
.
data
.
shop
.
labels
.
split
(
','
);
}
}
shopSwiperList
.
value
.
push
(
imgUrl
+
res
.
data
.
shop
.
shopLogo
);
const
{
lat
,
lon
}
=
res
.
data
.
shop
.
location
;
const
{
lat
,
lon
}
=
res
.
data
.
shop
.
location
;
shopLocation
.
value
.
lat
=
lat
;
shopLocation
.
value
.
lat
=
lat
;
shopLocation
.
value
.
lon
=
lon
;
shopLocation
.
value
.
lon
=
lon
;
...
@@ -915,8 +915,9 @@ page {
...
@@ -915,8 +915,9 @@ page {
}
}
}
}
.shop-business-hours
{
.shop-business-hours
{
white-space
:
nowrap
;
texe
{
texe
{
font-size
:
8
*
2rpx
;
font-size
:
11
*
2rpx
;
color
:
#767676
;
color
:
#767676
;
}
}
}
}
...
...
src/pages/storeEntry/detail.vue
View file @
8d88838b
...
@@ -161,6 +161,9 @@
...
@@ -161,6 +161,9 @@
label-width=
"100px"
label-width=
"100px"
v-model=
"formData.intro"
v-model=
"formData.intro"
prop=
"intro"
prop=
"intro"
auto-height
show-word-limit
:maxlength=
"120"
/>
/>
<wd-button
type=
"error"
width=
"80%"
class=
"submitBTN"
@
tap=
"submitData"
>
提交
</wd-button>
<wd-button
type=
"error"
width=
"80%"
class=
"submitBTN"
@
tap=
"submitData"
>
提交
</wd-button>
...
...
vite.config.ts
View file @
8d88838b
...
@@ -41,8 +41,8 @@ export default defineConfig({
...
@@ -41,8 +41,8 @@ export default defineConfig({
// 代理配置
// 代理配置
proxy
:
{
proxy
:
{
'/api'
:
{
'/api'
:
{
target
:
'http://test.rhhzkj.com:8080'
,
//
target: 'http://test.rhhzkj.com:8080',
//
target: 'https://api.rddyz.com',
target
:
'https://api.rddyz.com'
,
changeOrigin
:
true
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
api/
,
''
),
},
},
...
...
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