对接接口

This commit is contained in:
wangxiaowei
2025-10-16 16:26:57 +08:00
parent 76da09be91
commit 2f59d0e8ba
21 changed files with 405 additions and 197 deletions

View File

@ -20,7 +20,7 @@
```
#### 2. 页面或组件传创建的方法需要以当前文件名称作为对象按照驼峰命名
```
const detail = {
const Detail = {
handleConfirmHour: () => {
if (totalHour.value <= 0) {
toast.info('至少起订N小时')
@ -33,7 +33,7 @@
#### 3. 页面或组件传创建的内部方法需要放在函数最下面这种方法前面不需要加上handle
```
const detail = {
const Detail = {
handleConfirmHour: () => {
if (totalHour.value <= 0) {
toast.info('至少起订N小时')
@ -59,7 +59,7 @@
#### 4. 如果组件名称与定义的对象函数名冲突则对象函数名后面加上s
```
import coupon from '@/components/coupon/coupon.vue'
const coupons = {
const Coupons = {
handleConfirmHour: () => {
if (totalHour.value <= 0) {
toast.info('至少起订N小时')