换ubuntu
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
Component({
|
||||
properties: {
|
||||
list:Array
|
||||
},
|
||||
data: {},
|
||||
methods: {
|
||||
todetail(a) {
|
||||
console.log(a)
|
||||
wx.navigateTo({
|
||||
url: "/pages/product/product?shopid=" + a.currentTarget.dataset.id
|
||||
})
|
||||
}
|
||||
}
|
||||
Component({
|
||||
properties: {
|
||||
list:Array
|
||||
},
|
||||
data: {},
|
||||
methods: {
|
||||
todetail(a) {
|
||||
console.log(a)
|
||||
wx.navigateTo({
|
||||
url: "/pages/product/product?shopid=" + a.currentTarget.dataset.id
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,63 +1,63 @@
|
||||
.list {
|
||||
padding-left: 20rpx;
|
||||
width: 572rpx;
|
||||
box-sizing: border-box;
|
||||
height: 100vh;
|
||||
.commodity {
|
||||
width: 552rpx;
|
||||
// height: 143rpx;
|
||||
// margin-top: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.content {
|
||||
width: 552rpx;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
||||
border-bottom: 2rpx solid #eaeaea;
|
||||
padding: 30rpx 0;
|
||||
.imgthumb {
|
||||
width: 105rpx;
|
||||
height: 105rpx;
|
||||
margin-left: 40rpx;
|
||||
background-color: #333;
|
||||
}
|
||||
.introduce {
|
||||
width: 336rpx;
|
||||
margin-left: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.towline {
|
||||
overflow: hidden;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
|
||||
display: -webkit-box;
|
||||
|
||||
-webkit-box-orient: vertical;
|
||||
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
> text {
|
||||
font-size: 22rpx;
|
||||
color: #333;
|
||||
margin-bottom: 22rpx;
|
||||
}
|
||||
> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.list {
|
||||
padding-left: 20rpx;
|
||||
width: 572rpx;
|
||||
box-sizing: border-box;
|
||||
height: 100vh;
|
||||
.commodity {
|
||||
width: 552rpx;
|
||||
// height: 143rpx;
|
||||
// margin-top: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.content {
|
||||
width: 552rpx;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
// box-shadow: 0 0 24rpx 0 rgba(227, 227, 227, 0.4);
|
||||
border-bottom: 2rpx solid #eaeaea;
|
||||
padding: 30rpx 0;
|
||||
.imgthumb {
|
||||
width: 105rpx;
|
||||
height: 105rpx;
|
||||
margin-left: 40rpx;
|
||||
background-color: #333;
|
||||
}
|
||||
.introduce {
|
||||
width: 336rpx;
|
||||
margin-left: 40rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.towline {
|
||||
overflow: hidden;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
|
||||
display: -webkit-box;
|
||||
|
||||
-webkit-box-orient: vertical;
|
||||
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
> text {
|
||||
font-size: 22rpx;
|
||||
color: #333;
|
||||
margin-bottom: 22rpx;
|
||||
}
|
||||
> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,38 +1,38 @@
|
||||
<scroll-view class="list" scroll-y="{{true}}" >
|
||||
<view class="commodity" bindtap="todetail" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.goods_id}}">
|
||||
<view class="content">
|
||||
<image class="imgthumb " src="{{item.image}}"></image>
|
||||
<view class="introduce">
|
||||
<text class="towline">{{item.goods_name}}</text>
|
||||
<view>
|
||||
<text>¥{{item.shop_price}}</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="commodity" bindtap="todetail">
|
||||
<view class="content">
|
||||
<image class="imgthumb "></image>
|
||||
<view class="introduce">
|
||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||
<view>
|
||||
<text>¥657</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="commodity" bindtap="todetail">
|
||||
<view class="content">
|
||||
<image class="imgthumb "></image>
|
||||
<view class="introduce">
|
||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||
<view>
|
||||
<text>¥657</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<scroll-view class="list" scroll-y="{{true}}" >
|
||||
<view class="commodity" bindtap="todetail" wx:for="{{list}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.goods_id}}">
|
||||
<view class="content">
|
||||
<image class="imgthumb " src="{{item.image}}"></image>
|
||||
<view class="introduce">
|
||||
<text class="towline">{{item.goods_name}}</text>
|
||||
<view>
|
||||
<text>¥{{item.shop_price}}</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="commodity" bindtap="todetail">
|
||||
<view class="content">
|
||||
<image class="imgthumb "></image>
|
||||
<view class="introduce">
|
||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||
<view>
|
||||
<text>¥657</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="commodity" bindtap="todetail">
|
||||
<view class="content">
|
||||
<image class="imgthumb "></image>
|
||||
<view class="introduce">
|
||||
<text>产品名称产品名称产品名称产品名称产品名称产品</text>
|
||||
<view>
|
||||
<text>¥657</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</scroll-view>
|
||||
@@ -1 +1 @@
|
||||
.list{padding-left:20rpx;width:572rpx;box-sizing:border-box;height:100vh}.list .commodity{width:552rpx;display:flex;align-items:center}.list .commodity .content{width:552rpx;height:100%;display:flex;align-items:center;border-bottom:2rpx solid #eaeaea;padding:30rpx 0}.list .commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.list .commodity .content .introduce{width:336rpx;margin-left:40rpx;display:flex;flex-direction:column}.list .commodity .content .introduce .towline{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.list .commodity .content .introduce>text{font-size:22rpx;color:#333;margin-bottom:22rpx}.list .commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.list .commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.list .commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}
|
||||
.list{padding-left:20rpx;width:572rpx;box-sizing:border-box;height:100vh}.list .commodity{width:552rpx;display:flex;align-items:center}.list .commodity .content{width:552rpx;height:100%;display:flex;align-items:center;border-bottom:2rpx solid #eaeaea;padding:30rpx 0}.list .commodity .content .imgthumb{width:105rpx;height:105rpx;margin-left:40rpx;background-color:#333}.list .commodity .content .introduce{width:336rpx;margin-left:40rpx;display:flex;flex-direction:column}.list .commodity .content .introduce .towline{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.list .commodity .content .introduce>text{font-size:22rpx;color:#333;margin-bottom:22rpx}.list .commodity .content .introduce>view{display:flex;align-items:center;justify-content:space-between}.list .commodity .content .introduce>view>text:first-child{font-size:30rpx;color:#dec499}.list .commodity .content .introduce>view>text:last-child{font-size:22rpx;color:#999}
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
Component({
|
||||
properties: {
|
||||
types: Array
|
||||
},
|
||||
data: {
|
||||
id: 0
|
||||
},
|
||||
methods: {
|
||||
select(a) {
|
||||
// console.log(this.data.a.target.dataset.id)
|
||||
// console.log(a.target.dataset.id)
|
||||
this.setData({
|
||||
id: a.target.dataset.id
|
||||
})
|
||||
this.triggerEvent("select",{id:a.target.dataset.id})
|
||||
}
|
||||
}
|
||||
Component({
|
||||
properties: {
|
||||
types: Array
|
||||
},
|
||||
data: {
|
||||
id: 0
|
||||
},
|
||||
methods: {
|
||||
select(a) {
|
||||
// console.log(this.data.a.target.dataset.id)
|
||||
// console.log(a.target.dataset.id)
|
||||
this.setData({
|
||||
id: a.target.dataset.id
|
||||
})
|
||||
this.triggerEvent("select",{id:a.target.dataset.id})
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,20 +1,20 @@
|
||||
.navigation {
|
||||
width: 188rpx;
|
||||
// margin-right: 2rpx;
|
||||
border-right: 2rpx solid #eaeaea;
|
||||
max-height: 100vh;
|
||||
view{
|
||||
height: 97rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
border-bottom: 2rpx solid #eaeaea;
|
||||
line-height: 97rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.on{
|
||||
border-left: 5rpx solid #56CC84;
|
||||
color:#56CC84;
|
||||
}
|
||||
.navigation {
|
||||
width: 188rpx;
|
||||
// margin-right: 2rpx;
|
||||
border-right: 2rpx solid #eaeaea;
|
||||
max-height: 100vh;
|
||||
view{
|
||||
height: 97rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
border-bottom: 2rpx solid #eaeaea;
|
||||
line-height: 97rpx;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.on{
|
||||
border-left: 5rpx solid #56CC84;
|
||||
color:#56CC84;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
<scroll-view class="navigation" scroll-y="{{true}}" bind:tap="select" >
|
||||
<view wx:for="{{types}}" data-id="{{index}}" class="{{id == index?'on' : ''}}">{{item.name}}</view>
|
||||
<!-- <view data-id="0" class="{{id == 0?'on' : ''}}">热门商品</view>
|
||||
<view data-id="1" class="{{id == 1?'on' : ''}}">美容健身</view>
|
||||
<view data-id="2" class="{{id == 2?'on' : ''}}">美容健身</view>
|
||||
<view data-id="3" class="{{id == 3?'on' : ''}}">美容健身</view>
|
||||
<view data-id="4" class="{{id == 4?'on' : ''}}">美容健身</view>
|
||||
<view data-id="5" class="{{id == 5?'on' : ''}}">美容健身</view>
|
||||
<view data-id="6" class="{{id == 6?'on' : ''}}">美容健身</view>
|
||||
<view data-id="7" class="{{id == 7?'on' : ''}}">美容健身</view> -->
|
||||
<scroll-view class="navigation" scroll-y="{{true}}" bind:tap="select" >
|
||||
<view wx:for="{{types}}" data-id="{{index}}" class="{{id == index?'on' : ''}}">{{item.name}}</view>
|
||||
<!-- <view data-id="0" class="{{id == 0?'on' : ''}}">热门商品</view>
|
||||
<view data-id="1" class="{{id == 1?'on' : ''}}">美容健身</view>
|
||||
<view data-id="2" class="{{id == 2?'on' : ''}}">美容健身</view>
|
||||
<view data-id="3" class="{{id == 3?'on' : ''}}">美容健身</view>
|
||||
<view data-id="4" class="{{id == 4?'on' : ''}}">美容健身</view>
|
||||
<view data-id="5" class="{{id == 5?'on' : ''}}">美容健身</view>
|
||||
<view data-id="6" class="{{id == 6?'on' : ''}}">美容健身</view>
|
||||
<view data-id="7" class="{{id == 7?'on' : ''}}">美容健身</view> -->
|
||||
</scroll-view>
|
||||
@@ -1 +1 @@
|
||||
.navigation{width:188rpx;border-right:2rpx solid #eaeaea;max-height:100vh}.navigation view{height:97rpx;font-size:28rpx;color:#333;border-bottom:2rpx solid #eaeaea;line-height:97rpx;font-weight:bold;text-align:center;box-sizing:border-box}.navigation .on{border-left:5rpx solid #56CC84;color:#56CC84}
|
||||
.navigation{width:188rpx;border-right:2rpx solid #eaeaea;max-height:100vh}.navigation view{height:97rpx;font-size:28rpx;color:#333;border-bottom:2rpx solid #eaeaea;line-height:97rpx;font-weight:bold;text-align:center;box-sizing:border-box}.navigation .on{border-left:5rpx solid #56CC84;color:#56CC84}
|
||||
|
||||
Reference in New Issue
Block a user