123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <view>
- <sudoku ref="sudoku" :sa_awardid="sa_awardid" :shareuserid="shareuserid" />
- </view>
- </template>
- <script>
- import sudoku from "./modules/sudoku"
- export default {
- components: { sudoku },
- data() {
- return {
- sa_awardid: 2,
- shareuserid: 0,
- }
- },
- onLoad(options) {
- this.sa_awardid = options.id || 2;
- this.shareuserid = options.userid || 0;
- uni.setNavigationBarTitle({
- title: '活动抽奖'
- });
- },
- onShow() {
- this.$Http.basic({
- "id": 20240514101502,
- "content": {
- "sa_awardid": this.sa_awardid,
- }
- }).then(res => {
- console.log("奖品详情", res)
- if (this.cutoff(res.msg)) return;
- })
- this.$refs.sudoku.init();
- }
- }
- </script>
- <style lang="scss" scoped></style>
|