From 084fb4386b593432623ba912bf33824b69576ef5 Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Thu, 19 Dec 2019 14:50:06 +0800 Subject: [PATCH] opendi --- pages/product/product.scss | 1 + pages/product/product.wxss | 2 +- utils/bin.js | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/product/product.scss b/pages/product/product.scss index ce83366..3476d77 100644 --- a/pages/product/product.scss +++ b/pages/product/product.scss @@ -17,6 +17,7 @@ font-size: 32rpx; color: #333; margin-bottom: 34rpx; + width: 540rpx; } .menery{ font-size: 34rpx; diff --git a/pages/product/product.wxss b/pages/product/product.wxss index df561aa..51450d1 100644 --- a/pages/product/product.wxss +++ b/pages/product/product.wxss @@ -1 +1 @@ -.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx;background-color:#000}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center} +.box{border-top:1rpx solid #eaeaea;display:flex;flex-direction:column;align-items:center}.box .swiper{margin-top:109rpx;width:389rpx;height:657rpx}.box .swiper .image{width:389rpx;height:549rpx;background-color:#000}.box .title{font-size:32rpx;color:#333;margin-bottom:34rpx;width:540rpx}.box .menery{font-size:34rpx;color:#666;margin-bottom:70rpx}.box .add{width:308rpx;height:98rpx;background-color:#50CA80;border-radius:49rpx;line-height:98rpx;font-size:34rpx;color:#fff;text-align:center} diff --git a/utils/bin.js b/utils/bin.js index 84ceabc..c535980 100644 --- a/utils/bin.js +++ b/utils/bin.js @@ -7,7 +7,8 @@ let request = function (obj){ header, dataType, responseType, - complete + complete, + name } = obj url="http://daigou.sdbairui.com/index.php/WXAPI/" + url if(method == "POST" || method == "post"){ @@ -19,7 +20,7 @@ let request = function (obj){ if(data == undefined){ data = {} } - data.openid = wx.getStorageSync("openid") + data[name || 'openid'] = wx.getStorageSync("openid") return new Promise((res,rej)=>{ wx.request({ url,