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

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

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

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

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

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

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

Loading…
Cancel
Save