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 @@ - - + +