Commit abc979dc1b40cc1f8484a9a19ebe4576eda4e389

Authored by wdn127929
1 parent c10ac166

语音播报默认

@@ -168,7 +168,7 @@ class MarkReserveModel { @@ -168,7 +168,7 @@ class MarkReserveModel {
168 168
169 swichBooking = json['swich_booking']; 169 swichBooking = json['swich_booking'];
170 170
171 - swichVoiceInfo = json['swich_voice']; 171 + swichVoiceInfo = json['swich_voice'] ?? '1';
172 172
173 parkInfo = json['park_info']; 173 parkInfo = json['park_info'];
174 bookingInfo = json['book_info']; 174 bookingInfo = json['book_info'];
@@ -70,7 +70,7 @@ class _BookInfoPageState extends State<BookInfoPage> { @@ -70,7 +70,7 @@ class _BookInfoPageState extends State<BookInfoPage> {
70 bool addParking = false; 70 bool addParking = false;
71 bool addPhone = true; 71 bool addPhone = true;
72 bool addBookingInfo = false; //预订信息致辞 72 bool addBookingInfo = false; //预订信息致辞
73 - bool addVoiceInfo = false; //附加语音欢迎致辞 73 + bool addVoiceInfo = true; //附加语音欢迎致辞
74 74
75 bool addFirstImage = false; //附加餐厅首图 75 bool addFirstImage = false; //附加餐厅首图
76 bool addLogo = false; //logo是否展示 76 bool addLogo = false; //logo是否展示
@@ -197,8 +197,10 @@ class _BookInfoPageState extends State<BookInfoPage> { @@ -197,8 +197,10 @@ class _BookInfoPageState extends State<BookInfoPage> {
197 marketingCenterProvider.markDataModel.reserve.swichVoiceInfo == '1' 197 marketingCenterProvider.markDataModel.reserve.swichVoiceInfo == '1'
198 ? true 198 ? true
199 : false; 199 : false;
200 - voiceIncoC.text =  
201 - marketingCenterProvider.markDataModel.reserve.voiceInco ?? ''; 200 + if (marketingCenterProvider.markDataModel.reserve.voiceInco != null) {
  201 + voiceIncoC.text =
  202 + marketingCenterProvider.markDataModel.reserve.voiceInco;
  203 + }
202 } 204 }
203 if (marketingCenterProvider.markDataModel.marketing != null) { 205 if (marketingCenterProvider.markDataModel.marketing != null) {
204 welcomeC.text = 206 welcomeC.text =
@@ -1045,7 +1047,7 @@ class _BookInfoPageState extends State<BookInfoPage> { @@ -1045,7 +1047,7 @@ class _BookInfoPageState extends State<BookInfoPage> {
1045 fontSize: ScreenUtil().setSp(28), 1047 fontSize: ScreenUtil().setSp(28),
1046 textBaseline: TextBaseline.alphabetic), 1048 textBaseline: TextBaseline.alphabetic),
1047 textAlignVertical: TextAlignVertical.center, 1049 textAlignVertical: TextAlignVertical.center,
1048 - maxLines: 5, 1050 + maxLines: 7,
1049 // maxLength: 50, 1051 // maxLength: 50,
1050 decoration: InputDecoration( 1052 decoration: InputDecoration(
1051 hintText: "点击录入语音欢迎致辞", 1053 hintText: "点击录入语音欢迎致辞",
@@ -1057,7 +1059,7 @@ class _BookInfoPageState extends State<BookInfoPage> { @@ -1057,7 +1059,7 @@ class _BookInfoPageState extends State<BookInfoPage> {
1057 border: OutlineInputBorder( 1059 border: OutlineInputBorder(
1058 borderSide: BorderSide.none), 1060 borderSide: BorderSide.none),
1059 ), 1061 ),
1060 - keyboardType: TextInputType.text, 1062 + keyboardType: TextInputType.multiline,
1061 onChanged: (value) { 1063 onChanged: (value) {
1062 setState(() { 1064 setState(() {
1063 // currentRemark = value ?? ""; 1065 // currentRemark = value ?? "";