From 88ef01d3931dc8b61657019bde2e02186c0222e3 Mon Sep 17 00:00:00 2001
From: ccbikai <ccbikai@qq.com>
Date: Fri, 13 Nov 2015 13:29:45 +0800
Subject: [PATCH] 地址模板修改

---
 library/Api/Yohobuy.php                                 | 12 ++++++------
 template/m.yohobuy.com/actions/index/home/address.phtml |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/library/Api/Yohobuy.php b/library/Api/Yohobuy.php
index 7170052..f05f600 100644
--- a/library/Api/Yohobuy.php
+++ b/library/Api/Yohobuy.php
@@ -18,14 +18,14 @@ class Yohobuy
 {
 
 //    /* 正式环境 */
-   const API_URL = 'http://api2.open.yohobuy.com/';
-   const SERVICE_URL = 'http://service.api.yohobuy.com/';
-   const YOHOBUY_URL = 'http://www.yohobuy.com/';
+   // const API_URL = 'http://api2.open.yohobuy.com/';
+   // const SERVICE_URL = 'http://service.api.yohobuy.com/';
+   // const YOHOBUY_URL = 'http://www.yohobuy.com/';
 
 //    /* 测试环境 */
-//    const API_URL = 'http://test2.open.yohobuy.com/';
-//    const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
-//    const YOHOBUY_URL = 'http://www.yohobuy.com/';
+   const API_URL = 'http://test2.open.yohobuy.com/';
+   const SERVICE_URL = 'http://test.service.api.yohobuy.com/';
+   const YOHOBUY_URL = 'http://www.yohobuy.com/';
 
     /**
      * 私钥列表
diff --git a/template/m.yohobuy.com/actions/index/home/address.phtml b/template/m.yohobuy.com/actions/index/home/address.phtml
index 134ae0d..8a82871 100644
--- a/template/m.yohobuy.com/actions/index/home/address.phtml
+++ b/template/m.yohobuy.com/actions/index/home/address.phtml
@@ -6,8 +6,8 @@
         <span class="tel">{{mobile}}</span>
         <p class="address-info">{{area}} {{address}}</p>
         <div class="action iconfont">
-            <span class="edit">&#xe61e;</span>
-            <span class="del">&#xe621;</span>
+            <a href="/home/address/edit?id={{address_id}}" class="edit">&#xe61e;</a>
+            <span class="del" data-id="{{address_id}}">&#xe621;</span>
         </div>
     </div>
     {{/ address}}
--
libgit2 0.24.0