作者 梁鹏山

新增接口开发、后台功能开发

... ... @@ -13,6 +13,12 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('手机号')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
... ...
... ... @@ -13,6 +13,12 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
... ...
... ... @@ -6,6 +6,7 @@
namespace api\server;
use app\api\model\Cm0s40active0bao;
use app\api\model\User;
use EasyWeChat\Factory;
use think\Model;
... ... @@ -57,4 +58,19 @@ class Tixian extends Model
]);
}
/**
* title 记录分佣
* @var $type 订单类型:1=团购,2=限时活动
* @var $id 订单id
* @var $order 订单号
* @var $admin 管理员id
*/
public function fanxian($type, $id, $admin, $order=null){
if ($type == 2){
$active = new Cm0s40active0bao();
$info = $active->where('id', $id)->find();
}
}
}
\ No newline at end of file
... ...