40 lines
898 B
Vue
40 lines
898 B
Vue
<template>
|
|
<div>
|
|
<web-view :src="url"></web-view>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import {mapGetters} from 'vuex'
|
|
export default {
|
|
data () {
|
|
return {
|
|
url: ''
|
|
}
|
|
},
|
|
computed: {
|
|
...mapGetters(['user', 'provinceCode'])
|
|
// url () {
|
|
// return 'https://eshangtech.com/lottery/index.html?id=' + this.user.MEMBERSHIP_ID
|
|
// }
|
|
},
|
|
methods: {
|
|
getUrl (obj) {
|
|
switch (obj.name) {
|
|
case 'questionnarie':
|
|
this.url = 'https://eshangtech.com/questionnarie?mid=' + this.user.MEMBERSHIP_ID + '&pcode=' + obj.province + '&sid=' + obj.severpart + '&phone=' + this.user.MEMBERSHIP_MOBILEPHONE
|
|
break
|
|
default:
|
|
this.url = 'https://eshangtech.com/lottery/index.html?id=' + this.user.MEMBERSHIP_ID
|
|
break
|
|
}
|
|
// console.log(this.url)
|
|
}
|
|
},
|
|
onLoad (option) {
|
|
this.getUrl(option)
|
|
}
|
|
}
|
|
</script>
|