1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- import user from './model/user'
- Vue.use(Vuex)
- const store = new Vuex.Store({
- state: {
- // #ifdef MP
- baseURL: 'http://xns.igxys.com', //请求地址配置
- // #endif
- // #ifndef MP
- baseURL: 'http://hhswx.jzrc.org.cn', //请求地址配置
- // #endif
- // baseURL: 'http://yrh.liuniu946.com', //请求地址配置
- urlFile: '/index', //项目部署所在文件夹
- loginInterceptor: false, //是否打开强制登录
- token:'',
- // #ifdef H5
- setWeiChatInfo:'',
- Spread:'',
- weichatInfo: {}, //保存微信注册信息
- weichatObj: '', //微信对象
- weichatBrowser: '' ,//当前是否为微信内置浏览器
- // #endif
- // shareData:'',//分享信息
- project_area: 0,
- sys_appid: 'hhs2022224',//系统AppID
- sys_appsecret: '2022224hhs',//系统AppSecret
- baseName: '洪湖市红十字会',
- shareDesc: '弘扬红十字精神,传播红十字观念,宣传红十字工作,这是一个汇聚爱心、救助之家力量的平台!',
- zxphone: '0716-5156511'
- },
- mutations: {
-
- // #ifdef H5
- tabbar(state,provider){
- state.tabbarindex = provider;
- },
- //保存微信信息
- setWeiChatInfo(state, provider) {
- state.weichatInfo = provider;
- },
- setSpread(state, provider) {
- state.Spread = provider;
- },
- //保存微信对象
- setWeiChatObj(state, provider) {
- state.weichatObj = provider;
- }
- // #endif
- },
- modules:{
- user
- },
- actions: {
- }
- })
- export default store
|