修改页面

This commit is contained in:
2025-05-13 10:12:15 +08:00
parent 00ab75efbc
commit a079f9d9fe
183 changed files with 2701 additions and 2212 deletions

View File

@ -84,6 +84,7 @@
</view>
<view class="u-m-l-64 flex1">
<u-button hover-class="none"
@click="onSubmitOrder"
:customStyle="{height: '92rpx', backgroundColor: themeColor, color: '#fff', border: 'none', paddingTop: '8rpx'}"
:hair-line="false"
shape="circle">
@ -103,10 +104,12 @@
pay: {
weixin: 0,
alipay: 0
}
},
showLoading: false, // Loading: 显示 | 隐藏
}
},
onLoad() {
onLoad(options) {
console.log("this.$>>>", this.$store.state.goods.buyGoods);
//#ifdef MP-WEIXIN
this.pay.weixin = 1
//#endif
@ -118,7 +121,70 @@
methods: {
appointmentTime() {
this.timePopup = true
}
},
// 点击订单提交
onSubmitOrder() {
uni.showModal({
title: '温馨提示',
content: '是否确认下单?',
confirmColor: '#FF2C3C',
success: ({ confirm }) => {
if (!confirm) return
this.handleOrderMethods('submit')
}
})
},
// 订单处理
// handleOrderMethods(action) {
// // 订单提交数据
// const orderFrom = {
// action,
// goods: this.goods,
// delivery_type: this.delivery,
// use_integral: this.useIntegral,
// address_id: this.addressId,
// coupon_id: this.couponId,
// bargain_launch_id: this.bargainLaunchId == -1 ? '' : this.bargainLaunchId
// }
// switch (action) {
// case 'info':
// this.initPageData(orderFrom)
// break
// case 'submit':
// this.handleOrderSubmit(orderFrom)
// break
// }
// },
// // 订单提交
// async handleOrderSubmit(from) {
// this.showLoading = true
// from.remark = this.userRemark
// from.type = this.type
// try {
// const { code, data, msg } = this.teamId ? await teamBuy(from) : await orderBuy(from)
// if (code == 1) {
// uni.redirectTo({
// url: `/pages/payment/payment?from=${data.type}&order_id=${data.order_id}`
// })
// } else {
// throw new Error(msg)
// }
// } catch (err) {
// console.log(err)
// // this.$toast({ title: '下单异常,请重新操作' })
// } finally {
// this.showLoading = false
// }
// },
}
}
</script>