This commit is contained in:
2019-12-24 16:32:27 +08:00
parent 68a7aea72c
commit f9ef1a34bd
34 changed files with 136 additions and 55 deletions

View File

@@ -39,7 +39,7 @@ Page({
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.onLoad()
},
/**
@@ -77,6 +77,14 @@ Page({
},
sub() {
if(this.data.list.addressList == null){
wx.showToast({
title:"请先添加地址",
icon:"none"
})
console.log(123)
return ;
}
bin.getuserid().then((res) => {
bin.request({
url: "Cart/cart3",

View File

@@ -1,5 +1,6 @@
{
"component": true,
"navigationBarTitleText": "支付",
"component": true,
"usingComponents": {
"shopinfo": "/components/orderconfirm/ordershopinfo/ordershopinfo",
"chooseway": "/components/orderconfirm/orderchooseway/orderchooseway",

View File

@@ -2,7 +2,7 @@
<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></chooseaddr>
<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>
<agree></agree>
<view class="bottom">