From 91c43319c2cc1b003c37e7e19e6cbb3350bd5a14 Mon Sep 17 00:00:00 2001 From: Ge Hao Date: Sun, 9 Oct 2016 10:15:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BD=BF=E7=94=A8=20API=20?= =?UTF-8?q?=E7=9A=84=E9=A6=96=E9=A1=B5=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.wxml | 11 +++++------ pages/index/index.wxss | 3 +++ utils/product.js | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 553187b..44a7dc4 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,11 +1,10 @@ - + - - + + @@ -14,11 +13,11 @@ - + {{item.attributes.name}} - {{item.attributes.price}} + ¥{{item.attributes.price}} diff --git a/pages/index/index.wxss b/pages/index/index.wxss index 3d7591d..7b5b68c 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,3 +1,6 @@ .head-img { width: 100%; } +.slide-img { + width: 100%; +} \ No newline at end of file diff --git a/utils/product.js b/utils/product.js index c7dd2a0..5f1fd8f 100644 --- a/utils/product.js +++ b/utils/product.js @@ -27,7 +27,7 @@ function postBuyProduct (data) { function getSlides () { return new Promise((resolve, reject) => { wx.request({ - url: `${API_URL}/slides`, + url: `${API_URL}/home_slides`, header: { 'Content-Type': 'application/json' }, success: resolve, fail: reject