bug修复,意见反馈

pull/1/head
戴余标 3 years ago
parent 1414a2590f
commit 316e1275d3

@ -358,6 +358,7 @@ class _CommunityIntroduce {
class _ConveniencePhone { class _ConveniencePhone {
///app便 ///app便
String get list => '/app/user/conveniencePhone/list'; String get list => '/app/user/conveniencePhone/list';
String get recordAlarmInfo => '/app/user/alarm/insertAlarmRecord';
} }
class _CommitteeStaff { class _CommitteeStaff {
/// ///

@ -1,3 +1,4 @@
import 'package:aku_new_community/widget/bee_image_network.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:common_utils/common_utils.dart'; import 'package:common_utils/common_utils.dart';
@ -60,9 +61,8 @@ class _EventVotingPageState extends State<EventVotingPage> {
height: 210.w, height: 210.w,
width: double.infinity, width: double.infinity,
child: ClipRect( child: ClipRect(
child: FadeInImage.assetNetwork( child: BeeImageNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, imgs: model.imgUrls,
image: SAASAPI.image(ImgModel.first(model.imgUrls)),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),

@ -1,3 +1,4 @@
import 'package:aku_new_community/widget/bee_image_network.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -133,11 +134,8 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
height: 150.w, height: 150.w,
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(4.w), borderRadius: BorderRadius.circular(4.w),
child: FadeInImage.assetNetwork( child: BeeImageNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, imgs: model.imgUrls,
image: SAASAPI.image(
ImgModel.first(model.imgUrls),
),
fit: BoxFit.cover, fit: BoxFit.cover,
), ),
), ),
@ -232,9 +230,8 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
44.w.heightBox, 44.w.heightBox,
ClipRRect( ClipRRect(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
child: FadeInImage.assetNetwork( child: BeeImageNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, imgs: _model.imgUrls,
image: SAASAPI.image(ImgModel.first(_model.imgUrls)),
), ),
), ),
44.w.heightBox, 44.w.heightBox,
@ -274,10 +271,12 @@ class _VotingDetailPageState extends State<VotingDetailPage> {
BotToast.showText(text: '投票未开始或已结束'); BotToast.showText(text: '投票未开始或已结束');
} }
: () async { : () async {
if (_model.allowVote!) { if (!_model.allowVote!) {
BotToast.showText(text: '投票失败'); BotToast.showText(text: '投票失败');
} else if (_model.vote!) {
BotToast.showText(text: '已投过票');
} else if (_selectId == null) { } else if (_selectId == null) {
BotToast.showText(text: '请先选择候选人!'); BotToast.showText(text: '请先选');
} else { } else {
BaseModel baseModel = BaseModel baseModel =
await ManagerFunc.vote(widget.id, _selectId); await ManagerFunc.vote(widget.id, _selectId);

@ -58,7 +58,7 @@ class _GeographicInformationPageState extends State<GeographicInformationPage> {
_mapController = controller; _mapController = controller;
_mapController!.moveCamera( _mapController!.moveCamera(
CameraUpdate.newCameraPosition( CameraUpdate.newCameraPosition(
CameraPosition(target: _target, zoom: 14), CameraPosition(target: _target, zoom: 17),
), ),
); );
}, },

@ -14,6 +14,7 @@ import 'package:aku_new_community/provider/app_provider.dart';
import 'package:aku_new_community/utils/headers.dart'; import 'package:aku_new_community/utils/headers.dart';
import 'package:aku_new_community/utils/network/net_util.dart'; import 'package:aku_new_community/utils/network/net_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import '../../../constants/saas_api.dart';
import '../../../widget/others/user_tool.dart'; import '../../../widget/others/user_tool.dart';
class PermissionUtil { class PermissionUtil {
@ -76,7 +77,7 @@ class _AlarmPageState extends State<AlarmPage> {
_mapController = controller; _mapController = controller;
_mapController!.moveCamera( _mapController!.moveCamera(
CameraUpdate.newCameraPosition( CameraUpdate.newCameraPosition(
CameraPosition(target: _target, zoom: 14), CameraPosition(target: _target, zoom: 17),
), ),
); );
}, },
@ -227,14 +228,11 @@ class _AlarmPageState extends State<AlarmPage> {
setState(() { setState(() {
_makephonenum('tel:110'); _makephonenum('tel:110');
}); });
await NetUtil()
if (appProvider.selectedHouse != null) { .post(SAASAPI.conveniencePhone.recordAlarmInfo, params: {
await NetUtil() "longitude": appProvider.location?['longitude']??'',
.post(API.manager.recordAlarmInfo, params: { "latitude": appProvider.location?['latitude']??'',
"estateId": });
appProvider.selectedHouse!.estateId,
});
}
}, },
child: Icon( child: Icon(
Feather.phone_call, Feather.phone_call,

@ -1,5 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:aku_new_community/constants/saas_api.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
@ -68,13 +69,15 @@ class _FeedBackPageState extends State<FeedBackPage> {
return InkWell( return InkWell(
onTap: () async { onTap: () async {
if (_formKey.currentState!.validate()) { if (_formKey.currentState!.validate()) {
if (_files.isNotEmpty) {} List<String?> urls =
await NetUtil().uploadFiles(_files, SAASAPI.uploadFile.uploadImg);
var cancelAction = BotToast.showLoading(); var cancelAction = BotToast.showLoading();
await NetUtil().post( await NetUtil().post(
API.user.feedback, SAASAPI.advice.insert,
params: { params: {
'type':5,
'content': _ideaContent.text, 'content': _ideaContent.text,
'fileUrls': [], 'imgUrls': urls,
}, },
showMessage: true, showMessage: true,
); );

@ -18,6 +18,8 @@ import 'package:aku_new_community/utils/websocket/web_socket_util.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:aku_new_community/widget/others/user_tool.dart';
import 'feedback_page/feedback_page.dart';
class SettingsPage extends StatefulWidget { class SettingsPage extends StatefulWidget {
SettingsPage({Key? key}) : super(key: key); SettingsPage({Key? key}) : super(key: key);
@ -136,10 +138,10 @@ class _SettingsPageState extends State<SettingsPage> {
// title: '清除缓存', // title: '清除缓存',
// onTap: () {}, // onTap: () {},
// ), // ),
// _buildTile( _buildTile(
// title: '意见反馈', title: '意见反馈',
// onTap: () => Get.to(() => FeedBackPage()), onTap: () => Get.to(() => FeedBackPage()),
// ), ),
// _buildTile( // _buildTile(
// title: '账号管理', // title: '账号管理',
// onTap: () => Get.to(() => AccountManagerPage()), // onTap: () => Get.to(() => AccountManagerPage()),

@ -267,7 +267,7 @@ class _QuestionnaireDetailPageState extends State<QuestionnaireDetailPage> {
.size(32.sp) .size(32.sp)
.bold .bold
.make(), .make(),
onPressed: widget.answered != 2 onPressed: widget.answered!
? () { ? () {
BotToast.showText(text: '该问卷已填写过'); BotToast.showText(text: '该问卷已填写过');
} }

@ -503,6 +503,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
_refreshController.callRefresh();
if (_controllers[index].text.isEmpty) { if (_controllers[index].text.isEmpty) {
_controllers[index].text = '1'; _controllers[index].text = '1';
} }
@ -558,6 +559,7 @@ class _ShopCarPageState extends State<ShopCarPage> {
), ),
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
_refreshController.callRefresh();
if (_controllers[index].text.isEmpty) { if (_controllers[index].text.isEmpty) {
_controllers[index].text = '0'; _controllers[index].text = '0';
} }

@ -33,7 +33,7 @@ class HorizontalImageView extends StatelessWidget {
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
child: BeeImageNetwork( child: BeeImageNetwork(
urls:[SAASAPI.image(urls[index]) ?? ''], urlsWithHost:[SAASAPI.image(urls[index])],
height: 184.w, height: 184.w,
width: 184.w, width: 184.w,
fit: BoxFit.cover, fit: BoxFit.cover,

@ -1421,5 +1421,5 @@ packages:
source: hosted source: hosted
version: "3.1.0" version: "3.1.0"
sdks: sdks:
dart: ">=2.17.0-206.0.dev <3.0.0" dart: ">=2.17.0 <3.0.0"
flutter: ">=2.8.0" flutter: ">=2.8.0"

@ -5,7 +5,7 @@ publish_to: "none"
version: 1.8.11-dev+51 version: 1.8.11-dev+51
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.17.0 <3.0.0"
dependencies: dependencies:
flutter: flutter:

Loading…
Cancel
Save