登录
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
Component({
|
||||
properties: {},
|
||||
properties: {
|
||||
img:String,
|
||||
title:String,
|
||||
id:String,
|
||||
price:String
|
||||
},
|
||||
data: {},
|
||||
methods: {
|
||||
gotodetail() {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<view class="commodity" bindtap="gotodetail">
|
||||
<view class="content">
|
||||
<image class="imgthumb "></image>
|
||||
<image class="imgthumb " src="{{img}}"></image>
|
||||
<view class="introduce">
|
||||
<text>产品名称产品名称产品名称产品名称产品名称产品名称产品名称</text>
|
||||
<text class="towline">{{title}}</text>
|
||||
<view>
|
||||
<text>¥657</text>
|
||||
<text>¥{{price}}</text>
|
||||
<text>加入购物车</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Component({
|
||||
properties: {
|
||||
list:Array
|
||||
},
|
||||
data: {
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<view class="list">
|
||||
<text class="title">热门商品</text>
|
||||
<commodity></commodity>
|
||||
<commodity wx:for="{{list}}" title="{{item.goods_name}}" price="{{item.shop_price}}" img="{{item.image}}"></commodity>
|
||||
</view>
|
||||
Reference in New Issue
Block a user