webview.vue 897 Bytes
<template>
	<view>
		<!-- <web-view :webview-styles="webviewStyles" src="https://show.91xxt.com/2023/renshou/index.html"></web-view> -->
		<web-view :webview-styles="webviewStyles" :src="`http://show.rsxmzj.91xxt.com:81/2023/renshou/index.html?p=${t}&t=${time}&sign=${url}`"></web-view>
	</view>
</template>

<script>
	import md5 from "../../common/md5.js";
	export default {
		data() {
			return {
				url:"",
				t:0,
				time:0
			}
		},
		onLoad() {
			console.log(uni.getStorageSync("USERS_KEY"));
			this.t = uni.getStorageSync("USERS_KEY").phonenumber
			this.time = new Date().getTime();
			// Let encryptedstr CryptoJs.MD5(t + time).tostring();
			var encryptedstr = md5.hex_md5(this.t + this.time + "rszhmz@2023");
			console.log("1",this.t,this.time);
			console.log("2",encryptedstr);
			this.url = encryptedstr
		}
	}
</script>

<style>

</style>