- <view class="box" style="padding-top:{{style.paddingtop * 2}}rpx; padding-right:{{style.paddingright * 2}}rpx">
- <block wx:for="{{test}}" wx:key="index">
- <view class="txt" style="border-radius:{{style.imgmarginRight}}rpx;background: {{style.background}};width:{{style.width}}; margin-left:{{style.txtmarginleft * 2}}rpx;margin-bottom:{{style.txtmarginbottom * 2}}rpx">
- <image src="{{item.image}}" style="border-radius:{{style.imgmarginRight}}rpx;height:{{style.imgHeight * 2}}rpx;width:{{style.imgwidth}}"></image>
- <view class="txt-name" style="color: {{style.colorname}}">{{item.name}}</view>
- <view class="txt-state" style="color: {{style.colorstate}}">{{item.state}}</view>
- <view class="price_info">
- <view class="price" style="color: {{style.colora}}">¥{{item.price}}</view>
- <view class="original_price" style="color: {{style.colorb}}">
- ¥{{item.original}}
- </view>
- </view>
- </view>
- </block>
- </view>
|