Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
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
pseer
gxpt_wechat
Commits
292a4643
Commit
292a4643
authored
Nov 15, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
5c27c749
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
couponCheck.vue
pages/couponCheck/couponCheck.vue
+1
-1
orderRecord.vue
pages/orderRecord/orderRecord.vue
+26
-7
orderResult.vue
pages/orderResult/orderResult.vue
+4
-2
No files found.
pages/couponCheck/couponCheck.vue
View file @
292a4643
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"input-box"
>
<view
class=
"input-box"
>
<view
class=
"cu-form-group"
>
<view
class=
"cu-form-group"
>
<input
class=
"input"
placeholder=
"点击输入卡券兑换码"
name=
"input"
v-mode
=
"code"
></input>
<input
type=
"number"
class=
"input"
placeholder=
"点击输入卡券兑换码"
v-model
=
"code"
></input>
<text
class=
"cuIcon-qr_code text-gray text-xxl"
@
tap=
"onScanCode"
></text>
<text
class=
"cuIcon-qr_code text-gray text-xxl"
@
tap=
"onScanCode"
></text>
</view>
</view>
</view>
</view>
...
...
pages/orderRecord/orderRecord.vue
View file @
292a4643
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
<view
class=
"list-content"
>
<view
class=
"list-content"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
class=
"list-item"
@
tap=
"onNavToOrderInfo(item)"
>
<view
v-for=
"(item,index) in list"
:key=
"index"
class=
"list-item"
@
tap=
"onNavToOrderInfo(item)"
>
<view
class=
"flex-between part-1"
>
<view
class=
"flex-between part-1"
>
<text
class=
"text-title text-bold text-xl"
>
一帆风顺(111)
</text>
<text
class=
"text-title text-bold text-xl"
>
{{
item
.
roomName
||
'房间名称'
}}
</text>
<text
class=
"text-pink"
>
待使用
</text>
<text
class=
"text-pink"
>
{{
orderStatusEnum
[
item
.
status
]
}}
</text>
</view>
</view>
<view
class=
"flex-between part-1"
>
<view
class=
"flex-between part-1"
>
<view
class=
""
>
<view
class=
""
>
...
@@ -24,9 +24,9 @@
...
@@ -24,9 +24,9 @@
<text>
{{
item
.
orderType
==
1
?
'房间预定'
:
'房间续订'
}}
</text>
<text>
{{
item
.
orderType
==
1
?
'房间预定'
:
'房间续订'
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"flex-between part-1"
>
<view
v-if=
"item.couponId"
class=
"flex-between part-1"
>
<text>
优惠券抵扣
</text>
<text>
优惠券抵扣
</text>
<text>
四小时75元优惠券
</text>
<text>
{{
item
.
couponName
}}
</text>
</view>
</view>
<view
class=
"flex-row part-1"
>
<view
class=
"flex-row part-1"
>
<text>
订单编号:
</text>
<text>
订单编号:
</text>
...
@@ -58,7 +58,10 @@
...
@@ -58,7 +58,10 @@
}
from
"@/api/order.js"
}
from
"@/api/order.js"
import
list
from
"../../uni_modules/uview-ui/libs/config/props/list"
;
import
list
from
"../../uni_modules/uview-ui/libs/config/props/list"
;
import
NoLogin
from
"@/components/noLogin/noLogin"
import
NoLogin
from
"@/components/noLogin/noLogin"
import
{
getDictItem
}
from
"@/utils/tools.js"
export
default
{
export
default
{
components
:{
components
:{
NoLogin
NoLogin
...
@@ -97,7 +100,8 @@ import NoLogin from "@/components/noLogin/noLogin"
...
@@ -97,7 +100,8 @@ import NoLogin from "@/components/noLogin/noLogin"
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
},
},
loginStatus
:
true
loginStatus
:
true
,
orderStatusEnum
:{}
};
};
},
},
onLoad
()
{
onLoad
()
{
...
@@ -110,9 +114,24 @@ import NoLogin from "@/components/noLogin/noLogin"
...
@@ -110,9 +114,24 @@ import NoLogin from "@/components/noLogin/noLogin"
}
}
},
},
onShow
()
{
onShow
()
{
this
.
on
Loading
()
this
.
on
GetDicts
()
},
},
methods
:
{
methods
:
{
onGetDicts
()
{
let
dicts
=
[]
if
(
uni
.
getStorageSync
(
'dicts'
))
{
dicts
=
JSON
.
parse
(
uni
.
getStorageSync
(
'dicts'
))
this
.
orderStatusEnum
=
getDictItem
(
dicts
,
"store_order_status"
);
this
.
onLoading
()
}
else
{
dictList
().
then
(
res
=>
{
dicts
=
res
.
data
.
data
;
uni
.
setStorageSync
(
'dicts'
,
JSON
.
stringify
(
res
.
data
.
data
))
this
.
orderStatusEnum
=
getDictItem
(
dicts
,
"store_order_status"
);
this
.
onLoading
()
})
}
},
onLoading
()
{
onLoading
()
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
...
...
pages/orderResult/orderResult.vue
View file @
292a4643
...
@@ -26,12 +26,12 @@
...
@@ -26,12 +26,12 @@
</view>
</view>
<button
class=
"cu-btn line-pink"
>
<button
class=
"cu-btn line-pink"
>
<text>
导航
</text>
<text>
导航
</text>
<image
src=
"../../static/map_icon.png
"
mode=
"heightFix"
></image>
<image
:src=
"assetsPath+'/map_icon.png'
"
mode=
"heightFix"
></image>
</button>
</button>
</view>
</view>
<view
class=
"flex-row"
>
<view
class=
"flex-row"
>
<view
class=
"part-img"
>
<view
class=
"part-img"
>
<image
src=
"../../static/blank2.jpg
"
mode=
"scaleToFill"
></image>
<image
:src=
"assetsPath+'/blank2.jpg'
"
mode=
"scaleToFill"
></image>
</view>
</view>
<view
class=
"flex-1 flex-col"
>
<view
class=
"flex-1 flex-col"
>
<view
class=
"info"
>
<view
class=
"info"
>
...
@@ -104,6 +104,7 @@
...
@@ -104,6 +104,7 @@
import
{
getOrderInfoByNo
}
from
"@/api/order.js"
import
{
getOrderInfoByNo
}
from
"@/api/order.js"
import
moment
from
"@/common/moment_zh_cn.js"
;
import
moment
from
"@/common/moment_zh_cn.js"
;
import
{
openDoor
}
from
"@/api/order.js"
import
{
openDoor
}
from
"@/api/order.js"
import
config
from
"@/config/index.config"
export
default
{
export
default
{
components
:{
components
:{
...
@@ -113,6 +114,7 @@
...
@@ -113,6 +114,7 @@
return
{
return
{
orderNo
:
''
,
orderNo
:
''
,
orderInfo
:{},
orderInfo
:{},
assetsPath
:
config
.
assetsPath
,
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
...
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