Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
U
uni-pdtravel
Project
Project
Details
Activity
Releases
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
panyongping
uni-pdtravel
Commits
0941adc1
Commit
0941adc1
authored
Oct 11, 2023
by
qipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报错提示 修改为uni
parent
f678c222
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
38 deletions
+38
-38
myPhotoAlbum.vue
pages/album/myPhotoAlbum/myPhotoAlbum.vue
+14
-14
orderList.vue
pages/my/order/orderList/orderList.vue
+24
-24
No files found.
pages/album/myPhotoAlbum/myPhotoAlbum.vue
View file @
0941adc1
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<
u-toast
ref=
"uToast"
/
>
<
!-- <u-toast ref="uToast" /> --
>
</view>
</view>
</template>
</template>
...
@@ -209,9 +209,9 @@ export default {
...
@@ -209,9 +209,9 @@ export default {
this
.
merchantMessage
=
res
.
data
this
.
merchantMessage
=
res
.
data
this
.
checkMonkey
()
this
.
checkMonkey
()
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -224,9 +224,9 @@ export default {
...
@@ -224,9 +224,9 @@ export default {
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
this
.
option
=
res
.
data
this
.
option
=
res
.
data
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -244,9 +244,9 @@ export default {
...
@@ -244,9 +244,9 @@ export default {
if
(
res
.
code
==
'00'
){
if
(
res
.
code
==
'00'
){
this
.
merchantList
=
res
.
data
this
.
merchantList
=
res
.
data
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -283,9 +283,9 @@ export default {
...
@@ -283,9 +283,9 @@ export default {
//隐藏加载框
//隐藏加载框
uni
.
hideLoading
()
uni
.
hideLoading
()
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -380,9 +380,9 @@ export default {
...
@@ -380,9 +380,9 @@ export default {
this
.
originalPrices
=
0
this
.
originalPrices
=
0
}
}
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -465,9 +465,9 @@ export default {
...
@@ -465,9 +465,9 @@ export default {
url
:
'../../payment/orderPayment/orderPayment?orderId='
+
res
.
data
.
id
+
'&albumOrderdetail=1'
url
:
'../../payment/orderPayment/orderPayment?orderId='
+
res
.
data
.
id
+
'&albumOrderdetail=1'
})
})
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
...
pages/my/order/orderList/orderList.vue
View file @
0941adc1
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
<view
class=
"product-goods"
v-else
>
<view
class=
"product-goods"
v-else
>
<view
class=
"order-No"
>
暂无订单信息
</view>
<view
class=
"order-No"
>
暂无订单信息
</view>
</view>
</view>
<
u-toast
ref=
"uToast"
/
>
<
!-- <u-toast ref="uToast" /> --
>
<u-modal
v-model=
"configShow"
show-cancel-button=
"true"
:content=
"configTitle"
@
confirm=
"operationEnter()"
@
cancel=
"operationClose()"
></u-modal>
<u-modal
v-model=
"configShow"
show-cancel-button=
"true"
:content=
"configTitle"
@
confirm=
"operationEnter()"
@
cancel=
"operationClose()"
></u-modal>
</view>
</view>
</template>
</template>
...
@@ -479,16 +479,16 @@ export default {
...
@@ -479,16 +479,16 @@ export default {
queryPhoneOrder
(){
//通过手机号查看订单
queryPhoneOrder
(){
//通过手机号查看订单
if
(
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
this
.
touristPhone
))){
if
(
!
(
/^1
[
34578
]\d{9}
$/
.
test
(
this
.
touristPhone
))){
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
'请填写正确的手机号码'
,
title
:
'请填写正确的手机号码'
,
type
:
'error'
,
icon
:
'none'
})
})
return
return
}
}
if
(
this
.
touristName
==
''
){
if
(
this
.
touristName
==
''
){
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
'姓名不可为空'
,
title
:
'姓名不可为空'
,
type
:
'error'
,
icon
:
'none'
})
})
return
return
}
}
...
@@ -508,9 +508,9 @@ export default {
...
@@ -508,9 +508,9 @@ export default {
this
.
pageIndex
=
1
this
.
pageIndex
=
1
this
.
getData
(
1
)
this
.
getData
(
1
)
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
res
.
message
,
title
:
res
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
...
@@ -600,9 +600,9 @@ export default {
...
@@ -600,9 +600,9 @@ export default {
//隐藏加载框
//隐藏加载框
uni
.
hideLoading
()
uni
.
hideLoading
()
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
'暂无订单信息'
,
title
:
'暂无订单信息'
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -633,9 +633,9 @@ export default {
...
@@ -633,9 +633,9 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
var
ret
=
res
var
ret
=
res
if
(
ret
.
code
==
'00'
){
if
(
ret
.
code
==
'00'
){
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
'订单取消成功'
,
title
:
'订单取消成功'
,
type
:
'success'
,
icon
:
'none'
})
})
//this.$store.commit('showLoading')
//this.$store.commit('showLoading')
this
.
pageIndex
=
1
this
.
pageIndex
=
1
...
@@ -646,9 +646,9 @@ export default {
...
@@ -646,9 +646,9 @@ export default {
// this.getData(1)
// this.getData(1)
this
.
configShow
=
false
this
.
configShow
=
false
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
re
t
.
message
,
title
:
re
s
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
@@ -660,9 +660,9 @@ export default {
...
@@ -660,9 +660,9 @@ export default {
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
var
ret
=
res
var
ret
=
res
if
(
ret
.
code
==
'00'
){
if
(
ret
.
code
==
'00'
){
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
'订单删除成功'
,
title
:
'订单删除成功'
,
type
:
'success'
,
icon
:
'none'
})
})
//this.$store.commit('showLoading')
//this.$store.commit('showLoading')
this
.
pageIndex
=
1
this
.
pageIndex
=
1
...
@@ -673,9 +673,9 @@ export default {
...
@@ -673,9 +673,9 @@ export default {
// this.getData(1)
// this.getData(1)
this
.
configShow
=
false
this
.
configShow
=
false
}
else
{
}
else
{
this
.
$refs
.
uToast
.
show
({
uni
.
showToast
({
title
:
re
t
.
message
,
title
:
re
s
.
message
,
type
:
'error'
,
icon
:
'none'
})
})
}
}
})
})
...
...
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