Component({
	properties: {
		cutBar: {
			type: Function
		}
	},
	options: {
		addGlobalClass: true,
	},
	data: {
		appid: "wxc1b6ae925ac1d06a"
	},
	methods: {
		async openRecord(e) {
			const {
				it,
				item
			} = e.currentTarget.dataset;
			const res = await getApp().globalData.evidence(it);
			if (res) {
				if (it.PageCur) {
					this.triggerEvent("cutBar", it.PageCur)
				} else {
					wx.navigateTo({
						url: it.PageCur ? '#' : it.path,
					})
				}
			}
		},
		toMsg() {
			this.triggerEvent("cutBar", 'Message')
		}
	}
})