|
...
|
...
|
@@ -66,10 +66,12 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
|
|
marketingCenterProvider.dzSellerConfModel.isReserveOver == '1'
|
|
|
|
? true
|
|
|
|
: false;
|
|
|
|
customerProvider.ispcphone =
|
|
|
|
marketingCenterProvider.dzSellerConfModel.pcNotPhone == '1'
|
|
|
|
|
|
|
|
customerProvider.ispcname =
|
|
|
|
marketingCenterProvider.dzSellerConfModel.pcNotName == '1'
|
|
|
|
? true
|
|
|
|
: false;
|
|
|
|
|
|
|
|
controllerDay.text = marketingCenterProvider.dzSellerConfModel.cancelDay;
|
|
|
|
customerProvider.cancelOrderdayShopowner =
|
|
|
|
marketingCenterProvider.dzSellerConfModel.cancelShopowner == '1'
|
|
...
|
...
|
@@ -126,6 +128,7 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
|
|
|
|
|
|
Future<bool> _setConfings() async {
|
|
|
|
Map<String, dynamic> data = {
|
|
|
|
'pc_not_rname': customerProvider.ispcname ? '1' : '0',
|
|
|
|
"pc_not_phone": customerProvider.ispcphone ? '1' : '0',
|
|
|
|
"is_add_over": customerProvider.isAddOver ? '1' : '0',
|
|
|
|
"is_set_over": customerProvider.isSetOver ? '1' : '0',
|
|
...
|
...
|
@@ -453,6 +456,44 @@ class _CustomerSettingPageState extends State<CustomerSettingPage> { |
|
|
|
w(1),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
)),
|
|
|
|
VEmptyView(24),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
customerProvider.ispcname = !customerProvider.ispcname;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: w(8), horizontal: w(14)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Text('PC端预订需要录入客户姓名(占座除外)',
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
maxLines: 10,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(28)))),
|
|
|
|
Image.asset(
|
|
|
|
customerProvider.ispcname
|
|
|
|
? Utils.getImgPath('swich_on')
|
|
|
|
: Utils.getImgPath('swich_off'),
|
|
|
|
width: ScreenUtil().setWidth(88),
|
|
|
|
// height: ScreenUtil().setWidth(82),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(14), right: w(10)),
|
|
|
|
child: MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
w(1),
|
|
|
|
color: MyColours.color_E7E7E7,
|
|
|
|
)),
|
|
|
|
VEmptyView(48),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(vertical: w(8)),
|
...
|
...
|
|