You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
6.6 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/setting/notice.vue?8c63","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/setting/notice.vue?7545","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/setting/notice.vue?79d5","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/setting/notice.vue?2834","uni-app:///pages/user/setting/notice.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","computed","methods","loadData","console","uni","pushs","voice","shock"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;;;AAGrD;AACwK;AACxK,gBAAgB,+KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA4nB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;ACmBhpB;AAAA;AAAA;AAAA,eACA;EACAC,4BACA,8BACA;EACAC;IACAC;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA;gBACA;gBACA;gBACA;gBACA;gBACAC;gBACAC;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MACA;QACAA;MACA;MACA;MACA;IACA;IACAC;MACA;QACAA;MACA;MACA;MACA;IACA;IACAC;MACA;QACAA;MACA;MACA;MACA;IACA;EACA;AACA;AAAA,2B","file":"pages/user/setting/notice.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/setting/notice.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./notice.vue?vue&type=template&id=203951d2&\"\nvar renderjs\nimport script from \"./notice.vue?vue&type=script&lang=js&\"\nexport * from \"./notice.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/setting/notice.vue\"\nexport default component.exports","export * from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice.vue?vue&type=template&id=203951d2&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./notice.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view class=\"edgeInsetTop\"></view>\r\n\t\t<view class=\"cu-form-group margin-top\">\r\n\t\t\t<view class=\"title\">横幅消息通知</view>\r\n\t\t\t<switch @change=\"pushs\" :class=\"user.pushs?'checked':''\" :checked=\"user.pushs?true:false\"/>\r\n\t\t</view>\r\n\t\t<view class=\"cu-form-group margin-top\">\r\n\t\t\t<view class=\"title\">系统声音</view>\r\n\t\t\t<switch @change=\"voice\" :class=\"user.voice?'checked':''\" :checked=\"user.voice?true:false\"/>\r\n\t\t</view>\r\n\t\t<view class=\"cu-form-group \">\r\n\t\t\t<view class=\"title\">系统震动</view>\r\n\t\t\t<switch @change=\"shock\" :class=\"user.shock?'checked':''\" :checked=\"user.shock?true:false\"/>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport { mapState } from 'vuex';\r\n\texport default {\r\n\t\tcomputed: {\r\n\t\t\t...mapState(['user'])\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync loadData(data) {\r\n\t\t\t\t// this.$api.post({\r\n\t\t\t\t// \turl: '/wanlshop/user/profile', \r\n\t\t\t\t// \tdata: data\r\n\t\t\t\t// });\r\n\t\t\t\tconsole.log('需要修改Fastadmin User数据表,原生版本暂不可以同步');\r\n\t\t\t\tuni.setStorageSync(\"wanlshop:user\", this.$store.state.user);\r\n\t\t\t},\r\n\t\t\tpushs(e) {\r\n\t\t\t\tlet data = {\r\n\t\t\t\t\tpushs: e.target.value\r\n\t\t\t\t};\r\n\t\t\t\tthis.$store.commit('user/setUserInfo', data);\r\n\t\t\t\tthis.loadData(data); // 提交服务器\r\n\t\t\t},\r\n\t\t\tvoice(e) {\r\n\t\t\t\tlet data = {\r\n\t\t\t\t\tvoice: e.target.value\r\n\t\t\t\t};\r\n\t\t\t\tthis.$store.commit('user/setUserInfo', data);\r\n\t\t\t\tthis.loadData(data);\r\n\t\t\t},\r\n\t\t\tshock(e) {\r\n\t\t\t\tlet data = {\r\n\t\t\t\t\tshock: e.target.value\r\n\t\t\t\t};\r\n\t\t\t\tthis.$store.commit('user/setUserInfo', data);\r\n\t\t\t\tthis.loadData(data);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n</style>\r\n"],"sourceRoot":""}