Showing
4 changed files
with
63 additions
and
3 deletions
| @@ -549,7 +549,7 @@ | @@ -549,7 +549,7 @@ | ||
| 549 | CODE_SIGN_IDENTITY = "Apple Development"; | 549 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 550 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; | 550 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; |
| 551 | CODE_SIGN_STYLE = Manual; | 551 | CODE_SIGN_STYLE = Manual; |
| 552 | - CURRENT_PROJECT_VERSION = 540; | 552 | + CURRENT_PROJECT_VERSION = 5403; |
| 553 | DEVELOPMENT_TEAM = 8J59HM8B82; | 553 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 554 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; | 554 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; |
| 555 | ENABLE_BITCODE = NO; | 555 | ENABLE_BITCODE = NO; |
| @@ -703,7 +703,7 @@ | @@ -703,7 +703,7 @@ | ||
| 703 | CODE_SIGN_IDENTITY = "Apple Development"; | 703 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 704 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; | 704 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; |
| 705 | CODE_SIGN_STYLE = Manual; | 705 | CODE_SIGN_STYLE = Manual; |
| 706 | - CURRENT_PROJECT_VERSION = 540; | 706 | + CURRENT_PROJECT_VERSION = 5403; |
| 707 | DEVELOPMENT_TEAM = 8J59HM8B82; | 707 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 708 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; | 708 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; |
| 709 | ENABLE_BITCODE = NO; | 709 | ENABLE_BITCODE = NO; |
| @@ -748,7 +748,7 @@ | @@ -748,7 +748,7 @@ | ||
| 748 | CODE_SIGN_IDENTITY = "Apple Development"; | 748 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 749 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; | 749 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; |
| 750 | CODE_SIGN_STYLE = Manual; | 750 | CODE_SIGN_STYLE = Manual; |
| 751 | - CURRENT_PROJECT_VERSION = 540; | 751 | + CURRENT_PROJECT_VERSION = 5403; |
| 752 | DEVELOPMENT_TEAM = 8J59HM8B82; | 752 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 753 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; | 753 | "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82; |
| 754 | ENABLE_BITCODE = NO; | 754 | ENABLE_BITCODE = NO; |
| @@ -5326,6 +5326,33 @@ class InvicationPageState extends State<InvicationPage> | @@ -5326,6 +5326,33 @@ class InvicationPageState extends State<InvicationPage> | ||
| 5326 | } | 5326 | } |
| 5327 | }), | 5327 | }), |
| 5328 | HEmptyView(20), | 5328 | HEmptyView(20), |
| 5329 | + RoundButton( | ||
| 5330 | + text: '微信消息通知', | ||
| 5331 | + width: ScreenUtil().setWidth(110 * 2), | ||
| 5332 | + height: ScreenUtil().setWidth(96), | ||
| 5333 | + fontSize: 30, | ||
| 5334 | + textColor: MyColours.color_999999, | ||
| 5335 | + gradientStart: MyColours.color_f3f3f3, | ||
| 5336 | + gradientEnd: MyColours.color_f3f3f3, | ||
| 5337 | + radius: ScreenUtil().setWidth(8), | ||
| 5338 | + isBold: false, | ||
| 5339 | + onPressed: () async { | ||
| 5340 | + //重新查询短信内容 | ||
| 5341 | + | ||
| 5342 | + await _getReserveDetailRelationData(showCicle: true); | ||
| 5343 | + await Utils.goWeChatShareText(detailModel.smsContent); | ||
| 5344 | + // dynamic isSuccess = await Utils.goShareInvicationToWeChat( | ||
| 5345 | + // context, | ||
| 5346 | + // widget.rid, | ||
| 5347 | + // Provider.of<UserModel>(context, listen: false).user.openid, | ||
| 5348 | + // isWechat: false); | ||
| 5349 | + // print(isSuccess); | ||
| 5350 | + // if (isSuccess) { | ||
| 5351 | + // // _addForward(); | ||
| 5352 | + // } | ||
| 5353 | + }, | ||
| 5354 | + ), | ||
| 5355 | + HEmptyView(20), | ||
| 5329 | // RoundButton( | 5356 | // RoundButton( |
| 5330 | // text: '企业微信通知', | 5357 | // text: '企业微信通知', |
| 5331 | // width: ScreenUtil().setWidth(110 * 2), | 5358 | // width: ScreenUtil().setWidth(110 * 2), |
| @@ -828,6 +828,7 @@ class _StoreIntroducePageState extends State<StoreIntroducePage> { | @@ -828,6 +828,7 @@ class _StoreIntroducePageState extends State<StoreIntroducePage> { | ||
| 828 | Utils.showToast('请至少上传一张图片!'); | 828 | Utils.showToast('请至少上传一张图片!'); |
| 829 | return false; | 829 | return false; |
| 830 | } | 830 | } |
| 831 | + | ||
| 831 | 832 | ||
| 832 | //接口 | 833 | //接口 |
| 833 | Map storeData = { | 834 | Map storeData = { |
| @@ -2464,6 +2464,38 @@ class Utils { | @@ -2464,6 +2464,38 @@ class Utils { | ||
| 2464 | return result; | 2464 | return result; |
| 2465 | } | 2465 | } |
| 2466 | 2466 | ||
| 2467 | + static goWeChatShareText(String source) async { | ||
| 2468 | + // WeChatShareTextModel( | ||
| 2469 | + // this.source, { | ||
| 2470 | + // this.scene = WeChatScene.SESSION, | ||
| 2471 | + // this.mediaTagName, | ||
| 2472 | + // this.messageAction, | ||
| 2473 | + // this.messageExt, | ||
| 2474 | + // this.msgSignature, | ||
| 2475 | + // String? description, | ||
| 2476 | + // String? title, | ||
| 2477 | + // }) | ||
| 2478 | + | ||
| 2479 | + if (source == '') { | ||
| 2480 | + Utils.showToast('没有内容'); | ||
| 2481 | + return; | ||
| 2482 | + } | ||
| 2483 | + var model = new WeChatShareTextModel( | ||
| 2484 | + source, | ||
| 2485 | + // userName: _userName, | ||
| 2486 | + // title: _title, | ||
| 2487 | + // path: _path, | ||
| 2488 | + // description: _description, | ||
| 2489 | + // miniProgramType: Constant.wxMiniProgramType, // | ||
| 2490 | + // miniProgramType: WXMiniProgramType.RELEASE, //正式版 | ||
| 2491 | + // miniProgramType: //开发版 | ||
| 2492 | + // thumbnail: WeChatImage.binary(source) | ||
| 2493 | + // thumbnail: WeChatImage.network(_thumbnail) | ||
| 2494 | + ); | ||
| 2495 | + | ||
| 2496 | + bool isSuccess = await shareToWeChat(model); | ||
| 2497 | + } | ||
| 2498 | + | ||
| 2467 | //分享邀请函 | 2499 | //分享邀请函 |
| 2468 | static goShareInvicationToWeChat(BuildContext context, String rid, String uid, | 2500 | static goShareInvicationToWeChat(BuildContext context, String rid, String uid, |
| 2469 | String month, String week, String liteStyle, | 2501 | String month, String week, String liteStyle, |
-
Please register or login to post a comment