Commit 2d1b246f by 李嘉林

自定义列表点击事件

parent 2e7189c8
...@@ -21,6 +21,7 @@ function compiler(str, data) { ...@@ -21,6 +21,7 @@ function compiler(str, data) {
} }
import Vue from "vue"; import Vue from "vue";
import index from "@/api/index"; import index from "@/api/index";
const app = getApp()
export default { export default {
name: "custom-list", name: "custom-list",
props: { props: {
...@@ -77,6 +78,17 @@ export default { ...@@ -77,6 +78,17 @@ export default {
mounted() {}, mounted() {},
methods:{ methods:{
itemClick(item,index){ itemClick(item,index){
// let paper = {
// bid : item.bid
// }
// let link = 'https://dk.taokor.cn/wchat/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/appraisalTwo?paper='+ encodeURIComponent(JSON.stringify(paper));
// console.log(link,'---link')
// app.$themeToLink({
// link : link,
// key: "1.5",
// name: link,
// type: 1.2,
// });
eval(this.datas.componentData.comMethods) eval(this.datas.componentData.comMethods)
}, },
getList(){ getList(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment