選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

publicRequest.ts 630B

11ヶ月前
1234567891011121314151617181920212223
  1. import { stringToJson } from "@/utils/network/encryption";
  2. import { request } from "@/utils/network/request";
  3. import {getMailingAddressApi } from "@/utils/network/api.js";
  4. export const getMailingAddress = (orderId) => {
  5. var data = {
  6. orderId: orderId,
  7. };
  8. const options = {
  9. type: 2,
  10. data: data,
  11. method: "POST",
  12. showLoading: true,
  13. };
  14. return new Promise(async (resolve, reject) => {
  15. const res = await request(getMailingAddressApi, options);
  16. const data = stringToJson(res.bizContent).address;
  17. console.log("获取邮寄地址", data)
  18. resolve(data);
  19. }).catch((error) => {
  20. reject(error);
  21. });
  22. }