Commit f49f0be1ecfba07c8fbcb889a4b6fe33141def8c

Authored by wdn127929
1 parent 0ebe4d23

模版---颜色

... ... @@ -9,6 +9,7 @@ import 'package:one_key/widgets/system_app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import 'package:provider/provider.dart';
import '../../../../constant/state.dart';
import '../../../../models/get_seller_info_model.dart';
import '../../../../models/mark_data_model.dart';
import '../../../../provider/base_info_provider.dart';
... ... @@ -17,6 +18,7 @@ import '../../../../provider/store_base_info_provider.dart';
import '../../../../provider/user_model.dart';
import '../../../../res/colors.dart';
import '../../../../utils/screen_util.dart';
import '../../../../widgets/page_exception.dart';
import '../../../../widgets/round_button.dart';
import '../../personnel_type/base_info_personnal_page.dart';
... ... @@ -307,357 +309,384 @@ class _BookInfoPageState extends State<BookInfoPage> {
_storeBaseIndoProvider =
Provider.of<StoreBaseIndoProvider>(context, listen: false);
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'预订信息展示',
onTap: () {
Navigator.pop(context);
},
),
body: Column(
children: [
Expanded(
child: SingleChildScrollView(
child: Column(children: [
_item('展示餐厅前台电话号码', select: addPhone, onTap: () {
setState(() {
addPhone = !addPhone;
});
}),
VEmptyView(24),
_item('附加餐厅经理名片', select: addManager, onTap: () {
setState(() {
addManager = !addManager;
});
}),
VEmptyView(24),
_item('附加停车信息', select: addParking, onTap: () {
setState(() {
addParking = !addParking;
});
}),
VEmptyView(24),
//输入框
addParking
? Container(
width: double.infinity,
margin: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(40)),
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(40),
vertical: ScreenUtil().setWidth(20)),
alignment: Alignment.topLeft,
decoration: BoxDecoration(
color: MyColours.color_ffffff,
border: Border.all(
color: MyColours.color_DBDBDB,
width: ScreenUtil().setWidth(2)),
borderRadius:
BorderRadius.circular(ScreenUtil().setWidth(20))),
child: TextField(
controller: parkingIncoC,
focusNode: parkingIncoNode,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
textBaseline: TextBaseline.alphabetic),
textAlignVertical: TextAlignVertical.center,
maxLines: 5,
maxLength: 38,
decoration: InputDecoration(
hintText: "点击录入停车信息,最多38个汉字。",
hintStyle: TextStyle(
color: MyColours.color_999999,
fontSize: ScreenUtil().setSp(28),
),
contentPadding: EdgeInsets.zero,
border:
OutlineInputBorder(borderSide: BorderSide.none),
),
keyboardType: TextInputType.text,
onChanged: (value) {
setState(() {
// currentRemark = value ?? "";
});
}),
)
: SizedBox(),
addParking ? VEmptyView(24) : SizedBox(),
addParking
? Padding(
padding: EdgeInsets.symmetric(horizontal: w(20)),
child: MyDivider(
double.infinity,
w(0.5),
color: MyColours.color_DBDBDB,
))
: SizedBox(),
VEmptyView(24),
Container(
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(
left: w(16), top: w(12), bottom: w(12), right: w(16)),
child: Text(
'效果预览',
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
),
),
VEmptyView(24),
Container(
width: double.infinity,
margin: EdgeInsets.symmetric(horizontal: w(10)),
padding: EdgeInsets.symmetric(horizontal: w(8)),
decoration: BoxDecoration(
border: Border(
left: BorderSide(
width: w(2), color: MyColours.color_EEAE74))),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'尊敬的贵宾,您好!',
style: TextStyle(
color: MyColours.color_000000, fontSize: font(14)),
),
VEmptyView(10),
Text('非常感谢您选择【${sellername}】!',
style: TextStyle(
color: MyColours.color_000000, fontSize: font(14))),
VEmptyView(30),
_itemTitleAndSubTtile('日期', '${date}'),
VEmptyView(10),
_itemTitleAndSubTtile('餐段', '${dsolt}'),
VEmptyView(10),
marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? _itemTitleAndSubTtile('包间',
'${marketingCenterProvider.tableOuterList[0].name}${marketingCenterProvider.tableOuterList[0].list[0].name}')
: SizedBox(),
VEmptyView(10),
marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? _itemTitleAndSubTtile('人数',
'${marketingCenterProvider.tableOuterList[0].list[0].tableNum}')
: SizedBox(),
VEmptyView(10),
// _itemTitleAndSubTtile('地址', '${address}'),
// VEmptyView(10),
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar(
'预订信息展示',
onTap: () {
Navigator.pop(context);
},
),
body: Consumer<MarketingCenterProvider>(builder: (context1, model, _) {
if (model.pageStateBookInfo != PageState.Success) {
return ExceptionPage(
pageState: model.pageStateBookInfo,
callback: () async {},
emptyMsg: "暂时没有预订信息展示哦",
emptyImg: "empty_search",
showMsg: "加载中,请稍后...",
);
} else {
return Column(
children: [
Expanded(
child: SingleChildScrollView(
child: Column(children: [
_item('展示餐厅前台电话号码', select: addPhone, onTap: () {
setState(() {
addPhone = !addPhone;
});
}),
VEmptyView(24),
_item('附加餐厅经理名片', select: addManager, onTap: () {
setState(() {
addManager = !addManager;
});
}),
VEmptyView(24),
_item('附加停车信息', select: addParking, onTap: () {
setState(() {
addParking = !addParking;
});
}),
VEmptyView(24),
//输入框
addParking
? _itemTitleAndSubTtile('停车', '${parkingIncoC.text}')
: SizedBox(),
addParking ? VEmptyView(10) : SizedBox(),
if (addPhone) _itemTitleAndSubTtile('联系', '${sellerphone}'),
VEmptyView(20),
addManager
? Row(
children: [
HEmptyView(20),
ClipRRect(
borderRadius: BorderRadius.circular(r(35)),
child: Image.network(
_baseIndoProvider.baseInfoSunModel == null ||
_baseIndoProvider
.baseInfoSunModel.photo ==
null ||
_baseIndoProvider
.baseInfoSunModel.photo ==
''
? 'http://nosqn.colorcun.com/yd_person.png'
: _baseIndoProvider
.baseInfoSunModel.photo,
fit: BoxFit.cover,
width: w(70),
height: w(70),
),
),
HEmptyView(20),
// Spacer(),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'专属服务:${_baseIndoProvider.baseInfoSunModel == null || _baseIndoProvider.baseInfoSunModel.name == null ? Provider.of<UserModel>(context, listen: false).user.nickName : _baseIndoProvider.baseInfoSunModel.name}',
style: TextStyle(
color: MyColours.color_999999,
fontWeight: FontWeight.bold,
fontSize: font(12)),
? Container(
width: double.infinity,
margin: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(40)),
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(40),
vertical: ScreenUtil().setWidth(20)),
alignment: Alignment.topLeft,
decoration: BoxDecoration(
color: MyColours.color_ffffff,
border: Border.all(
color: MyColours.color_DBDBDB,
width: ScreenUtil().setWidth(2)),
borderRadius: BorderRadius.circular(
ScreenUtil().setWidth(20))),
child: TextField(
controller: parkingIncoC,
focusNode: parkingIncoNode,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
textBaseline: TextBaseline.alphabetic),
textAlignVertical: TextAlignVertical.center,
maxLines: 5,
maxLength: 38,
decoration: InputDecoration(
hintText: "点击录入停车信息,最多38个汉字。",
hintStyle: TextStyle(
color: MyColours.color_999999,
fontSize: ScreenUtil().setSp(28),
),
VEmptyView(16),
Text(
'服务电话:${_baseIndoProvider.baseInfoSunModel == null || _baseIndoProvider.baseInfoSunModel.phone == null ? Provider.of<UserModel>(context, listen: false).user.userphone : _baseIndoProvider.baseInfoSunModel.phone}',
style: TextStyle(
color: MyColours.color_999999,
fontWeight: FontWeight.bold,
fontSize: font(12)),
),
],
)),
HEmptyView(10),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
RoundButton(
width: w(72),
height: w(22),
text: '拨打电话',
gradientStart: MyColours.color_ffffff,
gradientEnd: MyColours.color_ffffff,
borderColor: MyColours.color_0143A3,
textColor: MyColours.color_0143A3,
radius: r(11),
fontSize: 24,
isBold: true,
onPressed: () {},
),
VEmptyView(16),
RoundButton(
width: w(72),
height: w(22),
text: '复制微信号',
gradientStart: MyColours.color_ffffff,
gradientEnd: MyColours.color_ffffff,
borderColor: MyColours.color_0143A3,
textColor: MyColours.color_0143A3,
radius: r(11),
fontSize: 24,
isBold: true,
onPressed: () {},
),
],
)
],
contentPadding: EdgeInsets.zero,
border: OutlineInputBorder(
borderSide: BorderSide.none),
),
keyboardType: TextInputType.text,
onChanged: (value) {
setState(() {
// currentRemark = value ?? "";
});
}),
)
: SizedBox(),
addManager ? VEmptyView(10) : SizedBox(),
Text('欢迎垂询,恭候光临!',
addParking ? VEmptyView(24) : SizedBox(),
addParking
? Padding(
padding: EdgeInsets.symmetric(horizontal: w(20)),
child: MyDivider(
double.infinity,
w(0.5),
color: MyColours.color_DBDBDB,
))
: SizedBox(),
VEmptyView(24),
Container(
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(
left: w(16), top: w(12), bottom: w(12), right: w(16)),
child: Text(
'效果预览',
style: TextStyle(
color: MyColours.color_000000, fontSize: font(14))),
],
),
),
VEmptyView(20),
Container(
width: double.infinity,
margin: EdgeInsets.symmetric(horizontal: w(20)),
padding:
EdgeInsets.symmetric(horizontal: w(15), vertical: w(12)),
decoration: BoxDecoration(
color: MyColours.color_d9d9d9,
borderRadius: BorderRadius.circular(r(5))),
child: Row(
children: [
Image.asset(
Utils.getImgPath('location_blue'),
width: w(16),
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
),
),
HEmptyView(28),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('${sellername}',
style: TextStyle(
color: MyColours.color_000000,
fontWeight: FontWeight.bold,
fontSize: font(14))),
VEmptyView(10),
Text('${address ?? ''}',
VEmptyView(24),
Container(
width: double.infinity,
margin: EdgeInsets.symmetric(horizontal: w(10)),
padding: EdgeInsets.symmetric(horizontal: w(8)),
decoration: BoxDecoration(
border: Border(
left: BorderSide(
width: w(2), color: MyColours.color_EEAE74))),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'尊敬的贵宾,您好!',
style: TextStyle(
height: 1.3,
color: MyColours.color_000000,
fontSize: font(14))),
],
))
],
),
),
VEmptyView(16)
]),
)),
Container(
color: MyColours.color_ffffff,
padding: EdgeInsets.only(
left: w(45), right: w(45), top: w(12), bottom: w(25)),
child: RoundButton(
text: '保存',
gradientStart: MyColours.color_199095,
gradientEnd: MyColours.color_199095,
// borderColor: MyColours.color_999999,
radius: r(5),
fontSize: 34,
height: w(40),
isBold: true,
onPressed: () async {
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
if (addParking && parkingIncoC.text.trim().length == 0) {
Utils.showToast('请输入停车信息!');
return false;
}
//接口
Map reserveData = {
'swich_phone': addPhone ? '1' : '0',
'swich_manager': addManager ? '1' : '0',
'swich_park': addParking ? '1' : '0',
'park_info': parkingIncoC.text,
'seller_name': sellername,
'date': dateValue,
'dsolt': dsolt,
'room': marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? '${marketingCenterProvider.tableOuterList[0].name}${marketingCenterProvider.tableOuterList[0].list[0].name}'
: '',
'pnum': marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? '${marketingCenterProvider.tableOuterList[0].list[0].tableNum}'
: '',
'address': '${address}',
'seller_phone': '${sellerphone}',
'manager_image':
_baseIndoProvider.baseInfoSunModel.photo == null ||
_baseIndoProvider.baseInfoSunModel.photo == ''
? 'http://nosqn.colorcun.com/yd_person.png'
: _baseIndoProvider.baseInfoSunModel.photo,
'manager_name': '${_baseIndoProvider.baseInfoSunModel.name}',
'manager_phone':
'${_baseIndoProvider.baseInfoSunModel.phone}',
'manager_wechat':
'${_baseIndoProvider.baseInfoSunModel.wechat}',
'long': long,
'lat': lat
};
Map<String, String> params = {
'sid': Provider.of<UserModel>(context, listen: false)
.user
.sellerid,
'reserve': json.encode(reserveData)
};
bool success = await marketingCenterProvider
.setSellerTemplateConf(context, params, showLoading: true);
if (success) {
Utils.showToast('保存成功');
Navigator.pop(context);
}
},
),
)
],
),
);
fontSize: font(14)),
),
VEmptyView(10),
Text('非常感谢您选择【${sellername}】!',
style: TextStyle(
color: MyColours.color_000000,
fontSize: font(14))),
VEmptyView(30),
_itemTitleAndSubTtile('日期', '${date}'),
VEmptyView(10),
_itemTitleAndSubTtile('餐段', '${dsolt}'),
VEmptyView(10),
marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? _itemTitleAndSubTtile('包间',
'${marketingCenterProvider.tableOuterList[0].name}${marketingCenterProvider.tableOuterList[0].list[0].name}')
: SizedBox(),
VEmptyView(10),
marketingCenterProvider.tableOuterList.length > 0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? _itemTitleAndSubTtile('人数',
'${marketingCenterProvider.tableOuterList[0].list[0].tableNum}')
: SizedBox(),
VEmptyView(10),
// _itemTitleAndSubTtile('地址', '${address}'),
// VEmptyView(10),
addParking
? _itemTitleAndSubTtile(
'停车', '${parkingIncoC.text}')
: SizedBox(),
addParking ? VEmptyView(10) : SizedBox(),
if (addPhone)
_itemTitleAndSubTtile('联系', '${sellerphone}'),
VEmptyView(20),
addManager
? Row(
children: [
HEmptyView(20),
ClipRRect(
borderRadius:
BorderRadius.circular(r(35)),
child: Image.network(
_baseIndoProvider.baseInfoSunModel ==
null ||
_baseIndoProvider
.baseInfoSunModel
.photo ==
null ||
_baseIndoProvider
.baseInfoSunModel
.photo ==
''
? 'http://nosqn.colorcun.com/yd_person.png'
: _baseIndoProvider
.baseInfoSunModel.photo,
fit: BoxFit.cover,
width: w(70),
height: w(70),
),
),
HEmptyView(20),
// Spacer(),
Expanded(
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
Text(
'专属服务:${_baseIndoProvider.baseInfoSunModel == null || _baseIndoProvider.baseInfoSunModel.name == null ? Provider.of<UserModel>(context, listen: false).user.nickName : _baseIndoProvider.baseInfoSunModel.name}',
style: TextStyle(
color: MyColours.color_999999,
fontWeight: FontWeight.bold,
fontSize: font(12)),
),
VEmptyView(16),
Text(
'服务电话:${_baseIndoProvider.baseInfoSunModel == null || _baseIndoProvider.baseInfoSunModel.phone == null ? Provider.of<UserModel>(context, listen: false).user.userphone : _baseIndoProvider.baseInfoSunModel.phone}',
style: TextStyle(
color: MyColours.color_999999,
fontWeight: FontWeight.bold,
fontSize: font(12)),
),
],
)),
HEmptyView(10),
Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: [
RoundButton(
width: w(72),
height: w(22),
text: '拨打电话',
gradientStart: MyColours.color_ffffff,
gradientEnd: MyColours.color_ffffff,
borderColor: MyColours.color_0143A3,
textColor: MyColours.color_0143A3,
radius: r(11),
fontSize: 24,
isBold: true,
onPressed: () {},
),
VEmptyView(16),
RoundButton(
width: w(72),
height: w(22),
text: '复制微信号',
gradientStart: MyColours.color_ffffff,
gradientEnd: MyColours.color_ffffff,
borderColor: MyColours.color_0143A3,
textColor: MyColours.color_0143A3,
radius: r(11),
fontSize: 24,
isBold: true,
onPressed: () {},
),
],
)
],
)
: SizedBox(),
addManager ? VEmptyView(10) : SizedBox(),
Text('欢迎垂询,恭候光临!',
style: TextStyle(
color: MyColours.color_000000,
fontSize: font(14))),
],
),
),
VEmptyView(20),
Container(
width: double.infinity,
margin: EdgeInsets.symmetric(horizontal: w(20)),
padding: EdgeInsets.symmetric(
horizontal: w(15), vertical: w(12)),
decoration: BoxDecoration(
color: MyColours.color_d9d9d9,
borderRadius: BorderRadius.circular(r(5))),
child: Row(
children: [
Image.asset(
Utils.getImgPath('location_blue'),
width: w(16),
),
HEmptyView(28),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('${sellername}',
style: TextStyle(
color: MyColours.color_000000,
fontWeight: FontWeight.bold,
fontSize: font(14))),
VEmptyView(10),
Text('${address ?? ''}',
style: TextStyle(
height: 1.3,
color: MyColours.color_000000,
fontSize: font(14))),
],
))
],
),
),
VEmptyView(16)
]),
)),
Container(
color: MyColours.color_ffffff,
padding: EdgeInsets.only(
left: w(45), right: w(45), top: w(12), bottom: w(25)),
child: RoundButton(
text: '保存',
gradientStart: MyColours.color_199095,
gradientEnd: MyColours.color_199095,
// borderColor: MyColours.color_999999,
radius: r(5),
fontSize: 34,
height: w(40),
isBold: true,
onPressed: () async {
FocusScope.of(context)
.requestFocus(FocusNode()); //点击空白处隐藏键盘
if (addParking && parkingIncoC.text.trim().length == 0) {
Utils.showToast('请输入停车信息!');
return false;
}
//接口
Map reserveData = {
'swich_phone': addPhone ? '1' : '0',
'swich_manager': addManager ? '1' : '0',
'swich_park': addParking ? '1' : '0',
'park_info': parkingIncoC.text,
'seller_name': sellername,
'date': dateValue,
'dsolt': dsolt,
'room': marketingCenterProvider.tableOuterList.length >
0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? '${marketingCenterProvider.tableOuterList[0].name}${marketingCenterProvider.tableOuterList[0].list[0].name}'
: '',
'pnum': marketingCenterProvider.tableOuterList.length >
0 &&
marketingCenterProvider
.tableOuterList[0].list.length >
0
? '${marketingCenterProvider.tableOuterList[0].list[0].tableNum}'
: '',
'address': '${address}',
'seller_phone': '${sellerphone}',
'manager_image':
_baseIndoProvider.baseInfoSunModel.photo == null ||
_baseIndoProvider.baseInfoSunModel.photo ==
''
? 'http://nosqn.colorcun.com/yd_person.png'
: _baseIndoProvider.baseInfoSunModel.photo,
'manager_name':
'${_baseIndoProvider.baseInfoSunModel.name}',
'manager_phone':
'${_baseIndoProvider.baseInfoSunModel.phone}',
'manager_wechat':
'${_baseIndoProvider.baseInfoSunModel.wechat}',
'long': long,
'lat': lat
};
Map<String, String> params = {
'sid': Provider.of<UserModel>(context, listen: false)
.user
.sellerid,
'reserve': json.encode(reserveData)
};
bool success = await marketingCenterProvider
.setSellerTemplateConf(context, params,
showLoading: true);
if (success) {
Utils.showToast('保存成功');
Navigator.pop(context);
}
},
),
)
],
);
}
}));
}
}
... ...
... ... @@ -2,11 +2,13 @@ import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/pages/my/marketing_center/theme_model.dart';
import 'package:one_key/route/navigator_util.dart';
import 'package:one_key/widgets/system_app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import '../../../res/colors.dart';
import '../../../utils/dialog_util.dart';
import '../../../utils/event_bus.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/MyDivider.dart';
... ... @@ -28,83 +30,121 @@ class InvitationThemeHomePage extends StatefulWidget {
}
class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
// 主题数据
Map<String, ThemeModel> themeDatas = {};
ScrollController controller = ScrollController();
//当前店铺选中的颜色和板式
String themeColor = '摩洛哥蓝';
String themeType = '4'; //模版类型
String themeColor;
String themeType = '1'; //模版类型
// int indexSelectColor = 0; //选中第几个模版 (有配色选中index)
// int indexSelectNoColor = 0; //选中第几个模版 (无配色选中index)
List<ThemeSunModel> themeDatasno = [];
List<ThemeSunModel> themesDatas = [];
ThemeModel themeModelCurrunt; //有配色对应的当前页面模版数据
// Map<String, dynamic> json1 = {
// 'color_name': '黑蓝过渡',
// 'color_value_s': 'FF42A5FF',
// 'color_value_m': 'FF000000',
// 'color_value_e': 'FF42A5FF',
// 'urls': urls
// };
// ThemeModel themeModel1 = ThemeModel.fromJson(json1);
// themeDatas['黑蓝过渡'] = themeModel1;
@override
void initState() {
super.initState();
// //模版1
Map<String, dynamic> jsonSun11 = {
'name': '1 经典图片式',
'id': '1',
'url': 'https://qn.colorcun.com/template/jingdianbianyi.png',
};
ThemeSunModel themeSunModel11 = ThemeSunModel.fromJson(jsonSun11);
themeDatasno.add(themeSunModel11);
//模版1
_addModel1();
//黑蓝过度
_addHeilanguodu();
//模版2
_addModel2();
//石绿过度
_addShilvuodu();
//模版3
_addModel3();
//中国红过度
_addZhongguohongguodu();
//模版4
_addModel4();
//群青过度
_addQunqingguodu();
//模版5
_addModel5();
//模版6
_addModel6();
//深中国红
_addShenzhongguohong();
//模版7
_addModel7();
//中国红
_addZhongguohong();
WidgetsBinding.instance.addPostFrameCallback((_) {
bus.on("theme_color_type", (arg) {
themeColor = arg['themeColor'];
themeType = arg['themeType'];
//蓝采和
_addLancaihe();
themesDatas[
themesDatas.indexWhere((element) => element.id == themeType)]
.themeColorDefault = themeColor;
//石绿
_addShilv();
setState(() {});
});
});
//姜黄
_addJianghuang();
// //石绿过度
// _addShilvuodu();
//金黄
_addJinhuang();
// //中国红过度
// _addZhongguohongguodu();
//苍黄
_addCanghuang();
// //群青过度
// _addQunqingguodu();
//群青
_addQunqing();
// //深中国红
// _addShenzhongguohong();
//摩洛哥蓝
_addMoluogelan();
// //中国红
// _addZhongguohong();
print(themeDatas);
// //蓝采和
// _addLancaihe();
Map<String, String> map = {
'color': convert.jsonEncode(themeDatas),
'no_color': convert.jsonEncode(themeDatasno)
};
print(map);
// //石绿
// _addShilv();
// //姜黄
// _addJianghuang();
// //金黄
// _addJinhuang();
// //苍黄
// _addCanghuang();
// //群青
// _addQunqing();
// //摩洛哥蓝
// _addMoluogelan();
print(themesDatas);
String ddd = convert.jsonEncode(themesDatas);
print(ddd);
// Map<String, String> map = {
// 'color': convert.jsonEncode(themeDatas),
// 'no_color': convert.jsonEncode(themesDatas)
// };
// print(map);
}
@override
void dispose() {
bus.off('theme_color_type');
super.dispose();
}
_addMoluogelan() {
/**
* _addMoluogelan() {
List<ThemeSunModel> urls = [];
// //模版1
... ... @@ -715,67 +755,7 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
ThemeModel themeModel1 = ThemeModel.fromJson(json1);
// themeDatas.add(themeModel1);
themeDatas['深中国红'] = themeModel1;
}
_addHeilanguodu() {
List<ThemeSunModel> urls = [];
//模版3
Map<String, dynamic> jsonSun13 = {
'name': '3 简洁信息图文A(多色)',
'id': '3',
'url': 'https://qn.colorcun.com/template/heilanguodu-3.png',
};
ThemeSunModel themeSunModel13 = ThemeSunModel.fromJson(jsonSun13);
urls.add(themeSunModel13);
//模版4
Map<String, dynamic> jsonSun14 = {
'name': '4 半屏邀请函A(多色)',
'id': '4',
'url': 'https://qn.colorcun.com/template/heilanguodu-4.png',
};
ThemeSunModel themeSunModel14 = ThemeSunModel.fromJson(jsonSun14);
urls.add(themeSunModel14);
//模版5
Map<String, dynamic> jsonSun15 = {
'name': '5 半屏邀请函B(多色)',
'id': '5',
'url': 'https://qn.colorcun.com/template/heilanguodu-5.png',
};
ThemeSunModel themeSunModel15 = ThemeSunModel.fromJson(jsonSun15);
urls.add(themeSunModel15);
//模版6
Map<String, dynamic> jsonSun16 = {
'name': '6 无预订包间图片A(多色)',
'id': '6',
'url': 'https://qn.colorcun.com/template/heilanguodu-6.png',
};
ThemeSunModel themeSunModel16 = ThemeSunModel.fromJson(jsonSun16);
urls.add(themeSunModel16);
//模版7
Map<String, dynamic> jsonSun17 = {
'name': '7 无预订包间图片B',
'id': '7',
'url': 'https://qn.colorcun.com/template/heilanguodu-7.png',
};
ThemeSunModel themeSunModel17 = ThemeSunModel.fromJson(jsonSun17);
urls.add(themeSunModel17);
Map<String, dynamic> json1 = {
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'urls': urls
};
ThemeModel themeModel1 = ThemeModel.fromJson(json1);
themeDatas['黑蓝过渡'] = themeModel1;
}
_addShilvuodu() {
_addShilvuodu() {
List<ThemeSunModel> urls = [];
//模版3
Map<String, dynamic> jsonSun13 = {
... ... @@ -952,28 +932,712 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
themeDatas['群青过渡'] = themeModel1;
}
_selectTheme(String id) {
List<ThemeSunModel> temp = [];
temp.addAll(themeModelCurrunt.urls);
temp.addAll(themeDatasno);
List<String> tempUrls = temp.map((e) => e.url).toList();
// List<String> temp =
// themeModel.urls.map((e) => e.url).toList();
// print(temp);
// List<String> temp =
// themeDatasno.map((e) => e.url).toList();
print(temp);
_showPhotoView(
context, temp.indexWhere((element) => element.id == id), tempUrls,
(index) {
//选中的index
themeType = temp[index].id; //当前选中模版的id
setState(() {});
});
}
*/
_addModel1() {
// //模版1
Map<String, dynamic> jsonSun11 = {
'name': '1 经典图片式',
'id': '1',
'url': 'https://qn.colorcun.com/template/jingdianbianyi.png',
};
ThemeSunModel themeSunModel11 = ThemeSunModel.fromJson(jsonSun11);
themesDatas.add(themeSunModel11);
}
_addModel2() {
// //模版2
Map<String, dynamic> jsonSun12 = {
'name': '2 简洁图文A(多色)',
'id': '2',
'colors': [
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-2.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-2.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-2.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-2.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-2.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-2.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-2.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-2.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-2.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
_addModel3() {
// //模版3
Map<String, dynamic> jsonSun12 = {
'name': '3 简洁信息图文A(多色)',
'id': '3',
'colors': [
{
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'lite_class': 'blackBlueGradient',
'url': 'https://qn.colorcun.com/template/heilanguodu-3.png'
},
{
'color_name': '石绿过渡',
'color_value_s': 'FF438E93',
'color_value_m': 'FF206864',
'color_value_e': 'FF42A5FF',
'lite_class': 'stoneGreenGradient',
'url': 'https://qn.colorcun.com/template/shilvguodu-3.png'
},
{
'color_name': '中国红过渡',
'color_value_s': 'FFAF231C',
'color_value_m': 'FF86201B',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRedGradient',
'url': 'https://qn.colorcun.com/template/zhongguohongguodu-3.png'
},
{
'color_name': '群青过渡',
'color_value_s': 'FF4C8DAD',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF42A5FF',
'lite_class': 'ultramarineGradient',
'url': 'https://qn.colorcun.com/template/qunqingguodu-3.png'
},
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-3.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-3.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-3.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-3.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-3.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-3.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-3.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-3.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-3.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
_addModel4() {
// //模版4
Map<String, dynamic> jsonSun12 = {
'name': '4 半屏邀请函A(多色)',
'id': '4',
'colors': [
{
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'lite_class': 'blackBlueGradient',
'url': 'https://qn.colorcun.com/template/heilanguodu-4.png'
},
{
'color_name': '石绿过渡',
'color_value_s': 'FF438E93',
'color_value_m': 'FF206864',
'color_value_e': 'FF42A5FF',
'lite_class': 'stoneGreenGradient',
'url': 'https://qn.colorcun.com/template/shilvguodu-4.png'
},
{
'color_name': '中国红过渡',
'color_value_s': 'FFAF231C',
'color_value_m': 'FF86201B',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRedGradient',
'url': 'https://qn.colorcun.com/template/zhongguohongguodu-4.png'
},
{
'color_name': '群青过渡',
'color_value_s': 'FF4C8DAD',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF42A5FF',
'lite_class': 'ultramarineGradient',
'url': 'https://qn.colorcun.com/template/qunqingguodu-4.png'
},
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-4.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-4.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-4.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-4.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-4.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-4.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-4.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-4.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-4.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
_addModel5() {
// //模版5
Map<String, dynamic> jsonSun12 = {
'name': '5 半屏邀请函B(多色)',
'id': '5',
'colors': [
{
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'lite_class': 'blackBlueGradient',
'url': 'https://qn.colorcun.com/template/heilanguodu-5.png'
},
{
'color_name': '石绿过渡',
'color_value_s': 'FF438E93',
'color_value_m': 'FF206864',
'color_value_e': 'FF42A5FF',
'lite_class': 'stoneGreenGradient',
'url': 'https://qn.colorcun.com/template/shilvguodu-5.png'
},
{
'color_name': '中国红过渡',
'color_value_s': 'FFAF231C',
'color_value_m': 'FF86201B',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRedGradient',
'url': 'https://qn.colorcun.com/template/zhongguohongguodu-5.png'
},
{
'color_name': '群青过渡',
'color_value_s': 'FF4C8DAD',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF42A5FF',
'lite_class': 'ultramarineGradient',
'url': 'https://qn.colorcun.com/template/qunqingguodu-5.png'
},
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-5.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-5.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-5.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-5.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-5.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-5.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-5.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-5.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-5.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
_addModel6() {
// //模版6
Map<String, dynamic> jsonSun12 = {
'name': '6 无预订包间图片A(多色)',
'id': '6',
'colors': [
{
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'lite_class': 'blackBlueGradient',
'url': 'https://qn.colorcun.com/template/heilanguodu-6.png'
},
{
'color_name': '石绿过渡',
'color_value_s': 'FF438E93',
'color_value_m': 'FF206864',
'color_value_e': 'FF42A5FF',
'lite_class': 'stoneGreenGradient',
'url': 'https://qn.colorcun.com/template/shilvguodu-6.png'
},
{
'color_name': '中国红过渡',
'color_value_s': 'FFAF231C',
'color_value_m': 'FF86201B',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRedGradient',
'url': 'https://qn.colorcun.com/template/zhongguohongguodu-6.png'
},
{
'color_name': '群青过渡',
'color_value_s': 'FF4C8DAD',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF42A5FF',
'lite_class': 'ultramarineGradient',
'url': 'https://qn.colorcun.com/template/qunqingguodu-6.png'
},
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-6.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-6.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-6.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-6.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-6.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-6.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-6.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-6.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-6.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
_addModel7() {
// //模版7
Map<String, dynamic> jsonSun12 = {
'name': '7 无预订包间图片B',
'id': '7',
'colors': [
{
'color_name': '黑蓝过渡',
'color_value_s': 'FF42A5FF',
'color_value_m': 'FF000000',
'color_value_e': 'FF42A5FF',
'lite_class': 'blackBlueGradient',
'url': 'https://qn.colorcun.com/template/heilanguodu-7.png'
},
{
'color_name': '石绿过渡',
'color_value_s': 'FF438E93',
'color_value_m': 'FF206864',
'color_value_e': 'FF42A5FF',
'lite_class': 'stoneGreenGradient',
'url': 'https://qn.colorcun.com/template/shilvguodu-7.png'
},
{
'color_name': '中国红过渡',
'color_value_s': 'FFAF231C',
'color_value_m': 'FF86201B',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRedGradient',
'url': 'https://qn.colorcun.com/template/zhongguohongguodu-7.png'
},
{
'color_name': '群青过渡',
'color_value_s': 'FF4C8DAD',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF42A5FF',
'lite_class': 'ultramarineGradient',
'url': 'https://qn.colorcun.com/template/qunqingguodu-7.png'
},
{
'color_name': '深中国红',
'color_value_s': 'FF86201B',
'color_value_m': 'FF86201B',
'color_value_e': 'FF86201B',
'lite_class': 'crimson',
'url': 'https://qn.colorcun.com/template/shenzhongguohong-7.png'
},
{
'color_name': '中国红',
'color_value_s': 'FFAF231C',
'color_value_m': 'FFAF231C',
'color_value_e': 'FFAF231C',
'lite_class': 'chinaRed',
'url': 'https://qn.colorcun.com/template/zhongguohong-7.png'
},
{
'color_name': '蓝采和',
'color_value_s': 'FF06436F',
'color_value_m': 'FF06436F',
'color_value_e': 'FF06436F',
'lite_class': 'lanCaiHe',
'url': 'https://qn.colorcun.com/template/lancaihe-7.png'
},
{
'color_name': '石绿',
'color_value_s': 'FF206864',
'color_value_m': 'FF206864',
'color_value_e': 'FF206864',
'lite_class': 'stoneGreen',
'url': 'https://qn.colorcun.com/template/shilv-7.png'
},
{
'color_name': '姜黄',
'color_value_s': 'FFB39437',
'color_value_m': 'FFB39437',
'color_value_e': 'FFB39437',
'lite_class': 'turmeric',
'url': 'https://qn.colorcun.com/template/jianghuang-7.png',
},
{
'color_name': '苍黄',
'color_value_s': 'FFC85306',
'color_value_m': 'FFC85306',
'color_value_e': 'FFC85306',
'lite_class': 'greenishYellow',
'url': 'https://qn.colorcun.com/template/canghuang-7.png',
},
{
'color_name': '金黄',
'color_value_s': 'FFC67B3A',
'color_value_m': 'FFC67B3A',
'color_value_e': 'FFC67B3A',
'lite_class': 'golden',
'url': 'https://qn.colorcun.com/template/jinhuang-7.png',
},
{
'color_name': '群青',
'color_value_s': 'FF0143A3',
'color_value_m': 'FF0143A3',
'color_value_e': 'FF0143A3',
'lite_class': 'ultramarine',
'url': 'https://qn.colorcun.com/template/qunqing-7.png',
},
{
'color_name': '摩洛哥蓝',
'color_value_s': 'FF19516A',
'color_value_m': 'FF19516A',
'color_value_e': 'FF19516A',
'lite_class': 'moroccanBlue',
'url': 'https://qn.colorcun.com/template/moluogelan-7.png',
}
]
};
ThemeSunModel themeSunModel12 = ThemeSunModel.fromJson(jsonSun12);
themesDatas.add(themeSunModel12);
}
// _selectTheme(String id) {
// List<ThemeSunModel> temp = [];
// temp.addAll(themeModelCurrunt.urls);
// temp.addAll(themesDatas);
// List<String> tempUrls = temp.map((e) => e.url).toList();
// // List<String> temp =
// // themeModel.urls.map((e) => e.url).toList();
// // print(temp);
// // List<String> temp =
// // themesDatas.map((e) => e.url).toList();
// print(temp);
// _showPhotoView(
// context, temp.indexWhere((element) => element.id == id), tempUrls,
// (index) {
// //选中的index
// themeType = temp[index].id; //当前选中模版的id
// setState(() {});
// });
// }
_showPhotoView(BuildContext context, int index, List<String> imgs,
CustomCallBack callback,
{isShow = false, List dashName}) async {
... ... @@ -1047,75 +1711,13 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
child: SingleChildScrollView(
child: Column(
children: [
InkWell(
onTap: () {
List<ThemeModel> themeShow = [];
themeDatas.forEach((key, value) {
themeShow.add(value);
});
DialogUtil.showThemeColorSelectDialogNew(context, themeShow,
callback: (object) {
print(object);
setState(() {
themeColor = object;
});
});
},
child: Padding(
padding: EdgeInsets.only(
left: w(16), top: w(12), bottom: w(12), right: w(24)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'主题颜色选择',
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16)),
),
Spacer(),
Text(
themeDatas[themeColor].colorName,
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16)),
),
Container(
padding: EdgeInsets.symmetric(
horizontal: w(11), vertical: w(4)),
child: Image.asset(
"assets/arrow_right_new.png",
width: w(9),
height: w(16),
),
)
// RoundButton(
// text: '预览',
// gradientStart: MyColours.color_ffffff,
// gradientEnd: MyColours.color_ffffff,
// borderColor: MyColours.color_438E93,
// textColor: MyColours.color_438E93,
// radius: ScreenUtil().setWidth(22),
// fontSize: 24,
// width: w(72),
// height: ScreenUtil().setWidth(44),
// isBold: true,
// onPressed: () {
// NavigatorUtil.goMarkingPreviewPage(context);
// },
// ),
]))),
Padding(
padding: EdgeInsets.only(left: w(16)),
child: MyDivider(double.infinity, w(0.5),
color: MyColours.color_E7E7E7)),
VEmptyView(24),
GridView.builder(
padding: EdgeInsets.symmetric(horizontal: w(16)),
controller: controller,
// padding: EdgeInsets.only(top: ScreenUtil().getAdapterSize(10)),
shrinkWrap: true,
itemCount: themeDatas[themeColor].urls.length,
itemCount: themesDatas.length,
//SliverGridDelegateWithFixedCrossAxisCount 构建一个横轴固定数量Widget
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
//横轴元素个数
... ... @@ -1128,28 +1730,40 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
childAspectRatio:
(ScreenUtil().screenWidth - w(62)) / 2 / 370),
itemBuilder: (BuildContext context, int index) {
themeModelCurrunt = themeDatas[themeColor];
ThemeSunModel themeSunModel = themesDatas[index];
return InkWell(
onTap: () {
_selectTheme(themeDatas[themeColor].urls[index].id);
// _selectTheme(themeDatas[themeColor].urls[index].id);
//跳转到下一页
NavigatorUtil.goInvitationThemeHomePreviewPage(
context, themeSunModel);
},
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(r(10)),
border: Border.all(
color: themeType ==
themeModelCurrunt.urls[index].id
color: themeType == themeSunModel.id
? MyColours.color_005AA7
: MyColours.color_DBDBDB,
width: themeType ==
themeModelCurrunt.urls[index].id
width: themeType == themeSunModel.id
? w(2)
: w(1))),
child: Column(
children: [
VEmptyView(10),
CachedNetworkImage(
imageUrl: themeModelCurrunt.urls[index].url,
imageUrl: themeSunModel.colors == null ||
themeSunModel.colors.length == 0
? themeSunModel.url
: themeSunModel
.colors[themeColor == null
? 0
: themeSunModel.colors.indexWhere(
(element) =>
element.colorName ==
themeSunModel
.themeColorDefault)]
.url,
width: (ScreenUtil().screenWidth - w(62)) / 2,
height: w(348),
fit: BoxFit.fitWidth,
... ... @@ -1161,7 +1775,7 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
vertical: w(6), horizontal: w(2)),
width: double.infinity,
child: Text(
themeModelCurrunt.urls[index].name,
themeSunModel.name,
maxLines: 1,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.left,
... ... @@ -1174,143 +1788,6 @@ class _InvitationThemeHomePageState extends State<InvitationThemeHomePage> {
),
));
}),
InkWell(
onTap: () {
List<ThemeModel> themeShow = [];
themeDatas.forEach((key, value) {
themeShow.add(value);
});
DialogUtil.showThemeColorSelectDialogNew(context, themeShow,
callback: (object) {
print(object);
setState(() {
themeColor = object;
});
});
},
child: Padding(
padding: EdgeInsets.only(
left: w(16), top: w(12), bottom: w(12), right: w(24)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'无配色主题',
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16)),
),
// Spacer(),
// Text(
// themeDatas[themeColor].colorName,
// style: TextStyle(
// color: MyColours.color_515151,
// fontSize: font(16)),
// ),
// Container(
// padding: EdgeInsets.symmetric(
// horizontal: w(11), vertical: w(4)),
// child: Image.asset(
// "assets/arrow_right_new.png",
// width: w(9),
// height: w(16),
// ),
// )
// RoundButton(
// text: '预览',
// gradientStart: MyColours.color_ffffff,
// gradientEnd: MyColours.color_ffffff,
// borderColor: MyColours.color_438E93,
// textColor: MyColours.color_438E93,
// radius: ScreenUtil().setWidth(22),
// fontSize: 24,
// width: w(72),
// height: ScreenUtil().setWidth(44),
// isBold: true,
// onPressed: () {
// NavigatorUtil.goMarkingPreviewPage(context);
// },
// ),
]))),
Padding(
padding: EdgeInsets.only(left: w(16)),
child: MyDivider(double.infinity, w(0.5),
color: MyColours.color_E7E7E7)),
VEmptyView(24),
GridView.builder(
padding: EdgeInsets.symmetric(horizontal: w(16)),
controller: controller,
// padding: EdgeInsets.only(top: ScreenUtil().getAdapterSize(10)),
shrinkWrap: true,
itemCount: themeDatasno.length,
//SliverGridDelegateWithFixedCrossAxisCount 构建一个横轴固定数量Widget
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
//横轴元素个数
crossAxisCount: 2,
//纵轴间距
mainAxisSpacing: w(15),
//横轴间距
crossAxisSpacing: w(15),
//子组件宽高长度比例
childAspectRatio:
(ScreenUtil().screenWidth - w(62)) / 2 / 370),
itemBuilder: (BuildContext context, int index) {
ThemeSunModel themeModel = themeDatasno[index];
return InkWell(
// onTap: () {
// List<String> temp =
// themeDatasno.map((e) => e.url).toList();
// print(temp);
// _showPhotoView(context, index,
// themeDatasno.map((e) => e.url).toList(), (index) {
// //
// themeType = themeDatasno[index].id;
// setState(() {});
// });
// },
onTap: () {
_selectTheme(themeModel.id);
},
child: Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(r(10)),
border: Border.all(
color: themeType == themeDatasno[index].id
? MyColours.color_005AA7
: MyColours.color_DBDBDB,
width: themeType == themeDatasno[index].id
? w(2)
: w(1))),
child: Column(
children: [
VEmptyView(10),
CachedNetworkImage(
imageUrl: themeModel.url,
width: (ScreenUtil().screenWidth - w(62)) / 2,
height: w(348),
fit: BoxFit.fitWidth,
alignment: Alignment.topCenter,
),
VEmptyView(20),
Container(
padding: EdgeInsets.symmetric(
vertical: w(6), horizontal: w(2)),
width: double.infinity,
child: Text(
themeModel.name,
maxLines: 1,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.left,
style: TextStyle(
color: MyColours.color_000000,
fontSize: font(14)),
),
),
],
),
));
}),
VEmptyView(20)
],
)))
],
... ...
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:one_key/pages/my/marketing_center/theme_model.dart';
import 'package:one_key/widgets/system_app_bar.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import '../../../res/colors.dart';
import '../../../utils/dialog_util.dart';
import '../../../utils/event_bus.dart';
import '../../../utils/screen_util.dart';
import '../../../utils/utils.dart';
import '../../../widgets/MyDivider.dart';
import '../../../widgets/round_button.dart';
import '../../online_check/photo_view_wiget.dart';
import 'dart:convert' as convert;
/**
*
* 邀请函主题选择页面预览
*/
class InvitationThemeHomePreviewPage extends StatefulWidget {
final ThemeSunModel themeSunModel;
InvitationThemeHomePreviewPage({Key key, this.themeSunModel})
: super(key: key);
@override
_InvitationThemeHomePreviewPageState createState() =>
_InvitationThemeHomePreviewPageState();
}
class _InvitationThemeHomePreviewPageState
extends State<InvitationThemeHomePreviewPage> {
ScrollController controller = ScrollController();
//当前店铺选中的颜色和板式
String themeColor;
String themeType; //模版类型
String url;
ThemeModel themeModelCurrunt; //有配色对应的当前页面模版数据
@override
void initState() {
super.initState();
if (widget.themeSunModel.colors.length > 0) {
themeColor = widget.themeSunModel.colors[0].colorName;
url = widget.themeSunModel.colors[0].url;
} else {
url = widget.themeSunModel.url;
}
themeType = widget.themeSunModel.id;
}
// _selectTheme(String id) {
// List<ThemeSunModel> temp = [];
// temp.addAll(themeModelCurrunt.urls);
// temp.addAll(themeDatasno);
// List<String> tempUrls = temp.map((e) => e.url).toList();
// // List<String> temp =
// // themeModel.urls.map((e) => e.url).toList();
// // print(temp);
// // List<String> temp =
// // themeDatasno.map((e) => e.url).toList();
// print(temp);
// _showPhotoView(
// context, temp.indexWhere((element) => element.id == id), tempUrls,
// (index) {
// //选中的index
// themeType = temp[index].id; //当前选中模版的id
// setState(() {});
// });
// }
_showPhotoView(BuildContext context, int index, List<String> imgs,
{isShow = false, List dashName}) async {
// if (imgs.length == 1 &&
// imgs[0] ==
// 'http://nosqn.colorcun.com/custom/lite-online/image/def-banner.png') {
// imgs[0] = 'http://nosqn.colorcun.com/app/seller-hj-empty.png';
// }
Utils.setBarStatus(false, color: Colors.black);
dynamic result = await showGeneralDialog(
context: context,
barrierDismissible: false,
// barrierColor: Colors.red,
barrierLabel:
MaterialLocalizations.of(context).modalBarrierDismissLabel,
transitionDuration: const Duration(milliseconds: 150),
pageBuilder: (BuildContext context, Animation animation,
Animation secondaryAnimation) {
Widget child = Stack(
alignment: Alignment.bottomCenter,
children: <Widget>[
PhotoPreview(
initialIndex: index,
photoList: imgs,
isShow: isShow,
dashName: dashName,
needMask: false,
needTap: false,
callback: (curruntIndex) {
//选中某个模版
// callback(curruntIndex);
},
),
// Positioned(
// bottom: w(20),
// child: InkWell(
// onTap: () {
// callback(index);
// },
// child: Container(
// padding: EdgeInsets.symmetric(
// horizontal: w(30), vertical: w(10)),
// decoration: BoxDecoration(
// color: MyColours.color_ffffff,
// borderRadius: BorderRadius.circular(r(30)),
// ),
// child: Text(
// '应用',
// style: TextStyle(
// decoration: TextDecoration.none,
// color: MyColours.color_515151,
// fontSize: font(16)),
// ),
// ),
// ))
],
);
return Material(child: child);
});
Utils.setBarStatus(true, color: Colors.white);
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: MyColours.color_ffffff,
appBar: SystemAppBar('客户通知设置'),
body: Column(
children: [
Expanded(
child: SingleChildScrollView(
child: Column(
children: [
if (themeColor != null)
InkWell(
onTap: () {
DialogUtil.showThemeColorSelectDialogNew(
context, widget.themeSunModel.colors,
callback: (object) {
print(object);
setState(() {
themeColor = object;
url = widget
.themeSunModel
.colors[widget.themeSunModel.colors.indexWhere(
(element) => element.colorName == object)]
.url;
});
});
},
child: Padding(
padding: EdgeInsets.only(
left: w(16),
top: w(12),
bottom: w(12),
right: w(24)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'主题颜色选择',
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16)),
),
Spacer(),
Text(
themeColor,
style: TextStyle(
color: MyColours.color_515151,
fontSize: font(16)),
),
Container(
padding: EdgeInsets.symmetric(
horizontal: w(11), vertical: w(4)),
child: Image.asset(
"assets/arrow_right_new.png",
width: w(9),
height: w(16),
),
)
// RoundButton(
// text: '预览',
// gradientStart: MyColours.color_ffffff,
// gradientEnd: MyColours.color_ffffff,
// borderColor: MyColours.color_438E93,
// textColor: MyColours.color_438E93,
// radius: ScreenUtil().setWidth(22),
// fontSize: 24,
// width: w(72),
// height: ScreenUtil().setWidth(44),
// isBold: true,
// onPressed: () {
// NavigatorUtil.goMarkingPreviewPage(context);
// },
// ),
]))),
if (themeColor != null)
Padding(
padding: EdgeInsets.only(left: w(16)),
child: MyDivider(double.infinity, w(0.5),
color: MyColours.color_E7E7E7)),
VEmptyView(24),
Container(
width: double.infinity,
alignment: Alignment.centerLeft,
padding: EdgeInsets.only(
left: w(16), top: w(12), bottom: w(12), right: w(16)),
child: Text(
'效果预览',
style: TextStyle(
color: MyColours.color_515151, fontSize: font(16)),
)),
VEmptyView(24),
InkWell(
onTap: () {
_showPhotoView(context, 0, [url]);
},
child: CachedNetworkImage(
imageUrl: url,
width: ScreenUtil().screenWidth - w(32),
fit: BoxFit.fitWidth,
alignment: Alignment.topCenter,
)),
],
))),
Container(
padding: EdgeInsets.only(
top: w(12), bottom: w(25), left: w(45), right: w(45)),
child: RoundButton(
onPressed: () {
//选择当前模版+主题色
bus.emit('theme_color_type', {
'themeColor': themeColor,
'themeType': themeType,
});
Navigator.pop(context);
},
text: '确定',
fontSize: 32,
isBold: true,
textColor: MyColours.color_F8F9FD,
height: ScreenUtil().setWidth(43 * 2),
// width: ScreenUtil().setWidth(130 * 2),
radius: ScreenUtil().setWidth(10),
)),
],
),
);
}
}
... ...
... ... @@ -5,7 +5,8 @@ class ThemeModel {
String colorValueS; //渐变色起始值
String colorValueM; //渐变色中间值
String colorValueE; //渐变色结束值
List<ThemeSunModel> urls; //当前色值下的模版链接集合
String liteClass; //小程序classname
String url; //当前配色对应的图片
ThemeModel();
... ... @@ -14,16 +15,8 @@ class ThemeModel {
colorValueS = json['color_value_s'];
colorValueM = json['color_value_m'];
colorValueE = json['color_value_e'];
urls = <ThemeSunModel>[];
if (json['urls'] != null) {
json['urls'].forEach((v) {
if (v is ThemeSunModel) {
urls.add(v);
} else {
urls.add(new ThemeSunModel.fromJson(v));
}
});
}
liteClass = json['lite_class'];
url = json['url'];
}
Map<String, dynamic> toJson() => <String, dynamic>{
... ... @@ -31,25 +24,41 @@ class ThemeModel {
"color_value_s": colorValueS,
"color_value_m": colorValueM,
"color_value_e": colorValueE,
'urls': urls
'lite_class': liteClass,
'url': url
};
}
class ThemeSunModel {
String name; //模版名称
String id; //模版编号
String url; //当前色值下的模版链接
String url; //模版示意图
List<ThemeModel> colors; //当前模版的可用色值
String themeColorDefault; //模版默认主题色
ThemeSunModel();
factory ThemeSunModel.fromJson(Map<String, dynamic> json) => ThemeSunModel()
..name = json["name"]
..id = json["id"]
..url = json["url"];
ThemeSunModel.fromJson(Map<String, dynamic> json) {
name = json["name"];
id = json["id"];
Map<String, dynamic> toJson() => <String, dynamic>{
"name": name,
"id": id,
"url": url,
};
url = json['url'];
colors = <ThemeModel>[];
if (json['colors'] != null) {
json['colors'].forEach((v) {
if (v is ThemeModel) {
colors.add(v);
} else {
colors.add(new ThemeModel.fromJson(v));
}
});
}
if (colors.length > 0) {
themeColorDefault = colors[0].colorName;
}
}
Map<String, dynamic> toJson() =>
<String, dynamic>{"name": name, "id": id, "colors": colors, 'url': url};
}
... ...
... ... @@ -22,6 +22,7 @@ class MarketingCenterProvider extends ChangeNotifier {
PageState pageState = PageState.Loading;
PageState pageStateRechargeHome = PageState.Loading;
PageState pageStateBookInfo = PageState.Loading;
List<RechargeListSunModel> rechargeList = [];
... ...
... ... @@ -41,6 +41,7 @@ import '../models/setmeal_by_id_model.dart';
import '../models/setmeal_model.dart';
import '../models/wine_manage_model.dart';
import '../models/wine_model.dart';
import '../pages/my/marketing_center/theme_model.dart';
class NavigatorUtil {
static Future _navigateTo(BuildContext context, String path,
... ... @@ -1836,4 +1837,15 @@ class NavigatorUtil {
return _navigateTo(context, "${Routes.invitation_theme_home_page}",
replace: replace);
}
/// 邀请函主题选择预览
static Future<dynamic> goInvitationThemeHomePreviewPage(
BuildContext context,
ThemeSunModel themeSunModel, {
replace = false,
}) {
return _navigateTo(context,
"${Routes.invitation_theme_home_preview_page}?themeSunModel=${FluroConvertUtils.object2string(themeSunModel)}",
replace: replace);
}
}
... ...
... ... @@ -211,6 +211,7 @@ import '../pages/my/marketing_center/book_notification/store_introduce_page.dart
import '../pages/my/marketing_center/comments_setting_page.dart';
import '../pages/my/marketing_center/customer_notice_setting_page.dart';
import '../pages/my/marketing_center/invitation_theme_home_page.dart';
import '../pages/my/marketing_center/invitation_theme_home_preview_page.dart';
import '../pages/my/marketing_center/marketing_center_home_page.dart';
import '../pages/my/marketing_center/order_setting_manager_page.dart';
import '../pages/my/marketing_center/order_setting_page.dart';
... ... @@ -220,6 +221,7 @@ import '../pages/my/marketing_center/recharge/recharge_history_page.dart';
import '../pages/my/marketing_center/recharge/recharge_home_page.dart';
import '../pages/my/marketing_center/recharge/recharge_select_store_coupon_page.dart';
import '../pages/my/marketing_center/recharge/recharge_setting_page.dart';
import '../pages/my/marketing_center/theme_model.dart';
import '../pages/my/menu_type/menu_add_dishes_page.dart';
// import '../pages/my/menu_type/menu_add_dishes_page_new.dart';
import '../pages/my/menu_type/menu_dish_method_page.dart';
... ... @@ -3112,3 +3114,19 @@ var invitationThemeHomePageHandle = new Handler(
create: (_) => MarketingCenterProvider(),
child: InvitationThemeHomePage());
});
//邀请函主题选择预览
var invitationThemeHomePreviewPage = new Handler(
handlerFunc: (BuildContext context, Map<String, List<Object>> params) {
// String year = params["year"].first;
// String month = params["month"].first;
// String day = params["day"].first;
// String uid = params["uid"].first;
ThemeSunModel themeSunModel = ThemeSunModel.fromJson(json
.decode(FluroConvertUtils.fluroCnParamsDecode(params["themeSunModel"].first)));
return ChangeNotifierProvider<MarketingCenterProvider>(
create: (_) => MarketingCenterProvider(),
child: InvitationThemeHomePreviewPage(themeSunModel:themeSunModel));
});
... ...
... ... @@ -293,8 +293,11 @@ class Routes {
static String collect_store_info_page = "/collect_store_info_page"; // 店铺信息收集
static String invitation_theme_home_page = "/invitation_theme_home_page"; //邀请函主题选择
static String invitation_theme_home_page =
"/invitation_theme_home_page"; //邀请函主题选择
static String invitation_theme_home_preview_page =
"/invitation_theme_home_preview_page"; //邀请函主题选择预览页
static void configureRoutes(FluroRouter router) {
router.notFoundHandler = new Handler(
... ... @@ -550,13 +553,11 @@ class Routes {
router.define(collect_store_info_page, handler: collectStoreInfoPageHandle);
router.define(invitation_theme_home_page,
handler: invitationThemeHomePageHandle);
router.define(invitation_theme_home_page, handler:invitationThemeHomePageHandle);
router.define(invitation_theme_home_preview_page,
handler: invitationThemeHomePreviewPage);
}
}
... ...