1.12.2bug优化

master
章文轩 4 years ago
parent edd353fbf9
commit ef8835e8c9

@ -161,7 +161,7 @@
<key>NSCalendarsUsageDescription</key> <key>NSCalendarsUsageDescription</key>
<string>我们需要访问日历权限</string> <string>我们需要访问日历权限</string>
<key>NSCameraUsageDescription</key> <key>NSCameraUsageDescription</key>
<string>我们需要访问您的相机,当您评价商品、编辑头像、发布录像或直播时,请同意</string> <string>是否允许"瑞库客"访问您设备上的照片、媒体内容和文件</string>
<key>NSContactsUsageDescription</key> <key>NSContactsUsageDescription</key>
<string>我们需要访问您的通讯录权限</string> <string>我们需要访问您的通讯录权限</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
@ -175,9 +175,9 @@
<key>NSMotionUsageDescription</key> <key>NSMotionUsageDescription</key>
<string>我们需要访问健康权限</string> <string>我们需要访问健康权限</string>
<key>NSPhotoLibraryAddUsageDescription</key> <key>NSPhotoLibraryAddUsageDescription</key>
<string>我们需要访问您的照片,当您评价商品或编辑头像时,请同意</string> <string>是否允许"瑞库客"访问您设备上的照片、媒体内容和文件</string>
<key>NSPhotoLibraryUsageDescription</key> <key>NSPhotoLibraryUsageDescription</key>
<string>我们需要访问您的照片,当您评价商品或编辑头像时,请同意</string> <string>是否允许"瑞库客"访问您设备上的照片、媒体内容和文件</string>
<key>NSSpeechRecognitionUsageDescription</key> <key>NSSpeechRecognitionUsageDescription</key>
<string>我们需要访问语音识别权限</string> <string>我们需要访问语音识别权限</string>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>

@ -81,6 +81,7 @@ class _FocusPageState extends BaseStoreState<FocusPage>
List<String> urls = indexModel.photos.map((f){ List<String> urls = indexModel.photos.map((f){
return Api.getResizeImgUrl(f.url, 300); return Api.getResizeImgUrl(f.url, 300);
}).toList(); }).toList();
print(urls);
ImageUtils.saveNetworkImagesToPhoto( ImageUtils.saveNetworkImagesToPhoto(
urls, urls,
(index){ (index){

@ -140,7 +140,7 @@ class _CommodityDetailPageState extends BaseStoreState<CommodityDetailPage>
// backgroundColor: AppColor.frenchColor, // backgroundColor: AppColor.frenchColor,
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: SafeArea( body: SafeArea(
top: false, top: true,
bottom: true, bottom: true,
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[

@ -702,7 +702,7 @@ class _GoodsOrderPageState extends BaseStoreState<GoodsOrderPage> {
OverseaAcceptLicensePage(), OverseaAcceptLicensePage(),
), ),
child: Text( child: Text(
'境商品用户购买须知》', '境商品用户购买须知》',
style: TextStyle( style: TextStyle(
color: Color(0xFF007AFF), color: Color(0xFF007AFF),
fontSize: rSP(13), fontSize: rSP(13),

@ -1297,7 +1297,7 @@ class _HomePageState extends BaseStoreState<HomePage>
_buildSingleGoodsCard(R.ASSETS_HOME_IC_FURNITURE_PNG, '家具饰品'), _buildSingleGoodsCard(R.ASSETS_HOME_IC_FURNITURE_PNG, '家具饰品'),
_buildSingleGoodsCard(R.ASSETS_HOME_IC_CLOTHES_PNG, '服饰内衣'), _buildSingleGoodsCard(R.ASSETS_HOME_IC_CLOTHES_PNG, '服饰内衣'),
_buildSingleGoodsCard(R.ASSETS_HOME_IC_BAG_PNG, '鞋靴箱包'), _buildSingleGoodsCard(R.ASSETS_HOME_IC_BAG_PNG, '鞋靴箱包'),
_buildSingleGoodsCard(R.ASSETS_HOME_IC_MEMBERS_PNG, '会员专享'), //_buildSingleGoodsCard(R.ASSETS_HOME_IC_MEMBERS_PNG, '会员专享'), 9.23
], ],
), ),
), ),

@ -429,19 +429,19 @@ class _ShoppingCartItemState extends State<ShoppingCartItem> {
style: AppTextStyle.generate(14 * 2.sp, style: AppTextStyle.generate(14 * 2.sp,
color: AppColor.themeColor), color: AppColor.themeColor),
), ),
TextSpan( // TextSpan(
text: "", // text: "",
style: AppTextStyle.generate(7 * 2.sp, // style: AppTextStyle.generate(7 * 2.sp,
color: AppColor.greyColor), // color: AppColor.greyColor),
), // ),
TextSpan( // TextSpan(
text: // text:
"${goods.originalPrice.toStringAsFixed(2)}", // "${goods.originalPrice.toStringAsFixed(2)}",
style: AppTextStyle.generate(11 * 2.sp, // style: AppTextStyle.generate(11 * 2.sp,
decoration: // decoration:
TextDecoration.lineThrough, // TextDecoration.lineThrough,
color: AppColor.greyColor), // color: AppColor.greyColor),
), // ),
])), ])),
)), )),
goods.publishStatus == 1 goods.publishStatus == 1

@ -410,7 +410,7 @@ class _ShoppingCartPageState extends BaseStoreState<ShoppingCartPage>
_buildLikeWidget() { _buildLikeWidget() {
return Container( return Container(
padding: EdgeInsets.symmetric(horizontal: 10.rw), padding: EdgeInsets.symmetric(horizontal: 10.rw),
height: _likeGoodsList?.length * 378.rw / 2, height: _likeGoodsList?.length * 381.rw / 2,
width: double.infinity, width: double.infinity,
child: Column( child: Column(
children: [ children: [

@ -137,14 +137,14 @@ class _SettingItemListViewState extends ResumableState<SettingItemListView> {
}), }),
// //
SCTile.normalTile("秒杀(临时)", listener: () async { // SCTile.normalTile("秒杀(临时)", listener: () async {
//
//
Get.to(() => SeckillActivityPage()); // Get.to(() => SeckillActivityPage());
//
//
//CRoute.push(context, PrivacyPageV2()); // //CRoute.push(context, PrivacyPageV2());
}), // }),
getEmptyBox(), getEmptyBox(),

@ -779,10 +779,13 @@ class _UserBenefitCurrencyPageState extends State<UserBenefitCurrencyPage> {
_gone[num] = !_gone[num]; _gone[num] = !_gone[num];
setState(() {}); setState(() {});
} else if (detail.count == 1) { } else if (detail.count == 1) {
if(detail.detail!=null){
AppRouter.push(context, RouteName.SHOP_ORDER_DETAIL, AppRouter.push(context, RouteName.SHOP_ORDER_DETAIL,
arguments: OrderDetailPage.setArguments( arguments: OrderDetailPage.setArguments(
detail.detail[0].id)); // detail.detail[0].id)); //
} }
}
} else { } else {
int type = 0; int type = 0;
if (_selfChoose) { if (_selfChoose) {
@ -914,8 +917,11 @@ class _UserBenefitCurrencyPageState extends State<UserBenefitCurrencyPage> {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () { onTap: () {
if(id!=null&&id!=0){
AppRouter.push(context, RouteName.SHOP_ORDER_DETAIL, AppRouter.push(context, RouteName.SHOP_ORDER_DETAIL,
arguments: OrderDetailPage.setArguments(id)); arguments: OrderDetailPage.setArguments(id));
}
}, },
child: Row( child: Row(
children: [ children: [

@ -103,23 +103,24 @@ class ImageUtils {
try { try {
final Map<dynamic, dynamic> result = final Map<dynamic, dynamic> result =
await ImageGallerySaver.saveImage(data); await ImageGallerySaver.saveImage(data);
if (Platform.isAndroid) { //bug
if (result.containsValue(true)) { // if (Platform.isAndroid) {
endBack(true); // if (result.containsValue(true)) {
return true; // endBack(true);
} else { // return true;
endBack(false); // } else {
return false; // endBack(false);
} // return false;
} else if (Platform.isIOS) { // }
if (result.containsValue(true)) { // } else if (Platform.isIOS) {
endBack(true); // if (result.containsValue(true)) {
return true; // endBack(true);
} else { // return true;
endBack(false); // } else {
return false; // endBack(false);
} // return false;
} // }
// }
} catch (e) { } catch (e) {
if (e is ArgumentError) { if (e is ArgumentError) {
if (Platform.isIOS) { if (Platform.isIOS) {

@ -30,7 +30,7 @@ class _HomeGifHeaderState extends RefreshIndicatorState<HomeGifHeader>
void onModeChange(RefreshStatus mode) { void onModeChange(RefreshStatus mode) {
if (mode == RefreshStatus.refreshing) { if (mode == RefreshStatus.refreshing) {
_gifController.repeat( _gifController.repeat(
min: 0, max: 38, period: Duration(milliseconds: 1500)); min: 0, max: 38, period: Duration(milliseconds: 1000));
} }
super.onModeChange(mode); super.onModeChange(mode);
} }
@ -40,7 +40,7 @@ class _HomeGifHeaderState extends RefreshIndicatorState<HomeGifHeader>
double value = _gifController.value; double value = _gifController.value;
if (value < 38) { if (value < 38) {
await Future.delayed( await Future.delayed(
Duration(milliseconds: ((39 - value) / 39 * 1500).toInt() - 100), () { Duration(milliseconds: ((39 - value) / 39 * 1000).toInt() - 100), () {
_gifController.value = 38; _gifController.value = 38;
// _gifController.stop(); // _gifController.stop();
}); });

@ -133,17 +133,15 @@ class _RefreshWidgetState extends State<RefreshWidget> {
size: 20 * 2.sp, size: 20 * 2.sp,
color: widget.color, color: widget.color,
), ),
refreshingIcon: CupertinoActivityIndicator( // refreshingIcon:CircularProgressIndicator(),
animating: true,
radius: 9.0 * 2.w,
),
completeIcon: Icon( completeIcon: Icon(
Icons.check, Icons.check,
size: 20 * 2.sp, size: 20 * 2.sp,
color: widget.color, color: widget.color,
), ),
spacing: rSize(5), spacing: rSize(5),
refreshingText: widget.refreshingText,
refreshingText: '',//widget.refreshingText,
completeText: widget.completeText, completeText: widget.completeText,
failedText: widget.failedText, failedText: widget.failedText,
idleText: widget.idleText, idleText: widget.idleText,

@ -2,7 +2,7 @@ name: recook
description: Recook Market App. description: Recook Market App.
publish_to: "none" publish_to: "none"
version: 1.12.1-dev+315 version: 1.12.2-dev+316
environment: environment:
sdk: ">=2.10.0 <3.0.0" sdk: ">=2.10.0 <3.0.0"

Loading…
Cancel
Save