新增首页园区和商户的交互

This commit is contained in:
2024-03-29 17:26:08 +08:00
parent 2b45de5a7f
commit 3284bea475
13 changed files with 193 additions and 30 deletions

View File

@@ -0,0 +1,38 @@
// components/picker/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
valueKey: {
type: String,
default: "name"
},
show: Boolean,
columns: Array,
type: String
},
/**
* 组件的初始数据
*/
data: {
// columns:['杭州', '宁波', '温州', '嘉兴', '湖州']
},
/**
* 组件的方法列表
*/
methods: {
onClose() {
this.triggerEvent("close");
},
confirm(e) {
this.triggerEvent("ok", {...e.detail, type: this.data.type})
},
cancel() {
this.triggerEvent("cancel")
}
}
})