Files
OMS/app/ome/view/admin/finder/shop/addon.html
2026-01-04 19:08:31 +08:00

69 lines
3.2 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" style="width: 90%;">
<div class="division">
<form method="POST" action="index.php?app=ome&ctl=admin_shop&act=saveConfig&finder_id=<{$env.get.finder_id}>&p[0]=<{$shop.shop_id}>">
<table>
<tr>
<th>是否收单:</th>
<td><{input type="select" id="order_receive" name="config[order_receive]" options=["no"=>"否","yes"=>"是","appoint"=>"指定会员收单"] value=$shop.config.order_receive}></td>
</tr>
<tr id="order-buyer-tr">
<th>指定购买人:</th>
<td><textarea class="x-input" id="order-buyer" name="config[order_buyer]" style="height: 80px;" placeholder="多个购买人请用回车符"><{$shop.config.order_buyer}></textarea></td>
</tr>
<{if $shop.node_type != 'vop'}>
<tr>
<th>减掉唯品会购物车预占:</label></th>
<td>
<select input="select" type="select" title="减掉唯品会购物车预占:" name="config[vop_cart_stock_freeze]" default="yes" required="1" helpinfo=" &nbsp;&nbsp;开启后,回写平台库存时会减掉【唯品会店铺】购物车的库存占用数量!" id="dom_el_1d5ac11" class=" x-input-select inputstyle">
<option value="no" <{if $shop.config.vop_cart_stock_freeze != 'yes'}>selected="selected"<{/if}> >关闭</option>
<option value="yes" <{if $shop.config.vop_cart_stock_freeze == 'no'}>selected="selected"<{/if}> >开启</option>
</select>
<label class="help"> &nbsp;&nbsp;<em class="red">*</em><label for="dom_el_1d5ac11">开启后,回写平台库存时会减掉【唯品会店铺】购物车的库存占用数量!</label>
</td>
</tr>
<{/if}>
</table>
<{if in_array($shop.shop_type, ["360buy","congminggou","luban","kuaishou","taobao","weimobv","vop","meituan4sg"])}>
<{include file="admin/finder/shop/addon/{$shop.shop_type}.html" app="ome"}>
<{/if}>
<div class="table-action">
<{button label="确定" class="btn-primary" type="submit"}>
</div>
</form>
</div>
</div>
<script>
(function(){
$("order_receive").addEvent("change", function(){
var val = this.value;
if (val == "appoint"){
$("order-buyer-tr").show();
} else {
$("order-buyer-tr").hide();
}
});
$("order_receive").fireEvent("change");
})();
</script>