Files
xk-client-wx/subPackages/my/myorder.vue
2024-09-19 12:51:35 +08:00

32 lines
655 B
Vue

<template>
<web-view v-if="src" @message="getMessage" ref="webview" :src="src">
</web-view>
</template>
<script>
export default {
data() {
return {
src: "",
};
},
onLoad(op) {
const userId = uni.getStorageSync("user_id");
const token = uni.getStorageSync("token_platform_id");
const storeId = uni.getStorageSync('store_id')
this.src = `https://hy.h5.ctkj88.com/#/pages/myorder/myorder?token=${token}&platform_id=${userId}&store_id=${storeId}`;
console.log(this.src, ' this.src')
},
mounted() {
console.log(this.$refs);
},
methods: {
getMessage(e) {
if (e) {}
},
},
};
</script>
<style></style>