增加部分公共样式
修改部分公共组件代码 修改台桌,代课下单逻辑代码 增加支付页面 修改用户列表页面
This commit is contained in:
@@ -78,12 +78,17 @@
|
||||
import {
|
||||
reactive,
|
||||
nextTick,
|
||||
ref
|
||||
ref,
|
||||
watch
|
||||
} from 'vue';
|
||||
import myModel from '@/components/my-components/my-model.vue'
|
||||
import myButton from '@/components/my-components/my-button.vue'
|
||||
import myTabs from '@/components/my-components/my-tabs.vue'
|
||||
const props = defineProps({
|
||||
price: {
|
||||
type: [Number,String],
|
||||
default: 0
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
@@ -93,7 +98,9 @@
|
||||
default: []
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
function changeCauses(item) {
|
||||
item.checked = !item.checked
|
||||
}
|
||||
@@ -151,7 +158,11 @@
|
||||
const form = reactive({
|
||||
...$form
|
||||
})
|
||||
|
||||
watch(()=>props.price,(newval)=>{
|
||||
console.log(newval);
|
||||
form.price=newval
|
||||
form.currentPrice=newval
|
||||
})
|
||||
function resetForm() {
|
||||
Object.assign(form, {
|
||||
...$form
|
||||
|
||||
Reference in New Issue
Block a user