换系统

This commit is contained in:
2019-12-23 10:04:09 +08:00
parent c890ad64a2
commit 9a53bca281
205 changed files with 4897 additions and 4734 deletions

View File

@@ -1,18 +1,18 @@
Component({
properties: {
img:String,
title:String,
id:String,
price:String,
shopid:String
},
data: {},
methods: {
gotodetail(e) {
console.log(e.currentTarget.dataset.id)
wx.navigateTo({
url: "/pages/product/product?shopid="+e.currentTarget.dataset.id
})
}
}
Component({
properties: {
img:String,
title:String,
id:String,
price:String,
shopid:String
},
data: {},
methods: {
gotodetail(e) {
console.log(e.currentTarget.dataset.id)
wx.navigateTo({
url: "/pages/product/product?shopid="+e.currentTarget.dataset.id
})
}
}
})

View File

@@ -1,3 +1,3 @@
{
"component": true
{
"component": true
}

View File

@@ -1,58 +1,58 @@
.commodity {
width: 623rpx;
height: 143rpx;
margin-top: 32rpx;
display: flex;
align-items: center;
.content {
width: 614rpx;
height: 100%;
display: flex;
align-items: center;
box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
.imgthumb {
width: 105rpx;
height: 105rpx;
margin-left: 40rpx;
background-color: #333;
}
.introduce {
width: 410rpx;
margin-left: 40rpx;
display: flex;
flex-direction: column;
> text {
font-size: 26rpx;
color: #333;
margin-bottom: 22rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
> view {
display: flex;
align-items: center;
justify-content: space-between;
> text:first-child {
font-size: 30rpx;
color: #dec499;
}
> text:last-child {
font-size: 22rpx;
color: #999;
}
}
}
}
.decorate {
width: 9rpx;
height: 102rpx;
background-color: #3fb66e;
}
}
.commodity {
width: 623rpx;
height: 143rpx;
margin-top: 32rpx;
display: flex;
align-items: center;
.content {
width: 614rpx;
height: 100%;
display: flex;
align-items: center;
box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
.imgthumb {
width: 105rpx;
height: 105rpx;
margin-left: 40rpx;
background-color: #333;
}
.introduce {
width: 410rpx;
margin-left: 40rpx;
display: flex;
flex-direction: column;
> text {
font-size: 26rpx;
color: #333;
margin-bottom: 22rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
> view {
display: flex;
align-items: center;
justify-content: space-between;
> text:first-child {
font-size: 30rpx;
color: #dec499;
}
> text:last-child {
font-size: 22rpx;
color: #999;
}
}
}
}
.decorate {
width: 9rpx;
height: 102rpx;
background-color: #3fb66e;
}
}

View File

@@ -1,14 +1,14 @@
<view class="commodity" bindtap="gotodetail" data-id="{{shopid}}">
<view class="content">
<image class="imgthumb " src="{{img}}"></image>
<view class="introduce">
<text class="towline">{{title}}</text>
<view>
<text>¥{{price}}</text>
<text>加入购物车</text>
</view>
</view>
</view>
<view class="decorate"></view>
<view class="commodity" bindtap="gotodetail" data-id="{{shopid}}">
<view class="content">
<image class="imgthumb " src="{{img}}"></image>
<view class="introduce">
<text class="towline">{{title}}</text>
<view>
<text>¥{{price}}</text>
<text>加入购物车</text>
</view>
</view>
</view>
<view class="decorate"></view>
</view>