mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 19:05:34 +08:00
107 lines
5.7 KiB
HTML
107 lines
5.7 KiB
HTML
<!--
|
|
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<div class="tableform">
|
|
<h3>短信模板设置</h3>
|
|
<div class="division">
|
|
<form method="post" action="index.php?app=taoexlib&ctl=admin_setting&act=sample" id="form-branch">
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0" >
|
|
<tbody>
|
|
<tr>
|
|
<th><em class="c-red">*</em> 模板标题:</th>
|
|
<td colspan="3"><input type="text" name="set[taoexlib.message.sampletitle]" value="<{$setData.taoexlib_message_sampletitle}>" size="20" vtype="required"/>
|
|
<{help}><{t}>设置一个短信模板标题<{/t}><{/help}> </td>
|
|
</tr>
|
|
<tr>
|
|
<th width="10%"><em class="c-red">*</em>发送内容:</th>
|
|
<td width="20%">
|
|
<{input id="samplecontent" type="textarea" name="set[taoexlib.message.samplecontent]" rows="15" cols="25" value=$setData.taoexlib_message_samplecontent vtype='required' }>
|
|
<{help}><{t}>发送的短信内容<{/t}><{/help}> </td>
|
|
<th width="10%" style="line-height:26px;"><em class="c-red">内容参数:</em></th>
|
|
<td width="60%" align="left" style="line-height:25px;"><button type="button" id="huiyuan">会员名</button> <button type="button" id="shouhuoren">收货人</button> <button type="button" id="dingdanhao">订单号</button><br><button type="button" id="fukuanjine">付款金额</button> <button type="button" id="peisongfeiyong">配送费用</button><br><button type="button" id="dingdanyouhui">订单优惠</button> <button type="button" id="dianpumingcheng">店铺名称</button><br><button type="button" id="wuliugongsi">物流公司</button> <button type="button" id="wuliudanhao">物流单号</button><br><button type="button" id="fahuoshijian">发货时间</button> <button type="button" id="dingdanjine">订单金额</button><br><br><button type="button" id="btn-recovery"><font color="#FF0000">恢复初始模板</font></button></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="table-action"><{button label="保存" type="submit" name="submit" id="btn-branch"}> <{button label="预览" id="btn_preview" onclick="new Dialog('index.php?app=taoexlib&ctl=admin_setting&act=preview',{width:450,title:'短信预览',height:400})"}></div>
|
|
<{if $branch.branch_id}>
|
|
<input type="hidden" name="branch_id" value="<{$branch.branch_id}>">
|
|
<{/if}>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
(function(){
|
|
var huiyuan=$('huiyuan');
|
|
huiyuan.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{会员名}');
|
|
});
|
|
var shouhuoren=$('shouhuoren');
|
|
shouhuoren.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{收货人}');
|
|
});
|
|
var dingdanhao=$('dingdanhao');
|
|
dingdanhao.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{订单号}');
|
|
});
|
|
var fukuanjine=$('fukuanjine');
|
|
fukuanjine.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{付款金额}');
|
|
});
|
|
var peisongfeiyong=$('peisongfeiyong');
|
|
peisongfeiyong.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{配送费用}');
|
|
});
|
|
var dingdanyouhui=$('dingdanyouhui');
|
|
dingdanyouhui.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{订单优惠}');
|
|
});
|
|
var dianpumingcheng=$('dianpumingcheng');
|
|
dianpumingcheng.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{店铺名称}');
|
|
});
|
|
var wuliugongsi=$('wuliugongsi');
|
|
wuliugongsi.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{物流公司}');
|
|
});
|
|
var wuliudanhao=$('wuliudanhao');
|
|
wuliudanhao.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{物流单号}');
|
|
});
|
|
var fahuoshijian=$('fahuoshijian');
|
|
fahuoshijian.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{发货时间}');
|
|
});
|
|
var dingdanjine=$('dingdanjine');
|
|
dingdanjine.addEvent('click', function(){
|
|
var history=$('samplecontent').getValue();
|
|
$('samplecontent').setText(history+'{订单金额}');
|
|
});
|
|
var recovery=$('btn-recovery');
|
|
recovery.addEvent('click', function(){
|
|
$('samplecontent').set('html','{收货人},您好!您在{店铺名称}订购的商品已通过{物流公司}发出,单号:{物流单号},请当面检查后再签收,谢谢!')
|
|
});
|
|
})();
|
|
</script> |