<%@ page language="C#" autoeventwireup="true" inherits="admin_weixin_site, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title></title>
	<link id="CssName" rel="stylesheet" type="text/css" runat="server" />
	<script src="../../js/Common.js" type="text/javascript"></script>
	<script src="../../js/Color.js" type="text/javascript"></script>
</head>
<body>
	<form id="form1" runat="server">
		<table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td>
					<asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
					您现在的位置：<a href="../info.aspx">后台管理</a> >> 设置微信接口参数
				</td>
			</tr>
		</table>
		<table class="tabs" cellpadding="0" cellspacing="0" border="0" align="center">
			<tr>
				<td id="TabTitle0" class="title6" onclick="ShowTabs(0)">接口参数
				</td>
				<td id="TabTitle1" class="title5" onclick="ShowTabs(1)">海报设置
				</td>
				<td id="TabTitle2" class="title5" onclick="ShowTabs(2)">推广设置
				</td>
				<td id="TabTitle3" class="title5" onclick="ShowTabs(3)">红包设置
				</td>
				<td id="TabTitle4" class="title5" onclick="ShowTabs(4)">微信商店
				</td>
				<td id="TabTitle5" class="title5" onclick="ShowTabs(5)">接收消息
				</td>
				<td class="titleline">&nbsp;
				</td>
			</tr>
		</table>
		<table class="border" cellspacing="1" cellpadding="0" border="0" align="center">
			<tbody id="Tabs0">
				<tr>
					<td class="bqleft">AppId：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtappid" runat="server" CssClass="in1" Columns="30"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">AppSercet：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtappsercet" runat="server" CssClass="in1" Columns="50"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">Token：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txttoken" runat="server" CssClass="in1" Columns="50"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">商户编号：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtpartner" runat="server" CssClass="in1" Columns="50"></asp:TextBox>
						*公众号支付时需要填写
					</td>
				</tr>
				<tr>
					<td class="bqleft">API密钥：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtapikey" runat="server" CssClass="in1" Columns="50"></asp:TextBox>
						*公众号支付时需要填写
					</td>
				</tr>
				<tr>
					<td class="bqleft">默认用户模型：
					</td>
					<td class="bqright">
						<asp:DropDownList ID="dropUserModel" runat="server">
							<asp:ListItem Value="0">请选择用户模型</asp:ListItem>
						</asp:DropDownList>
						微信用户注册时，默认网站注册模型
					</td>
				</tr>
				<tr>
					<td class="bqleft">欢迎语句：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtwelcome" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox>
					</td>
				</tr>
			</tbody>
			<tbody id="Tabs1" style="display: none">
				<tr>
					<td class="bqleft">生成海报时提醒内容：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtcallhaibaotxt" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox><br />
						<font color="red">不需要提醒，请设置为空</font>
					</td>
				</tr>
				<tr>
					<td class="bqleft">海报背景图：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txthaibaobg" runat="server" CssClass="in1" Columns="40"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">二维码宽度：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtcodescale" runat="server" CssClass="in1" Columns="20"></asp:TextBox>
						每个小方格的宽度1-100
					</td>
				</tr>
				<tr>
					<td class="bqleft">二维码版本：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtcodeversion" runat="server" CssClass="in1" Columns="20"></asp:TextBox>
						二维码版本号1-14
					</td>
				</tr>
				<tr>
					<td class="bqleft">二维码位置坐标：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtcodexy" runat="server" CssClass="in1" Columns="20"></asp:TextBox>x坐标 y坐标（海报左上角为0,0）
					</td>
				</tr>
				<tr>
					<td class="bqleft">logo路径：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtlogo" runat="server" CssClass="in1" Columns="40"></asp:TextBox>
						用于显示到二维码上的logo图标
					</td>
				</tr>
				<tr>
					<td class="bqleft">二维码上显示logo：
					</td>
					<td class="bqright">
						<asp:RadioButtonList ID="radcodelogo" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1" Selected="True">显示</asp:ListItem>
							<asp:ListItem Value="0">不显示</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td class="bqleft">是否打印用户头像：
					</td>
					<td class="bqright">
						<asp:RadioButtonList ID="raduserface" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td class="bqleft">头像大小：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtuserfacewh" runat="server" CssClass="in1" Columns="20"></asp:TextBox>头像宽度,头像高度  如：50,50
					</td>
				</tr>
				<tr>
					<td class="bqleft">头像位置坐标：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtuserfacexy" runat="server" CssClass="in1" Columns="20"></asp:TextBox>x坐标 y坐标（海报左上角为0,0）
					</td>
				</tr>
				<tr>
					<td class="bqleft">是否打印昵称：
					</td>
					<td class="bqright">
						<asp:RadioButtonList ID="radshowtext" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1" Selected="True">是</asp:ListItem>
							<asp:ListItem Value="0">否</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td class="bqleft">昵称文字大小：
					</td>
					<td class="bqright">
						<asp:TextBox ID="textfontsize" runat="server" MaxLength="5" Width="40px"
							CssClass="in1"></asp:TextBox>磅
					</td>
				</tr>
				<tr>
					<td class="bqleft">昵称文字字体：
					</td>
					<td class="bqright">
						<asp:DropDownList ID="droptextfontname" runat="server">
						</asp:DropDownList>
					</td>
				</tr>
				<tr>
					<td class="bqleft">昵称文字颜色：
					</td>
					<td class="bqright">
						<asp:TextBox ID="textfontcolor" runat="server" MaxLength="6" Width="80px"
							onclick="rcolor(this,true)" title="选取颜色!" CssClass="in1"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">昵称文字加粗：
					</td>
					<td class="bqright">
						<asp:RadioButtonList ID="radtextbold" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="True" Selected="True">加粗</asp:ListItem>
							<asp:ListItem Value="False">常规</asp:ListItem>
						</asp:RadioButtonList>
					</td>
				</tr>
				<tr>
					<td class="bqleft">昵称文字坐标：
					</td>
					<td class="bqright">
						<asp:TextBox ID="textxy" runat="server" CssClass="in1" Columns="20"></asp:TextBox>x坐标 y坐标</td>
				</tr>
			</tbody>
			<tbody id="Tabs2" style="display: none">
				<tr>
					<td class="bqleft">注册赠送：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtregmoney" runat="server" CssClass="in1" Columns="20"></asp:TextBox>元</td>
				</tr>
				<tr>
					<td class="bqleft">发送注册赠送金额：
					</td>
					<td class="bqright">
						<asp:CheckBox ID="ckregmoneymessage" runat="server" Text="发送注册赠送金额消息" /></td>
				</tr>
				<tr>
					<td class="bqleft">发送注册赠送金额消息：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtregmoneymessageText" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox><br />
						<font color="red">当注册赠送金额大于0元时发送此消息告知用户</font></td>
				</tr>
				<tr>
					<td class="bqleft">邀请注册赠送：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtyaoqingmoney" runat="server" CssClass="in1" Columns="20"></asp:TextBox>元</td>
				</tr>
				<tr>
					<td class="bqleft">给邀请人发送消息：
					</td>
					<td class="bqright">
						<asp:CheckBox ID="ckyaoqingregmessage" runat="server" Text="被邀请人注册" /><asp:CheckBox ID="ckyaoqingregmoneymessage" runat="server" Text="邀请奖励金额" /></td>
				</tr>
				<tr>
					<td class="bqleft">被邀请人注册后消息：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtyaoqingregmessageText" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">被邀请人注册后奖励消息：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtyaoqingregmoneymessageText" runat="server" TextMode="MultiLine" Rows="4" Columns="50"></asp:TextBox><br />
						<font color="red">当邀请注册赠送金额大于0元时发送</font></td>
				</tr>
			</tbody>
			<tbody id="Tabs3" style="display: none">
				<tr>
					<td class="bqleft">证书路径：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtcertpath" runat="server" CssClass="in1" Columns="40"></asp:TextBox>如：/cert/apiclient_cert.p12</td>
				</tr>
				<tr>
					<td class="bqleft">发送者名称：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtsenderName" runat="server" CssClass="in1" Columns="30"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">红包祝福语：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtwishingWord" runat="server" CssClass="in1" Columns="30"></asp:TextBox></td>
				</tr>
			</tbody>
			<tbody id="Tabs4" style="display: none">
				<tr>
					<td class="bqleft">提成比例：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshopticheng" runat="server" CssClass="in1" Columns="50"></asp:TextBox>多个提成请用“,”隔开。<br />
						注意：<br />
						1、填写如：10,6,3,1 10即为订单金额的10%，这里不要填写%。<br />
						2、订单用户的上级用户为10%，上上级用户为6% 上三级用户为3%。<br />
						3、请按照对应关系填写提成比例。<br />
						4、订单金额为销售商品的实际金额，不包括物流等其他费用。<br />
						5、如遇其他原因导致订单失败或退货时，已支付的提成无法返回，请私下协商解决。</td>
				</tr>
				<tr>
					<td class="bqleft">提成时机：
					</td>
					<td class="bqright">
						<asp:RadioButtonList ID="radshoptichengtime" runat="server" RepeatDirection="Horizontal">
							<asp:ListItem Value="1" Selected="True">支付成功时</asp:ListItem>
							<asp:ListItem Value="2">确认收货时</asp:ListItem>
						</asp:RadioButtonList></td>
				</tr>
				<tr>
					<td class="bqleft">关于订单使用字段：
					</td>
					<td class="bqright">
						<table>
							<tr>
								<td>订单号：{OrderNum}</td>
								<td>订单用户：{UserName}</td>
								<td>收货人：{Consignee}</td>
								<td>联系电话：{Tel}</td>
							</tr>
							<tr>
								<td>收货地址：{Address}</td>
								<td>物流企业：{DeliverName}</td>
								<td>物流单号：{DeliverNumber}</td>
								<td>订单金额：{TatalMoney}</td>
							</tr>
							<tr>
								<td>商品金额：{TatalPrice}</td>
								<td>下单时间：{AddTime}</td>
								<td>销售商品：{OrderItem}</td>
								<td>销售收入：{TiChengMoney}</td>
							</tr>
							<tr>
								<td>收入时间：{TiChengTime}</td>
								<td></td>
								<td></td>
								<td></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td class="bqleft">下单提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshoporderstxt" runat="server" TextMode="MultiLine" Rows="6" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">支付提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshoppaytxt" runat="server" TextMode="MultiLine" Rows="4" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">发货提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshopfahuotxt" runat="server" TextMode="MultiLine" Rows="8" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">收货提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshopshouhuotxt" runat="server" TextMode="MultiLine" Rows="6" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">宝贝销售提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshopxiaoshoutxt" runat="server" TextMode="MultiLine" Rows="8" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">收入提醒：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtshopshourutxt" runat="server" TextMode="MultiLine" Rows="6" Columns="70"></asp:TextBox></td>
				</tr>
				<tr>
					<td class="bqleft">注意：
					</td>
					<td class="bqright">1、以上内容不需要提醒时，请删除提醒内容即可。<br />2、订单金额{TatalMoney}，是指订单总费用，包括商品金额和物流费用，用于给订单用户发送订单金额时使用<br />3、商品金额{TatalPrice}，是指用于经销商提成时计算费用,只是销售商品的实际费用。</td>
				</tr>
			</tbody>
			<tbody id="Tabs5" style="display:none">
				<tr>
					<td class="bqleft">接收消息者：
					</td>
					<td class="bqright">
						<asp:TextBox ID="txtadminopen" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox><br />一行一个接收消息账号
					</td>
				</tr>
				<tr>
					<td class="bqleft">用户注册：</td>
					<td class="bqright">
						<asp:TextBox ID="txtreceiveregmessage" runat="server" TextMode="MultiLine" Columns="50" Rows="4"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">用户下单：</td>
					<td class="bqright">
						<asp:TextBox ID="txtreceiveordermessage" runat="server" TextMode="MultiLine" Columns="50" Rows="7"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">用户支付：</td>
					<td class="bqright">
						<asp:TextBox ID="txtreceivepaymessage" runat="server" TextMode="MultiLine" Columns="50" Rows="4"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">用户收货：</td>
					<td class="bqright">
						<asp:TextBox ID="txtreceiveshouhuomessage" runat="server" TextMode="MultiLine" Columns="50" Rows="5"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td class="bqleft">注意事项：</td>
					<td class="bqright">
						如果不想接收某一项消息，请把消息内容设置为空即可！
					</td>
				</tr>
			</tbody>
			<tr>
				<td class="bqleft"></td>
				<td height="40" class="bqright" align="center">
					<asp:Button ID="btnSubmit" runat="server" Text=" 确定 " CssClass="btn radius30 pad_0_30" OnClick="btnSubmit_Click" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
