|
@@ -0,0 +1,105 @@
|
|
|
|
|
+/*******************************************************************************
|
|
|
|
|
+ * Copyright(c) 2024 dongke All rights reserved. / Confidential
|
|
|
|
|
+ * 类的信息:
|
|
|
|
|
+ * 1.程序名称:
|
|
|
|
|
+ * 2.功能描述:组件-列表
|
|
|
|
|
+ * 编辑履历:
|
|
|
|
|
+ * 作者 日期 版本 修改内容
|
|
|
|
|
+ * 周兴 2024-1-30 1.00 新建
|
|
|
|
|
+ *******************************************************************************/
|
|
|
|
|
+const app = getApp();
|
|
|
|
|
+Component({
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 组件的属性列表
|
|
|
|
|
+ */
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ // 区域
|
|
|
|
|
+ cardList: {
|
|
|
|
|
+ type: Array,
|
|
|
|
|
+ value: []
|
|
|
|
|
+ },
|
|
|
|
|
+ // 内容
|
|
|
|
|
+ contentObj:{
|
|
|
|
|
+ type: Object,
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 组件的初始数据
|
|
|
|
|
+ */
|
|
|
|
|
+ data: {
|
|
|
|
|
+ // 是否显示pop
|
|
|
|
|
+ show: false,
|
|
|
|
|
+ $t: app.globalData.lang,
|
|
|
|
|
+ routeUrl: app.globalData['routeUrl'],
|
|
|
|
|
+ item: null,
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 组件的方法列表
|
|
|
|
|
+ */
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 跳转明细页面
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ toDetail(e) {
|
|
|
|
|
+ this.triggerEvent("toDetail", { item: e.currentTarget.dataset.item })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 跳转标题页面
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ toTitle(e) {
|
|
|
|
|
+ this.triggerEvent("toTitle", { item: e.currentTarget.dataset.item })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 跳转状态
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ toStatus(e) {
|
|
|
|
|
+ this.triggerEvent("toStatus", { item: e.currentTarget.dataset.item })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 跳转三点事件
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ toPoint(e) {
|
|
|
|
|
+ // this.triggerEvent("toPoint", {item:e.currentTarget.dataset.item})
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ item: e.currentTarget.dataset.item
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 点击按钮
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ clickButton(e) {
|
|
|
|
|
+ let obj = {
|
|
|
|
|
+ item: this.data.item,
|
|
|
|
|
+ name: e.currentTarget.dataset.item.name
|
|
|
|
|
+ }
|
|
|
|
|
+ this.triggerEvent("open", obj)
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ show: false
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @desc : 关闭弹窗
|
|
|
|
|
+ * @author : 周兴
|
|
|
|
|
+ * @date : 2024/1/26 11:46
|
|
|
|
|
+ */
|
|
|
|
|
+ closePop() {
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ show: false
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
+})
|