pull/1/head
戴余标 3 years ago
parent bf798203d6
commit 48df98ccd3

@ -323,7 +323,7 @@ class _Pay {
///
String get livingExpensesOrderCheckAlipay =>
'/app/user/alipay/livingExpensesOrderCheckAlipay';
///
String get settlement =>
'/app/user/shop/cart/settlement';
}

@ -172,7 +172,7 @@ class _AdvicePageState extends State<AdvicePage> with TickerProviderStateMixin {
_refreshController.callRefresh();
setState(() => _selectedMode = false);
},
child: '删除订单'.text.make(),
child: '删除'.text.make(),
),
secondChild: BottomButton(
onPressed: () async {

@ -146,13 +146,15 @@ class _NewAdvicePageState extends State<NewAdvicePage> {
width: 60.w,
),
40.wb,
'${userProvider.defaultHouse!.addressName}${userProvider.defaultHouse!.communityName}\n'
userProvider.defaultHouse != null
? '${userProvider.defaultHouse!.addressName}${userProvider.defaultHouse!.communityName}\n'
'${userProvider.defaultHouse!.buildingName}幢-${UserTool.userProvider.defaultHouse!.unitName}单元-${userProvider.defaultHouse!.estateName}'
.text
.size(32.sp)
.black
.bold
.make(),
.make()
: '请选择房屋'.text.size(32.sp).black.bold.make(),
300.wb,
Icon(
Icons.arrow_forward_ios,

@ -55,15 +55,13 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
Future _pay() async {
Function cancel = BotToast.showLoading();
BaseModel baseModel =
await NetUtil().post(API.pay.jcookOrderCreateOrder, params: {
await NetUtil().post(SAASAPI.pay.settlement, params: {
"addressId": widget.orderModel.appGoodsAddressId,
"settlementGoodsDTOList": _goodsList.map((v) => v.toJson()).toList(),
"payType": 1, //
"payPrice": widget.orderModel.payPrice
"settlementGoodsList": _goodsList.map((v) => v.toJson()).toList(),
});
if (baseModel.success) {
bool result = await PayUtil()
.callAliPay(baseModel.msg, API.pay.jcookOrderCheckAlipay);
.callAliPay(baseModel.msg, SAASAPI.pay.jcookOrderCheckAlipay);
if (result) {
Get.off(() => OrderPage(initIndex: 2));
} else {

@ -127,16 +127,16 @@ class _SubmitOrderPageState extends State<SubmitOrderPage> {
}
Function cancel = BotToast.showLoading();
BaseModel baseModel = await NetUtil()
.post(API.pay.jcookOrderCreateOrder, params: {
.post(SAASAPI.pay.createGoodsOrder, params: {
"addressId": _addressModel!.id!,
"settlementGoodsDTOList":
_goodsList.map((v) => v.toJson()).toList(),
"payType": 1, //
"payPrice": _allPrice
"payPrice": _allPrice,
"payType": 1,// ()
});
if (baseModel.success) {
bool result = await PayUtil().callAliPay(
baseModel.msg, API.pay.jcookOrderCheckAlipay);
baseModel.msg, SAASAPI.pay.jcookOrderCheckAlipay);
if (result) {
Get.off(() => OrderPage(initIndex: 2));
} else {

@ -1,3 +1,4 @@
import 'package:aku_new_community/widget/bee_image_network.dart';
import 'package:flutter/material.dart';
@ -31,11 +32,10 @@ class HorizontalImageView extends StatelessWidget {
tag: urls[index]!,
child: ClipRRect(
borderRadius: BorderRadius.circular(8.w),
child: FadeInImage.assetNetwork(
child: BeeImageNetwork(
urls:[SAASAPI.image(urls[index]) ?? ''],
height: 184.w,
width: 184.w,
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: SAASAPI.image(urls[index]),
fit: BoxFit.cover,
),
),

Loading…
Cancel
Save