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
1d304314
Commit
1d304314
authored
Aug 14, 2024
by
周俊涛(东信)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
a2da5e81
69fa74ea
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
10 deletions
+49
-10
detail.vue
src/pages/assistingAgriculture/order/detail.vue
+5
-5
detail.vue
src/pages/storeEntry/detail.vue
+12
-2
index.vue
src/pages/storeEntry/index.vue
+1
-1
ticket.vue
src/pages/ticket/ticket.vue
+26
-2
yarn.lock
yarn.lock
+5
-0
No files found.
src/pages/assistingAgriculture/order/detail.vue
View file @
1d304314
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
></web-view>
></web-view>
<!--
<view
style=
"height: 600rpx; background-color: aquamarine"
></view>
-->
<!--
<view
style=
"height: 600rpx; background-color: aquamarine"
></view>
-->
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"content"
v-if=
"orderDetail"
>
<view
class=
"info"
>
<view
class=
"info"
:style=
"
{ 'padding-top': logisticsDetail ? '30rpx' : '60rpx' }"
>
<view
class=
"top"
v-if=
"logisticsDetail"
>
<view
class=
"top"
v-if=
"logisticsDetail"
>
<view
class=
"left"
>
<view
class=
"left"
>
<image
<image
...
@@ -711,7 +711,7 @@ page {
...
@@ -711,7 +711,7 @@ page {
background
:
#f12a2a
;
background
:
#f12a2a
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
position
:
absolute
;
top
:
6
rpx
;
top
:
-14
rpx
;
z-index
:
1
;
z-index
:
1
;
}
}
...
@@ -721,7 +721,7 @@ page {
...
@@ -721,7 +721,7 @@ page {
background
:
#ffd5d5
;
background
:
#ffd5d5
;
border-radius
:
50%
;
border-radius
:
50%
;
position
:
absolute
;
position
:
absolute
;
top
:
6
rpx
;
top
:
-14
rpx
;
z-index
:
1
;
z-index
:
1
;
}
}
...
@@ -729,8 +729,8 @@ page {
...
@@ -729,8 +729,8 @@ page {
height
:
100%
;
height
:
100%
;
width
:
2rpx
;
width
:
2rpx
;
background-color
:
#ffd5d5
;
background-color
:
#ffd5d5
;
position
:
absolute
;
//
position: absolute;
top
:
6rpx
;
//
top: 6rpx;
}
}
}
}
...
...
src/pages/storeEntry/detail.vue
View file @
1d304314
...
@@ -391,7 +391,17 @@ onLoad((options) => {
...
@@ -391,7 +391,17 @@ onLoad((options) => {
}
}
getShopCategoryFun
();
getShopCategoryFun
();
});
});
onUnload
(()
=>
{
try
{
const
value
=
xma
.
getStorageSync
(
'storage_choosedShopInfo'
);
if
(
value
&&
JSON
.
parse
(
value
).
length
>
0
)
{
console
.
log
(
'hhh'
);
xma
.
removeStorageSync
(
'storage_choosedShopInfo'
);
}
}
catch
(
e
)
{
// error
}
});
// 获取店铺入驻分类(弹窗tree)
// 获取店铺入驻分类(弹窗tree)
const
getShopCategoryFun
=
async
()
=>
{
const
getShopCategoryFun
=
async
()
=>
{
const
res
=
await
sgyrShopCategory
();
const
res
=
await
sgyrShopCategory
();
...
@@ -679,7 +689,7 @@ const submitData = () => {
...
@@ -679,7 +689,7 @@ const submitData = () => {
});
});
}
}
try
{
try
{
xma
.
setStorageSync
(
'storage_choosedShopInfo'
,
{}
);
xma
.
removeStorageSync
(
'storage_choosedShopInfo'
);
xma
.
showToast
({
xma
.
showToast
({
title
:
'修改成功'
,
title
:
'修改成功'
,
icon
:
'success'
,
icon
:
'success'
,
...
...
src/pages/storeEntry/index.vue
View file @
1d304314
...
@@ -123,7 +123,7 @@ const deleteShop = (shopId) => {
...
@@ -123,7 +123,7 @@ const deleteShop = (shopId) => {
min-height
:
calc
(
100vh
-
160rpx
);
min-height
:
calc
(
100vh
-
160rpx
);
.content
{
.content
{
// padding-top: 88rpx;
// padding-top: 88rpx;
.listcon
{
.listcon
{
margin-top
:
10px
;
margin-top
:
10px
;
...
...
src/pages/ticket/ticket.vue
View file @
1d304314
...
@@ -121,10 +121,21 @@
...
@@ -121,10 +121,21 @@
<
script
setup
>
<
script
setup
>
import
{
myCouponListApi
,
userCouponStatisticsApi
}
from
'@/api/ticket'
;
import
{
myCouponListApi
,
userCouponStatisticsApi
}
from
'@/api/ticket'
;
import
{
signIn
}
from
'@/utils/signIn'
;
import
Header
from
'@/pages/order/components/Header/index.vue'
;
import
Header
from
'@/pages/order/components/Header/index.vue'
;
import
testJson
from
'@/static/json/test.json'
;
import
{
getTokenUser
}
from
'@/api/index'
;
import
{
getToken
}
from
'@/utils/auth'
;
const
fileDomain
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
const
fileDomain
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
;
onLoad
(
async
()
=>
{
if
(
!
getToken
())
await
signIn
();
// if (!getToken()) await signIn2();
getStatistics
();
getCouponList
();
});
// 优惠券状态 0:失效 2:已使用,3-未使用
// 优惠券状态 0:失效 2:已使用,3-未使用
const
iconUrl
=
ref
({
const
iconUrl
=
ref
({
0
:
'@/static/ticket/past-icon.png'
,
0
:
'@/static/ticket/past-icon.png'
,
...
@@ -173,7 +184,6 @@ const getStatistics = async () => {
...
@@ -173,7 +184,6 @@ const getStatistics = async () => {
discountAmount
.
value
=
res
.
data
;
discountAmount
.
value
=
res
.
data
;
}
}
};
};
getStatistics
();
/**
/**
* 获取用户优惠券列表
* 获取用户优惠券列表
...
@@ -213,7 +223,21 @@ const getCouponList = async () => {
...
@@ -213,7 +223,21 @@ const getCouponList = async () => {
// state.value = 'finished';
// state.value = 'finished';
xma
.
hideLoading
();
xma
.
hideLoading
();
};
};
getCouponList
();
// 登录
const
signIn2
=
()
=>
{
xma
.
showLoading
({
title
:
'加载中'
,
mask
:
true
,
});
return
getTokenUser
(
testJson
).
then
((
res
)
=>
{
const
token
=
res
.
data
.
access_token
;
const
userInfo
=
res
.
data
.
user_info
;
xma
.
setStorageSync
(
'Authorization'
,
token
);
xma
.
setStorageSync
(
'userInfo'
,
userInfo
);
console
.
log
(
'登录...'
);
});
};
// 下拉刷新
// 下拉刷新
onPullDownRefresh
(()
=>
{
onPullDownRefresh
(()
=>
{
...
...
yarn.lock
View file @
1d304314
...
@@ -6198,6 +6198,11 @@ xinhua-sdk@*:
...
@@ -6198,6 +6198,11 @@ xinhua-sdk@*:
resolved "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.6.1.tgz"
resolved "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.6.1.tgz"
integrity sha512-Pjhwgn6lme5MxA6EcXQLD7ZEZMUZWJ714yLJCOkwEW96Yr0oS2JItnJA4NNYUP2hQBqQLc9SAUrOn9QOpFcQdw==
integrity sha512-Pjhwgn6lme5MxA6EcXQLD7ZEZMUZWJ714yLJCOkwEW96Yr0oS2JItnJA4NNYUP2hQBqQLc9SAUrOn9QOpFcQdw==
xinhua-sdk@^1.8.0:
version "1.8.0"
resolved "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.8.0.tgz#a67fd21ed76f4489935cb5b4b0c9b8fde544da6b"
integrity sha512-5aXpi+zql1d+ojaERMtcgGZHsVEJAyKRctQJ8RlixPRa0jttBTTIaZaMXUzJtLxlnB82n4uhX/oJ8TNb65TbPA==
xml-name-validator@^4.0.0:
xml-name-validator@^4.0.0:
version "4.0.0"
version "4.0.0"
resolved "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz"
resolved "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz"
...
...
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