Browse Source

safety

master
fmk 3 years ago
parent
commit
015f3ee315
  1. 2
      lib/generated/intl/messages_en.dart
  2. 2
      lib/generated/intl/messages_zh_CN.dart
  3. 2
      lib/generated/intl/messages_zh_Hans_CN.dart
  4. 2
      lib/generated/intl/messages_zh_Hant_CN.dart
  5. 2
      lib/generated/intl/messages_zh_TW.dart
  6. 20
      lib/generated/l10n.dart
  7. 4
      lib/home/home_view/home_integral_store.dart
  8. 2
      lib/l10n/intl_en.arb
  9. 2
      lib/l10n/intl_zh_CN.arb
  10. 2
      lib/l10n/intl_zh_Hans_CN.arb
  11. 2
      lib/l10n/intl_zh_Hant_CN.arb
  12. 2
      lib/l10n/intl_zh_TW.arb
  13. 20
      lib/mine/mine_view/mine_item.dart
  14. 52
      lib/mine/mine_view/mine_view.dart
  15. 8
      lib/qr/qr_share_image.dart
  16. 24
      lib/retrofit/retrofit_api.dart
  17. 4
      lib/store/store_order.dart
  18. 8
      lib/store/store_view/store_info.dart
  19. 42
      lib/view_widget/sign_in_widget.dart

2
lib/generated/intl/messages_en.dart

@ -458,6 +458,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tongzhitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以及时收到我们的活动信息,推荐您在使用HISAPP时打开通知的接收"),
"touxiang" : MessageLookupByLibrary.simpleMessage("头像"),
"tuichudenglu" : MessageLookupByLibrary.simpleMessage("退出登录"),
"tuiguangma" : MessageLookupByLibrary.simpleMessage("推广码"),
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waimai" : MessageLookupByLibrary.simpleMessage("外卖"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"),
@ -482,6 +483,7 @@ class MessageLookup extends MessageLookupByLibrary {
"wenzhang" : MessageLookupByLibrary.simpleMessage("文章"),
"wenzhangxiangqing" : MessageLookupByLibrary.simpleMessage("文章详情"),
"weulingqu" : MessageLookupByLibrary.simpleMessage("未领取"),
"wodegongju" : MessageLookupByLibrary.simpleMessage("我的工具"),
"wodehuiyuandengji" : MessageLookupByLibrary.simpleMessage("我的会员等级"),
"wodejifenzhi" : MessageLookupByLibrary.simpleMessage("我的积分值"),
"wodekaquan" : MessageLookupByLibrary.simpleMessage("我的卡券"),

2
lib/generated/intl/messages_zh_CN.dart

@ -457,6 +457,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tongzhitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以及时收到我们的活动信息,推荐您在使用HISAPP时打开通知的接收"),
"touxiang" : MessageLookupByLibrary.simpleMessage("头像"),
"tuichudenglu" : MessageLookupByLibrary.simpleMessage("退出登录"),
"tuiguangma" : MessageLookupByLibrary.simpleMessage("推广码"),
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waimai" : MessageLookupByLibrary.simpleMessage("外卖"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"),
@ -481,6 +482,7 @@ class MessageLookup extends MessageLookupByLibrary {
"wenzhang" : MessageLookupByLibrary.simpleMessage("文章"),
"wenzhangxiangqing" : MessageLookupByLibrary.simpleMessage("文章详情"),
"weulingqu" : MessageLookupByLibrary.simpleMessage("未领取"),
"wodegongju" : MessageLookupByLibrary.simpleMessage("我的工具"),
"wodehuiyuandengji" : MessageLookupByLibrary.simpleMessage("我的会员等级"),
"wodejifenzhi" : MessageLookupByLibrary.simpleMessage("我的积分值"),
"wodekaquan" : MessageLookupByLibrary.simpleMessage("我的卡券"),

2
lib/generated/intl/messages_zh_Hans_CN.dart

@ -457,6 +457,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tongzhitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以及时收到我们的活动信息,推荐您在使用HISAPP时打开通知的接收"),
"touxiang" : MessageLookupByLibrary.simpleMessage("头像"),
"tuichudenglu" : MessageLookupByLibrary.simpleMessage("退出登录"),
"tuiguangma" : MessageLookupByLibrary.simpleMessage("推广码"),
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waimai" : MessageLookupByLibrary.simpleMessage("外卖"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"),
@ -481,6 +482,7 @@ class MessageLookup extends MessageLookupByLibrary {
"wenzhang" : MessageLookupByLibrary.simpleMessage("文章"),
"wenzhangxiangqing" : MessageLookupByLibrary.simpleMessage("文章详情"),
"weulingqu" : MessageLookupByLibrary.simpleMessage("未领取"),
"wodegongju" : MessageLookupByLibrary.simpleMessage("我的工具"),
"wodehuiyuandengji" : MessageLookupByLibrary.simpleMessage("我的会员等级"),
"wodejifenzhi" : MessageLookupByLibrary.simpleMessage("我的积分值"),
"wodekaquan" : MessageLookupByLibrary.simpleMessage("我的卡券"),

2
lib/generated/intl/messages_zh_Hant_CN.dart

@ -457,6 +457,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tongzhitishixinxi" : MessageLookupByLibrary.simpleMessage("為了您可以及時收到我們的活動資訊,推薦您在使用HISAPP時打開通知的接收 "),
"touxiang" : MessageLookupByLibrary.simpleMessage("頭像"),
"tuichudenglu" : MessageLookupByLibrary.simpleMessage("退出登錄"),
"tuiguangma" : MessageLookupByLibrary.simpleMessage("推廣碼"),
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waimai" : MessageLookupByLibrary.simpleMessage("外賣"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"),
@ -481,6 +482,7 @@ class MessageLookup extends MessageLookupByLibrary {
"wenzhang" : MessageLookupByLibrary.simpleMessage("文章"),
"wenzhangxiangqing" : MessageLookupByLibrary.simpleMessage("文章詳情"),
"weulingqu" : MessageLookupByLibrary.simpleMessage("未領取"),
"wodegongju" : MessageLookupByLibrary.simpleMessage("我的工具"),
"wodehuiyuandengji" : MessageLookupByLibrary.simpleMessage("我的會員等級"),
"wodejifenzhi" : MessageLookupByLibrary.simpleMessage("我的積分值"),
"wodekaquan" : MessageLookupByLibrary.simpleMessage("我的卡券"),

2
lib/generated/intl/messages_zh_TW.dart

@ -457,6 +457,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tongzhitishixinxi" : MessageLookupByLibrary.simpleMessage("為了您可以及時收到我們的活動資訊,推薦您在使用HISAPP時打開通知的接收 "),
"touxiang" : MessageLookupByLibrary.simpleMessage("頭像"),
"tuichudenglu" : MessageLookupByLibrary.simpleMessage("退出登錄"),
"tuiguangma" : MessageLookupByLibrary.simpleMessage("推廣碼"),
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waimai" : MessageLookupByLibrary.simpleMessage("外賣"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"),
@ -481,6 +482,7 @@ class MessageLookup extends MessageLookupByLibrary {
"wenzhang" : MessageLookupByLibrary.simpleMessage("文章"),
"wenzhangxiangqing" : MessageLookupByLibrary.simpleMessage("文章詳情"),
"weulingqu" : MessageLookupByLibrary.simpleMessage("未領取"),
"wodegongju" : MessageLookupByLibrary.simpleMessage("我的工具"),
"wodehuiyuandengji" : MessageLookupByLibrary.simpleMessage("我的會員等級"),
"wodejifenzhi" : MessageLookupByLibrary.simpleMessage("我的積分值"),
"wodekaquan" : MessageLookupByLibrary.simpleMessage("我的卡券"),

20
lib/generated/l10n.dart

@ -5015,6 +5015,26 @@ class S {
);
}
/// `广`
String get tuiguangma {
return Intl.message(
'推广码',
name: 'tuiguangma',
desc: '',
args: [],
);
}
/// ``
String get wodegongju {
return Intl.message(
'我的工具',
name: 'wodegongju',
desc: '',
args: [],
);
}
/// `使`
String get privacy_policy4 {
return Intl.message(

4
lib/home/home_view/home_integral_store.dart

@ -102,7 +102,7 @@ class _HomeIntegralStore extends State<HomeIntegralStore> {
Widget integralStore() {
return GridView.builder(
itemCount: widget.gooods != null ? widget.gooods.length : 0,
itemCount: (widget.gooods != null && widget.gooods.length > 0) ? (widget.gooods.length > 2 ? 2 : widget.gooods.length) : 0,
padding: EdgeInsets.all(13.w),
shrinkWrap: true,
physics: NeverScrollableScrollPhysics(),
@ -118,7 +118,7 @@ class _HomeIntegralStore extends State<HomeIntegralStore> {
? (1 - ((AppUtils.textScale(context) - 1)))
: 0.85,
),
itemBuilder: (contetx, index) {
itemBuilder: (context, index) {
return GestureDetector(
onTap: () {
Navigator.of(context).pushNamed('/router/integral_store_page',

2
lib/l10n/intl_en.arb

@ -519,6 +519,8 @@
"diandan": "点单",
"pingtaiyue": "平台余额",
"dianpuyue": "店铺余额",
"tuiguangma": "推广码",
"wodegongju": "我的工具",

2
lib/l10n/intl_zh_CN.arb

@ -521,6 +521,8 @@
"diandan": "点单",
"pingtaiyue": "平台余额",
"dianpuyue": "店铺余额",
"tuiguangma": "推广码",
"wodegongju": "我的工具",

2
lib/l10n/intl_zh_Hans_CN.arb

@ -521,6 +521,8 @@
"diandan": "点单",
"pingtaiyue": "平台余额",
"dianpuyue": "店铺余额",
"tuiguangma": "推广码",
"wodegongju": "我的工具",

2
lib/l10n/intl_zh_Hant_CN.arb

@ -514,6 +514,8 @@
"diandan": "點單",
"pingtaiyue": "平臺餘額",
"dianpuyue": "店鋪餘額",
"tuiguangma": "推廣碼",
"wodegongju": "我的工具",

2
lib/l10n/intl_zh_TW.arb

@ -513,6 +513,8 @@
"diandan": "點單",
"pingtaiyue": "平臺餘額",
"dianpuyue": "店鋪餘額",
"tuiguangma": "推廣碼",
"wodegongju": "我的工具",

20
lib/mine/mine_view/mine_item.dart

@ -52,7 +52,7 @@ class _MineItem extends State<MineItem> {
Container(
padding: EdgeInsets.symmetric(vertical: 4.h),
child: Text(
"我的工具",
S.of(context).wodegongju,
style: TextStyle(
color: Color(0xFF353535),
fontWeight: MyFontWeight.semi_bold,
@ -109,15 +109,15 @@ class _MineItem extends State<MineItem> {
"assets/image/icon_location_address.png",
),
),
// InkWell(
// onTap: () {
// Navigator.of(context).pushNamed('/router/setting_page');
// },
// child: mineItem(
// S.of(context).shezhi,
// "assets/image/icon_mine_setting.png",
// ),
// ),
InkWell(
onTap: () {
Navigator.of(context).pushNamed('/router/qr_share', arguments: {});
},
child: mineItem(
S.of(context).tuiguangma,
"assets/image/icon_mine_promotion_code.png",
),
),
// mineItem(
// S.of(context).bangzhuyufankui,
// "assets/image/icon_mine_feedback.png",

52
lib/mine/mine_view/mine_view.dart

@ -64,12 +64,7 @@ class _MineView extends State<MineView> {
],
),
),
InkWell(
onTap: () {
widget.toUserInfo();
},
child: mineView(),
),
mineView(),
SizedBox(
height: 12.h,
),
@ -111,27 +106,32 @@ class _MineView extends State<MineView> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Stack(
children: [
MImage(
widget.userInfo == null ? "" : widget.userInfo.headimg,
isCircle: true,
width: 50,
height: 50,
fit: BoxFit.cover,
errorSrc: "assets/image/default_user.png",
fadeSrc: "assets/image/default_user.png",
),
Positioned(
bottom: 0,
right: 2.w,
child: Image.asset(
"assets/image/icon_mine_edit.png",
width: 17.w,
height: 17.w,
),
InkWell(
onTap: () {
widget.toUserInfo();
},
child: Stack(
children: [
MImage(
widget.userInfo == null ? "" : widget.userInfo.headimg,
isCircle: true,
width: 50,
height: 50,
fit: BoxFit.cover,
errorSrc: "assets/image/default_user.png",
fadeSrc: "assets/image/default_user.png",
),
Positioned(
bottom: 0,
right: 2.w,
child: Image.asset(
"assets/image/icon_mine_edit.png",
width: 17.w,
height: 17.w,
),
),
],
),
],
),
SizedBox(
width: 10.w,

8
lib/qr/qr_share_image.dart

@ -199,10 +199,10 @@ class _QrShareImagePage extends State<QrShareImagePage> {
SharesdkPlugin.share(ShareSDKPlatforms.wechatSession, params,
(state, userData, contentEntity, error) {
print("share state !$state");
print("share userData !$userData");
print("share contentEntity !$contentEntity");
print("share error !$error");
print("share state $state");
print("share userData $userData");
print("share contentEntity $contentEntity");
print("share error $error");
});
}
}

24
lib/retrofit/retrofit_api.dart

@ -37,8 +37,12 @@ import 'data/wx_pay.dart';
part 'retrofit_api.g.dart';
const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///
const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///
const base_url = "https://pos.platform.lotus-wallet.com/app/";
///
const baseUrl = "https://pos.platform.lotus-wallet.com/app/";
///
// const base_url = "http://192.168.10.236:8766/app/"; ///
// const baseUrl = "http://192.168.10.236:8766/app/"; ///
@ -48,12 +52,14 @@ const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式
@RestApi(baseUrl: baseUrl)
abstract class ApiService {
factory ApiService(Dio dio,
{String baseUrl,
BuildContext context,
String token,
bool showLoading = true,
bool pay = false}) {
factory ApiService(
Dio dio, {
String baseUrl,
BuildContext context,
String token,
bool showLoading = true,
bool pay = false,
}) {
Map<String, dynamic> headers =
(token == null || token == "") ? {} : {'token': "Bearer $token"};
if (pay) {
@ -356,5 +362,5 @@ abstract class ApiService {
///
@POST("/order/settlement")
Future<BaseData<String>> settlement(@Body() Map<String, String> map);
Future<BaseData<String>> settlement(@Body() Map<String, String> map);
}

4
lib/store/store_order.dart

@ -145,7 +145,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
child: Column(
children: [
///
StoreInfoView(),
StoreInfoView(storeInfo),
///
if (storeInfo != null && storeInfo.couponVOList != null)
@ -224,7 +224,7 @@ class _StoreOrderPage extends State<StoreOrderPage>
color: Colors.white,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.width,
)
),
],
controller: tabcontroller,
),

8
lib/store/store_view/store_info.dart

@ -1,11 +1,17 @@
import 'package:flutter/material.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/retrofit/data/store_info.dart';
import 'package:huixiang/utils/flutter_utils.dart';
import 'package:huixiang/utils/font_weight.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:huixiang/view_widget/round_button.dart';
class StoreInfoView extends StatefulWidget {
final StoreInfo storeInfo;
StoreInfoView(this.storeInfo);
@override
State<StatefulWidget> createState() {
return _StoreInfoView();
@ -49,7 +55,7 @@ class _StoreInfoView extends State<StoreInfoView> {
Container(
alignment: Alignment.centerLeft,
child: Text(
"百年川椒",
widget.storeInfo != null ? (widget.storeInfo.storeName ?? "") : "",
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontSize: 18.sp,

42
lib/view_widget/sign_in_widget.dart

@ -68,28 +68,28 @@ class _SignInWidget extends State<SignInWidget> {
fontWeight: MyFontWeight.regular,
),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
"assets/image/icon_gold_coin.png",
width: 16,
height: 16,
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
"assets/image/icon_gold_coin.png",
width: 16,
height: 16,
),
SizedBox(
width: 4.h,
),
Text(
S.of(context).jiajifen(widget.integral),
style: TextStyle(
color: Color(0xFFEE9905),
fontSize: 14.sp,
fontWeight: MyFontWeight.semi_bold,
),
SizedBox(
width: 4.h,
),
Text(
S.of(context).jiajifen(widget.integral),
style: TextStyle(
color: Color(0xFFEE9905),
fontSize: 14.sp,
fontWeight: MyFontWeight.semi_bold,
),
),
],
),
),
],
),
// Text(
// S.of(context).jiajifen(widget.integral),
// style: TextStyle(

Loading…
Cancel
Save