diff --git a/js/my.js b/js/my.js index 3075042..40c4fcb 100644 --- a/js/my.js +++ b/js/my.js @@ -274,6 +274,9 @@ var localAuthType = localStorage.getItem("authType"); $('.mydata-content').on('tap', '.setting', function() { JZL.openWindow('setting.html', 'setting.html') }) + $('.mydata-content').on('tap', '.tradeRule', function() { + JZL.openWindow('trade_rule.html', 'trade_rule.html') + }) $('.mydata-content').on('tap', '.shoppingcart', function() { JZL.openWindow('shoppingcart_warp.html', 'shoppingcart_warp.html') }) diff --git a/js/trade_rule.js b/js/trade_rule.js index 135830a..71e1bad 100644 --- a/js/trade_rule.js +++ b/js/trade_rule.js @@ -38,7 +38,12 @@ const app = new Vue({ var localData = localStorage.getItem("LOCAL_RULE"); this.loadData(); if(localData){ - this.noteData = JSON.parse(localData); + try { + JSON.parse(localData); + this.ruleData = JSON.parse(localData); + } catch (e) { + + } } } }) \ No newline at end of file diff --git a/templete/my.html b/templete/my.html index 82567c9..ba32fe6 100644 --- a/templete/my.html +++ b/templete/my.html @@ -113,11 +113,11 @@

微吧

-
+
-

付款凭证

+

交易规则

diff --git a/templete/trade_rule.html b/templete/trade_rule.html index d922d06..57b2774 100644 --- a/templete/trade_rule.html +++ b/templete/trade_rule.html @@ -20,8 +20,8 @@
-
{{each.name}}
-
在{{each.announced_at}}时发布
+
{{each.title}}
+
在{{each.create_time}}时发布