增加好评反馈是否显示
This commit is contained in:
parent
2eb774988e
commit
2eac87fd60
@ -71,8 +71,8 @@ android {
|
||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||
minSdkVersion 21
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode 25
|
||||
versionName "1.3.2"
|
||||
versionCode 26
|
||||
versionName "1.3.3"
|
||||
manifestPlaceholders = [
|
||||
vivo_APPID: "105669716",
|
||||
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
||||
|
||||
@ -31,6 +31,7 @@ class MinefragmentLogic extends GetxController {
|
||||
|
||||
bool has_pwd = false;
|
||||
bool isUpdateVersion = false;
|
||||
bool isShwGoodReview = false;
|
||||
String enterHomeInfoMsg = "进入主页";
|
||||
String joinedCircle = "";
|
||||
String vipMsg = "十几种专属特权等你领取";
|
||||
@ -47,6 +48,7 @@ class MinefragmentLogic extends GetxController {
|
||||
|
||||
getMode();
|
||||
checkVersion();
|
||||
checkShowPositiveFeedBack();
|
||||
EventBusManager.on<CommentVipEvent>().listen((event) {
|
||||
isVip.value = event.vip;
|
||||
// update();
|
||||
@ -120,6 +122,12 @@ class MinefragmentLogic extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
void checkShowPositiveFeedBack() async {
|
||||
var data = await DioManager.instance.get(url: Api.showPositiveFeedBack);
|
||||
isShwGoodReview = data['data'];
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ class MinefragmentPage extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
|
||||
final logic = Get.lazyPut(() => MinefragmentLogic());
|
||||
|
||||
|
||||
final mineLogic = Get.find<MinefragmentLogic>();
|
||||
|
||||
@ -70,6 +70,7 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
|
||||
void didPopNext() {
|
||||
print('didPopNext');
|
||||
mineLogic.checkVersion();
|
||||
mineLogic.checkShowPositiveFeedBack();
|
||||
}
|
||||
|
||||
///当前页面进入时触发
|
||||
@ -161,6 +162,8 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
|
||||
}
|
||||
|
||||
Widget _circleLiveView(MinefragmentLogic logic) {
|
||||
|
||||
|
||||
return Column(
|
||||
children: [_circleItemView(logic),_invienItemView(),_editGoodReviewItemView(), _helpItemView(),_setUpItemView()],
|
||||
);
|
||||
@ -324,7 +327,8 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
|
||||
}
|
||||
|
||||
Widget _editGoodReviewItemView() {
|
||||
return GestureDetector(
|
||||
|
||||
return mineLogic.isShwGoodReview ? GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () {
|
||||
showTipPop();
|
||||
@ -375,7 +379,7 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
) : Container();
|
||||
}
|
||||
|
||||
Widget _shareItemView() {
|
||||
|
||||
@ -308,5 +308,7 @@ class Api {
|
||||
//是否隐藏微信号
|
||||
static const hideWxNum = '/user-service/hideWxNum/';
|
||||
|
||||
//是否显示好评反馈
|
||||
static const showPositiveFeedBack = '/up-service/showPositiveFeedBack';
|
||||
|
||||
}
|
||||
@ -229,6 +229,7 @@ class DioManager {
|
||||
String jsonStr = json.encode(response.data);
|
||||
Map<String, dynamic> responseMap = json.decode(jsonStr);
|
||||
if (responseMap["code"] == 5003 || responseMap["code"] == 30003) {
|
||||
showOKToast(responseMap['msg']);
|
||||
pushLoginPage();
|
||||
} else {
|
||||
switch (responseMap["code"]) {
|
||||
@ -244,9 +245,9 @@ class DioManager {
|
||||
case 5001:
|
||||
case 5000:
|
||||
pushLoginPage();
|
||||
showOKToast(responseMap['msg']);
|
||||
break;
|
||||
}
|
||||
showOKToast(responseMap['msg']);
|
||||
}
|
||||
return responseMap;
|
||||
// switch(responseMap["code"]){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user