appid: "wx1362f02ae8df9e5f"
shop_order_id: "1234567890"
发送数据:
let that =this ;
wx.cloud.callFunction({
name:"jishipeisong",
data:{
$url:"tuihuanhuo",
shop_order_id: "1234567890",//商家内部系统使用的退货编号
biz_addr: { //商家退货地址,必填
"name": "张三",
"mobile": "13600000000",//仅支持输入一个联系方式
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "海珠区",
"address": "xx路 xx 号"
},
user_addr: { //用户购物时的收货地址,选填
"name": "李四",
"mobile": "13600000000",
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "海珠区",
"address": "xx路 xx 号"
},
order_path:"xxx",//退货订单在商家小程序的path
goods_list:[
{
"name":"xxx",//退货商品的名称
"url":"xxx"//退货商品图片的url
}
],
order_price:1//退货订单的价格
},
success:function (res){
console.log( res )
that.setData({
returnId:res.result.return_id
})
返回数据return_id 为空
- errMsg: "cloud.callFunction:ok"
- requestID: "1045e5da-38bb-45be-a78b-004b160cd17d"
- result: null