Browse Source

no message

master
xpz2018 6 years ago
parent
commit
b51e4e6ee7
6 changed files with 12 additions and 12 deletions
  1. 2
      components/tag/index.wxss
  2. 2
      pages/mall/order-info/index.wxml
  3. 2
      pages/mall/order-info/index.wxss
  4. 4
      pages/mall/search-list/index.js
  5. 4
      pages/mall/search-list/index.wxml
  6. 10
      pages/mall/shops/index.wxml

2
components/tag/index.wxss

@ -20,7 +20,7 @@
font-size: 26rpx; font-size: 26rpx;
transition: all .3s cubic-bezier(.215,.61,.355,1); transition: all .3s cubic-bezier(.215,.61,.355,1);
opacity: 1; opacity: 1;
margin-right: 16rpx;
margin-right: 24rpx;
cursor: pointer; cursor: pointer;
white-space: nowrap white-space: nowrap
} }

2
pages/mall/order-info/index.wxml

@ -13,7 +13,7 @@
<view class="bg-white flex flex-justify" style="padding:8rpx 32rpx 0rpx 32rpx"> <view class="bg-white flex flex-justify" style="padding:8rpx 32rpx 0rpx 32rpx">
<view class="flex flex-center"> <view class="flex flex-center">
<view class="detail-price">¥{{orderInfo.price}}</view> <view class="detail-price">¥{{orderInfo.price}}</view>
<view class="text-gray" style="font-size:12px;margin-left:48rpx">库存{{orderInfo.stockNumber}}</view>
<view class="text-gray" style="font-size:12px;margin-left:48rpx">库存{{orderInfo.stockNumbe + orderInfo.unit}}</view>
</view> </view>
<view class="flex flex-center"> <view class="flex flex-center">
<view class="text-gray" style="font-size:12px;margin-right:24rpx">{{orderInfo.viewNum}} 浏览</view> <view class="text-gray" style="font-size:12px;margin-right:24rpx">{{orderInfo.viewNum}} 浏览</view>

2
pages/mall/order-info/index.wxss

@ -8,7 +8,7 @@
} }
.detail-price { .detail-price {
font-size: 14px;
font-size: 16px;
font-family: DINAlternate-Bold, DINAlternate; font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold; font-weight: bold;
color: rgba(255, 66, 43, 1); color: rgba(255, 66, 43, 1);

4
pages/mall/search-list/index.js

@ -116,7 +116,7 @@ Page({
var num = this.data.form.pageNum var num = this.data.form.pageNum
var finished = this.data.form.pageNum >= result.data.pages var finished = this.data.form.pageNum >= result.data.pages
var strList = this.data.rearchStringList var strList = this.data.rearchStringList
if(strList.indexOf(this.data.form.name) < 0){
if(!util.isEmpty(this.data.form.name) && strList.indexOf(this.data.form.name) < 0){
strList.splice(0, 0, this.data.form.name) strList.splice(0, 0, this.data.form.name)
} }
this.setData({ this.setData({
@ -128,7 +128,7 @@ Page({
}) })
} else { } else {
var strList = this.data.rearchStringList var strList = this.data.rearchStringList
if(strList.indexOf(this.data.form.name) < 0){
if(!util.isEmpty(this.data.form.name) && strList.indexOf(this.data.form.name) < 0){
strList.splice(0, 0, this.data.form.name) strList.splice(0, 0, this.data.form.name)
} }
this.setData({ this.setData({

4
pages/mall/search-list/index.wxml

@ -7,7 +7,7 @@
<view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px;"> <view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px;">
<view class="search-form" style="border-radius: 12rpx"> <view class="search-form" style="border-radius: 12rpx">
<text class="cuIcon-search" style="font-size: 12px"></text> <text class="cuIcon-search" style="font-size: 12px"></text>
<input value="{{form.name}}" focus="{{focus}}" placeholder="输入搜索的关键词" confirm-type="search" bindinput="bindSearch" bindfocus="bindFocus"></input>
<input value="{{form.name}}" focus="{{focus}}" placeholder="请输入要搜索的商品" confirm-type="search" bindinput="bindSearch" bindfocus="bindFocus"></input>
<text class="cuIcon-roundclose" hidden="{{form.name.length === 0}}" style="font-size: 17px" catchtouchstart="clearInput"></text> <text class="cuIcon-roundclose" hidden="{{form.name.length === 0}}" style="font-size: 17px" catchtouchstart="clearInput"></text>
</view> </view>
<view class="action"> <view class="action">
@ -32,7 +32,7 @@
<image class="img-empty" src="/assets/image/list_empty.png"></image> <image class="img-empty" src="/assets/image/list_empty.png"></image>
<view class="text-empty">暂无数据</view> <view class="text-empty">暂无数据</view>
</view> </view>
<scroll-view scroll-y style="height:{{height - 100}}rpx;padding: 0rpx 24rpx" wx:else bindscrolltolower="fetchTaskList">
<scroll-view scroll-y style="height: 100%;padding: 0rpx 24rpx" wx:else bindscrolltolower="fetchTaskList">
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{taskList}}" wx:key="pageIndex"> <view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{taskList}}" wx:key="pageIndex">
<view class="flex content" wx:for="{{pageItem}}" wx:key="index" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem"> <view class="flex content" wx:for="{{pageItem}}" wx:key="index" data-page="{{pageIndex}}" data-index="{{index}}" bindtap="lookItem">
<wux-image width="{{120}}" height="{{120}}" wux-class="page-icon" src="{{item.litimgUrl}}" mode="{{aspectFill}}"> <wux-image width="{{120}}" height="{{120}}" wux-class="page-icon" src="{{item.litimgUrl}}" mode="{{aspectFill}}">

10
pages/mall/shops/index.wxml

@ -8,7 +8,7 @@
<view class="load-spinner text-gray" /> <view class="load-spinner text-gray" />
<view class="text-empty" style="margin-top:48rpx">加载中...</view> <view class="text-empty" style="margin-top:48rpx">加载中...</view>
</view> </view>
<view class="flex list-empty" wx:if="{{!taskList.length && !cheapList.length}}" style="height:{{height}}rpx">
<view class="flex list-empty" wx:elif="{{!taskList.length && !cheapList.length}}" style="height:{{height}}rpx">
<image class="img-empty" src="/assets/image/list_empty.png"></image> <image class="img-empty" src="/assets/image/list_empty.png"></image>
<view class="text-empty">暂无数据</view> <view class="text-empty">暂无数据</view>
</view> </view>
@ -16,10 +16,10 @@
<view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px;"> <view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px;">
<view class="search-form" style="border-radius: 12rpx" bindtap="searchList"> <view class="search-form" style="border-radius: 12rpx" bindtap="searchList">
<text class="cuIcon-search"></text> <text class="cuIcon-search"></text>
<input type="text" disabled="true" placeholder="输入搜索的关键词" confirm-type="search"></input>
<input type="text" disabled="true" placeholder="请输入要搜索的商品" confirm-type="search"></input>
</view> </view>
</view> </view>
<scroll-view scroll-y style="height:{{height - 100}}rpx;margin-top: 100rpx;padding: 0rpx 24rpx" bindscrolltolower="fetchTaskList">
<scroll-view scroll-y style="height:100%;margin-top: 100rpx;padding: 0rpx 24rpx" bindscrolltolower="fetchTaskList">
<image src="https://image.weilanwl.com/img/4x3-1.jpg" class="swiper-image" mode="aspectFill" lazy-load="{{true}}" style="margin-top:24rpx"></image> <image src="https://image.weilanwl.com/img/4x3-1.jpg" class="swiper-image" mode="aspectFill" lazy-load="{{true}}" style="margin-top:24rpx"></image>
<view wx:if="{{cheapList.length}}"> <view wx:if="{{cheapList.length}}">
<view class="flex nav-li"> <view class="flex nav-li">
@ -41,7 +41,7 @@
<view class="page-num" style="height:100rpx">{{item.summary}}</view> <view class="page-num" style="height:100rpx">{{item.summary}}</view>
<view class="flex flex-justify" style="align-items:flex-end"> <view class="flex flex-justify" style="align-items:flex-end">
<view class="page-price">¥{{item.price}}</view> <view class="page-price">¥{{item.price}}</view>
<view class="page-stock" style="margin-bottom:6rpx">库存:{{item.stockNumber}}</view>
<view class="page-stock" style="margin-bottom:6rpx">库存:{{item.stockNumber}}{{item.unit}}</view>
<button class="cu-btn bg-red round shadow-blur page-btn">立即抢购</button> <button class="cu-btn bg-red round shadow-blur page-btn">立即抢购</button>
</view> </view>
</view> </view>
@ -69,7 +69,7 @@
<view class="page-num" style="height:100rpx">{{item.summary}}</view> <view class="page-num" style="height:100rpx">{{item.summary}}</view>
<view class="flex flex-justify" style="align-items:flex-end"> <view class="flex flex-justify" style="align-items:flex-end">
<view class="page-price">¥{{item.price}}</view> <view class="page-price">¥{{item.price}}</view>
<view class="page-stock" style="margin-bottom:6rpx">库存:{{item.stockNumber}}</view>
<view class="page-stock" style="margin-bottom:6rpx">库存:{{item.stockNumber}}{{item.unit}}</view>
<button class="cu-btn bg-red round shadow-blur page-btn">立即抢购</button> <button class="cu-btn bg-red round shadow-blur page-btn">立即抢购</button>
</view> </view>
</view> </view>

Loading…
Cancel
Save