Commit c9e85d0a by 前端

fixed

1 parent d4f3036d
......@@ -169,9 +169,9 @@ export default {
GAME.couponDetail({ couponId }).then((res) => {
if (res.code == 0) {
this.couponDetail = res.data;
this.couponDetail.denomination = (
this.couponDetail.denomination / 100
).toFixed(2);
// this.couponDetail.denomination = (
// this.couponDetail.denomination / 100
// ).toFixed(2);
}
});
},
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-31 15:41:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-02-16 15:54:18
* @LastEditTime: 2023-02-17 10:56:49
* @FilePath: \h5Demo\src\main.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -37,6 +37,12 @@ fetchConfig(!isMock).then((res) => {
if (APPID != res.appid) util.clearSessionId();
Vue.use(cfg);
window.$fetchConfig = res;
/**登录过期 重新登录 */
window.reLogin = () => {
console.log("重新登录");
util.clearSessionId();
store.dispatch("navigation");
};
window.vm = new Vue({
el: "#app",
router,
......
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-01-31 15:41:18
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-02-15 16:47:26
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-02-17 10:33:24
* @FilePath: \h5Demo\src\store\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -85,6 +85,7 @@ export default new Vuex.Store({
},
actions: {
wxLogin({ dispatch }, { code, redirectUrl, appId }) {
const locationURL = window.location.href;
ssoApi
.login({
code,
......@@ -97,7 +98,7 @@ export default new Vuex.Store({
util.setUserInfo(data);
util.setSessionId(data.sessionId);
dispatch("registerHttp", data.sessionId);
let query = window.location.href.split("/split/")[1];
let query = locationURL.split("/split/")[1];
let pageQuery = query ? decodeURIComponent(query) : "";
pageQuery = pageQuery.replace(/\|/g, "&");
let url = `${redirectUrl}#/${route}`;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!