Blame view

pages/webview/webview.vue 897 Bytes
1f3f2378   起风了   我的第一次
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  <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>