|
@@ -16,7 +16,7 @@
|
|
|
<p><strong>我的礼物</strong></p>
|
|
|
</van-col>
|
|
|
<van-col>
|
|
|
- <van-button round type="primary" size="small" @click="toShare">邀请好友赢大奖</van-button>
|
|
|
+ <van-button round type="primary" size="small" @click="toDraw">参加抽奖</van-button>
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
|
|
@@ -62,6 +62,7 @@
|
|
|
} from "vant";
|
|
|
import AddPresentButton from "../components/addPresentButton";
|
|
|
import {BasicFunction} from '../connector/basic-service';
|
|
|
+ import * as methods from '../connector/get-data-methods';
|
|
|
import Guide from "../components/guide";
|
|
|
|
|
|
export default {
|
|
@@ -102,13 +103,13 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- toShare() {
|
|
|
+ toDraw() {
|
|
|
Toast.loading({
|
|
|
mask: true,
|
|
|
message: '加载中...',
|
|
|
duration: 1000
|
|
|
});
|
|
|
- this.$router.push('share')
|
|
|
+ this.$router.push('draw')
|
|
|
},
|
|
|
toDetail(i) {
|
|
|
if (this.userStatus === 500) {
|
|
@@ -198,6 +199,11 @@
|
|
|
let b_a = true;
|
|
|
let h_p = false;
|
|
|
let that = this;
|
|
|
+
|
|
|
+ // let list = methods.get_present_list(userid);
|
|
|
+ // console.log('presents: ');
|
|
|
+ // console.log(list);
|
|
|
+
|
|
|
BasicFunction.get_data("smartIdentity/list?userId=" + userid, function (res) {
|
|
|
// if(res.model === undefined || res.model.length === 0) {
|
|
|
// Toast.fail('无法获取用户信息,请退出重试');
|