Browse Source

x:for-item => x:key

master
chenxuhui 7 years ago
parent
commit
209fdac5e6
6 changed files with 9 additions and 11 deletions
  1. +1
    -2
      pages/homePage/homePage.wxml
  2. +1
    -1
      pages/message/message.wxml
  3. +1
    -1
      pages/myCars/myCars.wxml
  4. +0
    -1
      pages/orderList/orderDetail/orderDetail.wxml
  5. +2
    -2
      pages/orderList/orderList.wxml
  6. +4
    -4
      utils/net.js

+ 1
- 2
pages/homePage/homePage.wxml View File

@ -11,11 +11,10 @@
</view> </view>
<view class="ico" catchtap='transBtnClicked' data-itemid='2'> <view class="ico" catchtap='transBtnClicked' data-itemid='2'>
<image src="/imgs/carsApply.png"></image> <image src="/imgs/carsApply.png"></image>
<text class='text'>车辆申请</text>
<text class='text'>我的车辆</text>
</view> </view>
<view class="ico" catchtap='transBtnClicked' data-itemid='3'> <view class="ico" catchtap='transBtnClicked' data-itemid='3'>
<image src="/imgs/outStore.png"></image> <image src="/imgs/outStore.png"></image>
<text class='text'>销售出库</text> <text class='text'>销售出库</text>
</view> </view>
</view> </view>

+ 1
- 1
pages/message/message.wxml View File

@ -1,6 +1,6 @@
<!--pages/message/message.wxml--> <!--pages/message/message.wxml-->
<view class='pageContainer'> <view class='pageContainer'>
<block wx:for="{{messageArr}}" wx:for-item="item">
<block wx:for="{{messageArr}}" wx:key="item">
<template is="messageTemplate" data="{{item}}" /> <template is="messageTemplate" data="{{item}}" />
</block> </block>
</view> </view>


+ 1
- 1
pages/myCars/myCars.wxml View File

@ -1,6 +1,6 @@
<!--pages/myCars/myCars.wxml--> <!--pages/myCars/myCars.wxml-->
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower"> <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower">
<block wx:for="{{carsList}}" wx:for-item="item">
<block wx:for="{{carsList}}" wx:key="item">
<template is="outStoreOrderTemplate" data="{{item}}" /> <template is="outStoreOrderTemplate" data="{{item}}" />
</block> </block>
</scroll-view> </scroll-view>


+ 0
- 1
pages/orderList/orderDetail/orderDetail.wxml View File

@ -142,7 +142,6 @@
</view> </view>
<view class='horizontallineView'></view> <view class='horizontallineView'></view>
<view class='baseitem'> <view class='baseitem'>
<text class='baseitem_key'>辅数量</text> <text class='baseitem_key'>辅数量</text>
<view class='baseitem_value'> <view class='baseitem_value'>


+ 2
- 2
pages/orderList/orderList.wxml View File

@ -9,7 +9,7 @@
<!-- 未审核 --> <!-- 未审核 -->
<swiper-item class="swiper-items1"> <swiper-item class="swiper-items1">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower"> <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="unCheckedScrollUpper" bindscrolltolower="unCheckedScrollLower">
<block wx:for="{{unCheckDataArr}}" wx:for-item="item">
<block wx:for="{{unCheckDataArr}}" wx:key="item">
<template is="outStoreOrderTemplate" data="{{item}}" /> <template is="outStoreOrderTemplate" data="{{item}}" />
</block> </block>
</scroll-view> </scroll-view>
@ -18,7 +18,7 @@
<!-- 已审核 --> <!-- 已审核 -->
<swiper-item class="swiper-items2"> <swiper-item class="swiper-items2">
<scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="checkedScrollUpper" bindscrolltolower="CheckedScrollLower"> <scroll-view scroll-x="false" scroll-y="true" class='scroll-views' bindscrolltoupper="checkedScrollUpper" bindscrolltolower="CheckedScrollLower">
<block wx:for="{{checkedDataArr}}" wx:for-item="item">
<block wx:for="{{checkedDataArr}}" wx:key="item">
<template is="outStoreOrderTemplate" data="{{item}}" /> <template is="outStoreOrderTemplate" data="{{item}}" />
</block> </block>
</scroll-view> </scroll-view>


+ 4
- 4
utils/net.js View File

@ -6,7 +6,7 @@ function request(url, params, success, fail) {
} }
//原来的请求方式 。现在首页五个接口沿用,直接在中转服务器获取数据 //原来的请求方式 。现在首页五个接口沿用,直接在中转服务器获取数据
function previousRequestLoading(method, params, successaction) {
function requestLoading(method, params, successaction) {
wx.showLoading({ wx.showLoading({
title: "加载中", title: "加载中",
}); });
@ -48,8 +48,8 @@ function previousRequestLoading(method, params, successaction) {
}) })
} }
// 新请求方式,添加中转服务器
function requestLoading(method, params, successaction) {
// 中转服务器,跳转请求
function transferRequestLoading(method, params, successaction) {
wx.showLoading({ wx.showLoading({
title: "加载中", title: "加载中",
}) })
@ -97,5 +97,5 @@ function requestLoading(method, params, successaction) {
module.exports = { module.exports = {
request: request, request: request,
requestLoading: requestLoading, requestLoading: requestLoading,
previousRequestLoading: previousRequestLoading,
transferRequestLoading: transferRequestLoading,
} }

Loading…
Cancel
Save