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 { ndk {
/// .so /// .so
abiFilters 'armeabi-v7a' abiFilters 'armeabi-v7a','arm64-v8a','x86'
} }
} }
debug { debug {

40
lib/community/community_view/community_dynamic.dart

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

15
lib/community/report/report_page.dart

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

3
lib/retrofit/data/coupon.dart

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

3
lib/view_widget/new_coupon_widget.dart

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

Loading…
Cancel
Save