1.12.2bug优化

master
章文轩 4 years ago
parent edd353fbf9
commit ef8835e8c9

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

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

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

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

@ -1297,7 +1297,7 @@ class _HomePageState extends BaseStoreState<HomePage>
_buildSingleGoodsCard(R.ASSETS_HOME_IC_FURNITURE_PNG, '家具饰品'),
_buildSingleGoodsCard(R.ASSETS_HOME_IC_CLOTHES_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,
color: AppColor.themeColor),
),
TextSpan(
text: "",
style: AppTextStyle.generate(7 * 2.sp,
color: AppColor.greyColor),
),
TextSpan(
text:
"${goods.originalPrice.toStringAsFixed(2)}",
style: AppTextStyle.generate(11 * 2.sp,
decoration:
TextDecoration.lineThrough,
color: AppColor.greyColor),
),
// TextSpan(
// text: "",
// style: AppTextStyle.generate(7 * 2.sp,
// color: AppColor.greyColor),
// ),
// TextSpan(
// text:
// "${goods.originalPrice.toStringAsFixed(2)}",
// style: AppTextStyle.generate(11 * 2.sp,
// decoration:
// TextDecoration.lineThrough,
// color: AppColor.greyColor),
// ),
])),
)),
goods.publishStatus == 1

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

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

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

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

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

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

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

Loading…
Cancel
Save