temp/compiled/themes/index/user/user_head.html.php

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<style>
	.userhead{
		text-align: center;
	}
	#head{
		max-height: 300px;
		max-width: 100%;
		margin-bottom: 5px;
	}
 	.main-body{
 		padding: 10px;
 	}
	#image{max-width: 100%; max-height: 300px; display: none;}
	.rtools{
		text-align: center;
	}
	.cropper-container{
		margin-bottom: 10px;
	}    
</style>
	<body>
		<div class="header">
			<div class="header-back"></div>
			<div class="header-title">头像编辑</div>
		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<div id="page">
				<div class="mgb-10 flex-center" id="userhead">
					<img id="head" src="<?php echo $this->_var['data']['user_head']; ?>.100x100.jpg" class="wh-100">
				</div>
		
			<img id="image"  />
			<div class="flex flex-center">
				<button class="btn  mgr-10" id="js-up">上传头像</button>
			<button class="btn btn-success" id="js-save">保存头像</button>
			</div>

			<input style="display: none;" type="file" id="file" />
		</div>
		<?php echo $this->fetch('footer.html'); ?>
		<script src="/plugin/cropper/cropper.min.js"></script>
		<link href="/plugin/cropper/cropper.min.css" rel="stylesheet">
		<script>
			$(function(){
				$(document).on("click","#head",function(){
					$("#file").click();
				})
				$(document).on("click","#js-up",function(){
					$("#file").click();
				})
			
			$(document).on("click","#js-save",function(){
				console.log("js-save");
			 	var dataURL = $img.cropper("getCroppedCanvas");
			 	var imgurl = dataURL.toDataURL("image/jpeg", 0.3);  	
				$.post("/index.php?m=upload&a=Base64_user_head&ajax=1",{
后面还有 47 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。