12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- $(function(){
-
- $("a[id^='en']").click(function() {
-
- var id=$(this).attr('data');
- $("#en"+id).attr("class",'btn-disabled');
- $("#en"+id).hide();
-
- });
-
-
- $("a[id^='templte_']").click(function() {
- var id=$(this).attr('data');
- var content=$('#content_'+id).val();
- var title=$('#title_'+id).val();
-
- $('#title').html(title);
- $('#content').html(content);
- });
-
- $("a[id^='status_']").click(function() {
- var id=$(this).attr('data');
- var a = id.split(":");
-
- easyDialog.open({
- container : {
- header : '手动确认订单状态',
- content :'确认后,为该用户加入金额:'+a[1]+'<br/>操作人:<input type="text" name="username" id="username" value="" />',
- yesFn : function(){
-
- var username=$("#username").val();
- if($("#username").val()==""){
- alert('请填写操作人名称');
- return false;
- }else{
- var url="/m/c/status";
- $.ajax({
- url:url,
- type: "post",
- cache: false,
- dataType: "json",
- data: {
- id:a[0],
- username:username
- },
- global: true,
- success: function(data){
- window.location.reload();
- },
- error:function(err){
- alert('请检查操作');
- }
- });
-
- }
- },
- noFn : true
- }
- });
-
- });
- })
|