半完成

This commit is contained in:
2020-01-11 17:37:29 +08:00
parent 8e623028c4
commit 73d560e0c6
14 changed files with 158 additions and 5 deletions

View File

@@ -6,7 +6,8 @@ Page({
* 页面的初始数据
*/
data: {
list: {}
list: {},
fs:0
},
/**
@@ -122,5 +123,11 @@ Page({
})
})
},
tab(a){
console.log(a.detail.id)
this.setData({
fs:a.detail.id
})
}
})

View File

@@ -7,6 +7,8 @@
"chooseaddr": "/components/orderconfirm/orderchooseaddr/orderchooseaddr",
"orderyf": "/components/orderconfirm/orderyf/orderyf",
"agree": "/components/orderconfirm/orderagreement/orderagreement",
"bottom": "/components/orderconfirm/orderbottom/orderbottom"
"bottom": "/components/orderconfirm/orderbottom/orderbottom",
"inputs": "/components/orderconfirm/input/input",
"time":"/components/orderconfirm/time/time"
}
}

View File

@@ -1,9 +1,12 @@
<view class="orderconfirm">
<shopinfo wx:for="{{list.cartList}}" title="{{item.goods_name}}" price="{{item.goods_price}}" spec="{{item.spec_key_name?item.spec_key_name:'默认规格'}}" img="{{item.image}}"></shopinfo>
<!-- <shopinfo></shopinfo> -->
<chooseway></chooseway>
<chooseaddr name="{{list.addressList.consignee}}" addr="{{list.addressList.province? list.addressList.province + list.addressList.city + list.addressList.address:''}}" number="{{list.addressList.zipcode}}" phone="{{list.addressList.mobile}}"></chooseaddr>
<orderyf price="{{list.express_price}}"></orderyf>
<chooseway bind:tab="tab"></chooseway>
<chooseaddr wx:if="{{fs == 0}}" name="{{list.addressList.consignee}}" addr="{{list.addressList.province? list.addressList.province + list.addressList.city + list.addressList.address:''}}" number="{{list.addressList.zipcode}}" phone="{{list.addressList.mobile}}"></chooseaddr>
<orderyf wx:if="{{fs == 0}}" price="{{list.express_price}}"></orderyf>
<time wx:if="{{fs == 1}}"></time>
<inputs wx:if="{{fs == 1}}" title="提货姓名" placeholder="请输入姓名"></inputs>
<inputs wx:if="{{fs == 1}}" title="联系手机" placeholder="请输入手机号"></inputs>
<agree></agree>
<view class="bottom">
<bottom price="{{list.totalPrice.total_fee}}" bind:sub="sub"></bottom>