提交 665a0eba authored 作者: lihuihui's avatar lihuihui

updata

上级 28318357
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</template> </template>
<script> <script>
import { Toast } from 'vant'
export default { export default {
data() { data() {
return { return {
...@@ -28,6 +29,7 @@ export default { ...@@ -28,6 +29,7 @@ export default {
methods: { methods: {
cardChange(e) { cardChange(e) {
const path = `/exam/answer?${JSON.stringify(e).replace(/":"/gi, '=').replace(/","/gi, '&').replace(/({")|("})/gi, '')}` const path = `/exam/answer?${JSON.stringify(e).replace(/":"/gi, '=').replace(/","/gi, '&').replace(/({")|("})/gi, '')}`
Toast(path)
if (this.isWeapp) { if (this.isWeapp) {
const src = encodeURIComponent(`${window.location.origin}${path}`) const src = encodeURIComponent(`${window.location.origin}${path}`)
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论