diff --git a/css/trade_rule.css b/css/trade_rule.css new file mode 100644 index 0000000..27d311b --- /dev/null +++ b/css/trade_rule.css @@ -0,0 +1,3 @@ +[v-cloak] { + display: none; +} diff --git a/js/trade_rule.js b/js/trade_rule.js new file mode 100644 index 0000000..98805d0 --- /dev/null +++ b/js/trade_rule.js @@ -0,0 +1,28 @@ +mui.plusReady(function(){ + // some ajax +}) +const app = new Vue({ + el: '#app', + data() { + return { + ruleData: [ + ] + } + }, + created() { + console.log("Vue") + }, + methods: { + detail(index){ + console.log(this.ruleData[index]) + // some jump + } + }, + mounted() { + // some ajax + this.ruleData = [ + {id: 1, name: '这是一个名字', announced_at: "2019-07-06 18:00:01"}, + {id: 2, name: '这是二个名字', announced_at: "2019-07-06 19:00:01"}, + ] + } +}) \ No newline at end of file diff --git a/templete/trade_rule.html b/templete/trade_rule.html new file mode 100644 index 0000000..7a88860 --- /dev/null +++ b/templete/trade_rule.html @@ -0,0 +1,49 @@ + + + + + + + 交易规则 + + + + +
+
+ + +

交易规则

+
+
+
+
+
+ {{each.name}} + +
+
+ + + + + + +