|
|
@ -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() |
|
|
|