Browse Source

优惠券更改

remove_uniapp
w-R 3 years ago
parent
commit
d75c11de83
  1. 2
      android/app/build.gradle
  2. 40
      lib/community/community_view/community_dynamic.dart
  3. 15
      lib/community/report/report_page.dart
  4. 3
      lib/retrofit/data/coupon.dart
  5. 3
      lib/view_widget/new_coupon_widget.dart

2
android/app/build.gradle

@ -143,7 +143,7 @@ android {
ndk {
/// .so
abiFilters 'armeabi-v7a'
abiFilters 'armeabi-v7a','arm64-v8a','x86'
}
}
debug {

40
lib/community/community_view/community_dynamic.dart

@ -410,26 +410,26 @@ class _CommunityDynamic extends State<CommunityDynamic> {
],
),
),
if (widget?.article?.author != widget.userId ?? "")
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
setState(() {
choiceShowBottomSheet();
});
},
child: Container(
alignment: Alignment.center,
child: Text(
"...",
style: TextStyle(
fontSize: 18.sp,
fontWeight: MyFontWeight.medium,
color: Colors.black,
),
),
))),
// if (widget?.article?.author != widget.userId ?? "")
// Expanded(
// child: GestureDetector(
// behavior: HitTestBehavior.opaque,
// onTap: () {
// setState(() {
// choiceShowBottomSheet();
// });
// },
// child: Container(
// alignment: Alignment.center,
// child: Text(
// "...",
// style: TextStyle(
// fontSize: 18.sp,
// fontWeight: MyFontWeight.medium,
// color: Colors.black,
// ),
// ),
// ))),
],
),
],

15
lib/community/report/report_page.dart

@ -54,7 +54,6 @@ class _ReportPage extends State<ReportPage> {
if (baseData != null && baseData.isSuccess) {
Navigator.of(context)
.pushNamed('/router/report_success');
editingController.clear();
} else {
SmartDialog.showToast(baseData.msg,alignment: Alignment.center);
}
@ -225,7 +224,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"色情低俗",
editingController.text = "色情低俗",
1
),
),
@ -239,7 +238,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"政治宗教",
editingController.text = "政治宗教",
2
),
),
@ -253,7 +252,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"广告骚扰",
editingController.text = "广告骚扰",
3
),
),
@ -267,7 +266,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"虚假欺骗",
editingController.text = "虚假欺骗",
4
),
),
@ -281,7 +280,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"侵权(诽谤、抄袭、冒用)",
editingController.text = "侵权(诽谤、抄袭、冒用)",
5
),
),
@ -295,7 +294,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"不良封面/标题",
editingController.text ="不良封面/标题",
6
),
),
@ -309,7 +308,7 @@ class _ReportPage extends State<ReportPage> {
},
child:
content(
"赌博诈骗",
editingController.text = "赌博诈骗",
7
),
),

3
lib/retrofit/data/coupon.dart

@ -21,6 +21,7 @@ class Coupon {
String useEndTime;
String promotionId;
bool centreDisplay;
bool allProduct;
String tenantCode;
String tenantName;
int isDelete;
@ -52,6 +53,7 @@ class Coupon {
..useEndTime = json['useEndTime'] as String
..promotionId = json['promotionId'] as String
..centreDisplay = json['centreDisplay'] as bool
..allProduct = json['allProduct'] as bool
..tenantCode = json['tenantCode'] as String
..tenantName = json['tenantName'] as String
..isDelete = json['isDelete'] as int
@ -84,6 +86,7 @@ class Coupon {
'useEndTime': this.useEndTime,
'promotionId': this.promotionId,
'centreDisplay': this.centreDisplay,
'allProduct' : this.allProduct,
'tenantCode': this.tenantCode,
'tenantName': this.tenantName,
'isDelete': this.isDelete,

3
lib/view_widget/new_coupon_widget.dart

@ -120,7 +120,8 @@ class NewCouponWidget extends StatelessWidget {
children: [
Visibility(
child: Text(
S.of(context).quanchangtongyong,
// S.of(context).quanchangtongyong,
(coupon?.allProduct ?? false) ? S.of(context).quanchangtongyong :"",
style: TextStyle(
color: Color(0xFF353535),
fontSize: 12.sp,

Loading…
Cancel
Save