doum
12 小时以前 8fd09daba5c89106b4a9aacd8d5ef9354afc93be
mini-program/App.vue
@@ -47,13 +47,27 @@
      },
      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)