This commit is contained in:
pplokijuhyg 2019-12-26 09:13:34 +08:00
parent 01d1215d5d
commit fa782d2a51
7 changed files with 31 additions and 16 deletions

View File

@ -1,4 +1,4 @@
<view class="search">
<image></image>
<image src="../../../utils/img/search.png"></image>
<input type="text" confirm-type="search " bindconfirm="search" placeholder="输入您要搜索的产品" />
</view>

View File

@ -20,6 +20,8 @@ Component({
}
}).then((res)=>{
console.log(res)
this.triggerEvent('shua', { bubbles: true,composed: true })
})
})
},
@ -33,6 +35,7 @@ Component({
}
}).then((res) => {
console.log(res)
this.triggerEvent('shua', { bubbles: true,composed: true })
})
})
@ -52,7 +55,11 @@ Component({
nonceStr:res.data.result.wdata.nonceStr,
package:res.data.result.wdata.package,
signType:"MD5",
paySign:res.data.result.wdata.sign
paySign:res.data.result.wdata.sign,
complete(){
this.triggerEvent('shua', { bubbles: true,composed: true })
}
})
})
})

View File

@ -98,6 +98,11 @@ Component({
} ,
receiving(){
},
shua(){
console.log(123)
this.getlist()
}
},

View File

@ -1,17 +1,17 @@
<van-tabs class="tab" swipe-threshold="5">
<van-tab title="待付款" bind:tap="todetail">
<commodity wx:for="{{WAITPAY}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}" gid="{{item.order_id}}" type="1"></commodity>
<commodity bind:shua="shua" wx:for="{{WAITPAY}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}" gid="{{item.order_id}}" type="1"></commodity>
</van-tab>
<van-tab title="待发货" bind:tap="receivings">
<commodity wx:for="{{WAITSEND}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
<commodity bind:shua="shua" wx:for="{{WAITSEND}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab>
<van-tab title="待收货" bind:tap="receivingw">
<commodity wx:for="{{WAITRECEIVE}}" wx:for-index="j" wx:key="{{j}}" type="3" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" gid="{{item.order_id}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
<commodity bind:shua="shua" wx:for="{{WAITRECEIVE}}" wx:for-index="j" wx:key="{{j}}" type="3" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" gid="{{item.order_id}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab>
<van-tab title="已完成" bind:tap="receivingw">
<commodity wx:for="{{FINISH}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
<commodity bind:shua="shua" wx:for="{{FINISH}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab>
<van-tab title="售后">
<commodity wx:for="{{AFTERSALE}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
<commodity bind:shua="shua" wx:for="{{AFTERSALE}}" wx:for-index="j" wx:key="{{j}}" data-id="{{item.order_id}}" num="{{item.goods_num}}" cprice="{{item.goods_price}}" freight="{{item.integral_money}}" goods="{{item.goods_list}}"></commodity>
</van-tab>
</van-tabs>

View File

@ -73,13 +73,14 @@
}
.reverse {
width: 23rpx;
height: 23rpx;
width: 63rpx;
height: 63rpx;
/* background-color: #97DFB4; */
margin: 0 auto;
margin-top: 20rpx;
line-height: 23rpx;
/* margin-top: 20rpx; */
line-height: 63rpx;
font-size: 46rpx;
text-align: center;
}
.num {
@ -89,10 +90,12 @@
}
.add {
width: 23rpx;
height: 23rpx;
width: 63rpx;
height: 63rpx;
/* background-color: #242424; */
margin: 0 auto;
margin-bottom: 17rpx;
line-height: 23rpx;
/* margin-bottom: 17rpx; */
font-size: 46rpx;
line-height: 63rpx;
text-align: center;
}

View File

@ -135,7 +135,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function() {
this.onLoad()
},
/**

BIN
utils/img/search.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB