mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-30 21:15:34 +08:00
48 lines
1.8 KiB
HTML
48 lines
1.8 KiB
HTML
<!--
|
|
Copyright 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">
|
|
<div class="division">
|
|
<form method="post" action="index.php?app=ome&ctl=admin_shop&act=unbind&unbind=true&shop_id=<{$shop_id}>" id="ome_shop_terminal">
|
|
确实要解除与此店铺的绑定关系吗?
|
|
<div class="table-action">
|
|
<{button class="btn-primary" type="submit" id="ome_shop_unbind" name="submit" label="确定"}>
|
|
<{button class="btn-primary" type="button" id="ome_shop_cancel" name="button" label="取消"}>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('ome_shop_terminal').store('target',{
|
|
onRequest:function(){
|
|
$('ome_shop_unbind').set('disabled', 'true');
|
|
},
|
|
onComplete:function(jsontext){
|
|
var json = Json.evaluate(jsontext);
|
|
if (typeof(json.error) != 'undefined'){
|
|
$('ome_shop_unbind').set('disabled', '');
|
|
}else{
|
|
$('ome_shop_unbind').set('disabled', 'true');
|
|
parent.finderGroup['<{$finder_id}>'].refresh.delay(400,parent.finderGroup['<{$finder_id}>']);
|
|
$('ome_shop_terminal').getParent('.dialog').retrieve('instance').close();
|
|
}
|
|
}
|
|
});
|
|
$('ome_shop_cancel').addEvent('click', function(){
|
|
$('ome_shop_terminal').getParent('.dialog').retrieve('instance').close();
|
|
});
|
|
</script>
|