Showing
10 changed files
with
227 additions
and
1 deletions
| @@ -19,7 +19,9 @@ | @@ -19,7 +19,9 @@ | ||
| 19 | "pages/pet/p_basic", | 19 | "pages/pet/p_basic", |
| 20 | "pages/topic/t_list", | 20 | "pages/topic/t_list", |
| 21 | "pages/topic/t_detail", | 21 | "pages/topic/t_detail", |
| 22 | - "pages/activity/a_list" | 22 | + "pages/activity/a_list", |
| 23 | + "pages/transform/t_shop", | ||
| 24 | + "pages/transform/t_detail" | ||
| 23 | ], | 25 | ], |
| 24 | "window":{ | 26 | "window":{ |
| 25 | "navigationBarBackgroundColor": "#ffffff", | 27 | "navigationBarBackgroundColor": "#ffffff", |
pages/transform/t_detail.js
0 → 100644
pages/transform/t_detail.json
0 → 100644
| 1 | +{} |
pages/transform/t_detail.wxml
0 → 100644
| 1 | +<view class="detail"> | ||
| 2 | + <image src="/pages/image/topic3.jpg" class="detail-image"></image> | ||
| 3 | + <view class="detail-info"> | ||
| 4 | + <view class="black-font font34r font-bold">小狗狗粮幼犬奶糕泰迪小型幼犬20kg</view> | ||
| 5 | + <view class="detail-main flex-lr"> | ||
| 6 | + <view class="detail-price font24r"><text class="orange-font font30r">800 </text>积分</view> | ||
| 7 | + <view class="gray-deep-font font24r fon-siny">已售5000件</view> | ||
| 8 | + </view> | ||
| 9 | + </view> | ||
| 10 | + <view class="cut bg-gray"></view> | ||
| 11 | + <view class="detail-other-list flex-cm"> | ||
| 12 | + <view class="gray-deep-font font30r font-siny flex-cm border-bottom-orange">商品详情</view> | ||
| 13 | + <view class="gray-deep-font font30r font-siny flex-cm">评价(200)</view> | ||
| 14 | + </view> | ||
| 15 | + <view class="detail-other-info"> | ||
| 16 | + <image src="/pages/image/topic3.jpg" mode="widthFix"></image> | ||
| 17 | + <image src="/pages/image/topic2.jpg" mode="widthFix"></image> | ||
| 18 | + </view> | ||
| 19 | +</view> | ||
| 20 | +<view class="fixed left bottom bg-white fixed-detail flex-lr"> | ||
| 21 | + <view class="black-font font30r">余额:<text class="orange-font">300积分</text></view> | ||
| 22 | + <view class="white-font font30r transform-button flex-cm">余额不足</view> | ||
| 23 | +</view> |
pages/transform/t_detail.wxss
0 → 100644
| 1 | +.detail{ | ||
| 2 | + width:100%; | ||
| 3 | + padding-bottom:120rpx; | ||
| 4 | +} | ||
| 5 | +.detail-image{ | ||
| 6 | + width:100%; | ||
| 7 | + height:400rpx; | ||
| 8 | +} | ||
| 9 | +.detail-info{ | ||
| 10 | + width:100%; | ||
| 11 | + padding:25rpx 20rpx 30rpx; | ||
| 12 | + box-sizing:border-box; | ||
| 13 | +} | ||
| 14 | +.detail-main{ | ||
| 15 | + padding-top:40rpx; | ||
| 16 | +} | ||
| 17 | +.detail-other-list{ | ||
| 18 | + width:100%; | ||
| 19 | + height:100rpx; | ||
| 20 | + border-bottom:1px solid #efeef3; | ||
| 21 | +} | ||
| 22 | +.detail-other-list>view{ | ||
| 23 | + width:35%; | ||
| 24 | + height:100%; | ||
| 25 | +} | ||
| 26 | +.border-bottom-orange{ | ||
| 27 | + border-bottom:2px solid #fcb34c; | ||
| 28 | + box-sizing:border-box; | ||
| 29 | +} | ||
| 30 | +.detail-other-info{ | ||
| 31 | + width:100%; | ||
| 32 | +} | ||
| 33 | +.detail-other-info>image{ | ||
| 34 | + width:100%; | ||
| 35 | + height:400rpx; | ||
| 36 | +} | ||
| 37 | +.fixed-detail{ | ||
| 38 | + width:100%; | ||
| 39 | + height:120rpx; | ||
| 40 | + padding:0 20rpx; | ||
| 41 | + box-sizing:border-box; | ||
| 42 | + box-shadow:0 0 5px rgba(0,0,0,.2); | ||
| 43 | +} | ||
| 44 | +.transform-button{ | ||
| 45 | + width:180rpx; | ||
| 46 | + height:64rpx; | ||
| 47 | + background:#ccc; | ||
| 48 | + border-radius:35rpx; | ||
| 49 | +} |
pages/transform/t_shop.js
0 → 100644
| 1 | +Page({ | ||
| 2 | + data:{ | ||
| 3 | + my_money:300, | ||
| 4 | + goods:[ | ||
| 5 | + { | ||
| 6 | + id:1, | ||
| 7 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 8 | + price:800, | ||
| 9 | + image:'/pages/image/topic3.jpg' | ||
| 10 | + }, | ||
| 11 | + { | ||
| 12 | + id:2, | ||
| 13 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 14 | + price:800, | ||
| 15 | + image:'/pages/image/topic3.jpg' | ||
| 16 | + }, | ||
| 17 | + { | ||
| 18 | + id:3, | ||
| 19 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 20 | + price:800, | ||
| 21 | + image:'/pages/image/topic3.jpg' | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + id:4, | ||
| 25 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 26 | + price:800, | ||
| 27 | + image:'/pages/image/topic3.jpg' | ||
| 28 | + }, | ||
| 29 | + { | ||
| 30 | + id:5, | ||
| 31 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 32 | + price:800, | ||
| 33 | + image:'/pages/image/topic3.jpg' | ||
| 34 | + }, | ||
| 35 | + { | ||
| 36 | + id:6, | ||
| 37 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 38 | + price:800, | ||
| 39 | + image:'/pages/image/topic3.jpg' | ||
| 40 | + }, | ||
| 41 | + { | ||
| 42 | + id:7, | ||
| 43 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 44 | + price:800, | ||
| 45 | + image:'/pages/image/topic3.jpg' | ||
| 46 | + }, | ||
| 47 | + { | ||
| 48 | + id:8, | ||
| 49 | + title:'小狗狗粮幼犬奶糕泰迪小型幼犬20kg', | ||
| 50 | + price:800, | ||
| 51 | + image:'/pages/image/topic3.jpg' | ||
| 52 | + } | ||
| 53 | + ] | ||
| 54 | + }, | ||
| 55 | + onLoad:function () { | ||
| 56 | + | ||
| 57 | + }, | ||
| 58 | + onShow:function () { | ||
| 59 | + | ||
| 60 | + }, | ||
| 61 | + gooddetail:function () { | ||
| 62 | + wx.navigateTo({ | ||
| 63 | + url:'t_detail' | ||
| 64 | + }) | ||
| 65 | + } | ||
| 66 | +}) |
pages/transform/t_shop.json
0 → 100644
pages/transform/t_shop.wxml
0 → 100644
| 1 | +<view class="shop-list flex-rs"> | ||
| 2 | + <block wx:for="{{goods}}"> | ||
| 3 | + <view class="shop-single" bindtap="gooddetail"> | ||
| 4 | + <image src="{{item.image}}" class="shop-image"></image> | ||
| 5 | + <view class="shop-info bg-white"> | ||
| 6 | + <view class="shop-info-title black-font font28r fon-siny flex-lt">{{item.title}}</view> | ||
| 7 | + <view class="shop-info-price flex-lr"> | ||
| 8 | + <view class="font-siny font22r black-font"><text class="orange-font font28r">{{item.price}} </text>积分</view> | ||
| 9 | + <view class="shop-distance bg-gray"> | ||
| 10 | + <view class="shop-actual bg-orange" style="width:{{my_money/item.price*150}}rpx;max-width:100%;"></view> | ||
| 11 | + </view> | ||
| 12 | + </view> | ||
| 13 | + </view> | ||
| 14 | + </view> | ||
| 15 | + </block> | ||
| 16 | +</view> | ||
| 17 | +<view class="shop-complete flex-cm"> | ||
| 18 | + <view class="shop-line"></view> | ||
| 19 | + <view class="gray-font font28r">已经到底啦</view> | ||
| 20 | + <view class="shop-line"></view> | ||
| 21 | +</view> |
pages/transform/t_shop.wxss
0 → 100644
| 1 | +page{ | ||
| 2 | + background:#efeef3; | ||
| 3 | +} | ||
| 4 | +.shop-list{ | ||
| 5 | + width:100%; | ||
| 6 | + height:auto; | ||
| 7 | + padding-top:20rpx; | ||
| 8 | +} | ||
| 9 | +.shop-single{ | ||
| 10 | + width:345rpx; | ||
| 11 | + margin-left:20rpx; | ||
| 12 | + border-radius:10rpx; | ||
| 13 | + margin-bottom:20rpx; | ||
| 14 | + overflow:hidden; | ||
| 15 | +} | ||
| 16 | +.shop-image{ | ||
| 17 | + width:100%; | ||
| 18 | + height:260rpx; | ||
| 19 | +} | ||
| 20 | +.shop-info{ | ||
| 21 | + width:100%; | ||
| 22 | + padding:20rpx; | ||
| 23 | + box-sizing:border-box; | ||
| 24 | +} | ||
| 25 | +.shop-info-title{ | ||
| 26 | + line-height:1.3; | ||
| 27 | +} | ||
| 28 | +.shop-info-price{ | ||
| 29 | + margin-top:40rpx; | ||
| 30 | +} | ||
| 31 | +.shop-distance{ | ||
| 32 | + width:150rpx; | ||
| 33 | + height:12rpx; | ||
| 34 | + border-radius:6rpx; | ||
| 35 | + background:#eee; | ||
| 36 | + overflow:hidden; | ||
| 37 | +} | ||
| 38 | +.shop-actual{ | ||
| 39 | + height:100%; | ||
| 40 | +} | ||
| 41 | +.shop-complete{ | ||
| 42 | + width:100%; | ||
| 43 | + padding:20rpx 0 40rpx; | ||
| 44 | +} | ||
| 45 | +.shop-line{ | ||
| 46 | + width:70rpx; | ||
| 47 | + height:2rpx; | ||
| 48 | + background:#ccc; | ||
| 49 | + margin:0 10rpx; | ||
| 50 | +} |
-
Please register or login to post a comment