友谊云发卡商品开发文档

分类栏目:友谊云发卡

110

注意 body标签上要加  ms-controller="myController" 

<body ms-controller="myController" class="ms-controller">

 

去点{{  }}

<style type="text/css">

.ms-controller{ visibility: hidden;}

</style>

商品单价

{{@info_goods.price}}

 

优惠

<table>

<tr>

<th>数量</th>

<th>单价</th>

</tr>

<tr ms-for="v in @info_goods.price_discount_arr">

<td>{{v[0]}}</td>

<td>{{v[1]}}</td>

</tr>

</table>

 

应付总价

{{@amount+@sms_price}}

 

购买密码

<span ms-if="@info_goods.buy_password_is==1">购买密码  <input type="password" name="buy_password" value="" placeholder="请输入购买密码"  /></span>

 

邮箱接收

<input type="email" name="email" value="" />

 

手机接收

<input type="tel" name="mobile" value="" />

 

支付方式

<?php foreach($payment as $k=>$v){?>

<label><input type="radio" name="payment_id" value="<?php echo $v['id'];?>" <?php if($k==0){ echo 'checked="checked"';}?> /><?php echo $v['title'];?><?php echo $v['name'];?></label>

<?php }?>

 

卡密数量

{{@info_goods.card_number}}
 

商户名称

{{@info_goods.seller_title}}
 

商户链接

 {{@info_goods.seller_site}}
 

 

动态联系QQ

<a target="_blank" ms-attr="{href:'http://wpa.qq.com/msgrd?v=3&uin='+@info_goods.seller_qq+'&Site=&Menu=yes'}">{{@info_goods.seller_qq}}</a>

 

商户公告

<div ms-html="@info_goods.seller_notice" " >ms-if="@info_goods.seller_notice"></div>
 

二维码
 

<img src="<?php echo U('Qrcode/index?url='.$url);?>"/>

提交支付按钮

<button type="submit">提交订单</button>

单独商品

商品名称

<?php echo $info_goods['name'];?>

 

<?php if($info_goods['buy_password_is']==1){?>

购买密码  
 

<input type="password" name="buy_password" value="" />

<?php }?>

 

商品数量

<?php echo $info_goods['card_number'];?>

 

商户名称  

<?php echo $info_goods['seller_title'];?>

 

商户链接  

<?php echo $info_goods['seller_site'];?>

 

商户联系QQ  

<?php echo $info_goods['seller_qq'];?>

 

商户公告

<?php echo wd_br($info_goods['seller_notice']);?>

商品投诉

<hr>

<div id="tousu">投诉</div>

<hr>