前端-胡立永 1 week ago
parent
commit
643a895701
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      pages/index.vue

+ 13
- 1
pages/index.vue View File

@ -311,6 +311,7 @@
</template>
<script>
import { bindCode } from '@/api/order/order.js'
import {
getStaffList,
getProductList,
@ -841,6 +842,12 @@
setOpenIdKey(openId)
if (token) {
setToken(token)
if(uni.getStorageSync('inviteCode')){
bindCode({
openId : openId,
code : uni.getStorageSync('inviteCode'),
})
}
}
}
})
@ -903,7 +910,12 @@
this.getCompanionList();
},
onLoad: function() {
onLoad: function({inviteCode}) {
if(inviteCode){
uni.setStorageSync('inviteCode', inviteCode)
}
this.init()
// this.getPeopleList()
this.getProductList()


Loading…
Cancel
Save