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


Loading…
Cancel
Save