From ac4e2892a68bb4ef5b35e8e2e12e76d3ec3ede35 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 07 七月 2023 18:50:11 +0800 Subject: [PATCH] 2023-07-07 --- src/views/login/index.jsx | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx index c160a08..c37fe44 100644 --- a/src/views/login/index.jsx +++ b/src/views/login/index.jsx @@ -293,12 +293,44 @@ document.getElementsByTagName('head')[0].removeChild(JSONP) },500) }) -} + } + + // handleItem = (list) => { + // let param = list.shift() + // Object.keys(param).forEach(key => { + // if (param[key] === null) { + // param[key] = '' + // } + // }) + // Api.directRequest({ + // url: 'http://bms.kresstools.cn/oc/webapi/dostar/zsn_app_bddmsdealersm_add_upt', + // method: 'post', + // data: JSON.stringify({ + // func: 'zsn_app_bddmsdealersm_add_upt', + // userid: '', + // ...param + // }) + // }).then(res => { + // if (res.status && list.length > 0) { + // this.handleItem(list) + // } else { + // console.log(list) + // } + // }) + // } componentDidMount () { // md5("/ws/location/v1/ip?callback=callbackFunction&key=key&output=jsonp secret key") // md5("/ws/location/v1/ip?callback=callbackFunction&key=BA7BZ-4QB65-LFCIA-QPDA6-4G6O7-MJB4Q&output=jsonpuThL4ZM3XOj642ksEQh76tyHFjh4") + // Api.directRequest({ + // url: 'http://bms.kresstools.cn/saas-mp-open-api/shop/shopStore/getAllStoreList', + // method: 'get' + // }).then(res => { + // if (res && res.code === 0 && res.data && res.data.length > 0) { + // this.handleItem(res.data) + // } + // }) setTimeout(() => { Api.delCacheConfig() }, 50) -- Gitblit v1.8.0