Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9ce9badb
authored
Aug 27, 2020
by
TengFengLian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改 toast image
parent
27458ba7
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
33 additions
and
55 deletions
image/error.png
image/success.png
pages/activity-detail/activity-detail.js
pages/activity-entry/activity-entry.js
pages/activity-entry/activity-entry.wxml
pages/activityDetail/activityDetail.js
pages/activityDetail/activityDetail.wxml
pages/appointment/appointment.js
pages/appointment/appointment.wxml
pages/customerService/customerService.js
pages/customerService/customerService.wxml
pages/myInfo/myInfo.js
pages/myInfo/myInfo.wxml
pages/ownerCertification/ownerCertification.js
pages/ownerCertification/ownerCertification.wxml
wxss/samcss-reset.wxss
image/error.png
0 → 100644
View file @
9ce9badb
3.98 KB
image/success.png
0 → 100644
View file @
9ce9badb
4.31 KB
pages/activity-detail/activity-detail.js
View file @
9ce9badb
...
...
@@ -63,27 +63,13 @@ Page({
},
onContact
:
function
()
{
switch
(
this
.
data
.
activeState
)
{
case
0
:
wx
.
lin
.
showToast
({
title
:
'活动未开始'
,
icon
:
'error'
,
})
return
break
;
case
1
:
break
;
case
2
:
wx
.
lin
.
showToast
({
title
:
'报名已截止'
,
icon
:
'error'
,
})
return
break
;
}
if
(
this
.
data
.
activeState
==
1
)
{
wx
.
navigateTo
({
url
:
'/pages/activity-entry/activity-entry?id='
+
this
.
data
.
id
})
}
},
/**
...
...
pages/activity-entry/activity-entry.js
View file @
9ce9badb
...
...
@@ -27,7 +27,6 @@ Page({
errorSession
:
''
,
errorQuantity
:
''
,
canSubmit
:
false
,
isSubmit
:
false
,
// 接口参数
id
:
''
,
},
...
...
@@ -314,18 +313,16 @@ Page({
// 活动报名
doActivityEnroll
()
{
if
(
!
this
.
inspectForm
()
||
this
.
data
.
isSubmit
)
{
if
(
!
this
.
inspectForm
())
{
return
}
this
.
setData
({
isSubmit
:
true
,
})
var
activityTime
=
this
.
data
.
activityTimes
[
this
.
data
.
activityIndex
]
let
formInto
=
this
.
data
.
formInto
wx
.
lin
.
showToast
({
icon
:
'loading'
,
title
:
'提交中'
,
show
:
true
,
mask
:
true
,
})
var
that
=
this
app
.
wxRequest
({
...
...
@@ -340,16 +337,12 @@ Page({
success
:
function
(
res
)
{
that
.
setData
({
entryComplete
:
true
,
isSubmit
:
false
,
})
wx
.
lin
.
hideToast
()
},
fail
:
function
(
err
)
{
that
.
setData
({
isSubmit
:
false
,
})
wx
.
lin
.
showToast
({
i
con
:
'error
'
,
i
mage
:
'/image/error.png
'
,
title
:
err
.
msg
,
})
}
...
...
pages/activity-entry/activity-entry.wxml
View file @
9ce9badb
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<navigation class="navigation" titleText="活动报名" backIcon="/image/back.png"></navigation>
<view class="entry-complete row con-c align-c" wx:if="{{entryComplete}}">
...
...
pages/activityDetail/activityDetail.js
View file @
9ce9badb
...
...
@@ -132,7 +132,7 @@ Page({
},
fail
:
function
(
err
)
{
wx
.
lin
.
showToast
({
i
con
:
'error
'
,
i
mage
:
'/image/error.png
'
,
title
:
err
.
msg
,
})
}
...
...
pages/activityDetail/activityDetail.wxml
View file @
9ce9badb
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<navigation class="navigation" titleText="报名详情" backIcon="/image/back.png"></navigation>
<view class="container">
...
...
pages/appointment/appointment.js
View file @
9ce9badb
...
...
@@ -19,7 +19,6 @@ Page({
canSubmit
:
false
,
winQuota
:
false
,
isSubmit
:
false
,
// 预约入园剩余名额
total
:
0
,
...
...
@@ -195,18 +194,15 @@ Page({
app
.
login
({
success
:
function
()
{
if
(
!
that
.
inspectForm
()
||
that
.
data
.
isSubmit
)
{
if
(
!
that
.
inspectForm
())
{
return
}
that
.
setData
({
isSubmit
:
true
})
wx
.
lin
.
showToast
({
icon
:
'loading'
,
title
:
'提交中'
,
show
:
true
,
mask
:
true
,
})
app
.
wxRequest
({
url
:
'/api/v1/subscribe/doSubscribe'
,
...
...
@@ -220,18 +216,14 @@ Page({
success
:
function
(
res
)
{
that
.
setData
({
appointmentComplete
:
true
,
isSubmit
:
false
})
wx
.
lin
.
hideToast
()
},
fail
:
function
(
err
)
{
wx
.
lin
.
showToast
({
i
con
:
'error
'
,
i
mage
:
'/image/error.png
'
,
title
:
err
.
msg
,
})
that
.
setData
({
isSubmit
:
false
})
}
})
...
...
pages/appointment/appointment.wxml
View file @
9ce9badb
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<!-- 首页 - 入园预约 / 房屋预约 -->
<navigation class="navigation" backIcon="/image/back-w.png"></navigation>
...
...
pages/customerService/customerService.js
View file @
9ce9badb
...
...
@@ -205,6 +205,7 @@ Page({
icon
:
'loading'
,
title
:
'提交中'
,
show
:
true
,
mask
:
true
,
})
app
.
wxRequest
({
url
:
'/api/v1/smFeedback/doFeedBack'
,
...
...
@@ -212,19 +213,19 @@ Page({
content
:
that
.
data
.
remark
},
success
:
function
(
res
)
{
wx
.
lin
.
showToast
({
image
:
'/image/success.png'
,
title
:
'提交成功'
,
})
that
.
setData
({
inputHidden
:
true
,
title
:
'客服中心'
,
remark
:
''
,
})
wx
.
lin
.
showToast
({
icon
:
'success'
,
title
:
'提交成功'
,
})
},
fail
:
function
(
err
)
{
wx
.
lin
.
showToast
({
icon
:
'error
'
,
image
:
'/image/error.png
'
,
title
:
err
.
msg
,
})
}
...
...
pages/customerService/customerService.wxml
View file @
9ce9badb
<!--pages/customerService/customerService.wxml-->
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<navigation class="navigation" titleText="{{title}}" backIcon="/image/back-w.png" color="#ffffff"></navigation>
<view class="container">
<image class="banner-img" src="http://upload.miaomiao-bao.com/70161202008161703131621.jpg"></image>
...
...
pages/myInfo/myInfo.js
View file @
9ce9badb
...
...
@@ -141,7 +141,7 @@ Page({
if
(
nickName
==
''
)
{
wx
.
lin
.
showToast
({
i
con
:
'error
'
,
i
mage
:
'/image/error.png
'
,
title
:
'请填写姓名'
,
})
return
...
...
pages/myInfo/myInfo.wxml
View file @
9ce9badb
<!--pages/myInfo/myInfo.wxml-->
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<navigation class="navigation" titleText="个人资料" backIcon="/image/back.png"></navigation>
<view class="container">
...
...
pages/ownerCertification/ownerCertification.js
View file @
9ce9badb
...
...
@@ -167,7 +167,7 @@ Page({
case
0
:
type
=
2
;
break
;
case
1
:
wx
.
lin
.
showToast
({
i
con
:
'success
'
,
i
mage
:
'/image/success.png
'
,
title
:
'已审核通过'
,
})
setTimeout
(()
=>
{
...
...
@@ -220,7 +220,7 @@ Page({
},
success
:
function
(
res
)
{
wx
.
lin
.
showToast
({
icon
:
'success
'
,
image
:
'/image/success.png
'
,
title
:
'提交成功'
,
})
that
.
setData
({
...
...
@@ -230,7 +230,7 @@ Page({
},
fail
:
function
(
err
)
{
wx
.
lin
.
showToast
({
icon
:
'error
'
,
image
:
'/image/error.png
'
,
title
:
err
.
msg
,
})
}
...
...
pages/ownerCertification/ownerCertification.wxml
View file @
9ce9badb
<l-toast></l-toast>
<l-toast
l-image-class="toast-image"
></l-toast>
<navigation class="navigation" backIcon="/image/back-w.png"></navigation>
<view class="container">
<view class="header">
...
...
wxss/samcss-reset.wxss
View file @
9ce9badb
...
...
@@ -26,3 +26,8 @@ button {
button::after {
border: none;
}
.toast-image {
width: 80rpx;
height: 80rpx;
}
\ No newline at end of file
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