作者 sgj
1 个管道 的构建 通过 耗费 1 秒

sdk 收货地址添加

... ... @@ -100,12 +100,16 @@ class ShopController extends WeChatBaseController
$api[]='openAddress';
$sdk=$js->config($api, true);
$good_id=input('id');
$num=input('num');
$good=$this->GoodsModel->getGoodInfo($good_id);
$good['num']=$num;
$total_fee=$good['fee']*$num;
/*
* 获取上次的地址
*
*/
$this->assign('good',$good);
$this->assign('sdk',$sdk);
... ...
... ... @@ -115,6 +115,11 @@
}
})
})
wx.openAddress({
success: function (res) {
alert(JSON.stringify(res));
}
});
$('.address_info').click(function () {
wx.openAddress({
success: function (res) {
... ...