cxhxy/runtime/user/temp/93ed04fe573c38439d4a42fb7d368b2f.php
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

155 lines
14 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /*a:2:{s:65:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/user/view/applet/add.html";i:1700552721;s:68:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/user/view/layout/layout.html";i:1700552721;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>用户中心 - <?php echo htmlentities($web['name']); ?></title>
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
<meta name="keywords" content="<?php echo htmlentities($web['keywords']); ?>">
<meta name="description" content="<?php echo htmlentities($web['description']); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="referrer" content="never">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" href="/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.css?v=<?php echo htmlentities($version); ?>" />
<link rel="stylesheet" href="/assets/css/hema.app.css?v=<?php echo htmlentities($version); ?>" />
<script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script>
<link rel="stylesheet" href="/assets/plugins/iconfont/iconfont.css?v=<?php echo htmlentities($version); ?>">
<script src="/assets/plugins/iconfont/iconfont.js?v=<?php echo htmlentities($version); ?>"></script>
<script>
BASE_URL = "<?php echo isset($base_url) ? $base_url : ''; ?>";
STORE_URL = "<?php echo isset($store_url) ? $store_url : ''; ?>";
</script>
</head>
<body data-type="">
<div class="am-g tpl-g">
<!-- 头部 -->
<header class="tpl-header">
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-button switch-button"> <i class="iconfont iconzhedie"></i> </div>
<!-- 刷新页面 -->
<div class="am-fl tpl-header-button refresh-button"> <i class="iconfont iconshuaxin"></i> </div>
<!-- 超链接-->
<div class="am-fl tpl-header-navbar">
<ul>
<!-- 首页 -->
<li class="am-text-sm"> <a href="/"> <i class="iconfont iconshouye"></i> 网站首页 </a> </li>
<!-- 代理 -->
<li class="am-text-sm"> <?php if($user['user']['status']['value'] != 30): ?> <a
href="/index/proxy/index"> <i class="iconfont iconrenzheng"></i> 代理申请 </a> <?php else: ?>
<a href="<?php echo url('user/agentLogin'); ?>"> <i class="iconfont iconkaifangpingtai"></i> 代理中心
</a> <?php endif; ?> </li>
</ul>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<li class="am-text-sm">
<div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" data-am-dropdown-toggle>
<img src="<?php echo htmlentities($user['user']['avatar']); ?>" />
<?php echo htmlentities($user['user']['user_name']); ?>
<span class="am-icon-caret-down"></span>
</div>
<ul class="am-dropdown-content">
<li><a href="<?php echo url('setting/user'); ?>">账号信息</a></li>
<li><a href="<?php echo url('setting/renew'); ?>">修改密码</a></li>
<li><a href="/index/passport/logout">安全退出</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</header> <!-- 侧边导航栏 -->
<div class="left-sidebar dis-flex"> <?php $menus = $menus ?: []; $group = $group ?: 0; $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []?>
<!-- 一级菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">用户中心</li> <?php foreach($menus as $key=>$item): ?> <li
class="sidebar-nav-link"> <a
href="<?php echo isset($item['index']) ? url($item['index']) : 'javascript:void(0);'; ?>"
class="<?php echo !empty($item['active']) ? 'active' : ''; ?>"> <?php if((isset($item['is_svg']) && ($item['is_svg'] == true))): ?>
<svg class="icon sidebar-nav-link-logo" aria-hidden="true">
<use xlink:href="#<?php echo htmlentities($item['icon']); ?>"></use>
</svg> <?php else: ?> <i class="iconfont sidebar-nav-link-logo <?php echo htmlentities($item['icon']); ?>"
style="{isset($item.color) ? 'color:'.$item.color.';' : '' }"></i> <?php endif; ?> <?php echo htmlentities($item['name']); ?>
</a> </li> <?php endforeach; ?>
</ul> <!-- 子级菜单--> <?php if((sizeof($second) > 0)): ?> <ul class="left-sidebar-second">
<li class="sidebar-second-title"><?php echo htmlentities($menus[$group]['name']); ?></li>
<li class="sidebar-second-item"> <?php foreach($second as $key=>$item): if((!isset($item['submenu']))): ?>
<!-- 二级菜单--> <a href="<?php echo url($item['index']); ?>" class="<?php echo !empty($item['active']) ? 'active' : ''; ?>">
<?php echo htmlentities($item['name']); ?> </a> <?php else: ?>
<!-- 三级菜单-->
<div class="sidebar-third-item"> <a href="javascript:void(0);"
class="sidebar-nav-sub-title <?php echo !empty($item['active']) ? 'active' : ''; ?>"> <i
class="iconfont icongengduo"></i> <?php echo htmlentities($item['name']); ?> </a>
<ul class="sidebar-third-nav-sub"> <?php foreach($item['submenu'] as $third): ?> <li> <a
class="<?php echo !empty($third['active']) ? 'active' : ''; ?>" href="<?php echo url($third['index']); ?>">
<?php echo htmlentities($third['name']); ?> </a> </li> <?php endforeach; ?> </ul>
</div> <?php endif; ?> <?php endforeach; ?>
</li>
</ul> <?php endif; ?>
</div> <!-- 内容区域 start -->
<div class="tpl-content-wrapper <?php echo sizeof($second) == 0 ? 'no-sidebar-second' : ''; ?>"> <div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<form id="my-form" class="am-form tpl-form-line-form" method="post">
<div id="applet" class="widget-body">
<fieldset>
<div class="widget-head am-cf">
<div class="widget-title am-fl">创建小程序管理端</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">行业模板 </label>
<div class="am-u-sm-9 am-u-end">
<select v-model="selected" style="width:200px;">
<option value="">自定义模板</option>
<template v-for="(item,index) in list">
<option :value="index+1"> {{ item.name }}</option>
</template>
</select>
</div>
</div>
<div v-if="selected">
<input type="hidden" name="data[app_type]" :value="list[selected-1].app_type">
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">小程序类型</label>
<div class="am-u-sm-9 am-u-end">
<label class="am-radio-inline">
<input type="radio" name="data[shop_mode]" :value="10" v-model="shop_mode" data-am-ucheck>
单门店
</label>
<label class="am-radio-inline">
<input type="radio" name="data[shop_mode]" :value="20" v-model="shop_mode" data-am-ucheck :disabled="list[selected-1].is_many == 0">
多门店
</label>
<div class="help-block">
<small>
单门店1个小程序小程序仅可1个店面使用<br>
多门店:(连锁经营)1个小程序小程序可配置N个店面使用
</small>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">门店名称 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[shop_name]"
value="" placeholder="请输入门店名称" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">联系人 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[linkman]"
value="" placeholder="请输入联系人姓名" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">联系电话 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[phone]"
value="" placeholder="请输入联系人电话" required>
</div>
</div>
<div class="am-form-group" v-if="list[selected-1].detail">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">备注说明 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" :value="list[selected-1].detail" disabled>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">购买年限</label>
<div class="am-u-sm-9 am-u-end">
<label class="am-radio-inline" v-if="list[selected-1].trial_day">
<input type="radio" name="data[year]" :value="0" v-model="year" data-am-ucheck>
试用{{list[selected-1].trial_day}}天
</label>
<label class="am-radio-inline">
<input type="radio" name="data[year]" :value="1" v-model="year" data-am-ucheck>
一年
</label>
<label class="am-radio-inline">
<input type="radio" name="data[year]" :value="2" v-model="year" data-am-ucheck>
二年
</label>
<label class="am-radio-inline">
<input type="radio" name="data[year]" :value="3" v-model="year" data-am-ucheck>
三年
</label>
<label class="am-radio-inline">
<input type="radio" name="data[year]" :value="4" v-model="year" data-am-ucheck>
四年
</label>
<label class="am-radio-inline">
<input type="radio" name="data[year]" :value="5" v-model="year" data-am-ucheck>
五年
</label>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">支付费用 </label>
<div class="am-u-sm-9 am-u-end">
<span style="font-weight:900;color:#ff0000;" v-show="shop_mode==10">¥{{list[selected-1].buy_single[year]}}元</span>
<span style="font-weight:900;color:#ff0000;" v-show="shop_mode==20">¥{{list[selected-1].buy_many[year]}}元</span>
</div>
</div>
<!-- 表单提交按钮 -->
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary" v-show="shop_mode==10" :disabled="money < list[selected-1].buy_single[year]">
{{money < list[selected-1].buy_single[year] ? '余额不足,请先充值' : '确认购买'}}
</button>
<button type="submit" class="j-submit am-btn am-btn-secondary" v-show="shop_mode==20" :disabled="money < list[selected-1].buy_many[year]">
{{money < list[selected-1].buy_many[year] ? '余额不足,请先充值' : '确认购买'}}
</button>
</div>
</div>
</div>
<div v-else>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">
提交创建
</button>
</div>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
// 渲染页面
new Vue({
el: '#applet',
data: {
list: <?= json_encode($list) ?>,
selected:'',
shop_mode:10,
year:1,
money:<?= $money?>
}
});
$('#my-form').formPost();
});
</script>
</div>
<!-- 内容区域 end -->
</div>
<script src="/assets/plugins/layer/layer.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/jquery/jquery.form.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/amazeui/amazeui.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/hema.app.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/webuploader.html5only.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/js/art-template.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
</body>
</html>