bug修复,意见反馈

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

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

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

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

@ -1,5 +1,6 @@
import 'dart:io';
import 'package:aku_new_community/constants/saas_api.dart';
import 'package:flutter/material.dart';
import 'package:bot_toast/bot_toast.dart';
@ -68,13 +69,15 @@ class _FeedBackPageState extends State<FeedBackPage> {
return InkWell(
onTap: () async {
if (_formKey.currentState!.validate()) {
if (_files.isNotEmpty) {}
List<String?> urls =
await NetUtil().uploadFiles(_files, SAASAPI.uploadFile.uploadImg);
var cancelAction = BotToast.showLoading();
await NetUtil().post(
API.user.feedback,
SAASAPI.advice.insert,
params: {
'type':5,
'content': _ideaContent.text,
'fileUrls': [],
'imgUrls': urls,
},
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/others/user_tool.dart';
import 'feedback_page/feedback_page.dart';
class SettingsPage extends StatefulWidget {
SettingsPage({Key? key}) : super(key: key);
@ -136,10 +138,10 @@ class _SettingsPageState extends State<SettingsPage> {
// title: '清除缓存',
// onTap: () {},
// ),
// _buildTile(
// title: '意见反馈',
// onTap: () => Get.to(() => FeedBackPage()),
// ),
_buildTile(
title: '意见反馈',
onTap: () => Get.to(() => FeedBackPage()),
),
// _buildTile(
// title: '账号管理',
// onTap: () => Get.to(() => AccountManagerPage()),

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

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

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

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

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

Loading…
Cancel
Save