1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <script>
- export default {
- globalData() {
- return {
- stystem: {},
- text: ''
- }
- },
- onLaunch: function (options) {
- console.log('app onLaunch--->'); // 公众号文章进小程序无底部导航调试,请勿删除
- console.log(options); // 公众号文章进小程序无底部导航调试,请勿删除
- console.log('<---app onLaunch'); // 公众号文章进小程序无底部导航调试,请勿删除
- if (options && options.scene) {
- this.$appScene = options.scene;
- }
- this.$store.dispatch('mallConfig/actionGetConfig');
- let _this = this;
- wx.getSystemInfo({
- success: function (response) {
- _this.$store.dispatch('gConfig/setSystemInfo', response);
- _this.$store.dispatch('iPhoneX/setIphone', response);
- }
- });
- // #ifdef MP_WEIXIN
- if (options.scene == '1011' || options.scene == '1012' || options.scene == '1013'
- || options.scene == '1047' || options.scene == '1048' || options.scene == '1049') {
- this.$store.dispatch('page/actionSetIsScanQrCode', true);
- }
- // #endif
- // #ifdef MP-ALIPAY
- if (typeof options.query != 'undefined') {
- this.$store.dispatch('page/actionSetQeury', options.query)
- }
- // #endif
- if (options.query && typeof options.query.user_id !== 'undefined') {
- this.$store.dispatch('user/setTempParentId', options.query.user_id)
- }
- },
- onShow(options) {
- console.log('app onShow--->'); // 公众号文章进小程序无底部导航调试,请勿删除
- console.log(options); // 公众号文章进小程序无底部导航调试,请勿删除
- console.log('<---app onShow'); // 公众号文章进小程序无底部导航调试,请勿删除
- if (options && options.scene) {
- this.$appScene = options.scene;
- }
- // #ifdef MP-WEIXIN
- this.$user.silentLogin();
- // #endif
- }
- };
- </script>
- <style lang="scss">
- /*每个页面公共css */
- // @import "./uni.scss";
- @import "./static/css/flex.scss";
- @import "./static/css/themeColor.scss";
- @import "./static/css/text.scss";
- @import "./static/css/image.scss";
- @import "./static/css/parse.scss";
- @import "./static/css/gift.scss";
- @import "./static/css/u-index.scss";
- @import "./static/css/border-box.scss";
- @import './static/css/iconfont.css';
- .u-goods-detail {
- background-image: url("./static/image/goods.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- min-height: 100vh;
- }
- .u-border-box {
- box-sizing: border-box;
- }
- </style>
|