pplok #26

Merged
theluyuan merged 5 commits from pplok into master 2019-12-19 16:00:29 +08:00
3 changed files with 5 additions and 3 deletions
Showing only changes of commit 084fb4386b - Show all commits

View File

@ -17,6 +17,7 @@
font-size: 32rpx; font-size: 32rpx;
color: #333; color: #333;
margin-bottom: 34rpx; margin-bottom: 34rpx;
width: 540rpx;
} }
.menery{ .menery{
font-size: 34rpx; font-size: 34rpx;

View File

@ -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}

View File

@ -7,7 +7,8 @@ let request = function (obj){
header, header,
dataType, dataType,
responseType, responseType,
complete complete,
name
} = obj } = obj
url="http://daigou.sdbairui.com/index.php/WXAPI/" + url url="http://daigou.sdbairui.com/index.php/WXAPI/" + url
if(method == "POST" || method == "post"){ if(method == "POST" || method == "post"){
@ -19,7 +20,7 @@ let request = function (obj){
if(data == undefined){ if(data == undefined){
data = {} data = {}
} }
data.openid = wx.getStorageSync("openid") data[name || 'openid'] = wx.getStorageSync("openid")
return new Promise((res,rej)=>{ return new Promise((res,rej)=>{
wx.request({ wx.request({
url, url,