mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-14 04:48:55 +08:00
refactor: 优化购物车与订单页面逻辑
- 更新购物车页面,增强商品展示与交互体验。 - 调整订单页面的状态反馈与用户操作逻辑,确保信息清晰。 - 改进组件样式与布局,提升整体用户体验。 - 修复多个页面中的样式与功能问题,确保一致性与流畅性。
This commit is contained in:
@@ -159,7 +159,7 @@
|
||||
title="申请原因"
|
||||
@confirm="reasonSelectConfirm"
|
||||
></u-picker>
|
||||
<u-toast ref="uToast" />
|
||||
<u-toast ref="toastRef" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -186,7 +186,7 @@ const sku = ref<any>({})
|
||||
const reasonSelectShow = ref(false)
|
||||
const reasonList = ref<any[]>([])
|
||||
const applyInfo = ref<any>({})
|
||||
const uToast = ref<any>(null)
|
||||
const toastRef = ref<any>(null)
|
||||
const isAppointmentAfterSale = ref(false)
|
||||
|
||||
const form = reactive({
|
||||
@@ -335,8 +335,8 @@ function onUploadAfterRead(event: any) {
|
||||
|
||||
function showToast(message: string, type = 'error') {
|
||||
const text = message || (type === 'success' ? '操作成功' : '操作失败')
|
||||
if (uToast.value) {
|
||||
uToast.value.show({ message: text, type })
|
||||
if (toastRef.value) {
|
||||
toastRef.value.show({ message: text, type })
|
||||
return
|
||||
}
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user