Commit 5bfb1b53 by liimin

fix(我的订单): 在请求参数中添加phone字段

从userInfo中获取phone字段并添加到订单请求参数中,确保后端能获取到用户手机号信息
1 parent 5669fc40
......@@ -38,7 +38,7 @@ Component({
const loginStatus = !wx.p.isLogin;
if (loginStatus) return;
const userInfo = wx.p.storage.get("userInfo") || {};
let { merchantId, channelSource } = userInfo;
let { merchantId, channelSource,phone } = userInfo;
const params = {
merchantId,
pageSize: 1,
......@@ -47,7 +47,7 @@ Component({
};
const orderList = this.data.orderList;
orderList.forEach((item) => {
const p = { ...params, requestType: item.requestType };
const p = { ...params, requestType: item.requestType,phone };
wx.p.api.mineApi[item.requestMethod](p).then((data) => {
if(data.total){
item.___count = data.total;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!