|
@@ -44,7 +44,7 @@
|
|
|
class="dec"
|
|
|
v-for="(pic, index) in dec_icons"
|
|
|
:key="index"
|
|
|
- @click="$router.push('verify')"
|
|
|
+ @click="Desc(index)"
|
|
|
>
|
|
|
<img :src="pic"/>
|
|
|
<p>{{dec_words[index]}}</p>
|
|
@@ -59,7 +59,7 @@
|
|
|
import {
|
|
|
Button, Row, Col,
|
|
|
Swipe, SwipeItem,
|
|
|
- NoticeBar, Toast
|
|
|
+ NoticeBar, Toast, Dialog
|
|
|
} from "vant";
|
|
|
import AddPresentButton from "../components/addPresentButton";
|
|
|
import {BasicFunction} from '../connector/basic-service';
|
|
@@ -98,7 +98,7 @@
|
|
|
'上传礼物',
|
|
|
'获得匹配',
|
|
|
'线下交换'
|
|
|
- ]
|
|
|
+ ],
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -113,12 +113,46 @@
|
|
|
toDetail(i) {
|
|
|
Toast.loading({
|
|
|
mask: true,
|
|
|
- message: '加载中...'
|
|
|
+ message: '加载中...',
|
|
|
+ duration: 1000
|
|
|
});
|
|
|
let present = this.presents[i];
|
|
|
this.$router.push({
|
|
|
path: 'giftDetail', query: {present: present}
|
|
|
});
|
|
|
+ },
|
|
|
+ Desc(i) {
|
|
|
+ switch (i) {
|
|
|
+ case 0:
|
|
|
+ Toast.loading({
|
|
|
+ mask: true,
|
|
|
+ message: '加载中...',
|
|
|
+ duration: 500
|
|
|
+ });
|
|
|
+ this.$router.push('me');
|
|
|
+ break;
|
|
|
+ case 1:
|
|
|
+ Toast.loading({
|
|
|
+ mask: true,
|
|
|
+ message: '加载中...',
|
|
|
+ duration: 500
|
|
|
+ });
|
|
|
+ this.$router.push('verify');
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ Dialog.alert({
|
|
|
+ title: '获得匹配',
|
|
|
+ message: '获得匹配后,请返回此页面,点击礼物查看匹配'
|
|
|
+ }).then(() => {
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ Dialog.alert({
|
|
|
+ title: '线下交换',
|
|
|
+ message: '请联系匹配到的同学进行线下交换,我们将提供该同学的微信号'
|
|
|
+ }).then(() => {
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|