new_discount_page.dart 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. import 'package:flutter/src/widgets/framework.dart';
  2. import 'package:flutter_screenutil/flutter_screenutil.dart';
  3. import 'package:keyboard/base/base_page.dart';
  4. import 'package:keyboard/data/bean/goods_info.dart';
  5. import 'package:keyboard/module/store/new_discount/new_discount_controller.dart';
  6. import 'package:flutter/material.dart';
  7. import 'package:carousel_slider/carousel_slider.dart';
  8. import 'package:get/get.dart';
  9. import '../../../data/bean/character_info.dart';
  10. import '../../../data/consts/payment_type.dart';
  11. import '../../../data/consts/web_url.dart';
  12. import '../../../resource/assets.gen.dart';
  13. import '../../../resource/colors.gen.dart';
  14. import '../../../resource/string.gen.dart';
  15. import '../../../router/app_pages.dart';
  16. import '../../../utils/styles.dart';
  17. import '../../../widget/auto_scroll_list_view.dart';
  18. import '../../../widget/click_text_span.dart';
  19. class NewDiscountPage extends BasePage<NewDiscountController> {
  20. const NewDiscountPage({super.key});
  21. /// 跳转
  22. static Future<void> start() async {
  23. await Get.toNamed(RoutePath.newDiscount);
  24. }
  25. @override
  26. bool immersive() {
  27. return true;
  28. }
  29. @override
  30. backgroundColor() => Colors.white;
  31. @override
  32. Widget buildBody(BuildContext context) {
  33. return PopScope(
  34. canPop: false,
  35. onPopInvokedWithResult: (didPop, result) {
  36. if (didPop) {
  37. return;
  38. }
  39. controller.clickBack();
  40. },
  41. child: Stack(
  42. children: [
  43. Positioned(top: 0.w, child: _buildBanner()),
  44. Positioned(
  45. top: 408.w,
  46. child: Container(
  47. decoration: BoxDecoration(
  48. color: ColorName.white,
  49. borderRadius: BorderRadius.only(
  50. topLeft: Radius.circular(24.r),
  51. topRight: Radius.circular(24.r),
  52. ),
  53. ),
  54. width: 360.w,
  55. height: 392.w,
  56. child: SingleChildScrollView(
  57. child: Column(
  58. children: [
  59. SizedBox(height: 16.w),
  60. _buildGoodsCard(),
  61. SizedBox(height: 12.w),
  62. _buildPayWayCard(),
  63. SizedBox(height: 8.w),
  64. _buildSelectedDesc(),
  65. SizedBox(height: 30.w),
  66. _buildMemberCard(),
  67. SizedBox(height: 200.w),
  68. ],
  69. ),
  70. ),
  71. ),
  72. ),
  73. Positioned(top: 0, left: 0, right: 0, child: _buildTitle()),
  74. Positioned(
  75. bottom: 0, left: 0, right: 0, child: _buildBuyButtonCard()),
  76. ],
  77. ));
  78. }
  79. _buildTitle() {
  80. return SafeArea(
  81. child: Container(
  82. alignment: Alignment.centerLeft,
  83. padding: EdgeInsets.only(top: 16.h, left: 16.w, right: 16.w),
  84. child: Row(
  85. mainAxisAlignment: MainAxisAlignment.spaceBetween,
  86. children: [
  87. GestureDetector(
  88. onTap: controller.clickBack,
  89. child: Assets.images.iconDiscountClose.image(
  90. width: 32.w,
  91. height: 32.w,
  92. ),
  93. ),
  94. ],
  95. ),
  96. ),
  97. );
  98. }
  99. Widget _buildBanner() {
  100. return SizedBox(
  101. width: 360.w,
  102. child: Stack(
  103. children: [
  104. CarouselSlider(
  105. carouselController: controller.carouselSliderController,
  106. options: CarouselOptions(
  107. height: 438.w,
  108. viewportFraction: 1,
  109. initialPage: 0,
  110. enableInfiniteScroll: true,
  111. reverse: false,
  112. autoPlay: true,
  113. autoPlayInterval: const Duration(seconds: 3),
  114. autoPlayAnimationDuration: const Duration(milliseconds: 500),
  115. autoPlayCurve: Curves.fastOutSlowIn,
  116. scrollDirection: Axis.horizontal,
  117. onPageChanged: (index, reason) {
  118. controller.onBannerChanged(index, reason);
  119. },
  120. ),
  121. items:
  122. controller.bannerList.map((item) {
  123. return item.image(width: 360.w, fit: BoxFit.contain);
  124. }).toList(),
  125. ),
  126. Positioned(
  127. bottom: 149.16.w,
  128. left: 31.w,
  129. child: Assets.images.iconNewDiscountCharacterTitle.image(
  130. width: 296.w,
  131. height: 39.w,
  132. ),
  133. ),
  134. Positioned(
  135. bottom: 211.13.w,
  136. left: 42.w,
  137. right: 0,
  138. child: _buildIndicator(),
  139. ),
  140. Positioned(
  141. bottom: 0,
  142. left: 0,
  143. right: 0,
  144. child: _buildAutoCharacterList(),
  145. ),
  146. ],
  147. ),
  148. );
  149. }
  150. /// 指示器
  151. _buildIndicator() {
  152. return Row(
  153. children:
  154. controller.bannerList
  155. .asMap()
  156. .entries
  157. .map((entry) {
  158. return Obx(() {
  159. final isSelectedBanner =
  160. controller.currentBannerIndex == entry.key;
  161. return Row(
  162. mainAxisAlignment: MainAxisAlignment.spaceAround,
  163. children: [
  164. GestureDetector(
  165. onTap:
  166. () =>
  167. controller.carouselSliderController.animateToPage(
  168. entry.key,
  169. ),
  170. child: AnimatedContainer(
  171. duration: const Duration(milliseconds: 300),
  172. margin: EdgeInsets.only(right: 5.w),
  173. height: 5.w,
  174. width: isSelectedBanner ? 10.w : 5.w,
  175. decoration: BoxDecoration(
  176. color:
  177. isSelectedBanner
  178. ? const Color(0xff483459)
  179. : const Color(0xffAFB4BF),
  180. borderRadius: BorderRadius.circular(5.r),
  181. ),
  182. ),
  183. ),
  184. ],
  185. );
  186. });
  187. }).toList(),
  188. );
  189. }
  190. Widget _buildAutoCharacterList() {
  191. return Obx(() {
  192. if (controller.charactersList.isEmpty) {
  193. return Container();
  194. }
  195. return SizedBox(
  196. height: 130.w,
  197. child: AutoScrollListView(
  198. itemCount: (controller.charactersList.length / 2).ceil(),
  199. scrollDirection: Axis.horizontal,
  200. itemBuilder: (context, columnIndex) {
  201. int rowCount = 2;
  202. int startIndex = columnIndex * rowCount;
  203. final List<CharacterInfo> columnItems =
  204. controller.charactersList
  205. .skip(startIndex)
  206. .take(rowCount)
  207. .toList();
  208. return Column(
  209. children:
  210. columnItems.map((item) {
  211. final emoji = item.emoji ?? "";
  212. final name = item.name ?? "";
  213. return Padding(
  214. padding: EdgeInsets.symmetric(
  215. vertical: 4.w,
  216. horizontal: 4.w,
  217. ),
  218. child: Container(
  219. padding: EdgeInsets.symmetric(
  220. horizontal: 12.w,
  221. vertical: 6.w,
  222. ),
  223. decoration: ShapeDecoration(
  224. color: Colors.white,
  225. shape: RoundedRectangleBorder(
  226. side: BorderSide(
  227. width: 1.w,
  228. color: const Color(0xFFF4F1FF),
  229. ),
  230. borderRadius: BorderRadius.circular(31.r),
  231. ),
  232. ),
  233. child: Text(
  234. "$emoji$name",
  235. style: TextStyle(
  236. color: Colors.black.withAlpha(204),
  237. fontSize: 13.sp,
  238. fontWeight: FontWeight.w400,
  239. ),
  240. ),
  241. ),
  242. );
  243. }).toList(),
  244. );
  245. },
  246. ),
  247. );
  248. });
  249. }
  250. Widget _buildBuyButtonCard() {
  251. return Container(
  252. width: 360.w,
  253. padding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 11.h),
  254. decoration: ShapeDecoration(
  255. color: Colors.white,
  256. shape: RoundedRectangleBorder(
  257. borderRadius: BorderRadius.only(
  258. topLeft: Radius.circular(24.r),
  259. topRight: Radius.circular(24.r),
  260. ),
  261. ),
  262. shadows: [
  263. BoxShadow(
  264. color: Color(0x99FFE498),
  265. blurRadius: 20,
  266. offset: Offset(0, 0),
  267. spreadRadius: 0,
  268. ),
  269. ],
  270. ),
  271. child: Column(
  272. children: [
  273. GestureDetector(
  274. onTap: controller.clickPayNow,
  275. child: Container(
  276. width: 328.w,
  277. height: 56.w,
  278. decoration: ShapeDecoration(
  279. shape: RoundedRectangleBorder(
  280. side: BorderSide(width: 2.w, color: const Color(0xFFFFF6C9)),
  281. borderRadius: BorderRadius.circular(30.55),
  282. ),
  283. ),
  284. child: Container(
  285. width: 328,
  286. height: 54,
  287. decoration: ShapeDecoration(
  288. gradient: LinearGradient(
  289. begin: Alignment(0.60, -0.39),
  290. end: Alignment(0.60, 0.95),
  291. colors: [
  292. const Color(0xFFF95FAC),
  293. const Color(0xFFFD4D99),
  294. const Color(0xFFFF3E75),
  295. const Color(0xFFFF0F53),
  296. ],
  297. ),
  298. shape: RoundedRectangleBorder(
  299. borderRadius: BorderRadius.circular(30.55),
  300. ),
  301. ),
  302. child: Center(
  303. child: Text(
  304. StringName.newDiscountUnlockNow,
  305. style: Styles.getTextStyleWhiteW500(17.sp),
  306. ),
  307. ),
  308. ),
  309. ),
  310. ),
  311. SizedBox(height: 11.h),
  312. _buildPrivacyTextSpan(),
  313. ],
  314. ),
  315. );
  316. }
  317. Widget _buildGoodsCard() {
  318. return Container(
  319. margin: EdgeInsets.symmetric(horizontal: 16.w),
  320. child: Column(
  321. crossAxisAlignment: CrossAxisAlignment.start,
  322. mainAxisAlignment: MainAxisAlignment.start,
  323. children: [
  324. Obx(() {
  325. final goodsList = controller.filteredGoodsList;
  326. if (goodsList.isEmpty) {
  327. return CircularProgressIndicator();
  328. }
  329. return Column(
  330. children: List.generate(goodsList.length, (index) {
  331. final item = goodsList[index];
  332. final isSelected =
  333. controller.selectedGoodsInfoItem?.id == item.id;
  334. return Column(
  335. children: [
  336. GestureDetector(
  337. onTap: () => controller.onGoodsItemClick(item),
  338. child: _buildGoodsItem(item, isSelected),
  339. ),
  340. if (index != goodsList.length - 1) SizedBox(height: 10.w),
  341. ],
  342. );
  343. }),
  344. );
  345. }),
  346. ],
  347. ),
  348. );
  349. }
  350. Widget _buildPayWayCard() {
  351. return GestureDetector(
  352. onTap: () => controller.clickPayWaySwitch(),
  353. child: Container(
  354. margin: EdgeInsets.symmetric(horizontal: 16.w),
  355. height: 36.h,
  356. padding: EdgeInsets.symmetric(horizontal: 10.w),
  357. decoration: ShapeDecoration(
  358. shape: RoundedRectangleBorder(
  359. side: BorderSide(width: 1, color: const Color(0xFFECEBE0)),
  360. borderRadius: BorderRadius.circular(10.r),
  361. ),
  362. ),
  363. child: Row(
  364. children: [
  365. Text(
  366. StringName.storePayWay,
  367. style: Styles.getTextStyleBlack204W400(14.sp),
  368. ),
  369. const Spacer(),
  370. Obx(() {
  371. if (controller.selectedPayWay == null) {
  372. return SizedBox.shrink();
  373. }
  374. return Row(
  375. children: [
  376. Image.asset(
  377. getPaymentIconPath(
  378. payMethod: controller.selectedPayWay!.payMethod,
  379. payPlatform: controller.selectedPayWay!.payPlatform,
  380. ),
  381. width: 20.w,
  382. height: 20.w,
  383. ),
  384. SizedBox(width: 4.w),
  385. Text(
  386. controller.selectedPayWay?.title ?? '',
  387. style: Styles.getTextStyleBlack204W400(14.sp),
  388. ),
  389. SizedBox(width: 6.w),
  390. Assets.images.iconStoreSwitchPay.image(
  391. width: 20.w,
  392. height: 20.w,
  393. fit: BoxFit.fill,
  394. ),
  395. ],
  396. );
  397. }),
  398. ],
  399. ),
  400. ),
  401. );
  402. }
  403. Widget _buildGoodsItem(GoodsInfo item, bool isSelected) {
  404. return Container(
  405. height: 70.w,
  406. width: 328.w,
  407. padding: EdgeInsets.symmetric(horizontal: 16.w),
  408. decoration:
  409. isSelected
  410. ? BoxDecoration(
  411. borderRadius: BorderRadius.circular(16.w),
  412. image: DecorationImage(
  413. image: Assets.images.bgNewDiscountItemSelect.provider(),
  414. fit: BoxFit.fill,
  415. ),
  416. )
  417. : BoxDecoration(
  418. borderRadius: BorderRadius.circular(16.w),
  419. image: DecorationImage(
  420. image: Assets.images.bgNewDiscountItemUnselect.provider(),
  421. fit: BoxFit.fill,
  422. ),
  423. ),
  424. child: Row(
  425. children: [
  426. Text(
  427. "¥",
  428. style: TextStyle(
  429. color:
  430. isSelected
  431. ? const Color(0xFFFF684E)
  432. : Colors.black.withAlpha(204),
  433. fontSize: 16.sp,
  434. fontWeight: FontWeight.w700,
  435. ),
  436. ),
  437. Text(
  438. (item.code == "vip_permanent")
  439. ? '${item.priceDescNumber}'
  440. : '${item.amountText}',
  441. textAlign: TextAlign.center,
  442. style: TextStyle(
  443. color:
  444. isSelected
  445. ? const Color(0xFFFF684E)
  446. : Colors.black.withAlpha(204),
  447. fontSize: 29.sp,
  448. fontWeight: FontWeight.w700,
  449. ),
  450. ),
  451. if (item.code == "vip_permanent")
  452. Text(
  453. item.priceDescUnit,
  454. style: TextStyle(
  455. color: Colors.black.withAlpha(153),
  456. fontSize: 12.sp,
  457. fontWeight: FontWeight.w400,
  458. ),
  459. ),
  460. SizedBox(width: 9.w),
  461. Column(
  462. crossAxisAlignment: CrossAxisAlignment.start,
  463. mainAxisAlignment: MainAxisAlignment.center,
  464. children: [
  465. Row(
  466. children: [
  467. Text(
  468. item.name,
  469. style: TextStyle(
  470. color: Colors.black.withAlpha(204),
  471. fontSize: 14.sp,
  472. fontWeight: FontWeight.w500,
  473. ),
  474. ),
  475. SizedBox(width: 4.5.w),
  476. if (item.timeLimitDesc?.isNotEmpty == true)
  477. Container(
  478. padding: EdgeInsets.symmetric(
  479. horizontal: 4.w,
  480. vertical: 2.w,
  481. ),
  482. margin: EdgeInsets.only(bottom: 4.w),
  483. decoration: ShapeDecoration(
  484. gradient: LinearGradient(
  485. begin: Alignment(0.00, 0.50),
  486. end: Alignment(1.00, 0.50),
  487. colors: [
  488. const Color(0xFFFF684E),
  489. const Color(0xFFFF4F9A),
  490. ],
  491. ),
  492. shape: RoundedRectangleBorder(
  493. borderRadius: BorderRadius.only(
  494. topLeft: Radius.circular(10.50),
  495. topRight: Radius.circular(10.50),
  496. bottomRight: Radius.circular(10.50),
  497. ),
  498. ),
  499. ),
  500. child: Text(
  501. item.timeLimitDesc!,
  502. style: TextStyle(
  503. color: Colors.white,
  504. fontSize: 12.sp,
  505. fontWeight: FontWeight.w500,
  506. ),
  507. ),
  508. ),
  509. ],
  510. ),
  511. Text(
  512. (item.code == "vip_permanent")
  513. ? '${item.description}'
  514. : '${item.priceDesc}',
  515. style: TextStyle(
  516. color: Colors.black.withAlpha(153),
  517. fontSize: 12.sp,
  518. fontWeight: FontWeight.w400,
  519. ),
  520. ),
  521. ],
  522. ),
  523. // Spacer(),
  524. // isSelected
  525. // ? Assets.images.iconCustomCharacterAddDialogSelect.image(
  526. // width: 20.w,
  527. // height: 20.w,
  528. // fit: BoxFit.contain,
  529. // )
  530. // : Container(
  531. // width: 20.w,
  532. // height: 20.w,
  533. // decoration: ShapeDecoration(
  534. // color: Colors.white,
  535. // shape: OvalBorder(
  536. // side: BorderSide(
  537. // width: 2.w,
  538. // color: const Color(0xFFE6E6E6),
  539. // ),
  540. // ),
  541. // ),
  542. // ),
  543. ],
  544. ),
  545. );
  546. }
  547. _buildSelectedDesc() {
  548. return Obx(() {
  549. return Container(
  550. margin: EdgeInsets.symmetric(horizontal: 16.w),
  551. child: Row(
  552. children: [
  553. Text(
  554. controller.selectedGoodsInfoItem?.selectDesc ?? "",
  555. style: TextStyle(
  556. color: Colors.black.withAlpha(102),
  557. fontSize: 12.sp,
  558. fontWeight: FontWeight.w400,
  559. ),
  560. ),
  561. ],
  562. ),
  563. );
  564. });
  565. }
  566. Widget _buildMemberCard() {
  567. return Container(
  568. margin: EdgeInsets.symmetric(horizontal: 16.w),
  569. child: Column(
  570. mainAxisAlignment: MainAxisAlignment.start,
  571. crossAxisAlignment: CrossAxisAlignment.start,
  572. children: [
  573. Assets.images.iconNewDiscountMembershipCardTitle.image(
  574. width: 79.w,
  575. height: 24.w,
  576. ),
  577. SizedBox(height: 6.w),
  578. Text(
  579. StringName.newDiscountMemberCardDesc,
  580. style: TextStyle(
  581. color: Colors.black.withValues(alpha: 87),
  582. fontSize: 11.sp,
  583. fontWeight: FontWeight.w400,
  584. ),
  585. ),
  586. SizedBox(height: 8.w),
  587. _buildMemberCardItem(),
  588. SizedBox(height: 28.w),
  589. _buildUserNotice(),
  590. ],
  591. ),
  592. );
  593. }
  594. // 卡片权益
  595. _buildMemberCardItem() {
  596. return SizedBox(
  597. height: 80.w,
  598. child: AutoScrollListView(
  599. scrollDirection: Axis.horizontal,
  600. itemBuilder: (context, index) {
  601. final item = controller.memberCardList[index];
  602. return Container(
  603. margin: EdgeInsets.only(right: 8.w),
  604. width: 140.w,
  605. height: 65.w,
  606. decoration: ShapeDecoration(
  607. gradient: item.gradient,
  608. shape: RoundedRectangleBorder(
  609. side: BorderSide(width: 1.w, color: Colors.black.withAlpha(8)),
  610. borderRadius: BorderRadius.circular(20.r),
  611. ),
  612. ),
  613. child: Row(
  614. mainAxisAlignment: MainAxisAlignment.center,
  615. crossAxisAlignment: CrossAxisAlignment.center,
  616. children: [
  617. item.imageUrl.image(width: 28.w, height: 27.62.w),
  618. SizedBox(width: 8.w),
  619. Column(
  620. crossAxisAlignment: CrossAxisAlignment.start,
  621. mainAxisAlignment: MainAxisAlignment.center,
  622. children: [
  623. Text(
  624. item.title,
  625. style: TextStyle(
  626. color: Colors.black.withAlpha(204),
  627. fontSize: 12.sp,
  628. fontWeight: FontWeight.w700,
  629. ),
  630. ),
  631. SizedBox(height: 6.w),
  632. Text(
  633. item.desc,
  634. style: TextStyle(
  635. color: Colors.black.withAlpha(128),
  636. fontSize: 10.sp,
  637. fontWeight: FontWeight.w400,
  638. ),
  639. ),
  640. ],
  641. ),
  642. ],
  643. ),
  644. );
  645. },
  646. itemCount: controller.memberCardList.length,
  647. ),
  648. );
  649. }
  650. Widget _buildPrivacyTextSpan() {
  651. return Row(
  652. mainAxisAlignment: MainAxisAlignment.center,
  653. children: [
  654. Obx(() {
  655. return GestureDetector(
  656. behavior: HitTestBehavior.opaque,
  657. onTap: () {
  658. controller.isAgree.value = !controller.isAgree.value;
  659. },
  660. child:
  661. controller.isAgree.value
  662. ? Assets.images.iconStoreAgreePrivacy.image(
  663. width: 16.w,
  664. height: 16.w,
  665. )
  666. : SizedBox(
  667. child: Container(
  668. padding: EdgeInsets.all(1.w),
  669. width: 16.w,
  670. height: 16.w,
  671. child: Container(
  672. decoration: BoxDecoration(
  673. shape: BoxShape.circle,
  674. border: Border.all(
  675. color: Colors.black.withAlpha(153),
  676. width: 1.w,
  677. ),
  678. ),
  679. ),
  680. ),
  681. ),
  682. );
  683. }),
  684. Text.rich(
  685. TextSpan(
  686. children: [
  687. TextSpan(
  688. text: StringName.textSpanIHaveReadAndAgree,
  689. style: TextStyle(
  690. color: Colors.black.withAlpha(153),
  691. fontSize: 10.sp,
  692. fontWeight: FontWeight.w400,
  693. ),
  694. ),
  695. ClickTextSpan(
  696. text: StringName.textSpanPrivacyPolicy,
  697. url: WebUrl.privacyPolicy,
  698. ),
  699. ClickTextSpan(
  700. text: StringName.textSpanServiceTerms,
  701. url: WebUrl.serviceAgreement,
  702. ),
  703. TextSpan(
  704. text: StringName.textSpanAnd,
  705. style: TextStyle(
  706. color: Colors.black.withAlpha(153),
  707. fontSize: 10.sp,
  708. fontWeight: FontWeight.w400,
  709. ),
  710. ),
  711. ClickTextSpan(
  712. text: StringName.textSpanMembershipAgreement,
  713. url: WebUrl.memberServiceAgreement,
  714. ),
  715. ],
  716. ),
  717. ),
  718. ],
  719. );
  720. }
  721. // 用户须知
  722. Widget _buildUserNotice() {
  723. return Container(
  724. decoration: BoxDecoration(borderRadius: BorderRadius.circular(16.r)),
  725. child: Column(
  726. crossAxisAlignment: CrossAxisAlignment.start,
  727. children: [
  728. Text('购买须知', style: Styles.getTextStyleBlack204W400(12.sp)),
  729. SizedBox(height: 8.h),
  730. Obx(() {
  731. return Text(
  732. controller.configRepository.memberTips.value,
  733. style: Styles.getTextStyleBlack153W400(10.sp),
  734. );
  735. }),
  736. ],
  737. ),
  738. );
  739. }
  740. }