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