WEB user application layer
App. Service (' userService ', function ($HTTP) {
//read list data binding to form
Enclosing the.findall=function () {
Return the $HTTP get ('../user/the.findall. Do ');
}
Seconds kill order
App. Service (' payService ', function ($HTTP) {
//local pay
Enclosing createNative=function () {
Return $HTTP get (' pay/createNative. Do ');
}
//query pay state
Enclosing queryPayStatus=function (out_trade_no) {
Return the $HTTP get (' pay/queryPayStatus. Do? Out_trade_no='+ out_trade_no);
}
});