Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lxx_pms
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
游宗学
lxx_pms
Commits
2d0c31ed
提交
2d0c31ed
authored
6月 11, 2020
作者:
游宗学
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改!
上级
66636666
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
102 行增加
和
3 行删除
+102
-3
CustomTemplateController.class.php
.../BookingWap/Controller/CustomTemplateController.class.php
+11
-3
entrustAgreement.html
...kingWap/View/default/CustomTemplate/entrustAgreement.html
+91
-0
preordainTemplate.html
...ingWap/View/default/CustomTemplate/preordainTemplate.html
+0
-0
没有找到文件。
PHP/Application/BookingWap/Controller/CustomTemplateController.class.php
浏览文件 @
2d0c31ed
...
...
@@ -50,8 +50,12 @@ class CustomTemplateController extends BaseBookingWapController
$this
->
ajaxReturn
(
$parameter
);
}
$this
->
assign
(
'parameter'
,
$parameter
[
'data'
][
'parameter'
]);
$template_name
=
$parameter
[
'data'
][
'template_name'
]
?
$parameter
[
'data'
][
'template_name'
]
:
'preordainTemplate'
;
$this
->
display
(
$parameter
[
'data'
][
'template_name'
]);
$template_html
=
$this
->
fetch
(
$parameter
[
'data'
][
'template_name'
]);
$this
->
assign
(
'contract_id'
,
$data
[
'contract_id'
]);
$this
->
assign
(
'template_html'
,
$template_html
);
$this
->
display
(
"preordainTemplate"
);
}
/**
* @version 2018年05月16日09:22:23
...
...
@@ -97,7 +101,11 @@ class CustomTemplateController extends BaseBookingWapController
die
(
'<h1>'
.
$parameter
[
'message'
]
.
'</h1>'
);
}
$this
->
assign
(
'parameter'
,
$parameter
[
'data'
][
'parameter'
]);
$this
->
display
(
$parameter
[
'data'
][
'template_name'
]);
$template_html
=
$this
->
fetch
(
$parameter
[
'data'
][
'template_name'
]);
$this
->
assign
(
'contract_id'
,
$data
[
'contract_id'
]);
$this
->
assign
(
'template_html'
,
$template_html
);
$this
->
display
(
"entrustAgreement"
);
}
/**
...
...
PHP/Application/BookingWap/View/default/CustomTemplate/entrustAgreement.html
0 → 100644
浏览文件 @
2d0c31ed
<link
rel=
"apple-touch-icon"
href=
"__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico"
>
<link
rel=
"Shortcut Icon"
href=
"__CDN_WEIXIN__lefull-wap/build/component/common/images/favicon.ico"
type=
"image/x-icon"
>
<script
type=
"text/ecmascript"
src=
"__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible_css.js"
></script>
<script
type=
"text/ecmascript"
src=
"__CDN_WEIXIN__lefull-wap/build/lib/flexible/flexible.js"
></script>
<link
rel=
"stylesheet"
href=
"__CDN_WEIXIN__lefull-wap/build/component/common/fonts/iconfont.css"
/>
<link
rel=
"stylesheet"
href=
"__CDN_WEIXIN__lefull-wap/build/component/common/css/common.css"
/>
<link
rel=
"stylesheet"
href=
"__CDN_WEIXIN__lefull-wap/build/component/business/css/agreementCommon.css"
/>
<style>
body
{
padding-top
:
0
;
background
:
#ffffff
;
}
.conditions
{
padding-bottom
:
0
;
height
:
auto
;
}
.conditions
div
{
height
:
auto
;
}
</style>
<section
class=
"wraper"
>
<section>
<!--协议-->
<div
class=
"conditions"
>
<div>
{{$template_html}}
</div>
</div>
</section>
</section>
<input
type=
"hidden"
name=
"contract_id"
id=
"contract_id"
value=
"{{$contract_id}}"
/>
<div
class=
"md-overlay"
></div>
<script
src=
"__CDN_WEIXIN__lefull-wap/build/lib/jquery/jquery-3.2.1.min.js"
type=
"text/javascript"
rel=
"preload"
as=
"script"
></script>
<script
src=
"__CDN_WEIXIN__lefull-wap/build/component/common/js/common.js"
type=
"text/javascript"
rel=
"preload"
as=
"script"
></script>
<script
src=
"__CDN_WEIXIN__lefull-wap/build/lib/swiper/swiper.min.js"
type=
"text/javascript"
rel=
"preload"
as=
"script"
></script>
<script
src=
"__CDN_WEIXIN__lefull-wap/build/component/index/js/index.js"
type=
"text/javascript"
rel=
"preload"
as=
"script"
></script>
<script
type=
"text/javascript"
rel=
"preload"
as=
"script"
>
$
(
function
()
{
var
sta
=
"<?php echo $parameter['is_sign'];?>"
;
var
flag
=
window
.
location
.
href
.
split
(
'flag='
)[
1
];
if
(
flag
==
'renter'
&&
sta
==
0
)
{
$
(
'.ui-fixed-b'
).
show
();
$
(
'.ui-btn-green'
).
show
();
$
(
'.ui-bg-gray'
).
hide
();
}
else
if
(
sta
==
1
)
{
$
(
'.ui-fixed-b'
).
show
();
$
(
'.ui-btn-green'
).
hide
();
$
(
'.ui-bg-gray'
).
show
();
}
else
{
$
(
'.ui-fixed-b'
).
hide
();
$
(
'body'
).
css
(
'padding-bottom'
,
0
);
}
$
(
'.ui-btn-green'
).
on
(
'click'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'loading'
))
return
;
$
(
this
).
addClass
(
'loading'
);
$
(
this
).
text
(
'签约中'
);
console
.
log
(
1
)
$
.
ajax
({
url
:
'/Business/ajaxContract'
,
data
:
{
contract_id
:
$
(
'#contract_id'
).
val
(),
},
type
:
'post'
,
success
:
function
(
json
)
{
if
(
json
.
status
==
1
)
{
$
(
'.ui-btn-green'
).
hide
();
$
(
'.ui-bg-gray'
).
show
();
$
(
'.ui-error'
).
hide
();
}
else
{
$
(
'.ui-error'
).
show
();
}
},
error
:
function
(
json
)
{
$
(
'.ui-error'
).
show
();
}
})
})
})
</script>
PHP/Application/BookingWap/View/default/CustomTemplate/preordainTemplate.html
浏览文件 @
2d0c31ed
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论