From 66fc0e811706981c3a242b5374f93ff23bf9bb7f Mon Sep 17 00:00:00 2001 From: asd <374367073@qq.com> Date: Mon, 23 Dec 2019 16:08:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E7=BB=88=E4=BA=8E=E5=AE=8C?= =?UTF-8?q?=E4=BA=86233?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/addaddress/shuru/shuru.scss | 3 ++ components/addaddress/shuru/shuru.wxml | 2 +- components/addaddress/shuru/shuru.wxss | 4 ++ pages/addaddress/addaddress.js | 59 ++++++++++++++++++++------ pages/addaddress/addaddress.wxml | 4 +- pages/chooseaddr/chooseaddr.js | 51 ++++++++++++---------- pages/chooseaddr/chooseaddr.scss | 3 ++ pages/chooseaddr/chooseaddr.wxml | 3 ++ pages/chooseaddr/chooseaddr.wxss | 4 ++ 9 files changed, 93 insertions(+), 40 deletions(-) diff --git a/components/addaddress/shuru/shuru.scss b/components/addaddress/shuru/shuru.scss index 961ffbf..d97cf43 100644 --- a/components/addaddress/shuru/shuru.scss +++ b/components/addaddress/shuru/shuru.scss @@ -21,6 +21,9 @@ color: #999999; font-size: 28rpx; } + .shurupla1{ + color: #333333; + } .arrow { width: 14rpx; height: 25rpx; diff --git a/components/addaddress/shuru/shuru.wxml b/components/addaddress/shuru/shuru.wxml index 91863f4..656aec5 100644 --- a/components/addaddress/shuru/shuru.wxml +++ b/components/addaddress/shuru/shuru.wxml @@ -1,7 +1,7 @@ {{left}} - {{right}} + {{right}} diff --git a/components/addaddress/shuru/shuru.wxss b/components/addaddress/shuru/shuru.wxss index ed30fdb..c959761 100644 --- a/components/addaddress/shuru/shuru.wxss +++ b/components/addaddress/shuru/shuru.wxss @@ -28,6 +28,10 @@ font-size: 28rpx; } +.shuru .right .shurupla1 { + color: #333333; +} + .shuru .right .arrow { width: 14rpx; height: 25rpx; diff --git a/pages/addaddress/addaddress.js b/pages/addaddress/addaddress.js index 8a34eb8..d288956 100644 --- a/pages/addaddress/addaddress.js +++ b/pages/addaddress/addaddress.js @@ -16,7 +16,11 @@ Page({ area:["请选择","请选择","请选择"], tagDis:[false,true,true], active:0, - addressCity:"北京市 北京市 北京市" + addressCity:"请选择 请选择 请选择", + countrys:[], + countryid:44, + nowcountry:"中国", + areaid:[] }, /** @@ -37,9 +41,28 @@ Page({ console.log(this.data.arealist) }) + request({ + url: "User/getCountry", + }).then((res)=>{ + let country=[] + console.log(res,10000) + for(let i=0;i{ - // console.log(res,1452) + console.log(res,1452) this.setData({ userid:res.data.data.user_id }) @@ -181,20 +211,21 @@ Page({ }, method:"POST", data: { - address: "Wesrdtfyguhijkl", - city: "339", - consignee: "srdtfyguhijokl", - country: 1, - district: "361", + // address: this.data.canshu[4], + city: this.data.areaid[1], + consignee: this.data.canshu[0], + country: this.data.countryid, + address: this.data.canshu[4], is_default: 0, - mobile: "19953879035", - province: "338", - twon: 0, - user_id: "9", - zipcode: "271103", + mobile: this.data.canshu[1], + province: this.data.areaid[0], + twon: this.data.areaid[2], + user_id:this.data.userid, + zipcode: this.data.canshu[5], + idcard: this.data.canshu[6], } }).then((res)=>{ - // console.log(res) + console.log(res) }) }) diff --git a/pages/addaddress/addaddress.wxml b/pages/addaddress/addaddress.wxml index 527092c..c89ab6e 100644 --- a/pages/addaddress/addaddress.wxml +++ b/pages/addaddress/addaddress.wxml @@ -1,8 +1,8 @@ - - + +