Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
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
姜雷
wx-school-app
Commits
251e7966
Commit
251e7966
authored
Mar 13, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整部分编译警告
parent
eb8f5c21
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
28 deletions
+47
-28
Announcement.tsx
src/pages/Announcement/Announcement.tsx
+4
-5
Feedback.tsx
src/pages/Feedback/Feedback.tsx
+0
-1
Home.tsx
src/pages/Home/Home.tsx
+2
-4
OrderDetail.tsx
src/pages/Order/OrderDetail/OrderDetail.tsx
+1
-1
OrderPay.tsx
src/pages/Order/OrderPay/OrderPay.tsx
+14
-15
OrderPayway.tsx
src/pages/Order/components/OrderPayway/OrderPayway.tsx
+26
-1
index.tsx
src/pages/index/index.tsx
+0
-1
No files found.
src/pages/Announcement/Announcement.tsx
View file @
251e7966
...
...
@@ -5,13 +5,12 @@ import { View, ScrollView, Image, Text, WebView } from '@tarojs/components';
import
AnnIcon
from
'../../images/icon/ann_tongzhi_icon@2x.png'
;
import
{
fetchAllAnn
,
AnnItem
}
from
'../../api/announcement'
;
import
{
connect
}
from
'@tarojs/redux'
;
import
{
UserState
}
from
'../../store/rootReducers/userinfo'
;
import
'./Announcement.scss'
;
import
{
ANN_LINK_URL
}
from
'../../constants
'
;
import
{
Customer
}
from
'@/types/Customer/Customer
'
;
type
PageStateProps
=
{
userinfo
:
UserState
;
userinfo
:
Customer
;
};
type
PageOwnProps
=
{};
type
PageState
=
{
...
...
@@ -56,7 +55,7 @@ class Announcement extends Component {
console
.
log
(
err
);
});
}
geAnnDetail
(
id
:
number
,
title
:
string
)
{
geAnnDetail
(
id
:
number
)
{
Taro
.
navigateTo
({
url
:
`/pages/Content/Content?id=
${
id
}
`
,
});
...
...
@@ -70,7 +69,7 @@ class Announcement extends Component {
<
View
key=
{
annItem
.
id
}
className=
'Announcement-item'
onClick=
{
()
=>
this
.
geAnnDetail
(
annItem
.
id
,
annItem
.
title
)
}
>
onClick=
{
()
=>
this
.
geAnnDetail
(
annItem
.
id
)
}
>
<
Image
className=
'Announcement-item-img'
src=
{
annItem
.
linkUrls
[
0
]
}
...
...
src/pages/Feedback/Feedback.tsx
View file @
251e7966
...
...
@@ -3,7 +3,6 @@ import Taro, { Component, Config } from '@tarojs/taro';
import
{
View
,
Textarea
,
Button
}
from
'@tarojs/components'
;
import
{
fetchFeedback
}
from
'../../api/customer'
;
import
{
connect
}
from
'@tarojs/redux'
;
import
{
UserState
}
from
'src/store/rootReducers/userinfo'
;
import
'./Feedback.scss'
;
...
...
src/pages/Home/Home.tsx
View file @
251e7966
...
...
@@ -173,7 +173,7 @@ class Home extends Component {
let
newPhone
=
phone
.
replace
(
/
([
0-9
]{3})([
0-9
]{4})([
0-9
]{4})
/
,
'$1****$3'
);
return
newPhone
;
};
geAnnDetail
(
id
:
number
,
title
:
string
)
{
geAnnDetail
(
id
:
number
)
{
console
.
log
(
id
);
Taro
.
navigateTo
({
url
:
`/pages/Content/Content?id=
${
id
}
`
,
...
...
@@ -271,9 +271,7 @@ class Home extends Component {
{
annItem
.
items
.
length
&&
(
<
View
className=
'Home-Announcement-Content'
onClick=
{
()
=>
this
.
geAnnDetail
(
annItem
.
items
[
0
].
id
,
annItem
.
items
[
0
].
title
)
}
>
onClick=
{
()
=>
this
.
geAnnDetail
(
annItem
.
items
[
0
].
id
)
}
>
<
Text
className=
'Home-Announcement-Content-title'
>
{
annItem
.
items
[
0
].
title
}
</
Text
>
...
...
src/pages/Order/OrderDetail/OrderDetail.tsx
View file @
251e7966
...
...
@@ -141,7 +141,7 @@ class OrderDetail extends Component {
</
View
>
{
deductionBean
?
(
<
View
className=
'OrderDetail-payinfo'
>
<
Text
>
{
serviceName
}
豆抵扣
</
Text
>
<
Text
>
{
serviceName
?
serviceName
:
''
}
豆抵扣
</
Text
>
<
Text
className=
'deduction'
>
{
deductionBean
.
toFixed
(
2
)
}
</
Text
>
</
View
>
)
:
null
}
...
...
src/pages/Order/OrderPay/OrderPay.tsx
View file @
251e7966
...
...
@@ -8,16 +8,16 @@ import { fetchOrderDetailAndPay } from '../../../api/order';
import
'./OrderPay.scss'
;
import
{
ConsumeOrder
,
CustomerBeanAccountVo
,
PaymentAndActiveInfo
,
}
from
'../../../api/baseClass'
;
import
{
connect
}
from
'@tarojs/redux'
;
import
{
UserState
}
from
'../../../store/rootReducers/userinfo'
;
import
OrderPayway
from
'../components/OrderPayway/OrderPayway'
;
import
Order
from
'@/types/Order/Order'
;
import
{
Customer
}
from
'@/types/Customer/Customer'
;
type
PageStateProps
=
{
userinfo
:
UserState
;
userinfo
:
Customer
;
};
type
PageProps
=
{
id
?:
number
;
...
...
@@ -25,7 +25,7 @@ type PageProps = {
type
PageState
=
{
prePay
:
boolean
;
accounts
:
CustomerBeanAccountVo
[];
orderInfo
:
Consume
Order
;
orderInfo
:
Order
;
payInfos
:
{
paymentAndActiveInfos
:
PaymentAndActiveInfo
[];
paymentConfId
:
number
;
...
...
@@ -48,20 +48,20 @@ class OrderPay extends Component {
prePay
:
true
,
accounts
:
[],
orderInfo
:
{
actualMoney
:
undefined
,
areaId
:
undefined
,
actualMoney
:
0
,
areaId
:
0
,
areaName
:
''
,
consumeType
:
''
,
createAt
:
''
,
customerCellphone
:
''
,
customerId
:
undefined
,
customerId
:
0
,
customerName
:
''
,
deductionBean
:
undefined
,
deductionMoney
:
undefined
,
deductionBean
:
0
,
deductionMoney
:
0
,
equipmentNum
:
''
,
equipmentPosition
:
''
,
id
:
undefined
,
operateId
:
undefined
,
id
:
0
,
operateId
:
0
,
operateName
:
''
,
operationMode
:
''
,
orderName
:
''
,
...
...
@@ -69,10 +69,10 @@ class OrderPay extends Component {
orderState
:
''
,
outTradeNo
:
''
,
payType
:
''
,
payableMoney
:
undefined
,
serviceId
:
undefined
,
payableMoney
:
0
,
serviceId
:
0
,
serviceName
:
''
,
thirdDiscountMoney
:
undefined
,
thirdDiscountMoney
:
0
,
thirdTradeNumber
:
''
,
updateDate
:
''
,
},
...
...
@@ -109,7 +109,6 @@ class OrderPay extends Component {
payDoneHandle
()
{
Taro
.
navigateBack
();
}
render
()
{
...
...
src/pages/Order/components/OrderPayway/OrderPayway.tsx
View file @
251e7966
...
...
@@ -67,9 +67,34 @@ class OrderPayway extends Component {
paymentAndActiveInfos
:
[],
paymentConfId
:
0
,
},
orderInfo
:
{
actualMoney
:
0
,
areaId
:
0
,
areaName
:
''
,
consumeType
:
''
,
createAt
:
''
,
customerCellphone
:
''
,
customerId
:
0
,
customerName
:
''
,
deductionBean
:
0
,
deductionMoney
:
0
,
equipmentNum
:
''
,
equipmentPosition
:
''
,
id
:
0
,
operateId
:
0
,
operateName
:
''
,
operationMode
:
''
,
orderName
:
''
,
orderNumber
:
''
,
orderState
:
''
,
outTradeNo
:
''
,
payType
:
''
,
payableMoney
:
0
,
serviceId
:
0
,
serviceName
:
''
,
thirdDiscountMoney
:
0
,
thirdTradeNumber
:
''
,
updateDate
:
''
,
},
};
constructor
(
props
:
PageOwnProps
)
{
...
...
src/pages/index/index.tsx
View file @
251e7966
...
...
@@ -7,7 +7,6 @@ import { connect } from '@tarojs/redux';
import
{
updateUserInfo
,
UserState
}
from
'../../store/rootReducers/userinfo'
;
import
{
appLogin
}
from
'../../api/customer'
;
import
{
NotRegisterCode
}
from
'@/constants'
;
type
PageDispatchProps
=
{
updateUserInfo
:
(
e
:
UserState
|
{
token
:
string
})
=>
void
;
...
...
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