1 line
7.4 KiB
Plaintext
1 line
7.4 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/鲁班家具小程序/luban-mall/pages/home/home.vue?2ffd","webpack:///D:/鲁班家具小程序/luban-mall/pages/home/home.vue?8124","webpack:///D:/鲁班家具小程序/luban-mall/pages/home/home.vue?edf1","webpack:///D:/鲁班家具小程序/luban-mall/pages/home/home.vue?d7f9","uni-app:///pages/home/home.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,0F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;;;AAGnD;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;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;AAAsrB,CAAgB,orBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACM1sB;AACA,MADA,kBACA;AACA;;;AAGA,GALA;AAMA,QANA,kBAMA,EANA,EAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wDAFA,CAEA;AACA,0DAHA,CAGA;AACA,0DAJA,CAIA;AACA,sEALA,CAKA;AACA,gEANA,CAMA;AACA,oEAPA,CAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEADA;;AAGA,mBAJA,MAIA;AACA;AACA,sDADA;;AAGA;AACA;AACA,eAhBA,EAgBA,mBAhBA;AAiBA,aAnBA,MAmBA;AACA;AACA;AACA;AACA,gDADA;;AAGA;AACA;AACA,SArCA,EAqCA,mBArCA;AAsCA,OAzCA;;AA2CA,GApDA;AAqDA,aArDA,E","file":"pages/home/home.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/home/home.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./home.vue?vue&type=template&id=92bb8f34&scoped=true&\"\nvar renderjs\nimport script from \"./home.vue?vue&type=script&lang=js&\"\nexport * from \"./home.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../HBuilderX-app开发版/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 \"92bb8f34\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/home/home.vue\"\nexport default component.exports","export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=template&id=92bb8f34&scoped=true&\"","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 \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./home.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t\r\n\t</view>\r\n</template>\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tconsole.log('进入起始页面')\r\n\t\t\t// 调起登录\r\n\t\t\tuni.login({\r\n\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t// 登录\r\n\t\t\t\t\tthis.$requst.post('/api/user/login',{code:res.code}).then(res => {\r\n\t\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\t\tuni.setStorageSync('userId',res.data.account_id)\r\n\t\t\t\t\t\t\tuni.setStorageSync('token',res.data.token)//缓存token\r\n\t\t\t\t\t\t\tuni.setStorageSync('openid',res.data.openid)//缓存openid\r\n\t\t\t\t\t\t\tuni.setStorageSync('expire',res.data.expire)//缓存失效时间(时间戳格式)\r\n\t\t\t\t\t\t\tuni.setStorageSync('phone_active',res.data.phone_active)//是否授权手机号\r\n\t\t\t\t\t\t\tuni.setStorageSync('is_active',res.data.is_active)//是否授权头像和昵称\r\n\t\t\t\t\t\t\tuni.setStorageSync('invite_code',res.data.invite_code)//缓存邀请码\r\n\t\t\t\t\t\t\t// 改变商户id\r\n\t\t\t\t\t\t\tif(op.business_id){\r\n\t\t\t\t\t\t\t\tconsole.log(op.business_id,1212121)\r\n\t\t\t\t\t\t\t\tthis.$requst.post('/api/index/change-business',{business_id:op.business_id}).then(res => {\r\n\t\t\t\t\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\t\t\t\t\t// 缓存商户id\r\n\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('business_id',res.data.business_id);\r\n\t\t\t\t\t\t\t\t\t\t// 缓存是否进去开始页面\r\n\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('isHome','true');\r\n\t\t\t\t\t\t\t\t\t\tif(uni.getStorageSync('page-path-options')) {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({ // 重新进入当前页面\r\n\t\t\t\t\t\t\t\t\t\t\t\turl:uni.getStorageSync('page-path-options')\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\t\t\t\turl:'/pages/tabbar/index/index'\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},error => {})\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t// 缓存是否进去开始页面\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('isHome','true');\r\n\t\t\t\t\t\t\t\tuni.reLaunch({\r\n\t\t\t\t\t\t\t\t\turl:'/pages/tabbar/index/index'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},error => {})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n</script>\r\n<style scoped>\r\n\t\r\n</style>\r\n"],"sourceRoot":""} |