Authored by 李奇

检索页修改

... ... @@ -7,6 +7,7 @@ Component({
},
methods: {
goDetail: function () {
console.log(this.properties.item.skn)
wx.navigateTo({
url: `/pages/goodsDetail/goodsDetail?productSkn=${this.properties.item.skn}`
});
... ...
... ... @@ -809,11 +809,11 @@ Page(extend({}, Actionsheet, {
is_secKill:data.data.is_secKill,
is_advance:data.data.is_advance,
sales_phrase: data.data.sales_phrase,
expect_arrival_time: data.data.expect_arrival_time,
expect_arrival_time: data.data.expect_arrival_time || '',
isInstalment:data.data.isInstalment,
pickerData:temData,
product_id: data.data.product_id,
vipPrice : data.data.vip,
vipPrice : data.data.vip || '',
storage_sum: data.data.storage_sum,
is_supplyed: data.data.is_supplyed,
bundle_type: data.data.bundle_type,
... ...
... ... @@ -152,24 +152,6 @@
<view class="seperator"></view>
<image src="{{productMeasurementImage}}" mode="widthFix"></image>
</view>
<!-- <view class="gap"></view> -->
<!--<view class="goodsInfo" style="display:{{productMeasurementImage?'block':'none'}}">
<text class="title">模特试穿</text>
<text class="subtitle">REFERENCE</text>
<view class="seperator"></view>
<scroll-view class="brandContainer" scroll-x="true">
<view class="table">
<view class="tr">
<view class="td" wx:for="{{productModelTitleList}}" wx:key="unique">{{item}}</view>
</view>
<!--<view class="tr" wx:for="{{productModelList}}" wx:key="unique">
<view class="td" wx:for="{{productModelList[index]}}" wx:key="unique">{{item}}</view>
</view>
</view>
</scroll-view>
</view>-->
<view class="goodsInfo" style="display:{{productMaterialList[0].remark?'block':'none'}}">
<text class="title">商品材质</text>
<text class="subtitle">MATERIALS</text>
... ...
... ... @@ -107,171 +107,6 @@ Page({
});
list.push(item);
});
list = [
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
}
];
this.setData({
productList: list
... ... @@ -280,175 +115,6 @@ Page({
});
let list = [
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
},
{
defaultImages: 'http://img10.static.yhbimg.com/goodsimg/2017/12/06/11/0186f48aaa66d73d10d4c2037bcadd9896.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80',
productName: '测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的测试商品名称有点长你懂得地方大幅度的',
salePriceStr: '3',
originPriceStr: '3',
showOriginPrice: true,
skn: 512587352
}
];
this.setData({
productList: list
});
},
toSearch: function () {
wx.navigateTo({
... ...
<import src ='defraudtip/defraudtip.wxml'/>
<view class="container order-page">
<form bindsubmit="formSubmit" report-submit='true'>
<!-- <view class='fraud-remind' bindtap='fraudRemindAction'>
<view class='fraud-remind-left-view'>
<view class='fraud-remind-left-view-top-view'>
<image class='fraud-remind-left-view-top-view-icon-image' src="images/tan_ic@2x.png"></image>
<view class='fraud-remind-left-view-top-view-main-title'>关于防诈骗的重要提醒</view>
</view>
<view class='fraud-remind-left-view-sub-title'>
有货不会以任何理由要求您退货退款,请您提高警惕。
</view>
</view>
<view class='fraud-remind-arrow'>></view>
</view>
<view class='fraud-remind-bottom-sep'></view> -->
<template is='fraudtip' data="{{tipimgsrc,arrowImg}}"></template>
<view id="order-nav" class="order-nav clearfix">
<view class="tap-hightlight {{index == 0 ? 'active' : ''}}" data-type="1" bindtap="onSelectChanged">
<view class="nav-tap" >全部</view>
... ... @@ -102,9 +80,6 @@
<block wx:if="{{link == 'readd'}}">
<view class="btn cancel" style="margin-left: 20rpx;" catchtap="onReaddTapped" data-order_code="{{item.order_code}}" data-tab_index='1'>再次购买</view>
</block>
<!-- <block wx:if="{{link == 'refundApply'}}">
<view class="btn cancel" catchtap="onCloseOrderTapped" data-order_code="{{item.order_code}}" data-tab_index='1'>申请退款</view> </block>-->
<block wx:if="{{link == 'buyNow'}}">
<view class="btn pay" catchtap="onBuyNowTapped" data-order_code="{{item.order_code}}">立即付款</view>
</block>
... ... @@ -118,7 +93,7 @@
<button formType="submit" class="button pay" catchtap="onConfirmTapped" data-order_code="{{item.order_code}}">确认收货</button>
</block>
<block wx:if="{{link == 'refundApply'}}"><!--link == 'refundApply'-->
<block wx:if="{{link == 'refundApply'}}">
<button class="button" formType="submit" type="default" size="{{defaultSize}}" plain='true' catchtap="onRefundApplyTapped" data-order_code="{{item.order_code}}">申请退款</button>
</block>
<block wx:if="{{link == 'afterService'}}">
... ... @@ -140,7 +115,6 @@
<picker-view wx:if="{{showReason}}"class='picker-view' value='{{value}}' bindchange='bindChange' indicator-style="height: 50px;">
<picker-view-column>
<!-- bindtap='chooseReason' data-id="{{item.id}}" data-reason="{{item.reason}}" -->
<view wx:for="{{refundReason}}" class="addr-item">{{item.reason}}</view>
</picker-view-column>
</picker-view>
... ...
... ... @@ -14,11 +14,32 @@ Page({
let query = e.detail.value;
this.setData({searched: true, query});
this.search();
this.search({query});
},
search: function (params) {
searchModel.productList(params).then(res => {
console.log(res)
if (res.code === 200) {
const keyAdapter = {
skn: 'product_skn',
salePriceStr: 'sales_price',
productName: 'product_name',
defaultImages: 'default_images'
};
let list = [];
(res.data.product_list || []).forEach(product => {
let item = {};
Object.keys(keyAdapter).forEach(key => {
item[key] = product[keyAdapter[key]]
});
list.push(item);
});
this.setData({
productList: list
});
}
});
},
orderChange: function () {
... ...
{
"navigationBarTitleText": "红人小店",
"usingComponents": {
"copyright": "/components/layout/copyright/copyright",
"product-list": "/components/product/list",
"product-list-filter": "/components/product/list-filter"
}
}
\ No newline at end of file
... ...
... ... @@ -8,12 +8,14 @@
<view class="fixed-filter">
<product-list-filter bind:sortchange="orderChange"></product-list-filter>
</view>
<block wx:if="{{productList.length == 0}}">
<view class="no-res">
<image class="no-res-img" src="images/nosearch-ic@3x.png"></image>
<view class="no-res-txt">未搜索到任何相关商品</view>
</view>
</block>
<view class="no-res" wx:if="{{productList.length == 0}}">
<image class="no-res-img" src="images/nosearch-ic@3x.png"></image>
<view class="no-res-txt">未搜索到任何相关商品</view>
</view>
<view wx:if="{{productList.length > 0}}"
class="product-list"><product-list list="{{productList}}"></product-list></view>
<view class="loadMore" wx:if="{{list.data.length > 0 && list.isLoading && !list.endReached}}">
<text class="loadText">加载中...</text>
</view>
... ... @@ -22,4 +24,5 @@
</view>
<loading wx:if="{{list.currentPage == 0 && list.isLoading}}">加载中</loading>
</view>
<copyright></copyright>
</view>
\ No newline at end of file
... ...
... ... @@ -10,6 +10,7 @@
height: 72rpx;
padding: 18rpx 30rpx;
background-color: #fff;
z-index: 10001;
}
.search-input {
... ... @@ -104,4 +105,9 @@
text-align: center;
margin-top: 21rpx;
color: #444444;
}
.product-list {
padding-top: 256rpx;
padding-bottom: 60rpx;
}
\ No newline at end of file
... ...
<!--userCenter.wxml-->
<import src="../goodsList/productListCell.wxml"/>
<scroll-view scroll-y='true' style="height: {{windowHeight}}px" bindscroll="scroll" scroll-top="{{scrollTop}}">
<view class="container">
<view class="my-page yoho-page" >
<view class="my-header">
<image src="images/mine_bg@2x.png" class="header_bg"></image>
<view class="user-info">
<button wx:if="{{!isLogin}}" class="login-btn" bindtap="{{!hasUnionID?'loginAndRegisterTapped':''}}" open-type="{{hasUnionID?'getPhoneNumber':''}}" bindgetphonenumber="getPhoneNumber">登录/注册</button>
<block wx:else>
<image src="{{userInfo.avatarUrl}}" class="user-avatar"></image>
<view class="username">{{userInfo.nickName}}</view>
<image wx:if="{{userInfo.uid}}" class='vip-icon-image' src='{{vipImg}}'></image>
</block>
</view>
<!-- <image src='images/mine_bg@2x.png' class="new_head_bg">
</image> -->
</view>
<view class="my-order" style='border-bottom:0'>
<view class="my-order-title" data-index="0" bindtap="navToOrders">
<view class='titleDesc' style='color:#444444'>我的订单</view>
<view style="color: #aeaeae;font-size:29rpx;">全部订单</view>
<image class='arrow-image' style='margin-right:20rpx' src='images/arrow_right@2x.png'></image>
</view>
<view class="order-type clearfix" style='border-bottom:0'>
<view class="type-item" data-index="1" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dfk@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_pay_num?false:true}}'>
{{infoNum.wait_pay_num>100?'99+':infoNum.wait_pay_num}}
<view class="container">
<view class="my-page yoho-page">
<view class="my-header">
<image src="images/mine_bg@2x.png" class="header_bg"></image>
<view class="user-info">
<button wx:if="{{!isLogin}}" class="login-btn" bindtap="{{!hasUnionID?'loginAndRegisterTapped':''}}"
open-type="{{hasUnionID?'getPhoneNumber':''}}" bindgetphonenumber="getPhoneNumber">登录/注册
</button>
<block wx:else>
<image src="{{userInfo.avatarUrl}}" class="user-avatar"></image>
<view class="username">{{userInfo.nickName}}</view>
<image wx:if="{{userInfo.uid}}" class='vip-icon-image' src='{{vipImg}}'></image>
</block>
</view>
<!-- <image src='images/mine_bg@2x.png' class="new_head_bg">
</image> -->
</view>
</view>
待付款
</view>
<view class="type-item" data-index="2" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dfh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_cargo_num?false:true}}'>
{{infoNum.wait_cargo_num>100?'99+':infoNum.wait_cargo_num}}
<view class="my-order" style='border-bottom:0'>
<view class="my-order-title" data-index="0" bindtap="navToOrders">
<view class='titleDesc' style='color:#444444'>我的订单</view>
<view style="color: #aeaeae;font-size:29rpx;">全部订单</view>
<image class='arrow-image' style='margin-right:20rpx' src='images/arrow_right@2x.png'></image>
</view>
<view class="order-type clearfix" style='border-bottom:0'>
<view class="type-item" data-index="1" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dfk@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_pay_num?false:true}}'>
{{infoNum.wait_pay_num>100?'99+':infoNum.wait_pay_num}}
</view>
</view>
待付款
</view>
<view class="type-item" data-index="2" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dfh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.wait_cargo_num?false:true}}'>
{{infoNum.wait_cargo_num>100?'99+':infoNum.wait_cargo_num}}
</view>
</view>
待发货
</view>
<view class="type-item" data-index="3" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dsh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.send_cargo_num?false:true}}'>
{{infoNum.send_cargo_num>100?'99+':infoNum.send_cargo_num}}
</view>
</view>
待收货
</view>
</view>
</view>
</view>
待发货
</view>
<view class="type-item" data-index="3" bindtap="navToOrders">
<view class="iconfont">
<image src="images/dd_icon_dsh@2x.png" class="icon-image"></image>
<view class='red-point' hidden='{{infoNum.send_cargo_num?false:true}}'>
{{infoNum.send_cargo_num>100?'99+':infoNum.send_cargo_num}}
<view class="view-splite clearfix">
</view>
<view class='address-back-view' style='border-top:0;border-bottom:0' bindtap='navToAddressManagerPage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/address-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">地址管理</view>
</view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class='address-back-view' style='border-top:0;border-bottom:0' catchtap='navToServiceFeedBack'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/fwyfk-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">服务与反馈</view>
</view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class="view-splite clearfix"/>
<view class='titleContainer'>
<view class='titleLine'></view>
<view class='titleDesc'> 为你优选</view>
</view>
</view>
待收货
</view>
</view>
</view>
<view class="view-splite clearfix">
</view>
<view class='address-back-view'style='border-top:0' bindtap='couponTapAction'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/yhq-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">优惠券</view>
</view>
<view class='arrow-text' wx:if='{{infoNum.coupon_num?true:false}}'>{{infoNum.coupon_num}} 张 </view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class='yohocoin-back-view'style='border-bottom:0' bindtap='yohocoinTapAction'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/yoho-coin@2x.png" class="icon-image"></image>
</view>
<view class="address-title" >有货币</view>
</view>
<view class='arrow-text' style='margin-right:20rpx'>{{infoNum.yoho_coin_num?infoNum.yoho_coin_num:0}}个</view>
</view>
<view class="view-splite clearfix"/>
<view class='address-back-view' style='border-top:0' bindtap='navToGoodsCollectPage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/like@2x.png" class="icon-image"></image>
</view>
<view class="address-title">商品收藏</view>
</view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class='address-back-view' style='border-top:0;border-bottom:0' bindtap='navToAddressManagerPage'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/address-ic@2x.png" class="icon-image"></image>
</view>
<view class="address-title">地址管理</view>
</view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class="view-splite clearfix"/>
<!--猜你喜欢列表-->
<view class="likeContainer">
<block wx:for="{{recommdData}}" wx:key="{{index}}">
<template is="productListCell"
data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal,index,f_index:3, item}}"/>
</block>
</view>
<view class='address-back-view' style='border-top:0;border-bottom:0' catchtap='navToServiceFeedBack'>
<view class='address-left-back-view'>
<view class="left-icon-image">
<image src="images/fwyfk-ic@2x.png" class="icon-image"></image>
<view class="my-service" hidden='true'>
<view class="service-type clearfix">
<text class="service-text">更多优质服务,您可以选择:\n1.关注微信服务号“ YOHOBUY有货”咨询在线客服\n2.拨打 400-889-9646 电话客服</text>
</view>
</view>
</view>
<view class="address-title">服务与反馈</view>
</view>
<image class='arrow-image' src='images/arrow_right@2x.png'></image>
</view>
<view class="view-splite clearfix"/>
<!-- 猜你喜欢标题 -->
<!-- <view class="sectionContainer">
<view class="sectionLine"></view>
<view class="sectionTitle">猜你喜欢</view>
<view class="sectionLine"></view>
</view> -->
<view class='titleContainer'>
<view class='titleLine'></view>
<view class='titleDesc'> 为你优选</view>
</view>
<!--猜你喜欢列表-->
<view class="likeContainer">
<block wx:for="{{recommdData}}" wx:key="{{index}}">
<template is="productListCell" data="{{listWidth, listHeight, listImageWidth, listImageHeight, listImageTop, listMarginHorizontal,index,f_index:3, item}}"/>
</block>
</view>
<view class="my-service" hidden='true'>
<view class="service-type clearfix">
<text class="service-text">更多优质服务,您可以选择:\n1.关注微信服务号“ YOHOBUY有货”咨询在线客服\n2.拨打 400-889-9646 电话客服</text>
</view>
</view>
</view>
</view>
</scroll-view>
<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}" isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
<import src="../../vendors/toast/wetoast.wxml" />
<template is="wetoast" data="{{...__wetoast__}}" />
\ No newline at end of file
<quickNavigation id="quickNavigation" isShowIndicator="{{isShowIndicator}}" isShowShopCart="{{true}}"
isShowMenu="{{false}}" marginBottom="{{50}}" bind:backToTop="backToTop"></quickNavigation>
<import src="../../vendors/toast/wetoast.wxml"/>
<template is="wetoast" data="{{...__wetoast__}}"/>
\ No newline at end of file
... ...