|
|
@@ -1,8 +1,8 @@
|
|
|
-import { BasicType, BookItem, IBestToast, YTAvoid } from 'basic'
|
|
|
+import { BasicType, BookItem, IBestToast, userInfo, YTAvoid, yTRouter } from 'basic'
|
|
|
import { OrderApi } from '../../apis/OrderApi'
|
|
|
import { Address } from '../../model/Address'
|
|
|
import { OrderStatus } from '../../model/EnumState'
|
|
|
-import { OrderValidationData } from '../../model/OrderModelIndex'
|
|
|
+import { GetUnifiedPayInfoRequestData, OrderValidationData } from '../../model/OrderModelIndex'
|
|
|
import { OrderDetailModel } from '../../model/RouterModel'
|
|
|
|
|
|
@ObservedV2
|
|
|
@@ -29,7 +29,7 @@ export class OrderDetailViewModel{
|
|
|
bookIds: [],
|
|
|
deliveryMethod: 2,
|
|
|
deposit: 0,
|
|
|
- payWay: 0,
|
|
|
+ payWay: 2,
|
|
|
postFee: 9.99,
|
|
|
userName: '占三峰',
|
|
|
phone: '13598728343',
|
|
|
@@ -92,9 +92,19 @@ export class OrderDetailViewModel{
|
|
|
}
|
|
|
// yTRouter.router2BorrowAnsPage()
|
|
|
|
|
|
- this.orderValidation.orderPrice = Number.parseFloat(this.totalPrice.toFixed(2))
|
|
|
- this.orderValidation.remark = this.remark
|
|
|
- await OrderApi.checkOrder(this.orderValidation)
|
|
|
+ // this.orderValidation.orderPrice = Number.parseFloat(this.totalPrice.toFixed(2))
|
|
|
+ // this.orderValidation.remark = this.remark
|
|
|
+ // let ans: OrderValidationData = await OrderApi.checkOrder(this.orderValidation)
|
|
|
+ // console.log(`借阅结果数据结构 ans = ${JSON.stringify(ans)}`)
|
|
|
+
|
|
|
+ let payInfo: GetUnifiedPayInfoRequestData = {
|
|
|
+ orderId: '16',//ans.id,
|
|
|
+ payWay: '2',
|
|
|
+ }
|
|
|
+
|
|
|
+ let res = await OrderApi.getPayInfo(payInfo)
|
|
|
+ console.log(`res = ${JSON.stringify(res)}`)
|
|
|
+ yTRouter.router2InitiatePayPage(res)
|
|
|
}
|
|
|
|
|
|
/** 前往联系客服 */
|