| | |
| | | }, |
| | | onShow:async function(options) { |
| | | this.dealRecShopUserBiz(options) |
| | | this.getBackgroundImg() |
| | | }, |
| | | onHide: function() { |
| | | console.log('App Hide') |
| | | }, |
| | | methods: { |
| | | getBackgroundImg() { |
| | | this.$u.api.getPlatformAboutUs({}) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | let obj = { |
| | | shopIntegralBg: res.data.shopIntegralBg, |
| | | userInviteBg: res.data.userInviteBg, |
| | | userShareBg: res.data.userShareBg, |
| | | centerInviteBg: res.data.centerInviteBg |
| | | } |
| | | uni.setStorageSync('backgroundImage', obj); |
| | | } |
| | | }) |
| | | }, |
| | | async dealRecShopUserBiz(options){ |
| | | console.error("启动参数",options) |
| | | if(options.query && options.query.userId){ |
| | | if(!this.userInfo || !this.userInfo.id){ |
| | | await this.$store.commit('setRecUserId',options.query.userId) |