1234567891011121314151617181920212223242526272829303132333435 |
- <script>
- import {
- getGoodsTypeObj,
- getUserDetail
- } from '@/api/common.js';
- // 腾讯地图
- // var QQMapWX = require('@/libs/qqmap-wx-jssdk.min.js');
- // var qqmapsdk = new QQMapWX({key:'KX5BZ-B64RC-RO62W-AMWAZ-VVTC3-YAFXF'});
- export default {
- onLaunch: function() {
- console.log('App Launch')
-
-
- },
- onShow: function() {
- console.log('App Show')
- // 获取商品类型字段
- getGoodsTypeObj().then(res => {
- if (res.state == 'Success') {
- uni.setStorageSync('goodsTypeObj',JSON.stringify(res.content))
- }
- })
- },
- onHide: function() {
- console.log('App Hide')
- },
- }
- </script>
- <style lang="scss">
- /*每个页面公共css */
- @import "@/uni_modules/uview-ui/index.scss";
- </style>
|