Commit 78df48477bd8396957c6cc83f3ac63e637d11199

Authored by wdn127929
1 parent 04031ba7

ff

... ... @@ -549,7 +549,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 540;
CURRENT_PROJECT_VERSION = 5403;
DEVELOPMENT_TEAM = 8J59HM8B82;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82;
ENABLE_BITCODE = NO;
... ... @@ -703,7 +703,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 540;
CURRENT_PROJECT_VERSION = 5403;
DEVELOPMENT_TEAM = 8J59HM8B82;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82;
ENABLE_BITCODE = NO;
... ... @@ -748,7 +748,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 540;
CURRENT_PROJECT_VERSION = 5403;
DEVELOPMENT_TEAM = 8J59HM8B82;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 8J59HM8B82;
ENABLE_BITCODE = NO;
... ...
... ... @@ -5326,6 +5326,33 @@ class InvicationPageState extends State<InvicationPage>
}
}),
HEmptyView(20),
RoundButton(
text: '微信消息通知',
width: ScreenUtil().setWidth(110 * 2),
height: ScreenUtil().setWidth(96),
fontSize: 30,
textColor: MyColours.color_999999,
gradientStart: MyColours.color_f3f3f3,
gradientEnd: MyColours.color_f3f3f3,
radius: ScreenUtil().setWidth(8),
isBold: false,
onPressed: () async {
//重新查询短信内容
await _getReserveDetailRelationData(showCicle: true);
await Utils.goWeChatShareText(detailModel.smsContent);
// dynamic isSuccess = await Utils.goShareInvicationToWeChat(
// context,
// widget.rid,
// Provider.of<UserModel>(context, listen: false).user.openid,
// isWechat: false);
// print(isSuccess);
// if (isSuccess) {
// // _addForward();
// }
},
),
HEmptyView(20),
// RoundButton(
// text: '企业微信通知',
// width: ScreenUtil().setWidth(110 * 2),
... ...
... ... @@ -828,6 +828,7 @@ class _StoreIntroducePageState extends State<StoreIntroducePage> {
Utils.showToast('请至少上传一张图片!');
return false;
}
//接口
Map storeData = {
... ...
... ... @@ -2464,6 +2464,38 @@ class Utils {
return result;
}
static goWeChatShareText(String source) async {
// WeChatShareTextModel(
// this.source, {
// this.scene = WeChatScene.SESSION,
// this.mediaTagName,
// this.messageAction,
// this.messageExt,
// this.msgSignature,
// String? description,
// String? title,
// })
if (source == '') {
Utils.showToast('没有内容');
return;
}
var model = new WeChatShareTextModel(
source,
// userName: _userName,
// title: _title,
// path: _path,
// description: _description,
// miniProgramType: Constant.wxMiniProgramType, //
// miniProgramType: WXMiniProgramType.RELEASE, //正式版
// miniProgramType: //开发版
// thumbnail: WeChatImage.binary(source)
// thumbnail: WeChatImage.network(_thumbnail)
);
bool isSuccess = await shareToWeChat(model);
}
//分享邀请函
static goShareInvicationToWeChat(BuildContext context, String rid, String uid,
String month, String week, String liteStyle,
... ...