...
|
...
|
@@ -24,7 +24,8 @@ export default function(mergeState = {}) { |
|
|
isLogin: false,
|
|
|
userHeadIco: '',
|
|
|
userName: '',
|
|
|
enableQiugou: null, // 是否启用求购,默认不启用, null: 初始状态标识,需要请求api, false: 不启用, true: 启用
|
|
|
enableQiugou: null, // 是否启用求购,默认不启用, null: 初始状态标识,需要请求api, false: 不启用, true: 启用,
|
|
|
query: {}
|
|
|
},
|
|
|
window: {
|
|
|
statusBarStatus: false,
|
...
|
...
|
@@ -140,6 +141,9 @@ export default function(mergeState = {}) { |
|
|
},
|
|
|
[Types.FETCH_XIANYU_CONFIG](state, data) {
|
|
|
state.config = data;
|
|
|
},
|
|
|
[Types.SET_QUERY](state, data) {
|
|
|
state.context.query = data;
|
|
|
}
|
|
|
},
|
|
|
getters: {
|
...
|
...
|
@@ -228,6 +232,22 @@ export default function(mergeState = {}) { |
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
|
|
|
if (window._yasEvents) {
|
|
|
window._yasEvents.forEach(e => {
|
|
|
window._yas.sendAppLogs(
|
|
|
{
|
|
|
appop: e.appop,
|
|
|
param: e.param ? JSON.stringify(e.param) : '{}',
|
|
|
},
|
|
|
asyncindx,
|
|
|
);
|
|
|
});
|
|
|
|
|
|
window._yasEvents = null;
|
|
|
}
|
|
|
} else {
|
|
|
window._yasEvents = window._yasEvents ? window._yasEvents.push({ appop, param }) : [{ appop, param }];
|
|
|
}
|
|
|
}, 300);
|
|
|
} catch (e) {
|
...
|
...
|
|