|
@@ -3,7 +3,7 @@
|
|
|
<template is="skeleton" wx:if="{{loading}}" />
|
|
|
<!-- 轮播图 -->
|
|
|
<swiper indicator-dots circular indicator-active-color='#333'>
|
|
|
- <swiper-item wx:for="{{files.images}}" wx:key="item.attachmentid" data-index="{{index}}" data-type='image' bindtap="viewMedias">
|
|
|
+ <swiper-item wx:for="{{files.images}}" wx:key="attachmentid" data-index="{{index}}" data-type='image' bindtap="viewMedias">
|
|
|
<van-image width="100vw" height="464rpx" fit="cover" src="{{item.cover}}" use-loading-slot use-error-slot lazy-load>
|
|
|
<van-loading slot="loading" type="spinner" size="20" vertical />
|
|
|
<text slot="error">加载失败</text>
|
|
@@ -16,7 +16,7 @@
|
|
|
{{detail.itemname}}
|
|
|
</view>
|
|
|
<view class="tags">
|
|
|
- <text wx:for="{{detail.brand}}" wx:key="item.sa_brandid">{{item.brandname}}</text>
|
|
|
+ <text wx:for="{{detail.brand}}" wx:key="sa_brandid">{{item.brandname}}</text>
|
|
|
<text wx:for="{{detail.tradefield}}" wx:key="index">{{item.tradefield}}</text>
|
|
|
</view>
|
|
|
<view class="offer">
|
|
@@ -37,7 +37,7 @@
|
|
|
选择商品
|
|
|
</view>
|
|
|
<view class="product-box">
|
|
|
- <navigator url="#" class="product {{itemno===item.itemno?'active':''}}" wx:for="{{rows}}" wx:key="item.itemno" bindtap="changeItemno" data-item="{{item}}">{{item.spec}}</navigator>
|
|
|
+ <navigator url="#" class="product {{itemno===item.itemno?'active':''}}" wx:for="{{rows}}" wx:key="itemno" bindtap="changeItemno" data-item="{{item}}">{{item.spec}}</navigator>
|
|
|
</view>
|
|
|
</view>
|
|
|
<van-tabs custom-class='tabs' title-active-color='var(--assist)' color='var(--assist)'>
|