1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <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: 0,
- shareuserid: 0,
- detail: {},
- }
- },
- onLoad(options) {
- this.sa_awardid = options.id || 0;
- 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.detail = res.data;
- this.$refs.sudoku.init();
- })
- },
- }
- </script>
- <style lang="scss" scoped></style>
|