Skip to content

Commit

Permalink
'更新版本'
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaobinwu committed Aug 29, 2017
1 parent 52ad092 commit 053107b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 微信小程序实战

## 版本:0.17.172600(wxss背景图设置会不成功)
## 版本:0.22.202200

##转载请标明来处

Expand Down
2 changes: 1 addition & 1 deletion pages/home/home.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<view class="pt20"></view>
<view class="sale-md sale-md{{saleType}}">
<view wx:for="{{saleList}}" wx:for-item="sale_item" class="sale-md-item{{index}}" data-title="{{sale_item.actionTitle}}" data-href="{{sale_item.actionValue}}" bindtap="saleTap">
<image src="{{sale_item.iconUrl}}" mode="aspectFill"></image>
<image src="{{sale_item.iconUrl}}" mode="aspectFill" lazyload="{{true}}"></image>
</view>
</view>
</view>
Expand Down
2 changes: 1 addition & 1 deletion pages/list/list.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</view>
<view class="store-list" wx:if="{{storeData.store_list}}">
<view class="store-item" wx:for="{{storeData.store_list}}" wx:for-index="idx" wx:for-item="store" data-store="{{store}}" bindtap="toStoreDetail" wx:key="id">
<image src="{{store.store_logo_format}}" class="store-pic"></image>
<image src="{{store.store_logo_format}}" class="store-pic" lazyload="{{true}}"></image>
<view class="store-info">
<view class="store-name"> {{store.store_name}} </view>
<view class="store-address">{{store.store_address}}</view>
Expand Down
2 changes: 1 addition & 1 deletion template/product-item/product-item.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<template name="productItem">
<view class="pro-item" data-goods-id="{{product.goods_id}}" catchtap="_goDetail" wx:if="{{product}}">
<view class="pro-pic">
<image src="{{product.goods_grid}}"></image>
<image src="{{product.goods_grid}}" lazyload="{{true}}"></image>
<view class="tag-wrap" wx:if="{{product.valid==0}}">
<view class="tag-soldout"></view>
</view>
Expand Down
4 changes: 2 additions & 2 deletions utils/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function getCoords(){
type: 'wgs84'
}).then(function(res){
//列表 => 22.5373800000 114.0129300000
//主页 => 22.514278 113.923374
//主页 => 22.514779 113.92579
//更多 => 29.6441500000 91.1145000000
return Promise.resolve({
lat: res.latitude,
Expand Down Expand Up @@ -65,7 +65,7 @@ function getGPSInfo(){
}
});
}).then((res)=>{// 拿到腾讯地图解析过后的数据
// console.log(res)
console.log(res)
// 经度
data.lng = res.result.ad_info.location.lng;
// 纬度
Expand Down
2 changes: 1 addition & 1 deletion utils/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function getToken() {
// });

return getOpenId().then(() => {
token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC93d3cud3pob3VodWkuY29tIiwiYXVkIjoiaHR0cDpcL1wvd3d3Lnd6aG91aHVpLmNvbSIsImlhdCI6MTUwMTcyOTQyNCwibmJmIjoxNTAxNzI5NDI0LCJleHAiOjE1MDIzMzQyMjQsInN1YiI6IjM3ODU2In0.XPJHtJ_tH1cnj3p2n9ws2JpimCPYOvIwW4L-BymWEyc';
token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC93d3cud3pob3VodWkuY29tIiwiYXVkIjoiaHR0cDpcL1wvd3d3Lnd6aG91aHVpLmNvbSIsImlhdCI6MTUwMzk2OTQ4NSwibmJmIjoxNTAzOTY5NDg1LCJleHAiOjE1MDQ1NzQyODUsInN1YiI6IjM3ODU2In0.HYzBuH1ngWZcQjjKS-NESIXtR3JyLqLT-HuFkRZmJpE';
if(token) {
if(token === '0') {
return Promise.reject({
Expand Down

0 comments on commit 053107b

Please sign in to comment.