opendi
This commit is contained in:
		
							parent
							
								
									918a827280
								
							
						
					
					
						commit
						084fb4386b
					
				@ -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;
 | 
				
			||||||
 | 
				
			|||||||
@ -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}
 | 
				
			||||||
 | 
				
			|||||||
@ -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,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user