aaa
doum
2026-06-08 3ac279c9df7181c9f21d35a689a321b990b87b22
h5/utils/request.js
@@ -5,7 +5,7 @@
 * @param {string} method 请求方法
 */ 
const request = (url, data, method) => {
   if (url !== 'business/goods/listForH5' && url !== 'business/brand/list' && url !== 'business/h5/initData') {
   if (url !== 'business/goods/listForH5' && url !== 'business/brand/list') {
      uni.showLoading({ title: '请求中', mask: true });
   }
   return new Promise((resole, reject) => {
@@ -19,7 +19,8 @@
      // https://yx.ahapp.net/h5_interface/${url}
      // https://yx.ahapp.net/h5_interface_v2/${url}
      uni.request({
         url: `http://127.0.0.1:10026/${url}`,
         //url: `http://127.0.0.1:10026/${url}`,
         url: `https://yx.ahapp.net/h5_interface_v2/${url}`,
         method,
         data,
         header: {
@@ -43,7 +44,7 @@
            reject()
         },
         complete() {
            if (url !== 'business/goods/listForH5' && url !== 'business/brand/list' && url !== 'business/h5/initData') {
            if (url !== 'business/goods/listForH5' && url !== 'business/brand/list') {
               uni.hideLoading();
            }
         }