Browse Source

no message

featrue/v4.5
xpz2018 4 years ago
parent
commit
8144ba9fb7
5 changed files with 10 additions and 9 deletions
  1. 3
      pages/agent/agent-item/index.js
  2. 1
      pages/agent/agent-item/index.json
  3. 4
      pages/agent/agent-item/index.wxml
  4. 1
      pages/mall/search-list/index.json
  5. 10
      pages/moment/info-item/index.wxml

3
pages/agent/agent-item/index.js

@ -9,7 +9,8 @@ Component({
multipleSlots: true multipleSlots: true
}, },
properties: { properties: {
item: { type: Object, value: null },
keyword: { type: String, value: null },
item: { type: Object, value: null }
}, },
data: { data: {
kg: app.globalData.kg, kg: app.globalData.kg,

1
pages/agent/agent-item/index.json

@ -1,6 +1,7 @@
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"highlight-text": "/components/highlight-text/index",
"wux-button": "/components/button/index", "wux-button": "/components/button/index",
"wux-tag": "/components/tag/index", "wux-tag": "/components/tag/index",
"wux-image": "/components/image/index" "wux-image": "/components/image/index"

4
pages/agent/agent-item/index.wxml

@ -8,7 +8,7 @@
</wux-image> </wux-image>
<view style="margin-left:24rpx;flex:1"> <view style="margin-left:24rpx;flex:1">
<view class="flex flex-justify"> <view class="flex flex-justify">
<text class="text-sg text-cut text-bold" style="max-width: {{item.isRecentlySale ? 340 : 480}}rpx">{{item.name}}</text>
<highlight-text content="{{item.name}}" keyword="{{keyword}}" class="text-sg text-cut text-bold" style="max-width:{{item.isRecentlySale?340:480}}rpx"/>
<!-- 这里等接口传一个最近代卖参数 wx:if="{{item.isRecentlySale}}"--> <!-- 这里等接口传一个最近代卖参数 wx:if="{{item.isRecentlySale}}"-->
<text wx:if="{{item.isRecentlySale}}" class="item-tag">最近代卖</text> <text wx:if="{{item.isRecentlySale}}" class="item-tag">最近代卖</text>
</view> </view>
@ -44,7 +44,7 @@
<view class="item-cate {{cateIndex == ck ? 'cate-tag' : ''}}" data-page="{{pageIndex}}" data-index="{{index}}" <view class="item-cate {{cateIndex == ck ? 'cate-tag' : ''}}" data-page="{{pageIndex}}" data-index="{{index}}"
data-ck="{{ck}}" catchtap="checkTag"> data-ck="{{ck}}" catchtap="checkTag">
<view class="flex flex-justify"> <view class="flex flex-justify">
<view class="text-sg text-black">{{cateItem.categoryName}}</view>
<highlight-text content="{{cateItem.categoryName}}" keyword="{{keyword}}" class="text-sg text-black"/>
<text class="text-sg text-black" wx:if="{{cateItem.unitPrice}}"> <text class="text-sg text-black" wx:if="{{cateItem.unitPrice}}">
<text>{{priceItem(cateItem, kg)}}</text> <text>{{priceItem(cateItem, kg)}}</text>
<text class="text-sm" <text class="text-sm"

1
pages/mall/search-list/index.json

@ -5,6 +5,7 @@
"wux-tabi": "/components/tabi/index", "wux-tabi": "/components/tabi/index",
"info-item": "/pages/moment/info-item/index", "info-item": "/pages/moment/info-item/index",
"order-item": "/pages/agent/order-item/index", "order-item": "/pages/agent/order-item/index",
"agent-item": "/pages/agent/agent-item/index",
"moment-item": "/pages/moment/moment-item/index" "moment-item": "/pages/moment/moment-item/index"
} }
} }

10
pages/moment/info-item/index.wxml

@ -13,11 +13,9 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <wux-image width="{{240}}" height="{{180}}" nuit="{{'rpx'}}" src="{{item.imageUrlList[0]}}" mode="aspectFill">
<image slot="loading" style="height:180rpx;width:240rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041"></image>
<image slot="error" style="height:180rpx;width:240rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041"></image>
</wux-image> -->
<image slot="error" style="height:180rpx;width:240rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041"></image>
<wux-image width="{{240}}" height="{{180}}" nuit="rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041" mode="aspectFill">
<image slot="loading" style="height:180rpx;width:240rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041"></image>
<image slot="error" style="height:180rpx;width:240rpx" src="https://636c-cloud1-1gjilu3e74c1a18a-1305669442.tcb.qcloud.la/d88cfa6ca3ff48a188dad034bad713f9.png?sign=4dd7451e3209d99bab37ad85a41aaa7f&t=1631758041"></image>
</wux-image>
</view> </view>
Loading…
Cancel
Save