|
|
@@ -550,17 +550,21 @@ class StorePage extends BasePage<StoreController> {
|
|
|
),
|
|
|
borderRadius: BorderRadius.circular(8.w),
|
|
|
),
|
|
|
- child: Obx(() => Text(
|
|
|
- "立即购买 ¥${controller.currentSelectedStoreItem.value?.amountText}",
|
|
|
- style: TextStyle(
|
|
|
- fontWeight: FontWeight.bold,
|
|
|
- fontSize: 16.sp,
|
|
|
- color: Colors.white),
|
|
|
- )),
|
|
|
+ child: _buildBuyButton(),
|
|
|
),
|
|
|
),
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ Widget _buildBuyButton() {
|
|
|
+ return Obx(() => Text(
|
|
|
+ "立即购买 ¥${controller.currentSelectedStoreItem.value?.amountText}",
|
|
|
+ style: TextStyle(
|
|
|
+ fontWeight: FontWeight.bold,
|
|
|
+ fontSize: 16.sp,
|
|
|
+ color: Colors.white),
|
|
|
+ ));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
extension on PaymentWay {
|