shareable.vue 903 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template>
  2. <view>
  3. <sudoku ref="sudoku" :sa_awardid="sa_awardid" :shareuserid="shareuserid" />
  4. </view>
  5. </template>
  6. <script>
  7. import sudoku from "./modules/sudoku"
  8. export default {
  9. components: { sudoku },
  10. data() {
  11. return {
  12. sa_awardid: 2,
  13. shareuserid: 0,
  14. }
  15. },
  16. onLoad(options) {
  17. this.sa_awardid = options.id || 2;
  18. this.shareuserid = options.userid || 0;
  19. uni.setNavigationBarTitle({
  20. title: '活动抽奖'
  21. });
  22. },
  23. onShow() {
  24. this.$Http.basic({
  25. "id": 20240514101502,
  26. "content": {
  27. "sa_awardid": this.sa_awardid,
  28. }
  29. }).then(res => {
  30. console.log("奖品详情", res)
  31. if (this.cutoff(res.msg)) return;
  32. })
  33. this.$refs.sudoku.init();
  34. }
  35. }
  36. </script>
  37. <style lang="scss" scoped></style>