|
@@ -50,7 +50,6 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
@@ -50,7 +50,6 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
50
|
super.initState();
|
50
|
super.initState();
|
|
51
|
|
51
|
|
|
52
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
52
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
53
|
- // _couponNetworkData(0);
|
|
|
|
54
|
initTime(context);
|
53
|
initTime(context);
|
|
55
|
_getOrderRechargeByid();
|
54
|
_getOrderRechargeByid();
|
|
56
|
});
|
55
|
});
|
|
@@ -117,8 +116,6 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
@@ -117,8 +116,6 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
117
|
context, {'id': widget.idstr},
|
116
|
context, {'id': widget.idstr},
|
|
118
|
isShowLoading: isShowLoading);
|
117
|
isShowLoading: isShowLoading);
|
|
119
|
if (success) {
|
118
|
if (success) {
|
|
120
|
- pageState = PageState.Success;
|
|
|
|
121
|
-
|
|
|
|
122
|
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(
|
119
|
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(
|
|
123
|
int.parse(couponProvider.orderRechargeByidSunModel.activity.etime) *
|
120
|
int.parse(couponProvider.orderRechargeByidSunModel.activity.etime) *
|
|
124
|
1000);
|
121
|
1000);
|
|
@@ -164,53 +161,14 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
@@ -164,53 +161,14 @@ class _VerificationCouponPageState extends State<VerificationCouponPage> { |
|
164
|
} else {
|
161
|
} else {
|
|
165
|
canUse = true;
|
162
|
canUse = true;
|
|
166
|
}
|
163
|
}
|
|
|
|
164
|
+ pageState = PageState.Success;
|
|
167
|
} else {
|
165
|
} else {
|
|
168
|
pageState = PageState.ConnectivityError;
|
166
|
pageState = PageState.ConnectivityError;
|
|
169
|
}
|
167
|
}
|
|
170
|
setState(() {});
|
168
|
setState(() {});
|
|
171
|
}
|
169
|
}
|
|
172
|
|
170
|
|
|
173
|
- ///时间选择
|
|
|
|
174
|
- Widget _select(String title, String hintText, GestureTapCallback onTap) {
|
|
|
|
175
|
- return InkWell(
|
|
|
|
176
|
- onTap: onTap,
|
|
|
|
177
|
- child: Container(
|
|
|
|
178
|
- padding: EdgeInsets.symmetric(vertical: ScreenUtil().setWidth(28)),
|
|
|
|
179
|
- child: Row(
|
|
|
|
180
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
181
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
182
|
- children: [
|
|
|
|
183
|
- Container(
|
|
|
|
184
|
- // height: ScreenUtil().setWidth(40),
|
|
|
|
185
|
- // color: Colors.red,
|
|
|
|
186
|
- child: Text(
|
|
|
|
187
|
- title,
|
|
|
|
188
|
- style: TextStyle(
|
|
|
|
189
|
- color: Color.fromRGBO(0, 0, 0, 0.9),
|
|
|
|
190
|
- fontWeight: FontWeight.bold,
|
|
|
|
191
|
- fontSize: ScreenUtil().setSp(32)),
|
|
|
|
192
|
- ),
|
|
|
|
193
|
- ),
|
|
|
|
194
|
- HEmptyView(20),
|
|
|
|
195
|
- Spacer(),
|
|
|
|
196
|
- Text(hintText,
|
|
|
|
197
|
- style: TextStyle(
|
|
|
|
198
|
- color: hintText == '点击选择'
|
|
|
|
199
|
- ? MyColours.color_999999
|
|
|
|
200
|
- : MyColours.color_515151,
|
|
|
|
201
|
- fontSize: ScreenUtil().setSp(32),
|
|
|
|
202
|
- )),
|
|
|
|
203
|
- HEmptyView(20),
|
|
|
|
204
|
- Image.asset(
|
|
|
|
205
|
- Utils.getImgPath('arrow_right_new'),
|
|
|
|
206
|
- width: ScreenUtil().setWidth(20),
|
|
|
|
207
|
- ),
|
|
|
|
208
|
- HEmptyView(32),
|
|
|
|
209
|
- ],
|
|
|
|
210
|
- ),
|
|
|
|
211
|
- ),
|
|
|
|
212
|
- );
|
|
|
|
213
|
- }
|
171
|
+
|
|
214
|
|
172
|
|
|
215
|
///输入框
|
173
|
///输入框
|
|
216
|
Widget _item(String title, String subTitle,
|
174
|
Widget _item(String title, String subTitle,
|