|
|
@@ -7,9 +7,11 @@ import 'package:bbyyy/beans/my_shop_bean_entity.dart';
|
|
|
import 'package:bbyyy/beans/new_order_bean_entity.dart';
|
|
|
import 'package:bbyyy/beans/pay_by_alipay_bean_entity.dart';
|
|
|
import 'package:bbyyy/beans/smart_order_bean_entity.dart';
|
|
|
+import 'package:bbyyy/beans/store_bean_entity.dart';
|
|
|
import 'package:bbyyy/beans/user_balance_entity.dart';
|
|
|
import 'package:bbyyy/https/MyDio.dart';
|
|
|
import 'package:bbyyy/https/my_request.dart';
|
|
|
+import 'package:bbyyy/https/url.dart';
|
|
|
import 'package:bbyyy/my_tools/const.dart';
|
|
|
import 'package:bbyyy/my_tools/dims.dart';
|
|
|
import 'package:bbyyy/my_tools/easy_loading/easy_loading.dart';
|
|
|
@@ -27,6 +29,7 @@ import 'package:flutter_slidable/flutter_slidable.dart';
|
|
|
import 'package:flutter_svg/svg.dart';
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
|
|
import 'package:tobias/tobias.dart';
|
|
|
+import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
import 'gang_information_page/gang_information_page.dart';
|
|
|
|
|
|
@@ -71,6 +74,7 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
if (widget.data.ownerUid == MyCookie().getUID()) {
|
|
|
selectedIndex = 1;
|
|
|
}
|
|
|
+ queryStoreInformation();
|
|
|
}
|
|
|
|
|
|
@override
|
|
|
@@ -87,19 +91,308 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
body: Column(
|
|
|
children: [
|
|
|
MyViews().myAppBar(widget.data.shopName, context, [
|
|
|
- IconButton(
|
|
|
- icon: Icon(Icons.more_horiz),
|
|
|
- onPressed: () {
|
|
|
- MyTools()
|
|
|
- .toPage(context, GangInformationPage(widget.data), (then) {
|
|
|
- if(then=='删除货帮'){
|
|
|
- Navigator.pop(context,'删除货帮');
|
|
|
- }
|
|
|
- });
|
|
|
- })
|
|
|
+ Visibility(
|
|
|
+ visible: widget.data.ownerUid == MyCookie().getUID(),
|
|
|
+ child: IconButton(
|
|
|
+ icon: Icon(Icons.more_horiz),
|
|
|
+ onPressed: () {
|
|
|
+ MyTools().toPage(context, GangInformationPage(widget.data),
|
|
|
+ (then) {
|
|
|
+ if (then == '删除货帮') {
|
|
|
+ Navigator.pop(context, '删除货帮');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }),
|
|
|
+ )
|
|
|
]),
|
|
|
+ Container(
|
|
|
+ color: MyColors.cF7F7F7,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.circular(4), color: Colors.white),
|
|
|
+ margin: EdgeInsets.all(10),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ showDialog(
|
|
|
+ context: context,
|
|
|
+ builder: (BuildContext context) {
|
|
|
+ return Material(
|
|
|
+ color: Colors.black12,
|
|
|
+ child: Center(
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.circular(16),
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ height: 510,
|
|
|
+ margin: EdgeInsets.symmetric(horizontal: 28),
|
|
|
+ padding: EdgeInsets.symmetric(
|
|
|
+ horizontal: 14, vertical: 15),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ height:
|
|
|
+ MediaQuery.of(context).size.width -
|
|
|
+ 71,
|
|
|
+ width: MediaQuery.of(context).size.width -
|
|
|
+ 56,
|
|
|
+ child: Stack(
|
|
|
+ children: [
|
|
|
+ ClipRRect(
|
|
|
+ child: MyViews().netImg(
|
|
|
+ imgURL(widget.data.shopPic),
|
|
|
+ MediaQuery.of(context)
|
|
|
+ .size
|
|
|
+ .width -
|
|
|
+ 84,
|
|
|
+ MediaQuery.of(context)
|
|
|
+ .size
|
|
|
+ .width -
|
|
|
+ 84),
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.circular(4),
|
|
|
+ ),
|
|
|
+ Positioned(
|
|
|
+ right: 0,
|
|
|
+ top: 0,
|
|
|
+ child: IconButton(
|
|
|
+ icon: Icon(
|
|
|
+ Icons.cancel,
|
|
|
+ color: MyColors.cC9C9C9,
|
|
|
+ size: 24,
|
|
|
+ ),
|
|
|
+ onPressed: () {
|
|
|
+ Navigator.pop(context);
|
|
|
+ }),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/店铺.svg',
|
|
|
+ height: 21,
|
|
|
+ width: 21,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 6,
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ widget.data.shopName,
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c333333,
|
|
|
+ fontSize: 16),
|
|
|
+ ))
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ Container(height: 10,),
|
|
|
+ Text(
|
|
|
+ store == null
|
|
|
+ ? '店铺介绍:暂无'
|
|
|
+ : '店铺介绍:${store.introduction}',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c333333,
|
|
|
+ fontSize: 12,
|
|
|
+ ),
|
|
|
+ maxLines: 3,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ softWrap: true,
|
|
|
+ ), Container(height: 10,),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/地址.svg',
|
|
|
+ color: MyColors.c666666,
|
|
|
+ height: 12,
|
|
|
+ width: 12,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 5,
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ store == null
|
|
|
+ ? '暂无'
|
|
|
+ : store.address,
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 11),
|
|
|
+ maxLines: 1,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ softWrap: true,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ), Container(height: 10,),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: (){
|
|
|
+ launch('tel:${store.mobile}');
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: MyColors.cFF4233,
|
|
|
+ borderRadius: BorderRadius.circular(20),
|
|
|
+ ),
|
|
|
+ height: 40,
|
|
|
+ child: Row(children: [
|
|
|
+ SvgPicture.asset('images/svg/电话.svg',color: Colors.white,height: 24,width: 24,),
|
|
|
+ Container(width: 4,),
|
|
|
+ Text(store==null?'':store.mobile,style: TextStyle(color: Colors.white,fontSize: 15),),
|
|
|
+ ],mainAxisAlignment: MainAxisAlignment.center,),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ mainAxisAlignment:
|
|
|
+ MainAxisAlignment.spaceAround,
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ },
|
|
|
+ );
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.only(
|
|
|
+ right: 10, top: 6, left: 6, bottom: 6),
|
|
|
+ child: ClipRRect(
|
|
|
+ child: MyViews()
|
|
|
+ .netImg(imgURL(widget.data.shopPic), 65, 65),
|
|
|
+ borderRadius: BorderRadius.circular(4),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Container(
|
|
|
+ height: 65,
|
|
|
+ margin: EdgeInsets.only(right: 6),
|
|
|
+ child: Column(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ widget.data.shopName,
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c333333, fontSize: 13),
|
|
|
+ maxLines: 1,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ softWrap: true,
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ store == null
|
|
|
+ ? '店铺介绍:无'
|
|
|
+ : '店铺介绍:${store.introduction}',
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 11),
|
|
|
+ maxLines: 1,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ softWrap: true,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/箭头.svg',
|
|
|
+ color: MyColors.c666666,
|
|
|
+ height: 10,
|
|
|
+ width: 10,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ ),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/地址.svg',
|
|
|
+ color: MyColors.c666666,
|
|
|
+ height: 12,
|
|
|
+ width: 12,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 5,
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ child: Text(
|
|
|
+ store == null ? '暂无' : store.address,
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.c666666,
|
|
|
+ fontSize: 11),
|
|
|
+ maxLines: 1,
|
|
|
+ overflow: TextOverflow.ellipsis,
|
|
|
+ softWrap: true,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ height: 0.5,
|
|
|
+ color: MyColors.cE7E7E7,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ margin: EdgeInsets.all(6),
|
|
|
+ child: Row(
|
|
|
+ children: [
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ SvgPicture.asset(
|
|
|
+ 'images/svg/电话.svg',
|
|
|
+ height: 18,
|
|
|
+ width: 18,
|
|
|
+ ),
|
|
|
+ Container(
|
|
|
+ width: 5,
|
|
|
+ ),
|
|
|
+ Text(
|
|
|
+ store == null ? '暂无' : store.mobile,
|
|
|
+ style: TextStyle(
|
|
|
+ color: MyColors.cFF4233, fontSize: 12),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ launch('tel:${store.mobile}');
|
|
|
+ },
|
|
|
+ behavior: HitTestBehavior.translucent,
|
|
|
+ child: Container(
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: MyColors.cFF4233,
|
|
|
+ borderRadius: BorderRadius.circular(10),
|
|
|
+ ),
|
|
|
+ height: 20,
|
|
|
+ width: 50,
|
|
|
+ child: MyViews().myText('点击拨打', Colors.white, 9),
|
|
|
+ alignment: Alignment.center,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
Visibility(
|
|
|
- visible: widget.data.privateShop||widget.data.ownerUid==MyCookie().getUID(),
|
|
|
+ visible: widget.data.privateShop ||
|
|
|
+ widget.data.ownerUid == MyCookie().getUID(),
|
|
|
child: Container(
|
|
|
height: 40,
|
|
|
color: Colors.white,
|
|
|
@@ -242,8 +535,8 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
Expanded(
|
|
|
child: GestureDetector(
|
|
|
onTap: () {
|
|
|
- MyTools().toPage(
|
|
|
- context, PayToTheHelperPage(widget.data), (then) {});
|
|
|
+ MyTools().toPage(context,
|
|
|
+ PayToTheHelperPage(widget.data), (then) {});
|
|
|
},
|
|
|
behavior: HitTestBehavior.translucent,
|
|
|
child: Container(
|
|
|
@@ -305,8 +598,8 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
: ListView.builder(
|
|
|
itemBuilder: (c, index) {
|
|
|
return Slidable(
|
|
|
- child:
|
|
|
- MyViews().getNoPayGoodsItem(orders[index], context,widget.data.ownerUid),
|
|
|
+ child: MyViews().getNoPayGoodsItem(
|
|
|
+ orders[index], context, widget.data.ownerUid),
|
|
|
actionPane: SlidableDrawerActionPane(),
|
|
|
enabled: widget.data.ownerUid == MyCookie().getUID(),
|
|
|
actionExtentRatio: 0.25,
|
|
|
@@ -318,13 +611,19 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
borderRadius: BorderRadius.circular(30),
|
|
|
color: MyColors.cFF4233,
|
|
|
),
|
|
|
- height: 60,width: 60,
|
|
|
- child: SvgPicture.asset('images/svg/del.svg',height: 40,width: 40,),
|
|
|
+ height: 60,
|
|
|
+ width: 60,
|
|
|
+ child: SvgPicture.asset(
|
|
|
+ 'images/svg/del.svg',
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ ),
|
|
|
alignment: Alignment.center,
|
|
|
),
|
|
|
),
|
|
|
- onTap: (){
|
|
|
- showSimpleDialog('将删除订单(${orders[index].uid})', context, (){
|
|
|
+ onTap: () {
|
|
|
+ showSimpleDialog(
|
|
|
+ '将删除订单(${orders[index].uid})', context, () {
|
|
|
Navigator.pop(context);
|
|
|
deleteOrder(orders[index]);
|
|
|
});
|
|
|
@@ -350,7 +649,8 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
? noData()
|
|
|
: ListView.builder(
|
|
|
itemBuilder: (c, index) {
|
|
|
- return MyViews().getNoPayGoodsItem(orders[index], context,widget.data.ownerUid);
|
|
|
+ return MyViews().getNoPayGoodsItem(
|
|
|
+ orders[index], context, widget.data.ownerUid);
|
|
|
},
|
|
|
itemCount: orders.length,
|
|
|
padding: EdgeInsets.only(left: 10, right: 10, top: 10),
|
|
|
@@ -389,7 +689,7 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
MyDio().query({
|
|
|
"key": "commodity",
|
|
|
"filters": {
|
|
|
- "conditions": ["shop_uid == ${widget.data.shopUid}","on_sale == true"]
|
|
|
+ "conditions": ["shop_uid == ${widget.data.shopUid}", "on_sale == true"]
|
|
|
},
|
|
|
"dims": commodityDims,
|
|
|
"paging": [page, 20]
|
|
|
@@ -484,92 +784,56 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
data.buyerPic = '';
|
|
|
data.amount = widget.order.amount;
|
|
|
data.uid = widget.order.uID;
|
|
|
- showPayDialog(data,context,(){
|
|
|
+ showPayDialog(data, context, () {
|
|
|
Navigator.pop(context);
|
|
|
getUserWalletBalance((re, hE) {
|
|
|
if (!hE) {
|
|
|
UserBalanceEntity balance =
|
|
|
- UserBalanceEntity()
|
|
|
- .fromJson(json.decode(re
|
|
|
- .data
|
|
|
- .toString()));
|
|
|
- if (balance.data >=
|
|
|
- widget.order.amount) {
|
|
|
- payOrder(
|
|
|
- payWayWallet, widget.order.uID,
|
|
|
- (re, hE) {
|
|
|
- if (!hE) {
|
|
|
- showToast('支付成功');
|
|
|
- EventBus()
|
|
|
- .emit('payAnOrder');
|
|
|
- }
|
|
|
- }, (e) {}, context);
|
|
|
+ UserBalanceEntity().fromJson(json.decode(re.data.toString()));
|
|
|
+ if (balance.data >= widget.order.amount) {
|
|
|
+ payOrder(payWayWallet, widget.order.uID, (re, hE) {
|
|
|
+ if (!hE) {
|
|
|
+ showToast('支付成功');
|
|
|
+ EventBus().emit('payAnOrder');
|
|
|
+ }
|
|
|
+ }, (e) {}, context);
|
|
|
} else {
|
|
|
- payOrder(
|
|
|
- payWayAliPay, widget.order.uID,
|
|
|
- (re, hE) {
|
|
|
- if (!hE) {
|
|
|
- PayByAlipayBeanEntity
|
|
|
- entity =
|
|
|
- PayByAlipayBeanEntity()
|
|
|
- .fromJson(
|
|
|
- json.decode(re
|
|
|
- .data
|
|
|
- .toString()));
|
|
|
- EventBus().on(
|
|
|
- 'alipayPaymentCallback',
|
|
|
- (arg) {
|
|
|
- EventBus().off(
|
|
|
- 'alipayPaymentCallback');
|
|
|
- EasyLoading.dismiss();
|
|
|
- showToast('支付成功');
|
|
|
- EventBus().emit(
|
|
|
- 'reNoPayOrder');
|
|
|
- });
|
|
|
- print(entity.data);
|
|
|
- EasyLoading.instance
|
|
|
- ..contentPadding =
|
|
|
- EdgeInsets
|
|
|
- .symmetric(
|
|
|
- horizontal:
|
|
|
- 20,
|
|
|
- vertical:
|
|
|
- 12)
|
|
|
- ..alignment =
|
|
|
- Alignment.center
|
|
|
- ..contentMargin =
|
|
|
- EdgeInsets.all(20);
|
|
|
- EasyLoading.show();
|
|
|
- aliPay(entity.data)
|
|
|
- .then((value) {
|
|
|
- print(
|
|
|
- json.encode(value));
|
|
|
- AlipayResultBeanEntity
|
|
|
- e =
|
|
|
- AlipayResultBeanEntity()
|
|
|
- .fromJson(json
|
|
|
- .decode(json
|
|
|
- .encode(
|
|
|
- value)));
|
|
|
- try {
|
|
|
- int r = int.parse(
|
|
|
- e.resultStatus);
|
|
|
- if (r == 9000) {
|
|
|
- showToast('支付成功');
|
|
|
- } else {
|
|
|
- showToast(
|
|
|
- aliPayResultStatus(
|
|
|
- r));
|
|
|
- resetOrder(
|
|
|
- widget.order.uID);
|
|
|
- }
|
|
|
- } catch (e) {
|
|
|
- EasyLoading.dismiss();
|
|
|
- }
|
|
|
- });
|
|
|
- // EventBus().emit('payAnOrder');
|
|
|
+ payOrder(payWayAliPay, widget.order.uID, (re, hE) {
|
|
|
+ if (!hE) {
|
|
|
+ PayByAlipayBeanEntity entity = PayByAlipayBeanEntity()
|
|
|
+ .fromJson(json.decode(re.data.toString()));
|
|
|
+ EventBus().on('alipayPaymentCallback', (arg) {
|
|
|
+ EventBus().off('alipayPaymentCallback');
|
|
|
+ EasyLoading.dismiss();
|
|
|
+ showToast('支付成功');
|
|
|
+ EventBus().emit('reNoPayOrder');
|
|
|
+ });
|
|
|
+ print(entity.data);
|
|
|
+ EasyLoading.instance
|
|
|
+ ..contentPadding =
|
|
|
+ EdgeInsets.symmetric(horizontal: 20, vertical: 12)
|
|
|
+ ..alignment = Alignment.center
|
|
|
+ ..contentMargin = EdgeInsets.all(20);
|
|
|
+ EasyLoading.show();
|
|
|
+ aliPay(entity.data).then((value) {
|
|
|
+ print(json.encode(value));
|
|
|
+ AlipayResultBeanEntity e = AlipayResultBeanEntity()
|
|
|
+ .fromJson(json.decode(json.encode(value)));
|
|
|
+ try {
|
|
|
+ int r = int.parse(e.resultStatus);
|
|
|
+ if (r == 9000) {
|
|
|
+ showToast('支付成功');
|
|
|
+ } else {
|
|
|
+ showToast(aliPayResultStatus(r));
|
|
|
+ resetOrder(widget.order.uID);
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ EasyLoading.dismiss();
|
|
|
}
|
|
|
- }, (e) {}, context);
|
|
|
+ });
|
|
|
+ // EventBus().emit('payAnOrder');
|
|
|
+ }
|
|
|
+ }, (e) {}, context);
|
|
|
// showToast('积分余额不足');
|
|
|
}
|
|
|
}
|
|
|
@@ -786,4 +1050,25 @@ class _GangInPageState extends State<GangInPage> {
|
|
|
}
|
|
|
}, (error) {});
|
|
|
}
|
|
|
+
|
|
|
+ StoreBeanDataData store;
|
|
|
+
|
|
|
+ queryStoreInformation() {
|
|
|
+ MyDio().query({
|
|
|
+ "key": "shop",
|
|
|
+ "filters": {
|
|
|
+ "conditions": ["uid == ${widget.data.shopUid}"]
|
|
|
+ },
|
|
|
+ "dims": shopDims,
|
|
|
+ "paging": [1, 5]
|
|
|
+ }, (response, hasError) {
|
|
|
+ if (!hasError) {
|
|
|
+ StoreBeanEntity entity =
|
|
|
+ StoreBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
|
+ store = entity.data.data[0];
|
|
|
+ setState(() {});
|
|
|
+ }
|
|
|
+ endRe(controller);
|
|
|
+ }, (error) {});
|
|
|
+ }
|
|
|
}
|