Commit 82ef8eca61458dd5f3420d3bc3d0776c8e326861

Authored by wdn127929
1 parent e9a80201

pc配置

... ... @@ -548,7 +548,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5326;
CURRENT_PROJECT_VERSION = 5328;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -696,7 +696,7 @@
CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5326;
CURRENT_PROJECT_VERSION = 5328;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ... @@ -732,7 +732,7 @@
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 5326;
CURRENT_PROJECT_VERSION = 5328;
DEVELOPMENT_TEAM = 8J59HM8B82;
ENABLE_BITCODE = NO;
FLUTTER_BUILD_MODE = release;
... ...
... ... @@ -64,6 +64,7 @@ class GetDzSellerConfSunModel {
String storePushSms;
String pcNotPhone;
String pcNotName;
String isCustomerCancel;
String isAddOver; //是否允许新建过去订单
... ... @@ -107,6 +108,7 @@ class GetDzSellerConfSunModel {
this.storePushMeg,
this.storePushSms,
this.pcNotPhone,
this.pcNotName,
this.isCustomerCancel,
this.isAddOver,
this.isSetOver,
... ... @@ -162,6 +164,7 @@ class GetDzSellerConfSunModel {
storePushSms = json['store_push_sms'];
pcNotPhone = json['pc_not_phone'];
pcNotName = json['pc_not_rname'] ?? '1';
isCustomerCancel = json['is_customer_cancel'];
isAddOver = json['is_add_over'];
isSetOver = json['is_set_over'];
... ... @@ -207,8 +210,8 @@ class GetDzSellerConfSunModel {
data['store_push_meg'] = this.storePushMeg;
data['store_push_sms'] = this.storePushSms;
data['pc_not_phone'] = this.pcNotPhone;
data['pc_not_rname'] = this.pcNotName;
data['is_customer_cancel'] = this.isCustomerCancel;
data['is_add_over'] = this.isAddOver;
data['is_set_over'] = this.isSetOver;
data['is_reserve_over'] = this.isReserveOver;
... ...
... ... @@ -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)),
... ...
... ... @@ -125,6 +125,7 @@ class CustomerProvider extends ChangeNotifier {
bool isrepair = false;
bool isselfphone = false;
bool ispcphone = true;
bool ispcname = true;
bool isAddOver = true;
bool isSetOver = true;
bool isReserveOver = true;
... ...