{"version":3,"file":"/pc/goods/js/detailzb.js.map","sources":["/pc/goods/js/detailzb.js"],"sourcesContent":["/**\n * Created by qianzhiyuan on 2016/6/6.\n */\n define([\"pcbase\",\"ko\",\"bootstrap\",\"galert\",\"game\",\"goods/js/detail_data\",\"goods/js/detailzb_data\",\"dao\",\"strhelp\",\"boxer\",\"login\",\"dataAccess\",\"router\",\"qrcode\",\"api\",\"orderGoodsTypeConfig\",\"SuperSlide\",\"share\"],function (pcbase,ko,bootstrap,galert,game,detail_data,detailzb_data,dao,strhelp,boxer,login,dataAccess,router,qrcode,api,orderGoodsTypeConfig,SuperSlide,share){\n return pcbase.extend(function() {\n \"use strict\";\n //声明页面配置\n var my = this;\n var goodsType = orderGoodsTypeConfig.goodsType;\n this.init = function(){\n this.needLogin =false;\n this.pageSelector = \".page-goods-detailzb\";\n this.model = {\n pDetail:ko.observable(\"\"),//商品描述\n createTime:ko.observable(\"\"),//发布时间\n toastText:ko.observable(\"\"),//toast文字\n updateTime:ko.observable(\"\"),//更新时间\n availQty:ko.observable(\"\"),//库存\n showRealName:ko.observable('realName'),//控制实名浮层显示\n gameName:ko.observable(\"\"),//游戏名\n deliverMode:ko.observable(\"\"),//发货方式\n sBookId:ko.observable(\"\"),//担保交易新增\n gameID:ko.observable(\"\"),//担保交易新增\n inTradeTime:ko.observable(),//是否在交易时间\n btnInTradeTime:ko.observable(false),//是否禁用按钮\n tradeTime:ko.observable(\"\"),//交易时间\n selreason: ko.observable(\"\"),//选中原因\n reasonList: ko.observable([]),//下架原因列表\n area_id: ko.observable(\"\"),\n group_id: ko.observable(\"\"),\n receiveAreaList: ko.observable([]),\n hasCoupon: ko.observable(\"\"),\n yhprice: ko.observable(\"\"),\n btnbuy: ko.observable(\"\"),//判断是否有购买按钮\n pub_time_area: ko.observable(\"\"),\n pub_left_seconds: ko.observable(\"\"),\n bottom_area_operation: ko.observableArray([]),//操作按钮\n bottom_area_operation_h5: ko.observableArray([]),//操作按钮\n seller_credit_level: ko.observable(\"\"),\n seller_credit_level_h5: ko.observable(\"\"),\n seller_nickname: ko.observable(\"\"),\n timesBind:ko.observable(false),\n imageId: ko.observable(\"\"),\n page: ko.observable(1),\n jumpNum: ko.observable(''),\n s_book_id: ko.observable(''),\n sendPhone: ko.observable(''),\n arrayPush: ko.observable([]),\n loginUserId: ko.observable(''),\n comType: ko.observable(''),\n isShow: ko.observable(false),\n comment_id:ko.observable(''),\n detecomid:ko.observable(''),\n deletype:ko.observable(''),\n nick_name: ko.observable(''),\n is_area_trans:ko.observable(''),\n \n to_nick_name: ko.observable(''),\n contentHtml: ko.observable(''),\n good_type_name: ko.observable(''),\n gameId: ko.observable(''),\n areaId: ko.observable(''),\n groupId: ko.observable(''),\n gamename: ko.observable(''),\n imgUrl:ko.observable(''),\n totalPage: ko.observable(''),\n // favoriteFlag:ko.observable(true), //收藏\n is_favorite:ko.observable(\"\"), //收藏\n favorite_flag:ko.observable(\"\"), //新接口收藏\n user_b_uid:ko.observable(),\n seller_b_uid:ko.observable(), //卖家的uid\n checkflag:ko.observable(\"true\"), //卖家的uid\n nowIndex:ko.observable(\"\"),\n goods_title: ko.observable(''),\n p_name: ko.observable(''),\n goods_type : ko.observable('10'),\n game_id: ko.observable(''),\n game_name:ko.observable(''),\n goods_type_name:ko.observable(''),\n price:ko.observable(''),\n goods_sub_title:ko.observable(''),\n favorite_cnt:ko.observable(''),//收藏数\n view_cnt:ko.observable(''),//访问数\n state:ko.observable(''),//状态\n state_desc:ko.observable(''),//状态中文名\n p_offshelf_time:ko.observable(''),//下架时间\n goods_main_detail: ko.observableArray([]), //商品详情列表\n goods_more_detail: ko.observable(''), //更多商品详情\\\n image_list: ko.observableArray([]), //更多商品详情\n picList: ko.observableArray([]), //更多图片\n //commentList: ko.observableArray([{\"nick_name\":\"\",\"comment\":\"\",\"create_time\":\"\",\"comment_id\":\"\"}]), //商品详情列表\n commentList: ko.observableArray([]), //商品详情列表\n commentTotalSize:ko.observable(0),\n displayAcc : ko.observable(\"\"),\n book_id : ko.observable(\"\"), \n s_mid : ko.observable(\"\"),//卖家聊天id\n s_b_uid : ko.observable(\"\"),//卖家商品id\n hadNewUserCouponList: ko.observable(false),\n gameTenance:ko.observable(false),//游戏是否维护\n gameTenanceMemo:ko.observable(''),//游戏是否维护描述文字\n\n \n guaranteList:ko.observableArray([\n {\n text:\"推荐价格\",\n name:\"di\",\n key:\"is_best_proportion\",\n tips:\"推荐价格:推荐价格游戏币\"\n },\n {\n text:\"闪电发货\",\n name:\"kuai\",\n key:\"is_quick\",\n tips:\"闪电发货:秒发秒到\"\n },\n {\n text:\"区服互通\",\n name:\"tong\",\n key:\"is_area_trans\",\n tips:\"\"\n },\n {\n text:\"卖家包邮\",\n name:\"mian\",\n key:\"is_free_post\",\n tips:\"卖家包邮:邮寄的5%手续费由卖家承担\"\n },\n {\n text:\"无货赔付\",\n name:\"pei\",\n key:\"is_support_compensation\",\n tips:\"该类商品,若因卖家原因取消交易,将赔偿买家10元,并扣除卖家信用分。\"\n },\n {\n text:\"有保障服务\",\n name:\"support-guarantee\",\n key:\"is_accept_insurance\",\n tips:\"已购买保障服务
成交后若30天内卖家原因商品被回收、被找回、被封号,买家可申请理赔。\"\n },\n {\n text:\"无保障服务\",\n name:\"accept-guarantee\",\n key:\"is_support_insurance\",\n tips:\"可自主购买保障服务
购买服务后因卖家原因商品被回收、被找回、被封号,买家可申请理赔。\"\n }\n ]),\n isGuarante: ko.observable(\"\"),\n realList:ko.observableArray([]),\n isTong: ko.observable(true),\n popName: ko.observable(\"\"),\n tipsbox: ko.observable(\"\"),\n insureTime: ko.observable(30),\n equmentImg: ko.observable(\"\"),\n shareUrl: ko.observable(\"\"),//分享地址\n openJsIm: ko.observable(true), //开启寄售im\n item_type: ko.observable(\"\"),//道具类型\n item_type_name: ko.observable(\"\"),//道具类型名称\n itemTypeText4ptips: ko.observable(''),//道具类型ptips里文字\n showTips: function (data, e, types) { //商品列表标题鼠标hover浮层\n var el = $(e.currentTarget);\n var left = el.offset().left - el.parents(\".guarante\").offset().left -4;\n //var popover = el.parent().siblings('.popTips');\n var tips = '';\n if (types == 'tong') {\n var crossArea = el.attr(\"crossArea\");\n if (crossArea == 1) {\n var transregional_info = my.model.receiveAreaList();\n my.model.showArea(transregional_info, el);\n } else {\n my.model.getReceiveAreaList(el)\n }\n my.model.isTong(false);\n\n } else {\n my.model.popName(types);\n if (data.key ==\"is_accept_insurance\"){\n data.tips = data.tips.replace(/\\d+/g,my.model.insureTime());\n }\n my.model.tipsbox(data.tips);\n my.model.isTong(true);\n el.parent(\".bztype\").siblings(\".contips\").show().find(\".tipsbox .iconbg\").css({'left': left}).show();\n }\n },\n showTipsDb: function (data, e, types) { //商品列表标题鼠标hover浮层\n var el = $(e.currentTarget);\n var left = el.offset().left - el.parents(\".guarante\").offset().left - 126;\n var popover = el.find('.contips');\n if (data.key ==\"is_accept_insurance\"){\n data.tips = data.tips.replace(/\\d+/g,my.model.insureTime());\n }\n popover.find('.boxtext').html(data.tips);\n $(\".guarante .popover\").hide();\n popover.css({'left': left}).show();\n },\n hideTips:function(data,e){\n $(\".contips\").hide();\n },\n getGoodsList: function (gameId,goodType,areaId,groupId,keyword,refer,gameOs,operatorId,tradeMode) {\n return strhelp.getGoodsListUrl(gameId,goodType,areaId,groupId,keyword,refer,gameOs,operatorId,tradeMode);\n },\n getGoodsListByItemType: function (gameId,goodType,itemType,areaId,groupId,keyword,refer,gameOs,operatorId,tradeMode) {\n return strhelp.getGoodsListUrl(gameId,goodType,areaId,groupId,keyword,refer,gameOs,operatorId,tradeMode,null,null,itemType);\n },\n showArea:function(divHtmlTxt){\n var html = \"\";\n var el = $(\".guarante .bztype .tong\");\n var obj = JSON.parse(divHtmlTxt);\n var allLength = obj.length-1;\n var popName = my.model.popName();\n var left = el.offset().left - el.parents(\".guarante\").offset().left -4;\n var temp=[];\n $.each(obj,function(index, el) {\n temp.push(el.group_name);\n });\n html= temp.join('/');\n var contentHtml =\n \"
\"\n +\"

购买下列任意区服的商品都可在当前选择的区服中收到:

\"\n + html+\n \"
\";\n\n my.model.tipsbox(contentHtml);\n el.parent(\".bztype\").siblings(\".contips\").find(\".tipsbox .iconbg\").css({'left': left}).show();\n\n },\n // 获取支持跨区区服列表\n getReceiveAreaList: function(el){\n var self = this;\n var el = $(\".guarante .bztype .tong\");\n var goods_type = my.model.goods_type();\n var game_id = my.model.game_id();\n var area_id = my.model.area_id();\n var group_id = my.model.group_id();\n $.ajax({\n type: \"GET\",\n url: \"/gate/frontconfigapi\",\n data: {\n \"method\": \"getgameareagrouptransregionallist\",\n \"params\": JSON.stringify({\n \"game_id\": game_id,\n \"area_id\": area_id,\n \"group_id\": group_id\n })\n },\n success: function(resp) {\n if (resp.return_code == 0 && resp.data) {\n var transregional_info = JSON.stringify(resp.data.transregional_info);\n my.model.receiveAreaList(transregional_info);\n my.model.showArea(transregional_info);\n el.attr(\"crossArea\",1);\n } else if (resp.return_code !== 0) {\n galert(resp.return_message);\n }\n },\n error:function(data){\n console.log(data)\n }\n });\n },\n queryCoupons: function(price){\n var self = this;\n // 显示加载提示符\n var goods_type = my.model.goods_type(); //服务端只处理 goods_type = 9 等参数\n var game_id = my.model.game_id();\n $.ajax({\n type: \"GET\",\n url: \"/gatew/frontconfigapi\",\n data: {\n \"method\": \"queryCoupons\",\n \"params\": JSON.stringify({\n \"amount\": Number(price),\n \"game_id\": game_id,\n \"goods_type\": goods_type,\n })\n },\n success: function(resp) {\n if (resp.return_code == 0 && resp.data && resp.data.available) {\n if(resp.data.available.length > 0){\n my.model.hasCoupon(true);\n var list = resp.data.available;\n my.model.getNewCouponList(list)\n list.sort(function (a,b) {\n return -(a.discount -b.discount)\n })\n my.model.yhprice(Number((my.model.price() - list[0].discount/100) > 0 ? (my.model.price() - list[0].discount/100) : 0).toFixed(2));\n }else{\n my.model.hasCoupon(false);\n }\n } else if (resp.return_code !== 0) {\n galert(resp.return_message);\n }\n },\n error:function(data){\n // 隐藏加载提示符\n console.log(data)\n }\n });\n },\n //获取新人优惠券信息\n getNewCouponList: function(list){\n var self = this;\n var params={\n method:\"GetVersion\",\n params:JSON.stringify({\n \"object_id\":'new_users_coupon_config'\n })\n };\n\n $.ajax( \"/gate/frontconfigapi\",{\n data:params,\n success: function(response){\n var data = response.data;\n if (response.return_code === 0) {\n data = response.data.memo.new_user_coupons\n for(var i = 0; i < data.length; i++) {\n if(list) {\n for(var j = 0; j < list.length; j++) {\n if(list[j].catId == data[i].catId) {\n // if(true) {\n my.model.hadNewUserCouponList(true)\n break\n }\n }\n }else {\n if((data[i].gameAppIds == my.model.game_id() || data[i].gameAppIds == -1) && data[i].minamount/100 <= my.model.price()) {\n var itemTypesList = data[i].itemTypes.split(\",\")\n for(var k = 0; k < itemTypesList.length; k++) {\n if(itemTypesList[k] == my.model.goods_type()) {\n my.model.hadNewUserCouponList(true)\n break\n }\n }\n }\n if(my.model.hadNewUserCouponList()) {\n break\n }\n }\n }\n }\n }\n });\n },\n closeRealName: function(){\n my.model.showRealName('completeRealName');\n window.open('/pc/my/realName.html',\"_blank\");\n },\n //判断是否实名\n showRealNameConfirm: function(){\n //查询是否实名\n var query_params = {\n };\n $.ajax(api.realName.getStatus, {\n data: query_params,\n success: function (response) {\n if (response.return_code == 0) {\n if (response.data.realNameStatus == 0) {//未实名,弹提示浮层\n my.model.showRealName('realName');\n $('#modal-realname').modal();\n } else {\n my.model.contact();\n }\n } else {\n galert(response.return_message);\n }\n },\n error: function () {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n contact: function(){\n var self = this;\n var callbackAfterLogin = function(){\n var supportCallback = function(){\n var openJsIm = my.model.openJsIm();\n if (openJsIm == true){\n my.pageInf.gotoJsIM({\n book_id:my.model.book_id(),\n goods_type:my.model.goods_type()\n });\n } else {\n my.pageInf.gotoGchat('product',{\n book_id:my.model.book_id(),\n s_book_id:my.model.s_book_id(),\n title:my.model.goods_title(),\n picture_url:my.model.image_list()[0].url,\n amount:my.model.price(),\n matrix_name:my.model.goods_sub_title(),\n game_id:my.model.game_id(),\n b_mid:dataAccess.getCookie(\"userMid\"),\n s_mid:my.model.s_mid(),\n b_b_uid:dataAccess.getCookie(\"b_uid\"),\n s_b_uid:my.model.seller_b_uid(),\n goods_type:my.model.goods_type()\n });\n }\n }\n var unsupportCallback = function(){ \n $(\"#appdownload-contact\").modal(\"show\");\n }\n strhelp.checkIESupport(supportCallback,unsupportCallback);\n } \n login.checkLoginStatusWithShownLoginPage(callbackAfterLogin);\n },\n\n formatSeconds:function() {\n var leftime=my.model.pub_left_seconds();\n var days = Math.floor(leftime / ( 60 * 60 * 24));\n if(days>0){\n return days + \" 天 \" + hours + \" 小时 \" + minutes + \" 分 \" + seconds + \"秒 \";\n }else{\n var hours = Math.floor((leftime % ( 60 * 60 * 24)) / ( 60 * 60));\n if(hours>0){\n return hours + \" 小时 \" + minutes + \" 分 \" + seconds + \"秒 \";\n }else{\n var minutes = Math.floor((leftime % ( 60 * 60)) / 60);\n if(minutes>0){\n return minutes + \" 分 \" + seconds + \"秒 \";\n }else{\n var seconds = Math.floor(leftime % 60);\n if(seconds>0){\n return seconds + \"秒 \";\n }else{\n //todo\n }\n }\n }\n\n }\n },\n\n _calc_msg:function(){\n var left_time=\"\";\n my.model.pub_left_seconds(my.model.pub_left_seconds()-1);\n setTimeout(my.model._calc_msg,1000);\n },\n\n\n action:function(id,param){\n for (var i in my.actionConf){\n if (id === my.actionConf[i]['id']){\n my.actionConf[i]['action'](param);\n }\n }\n },\n\n bindBoxer:function(){\n $('.page-goods-detailzb #imgLists .boxer').boxer(\n {\n labels: {\n close: \"关闭\",\n count: \"/\",\n next: \"下一个\",\n previous: \"上一个\"\n }\n });\n\n },\n\n //设置账号操作按钮\n setAccountBtn:function(state) {\n switch (state + '') {\n case '2':\n return[{id: \"edit\", name: \"编辑\", classname: \"goodedit\"},\n // {id: \"update\",name: \"擦亮\",classname: \"icon-refresh-sd\"},\n {id: \"off_shelf\", name: \"下架\", classname: \"icon-removed-sd\"}];\n break;\n case '3':\n return[{id: \"on_shelf\", name: \"重新发布\",classname: \"onshelf\"}, \n {id: \"delete_product\", name: \"删除\",classname: \"delete_product\"}];\n break;\n case '4':\n case '7':\n return [];\n break;\n default:\n return [];\n break;\n }\n },\n\n\n //获取装备的商品详情\n gotoDetailZb:function(){\n var self = this;\n // var query_params={\n // book_id:my.model.book_id()\n // };\n // $.ajax( \"/gmmweb/GoodsGW/consignGoodsDetail\",{\n\n var query_params = {\n method: \"GetGoodsStatus\",\n params: JSON.stringify({\n book_id:my.model.book_id(),\n b_uid:dataAccess.getCookie('b_uid')\n })\n };\n $.ajax( \"/gmminf/tradeapi/goods/\",{\n data: query_params,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n detailzb_data.detailzb.parse(response,my.model);\n //替换cdn地址\n var image_list = my.model.image_list();\n image_list = image_list.map(function (item, index) {\n item.url = item.url.replace('gprofile.sdo.com', 'pics.sdoprofile.com');\n item.small_url = item.small_url.replace('gprofile.sdo.com', 'pics.sdoprofile.com');\n return item;\n });\n my.model.image_list(image_list);\n my.model.seller_b_uid(response.data.s_b_uid);\n my.model.goods_type_name(my.conf.queryGoodsName(response.data.goods_type));\n var book_id = my.model.book_id();\n var game_id = my.model.game_id();\n var price = response.data.price;\n if( response.data.image_list.length> 0){\n var imgSrc = response.data.image_list[0].small_url;\n }\n\n var goodTitle = response.data.p_name;\n window.jiathis_config={\n siteNum:3,\n sm:\"weixin,cqq,tsina\",\n summary:\"\",\n title:goodTitle,\n shortUrl:false,\n hideMore:true\n }\n //my.model.goods_type(response.data.goods_type);\n\n if(typeof(book_id)!= \"undefined\" && book_id!=\"\" && typeof(game_id)!= \"undefined\" && game_id!=\"\" ){\n dao.saveGoodsHis(book_id,imgSrc,goodTitle,price,game_id);\n }\n my.model._calc_msg();\n my.model.getGameName(response.data.game_id);//取游戏名字\n router.getPageModule(\"common/js/yhqlist\",function(pageModel){\n var goods_type = my.model.goods_type();\n var game_id = response.data.game_id;\n pageModel.queryYhqList(game_id,goods_type,book_id);\n },1);\n if (login.hasLoggedIn()) {\n my.model.queryCoupons(response.data.price);\n }\n if (!login.hasLoggedIn()){\n my.model.getNewCouponList()\n }\n //保障类型tips\n var safeType = JSON.parse(response.data.safe_type_data);\n if(safeType.is_area_trans || safeType.is_free_post || safeType.is_quick || safeType.is_best_proportion || safeType.is_support_insurance || safeType.is_accept_insurance){\n my.model.isGuarante(true)\n }\n\n var guaranteList = my.model.guaranteList();\n var templist = [];\n $.each(guaranteList,function(index,val){\n if(safeType[val.key]){\n templist.push(val)\n }\n })\n my.model.realList(templist);\n var nowTpyeClass = $($(\".guarante .bztype\").find(\"span\").eq(0)).attr(\"class\");\n my.model.popName(nowTpyeClass);\n var p_values = response.data.p_values && JSON.parse(response.data.p_values);\n if (p_values.account_insurance_time){\n var time = p_values.account_insurance_time;\n my.model.insureTime(time);\n }\n //道具类型\n if (p_values){\n my.model.item_type(p_values.item_type);\n my.model.item_type_name(p_values.item_type_name);\n }\n var p_tips = typeof response.data.p_values === \"string\" ? JSON.parse(response.data.p_tips) : response.data.p_tips;\n for (var key in p_tips){\n if (p_tips[key] == p_values.item_type_name){\n my.model.itemTypeText4ptips(key);\n }\n\n }\n //道具类型end\n var realList = my.model.realList();\n $.each(realList, function(index, val) {\n if (nowTpyeClass == 'tong') {\n var crossArea = $(\".guarante .bztype .tong\").attr(\"crossArea\");\n if (crossArea == 1) {\n var transregional_info = my.model.receiveAreaList();\n my.model.showArea(transregional_info);\n } else {\n my.model.getReceiveAreaList()\n }\n my.model.isTong(false);\n\n }else if(val.name == nowTpyeClass) {\n if (val.name == 'support-guarantee'){\n val.tips = val.tips.replace(/\\d+/g,my.model.insureTime());\n }\n my.model.tipsbox(val.tips);\n my.model.isTong(true);\n }\n });\n\n var book_id = response.data.book_id;\n var goods_type=response.data.goods_type;\n var game_id = response.data.game_id;\n var h5Url = \"http://www.gmmsj.com/h5/goods/detail/index.html?book_id=\"+book_id+\"&goods_type=\"+ goods_type +\"&game_id=\" + game_id + \"&source=pc\"+\"&from=buy\";\n $('.page-goods-detailzb .iconcode').qrcode(h5Url);\n\n router.getPageModule(\"common/js/search\",function(pageModel){\n pageModel.model.queryAdvert({'ad_position':'goods_detail_top','game_id':game_id, 'goods_type':goods_type});\n },1);\n\n my.model.areaId(response.data.area_id);\n my.model.groupId(response.data.group_id);\n my.model.checkGameTenance();\n my.model.bottom_area_operation_h5(my.model.setAccountBtn(response.data.state));\n //用户登录需要日志上报\n if(dataAccess.getCookie(\"gmmpc_loginstatus\") == 1){\n my.model.goodsReqLog(\n {\n book_id:book_id,\n goods_type:goods_type,\n game_id:game_id,\n area_id:my.model.areaId(),\n group_id:my.model.groupId(),\n b_uid:my.login.getLoginUserId()\n }\n );\n }\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n\n\n },\n //商品详情日志上报\n goodsReqLog:function(params){\n var url = \"/gatew/accountapi/goods/reqLog\";\n $.ajax(url, {\n data: params,\n success: function(response) {\n if(response.return_code ==0 ){\n }else{\n }\n },\n error : function() {\n // galert(\"您的网络不给力,请检查网络!\");\n }\n })\n },\n //获取担保装备的商品详情\n gotoDetailDbZb:function(){\n var self = this;\n // var query_params={\n // book_id:my.model.book_id()\n // };\n // $.ajax( \"/gmmweb/GoodsGW/consignGoodsDetail\",{\n\n var query_params = {\n bookId:my.model.book_id()\n };\n $.ajax( api.security.queryDetail,{\n data: query_params,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n detailzb_data.detailDbzb.parse(response,my.model);\n //替换cdn地址\n var image_list = my.model.image_list();\n image_list = image_list.map(function (item, index) {\n item.url = item.url.replace('gprofile.sdo.com', 'pics.sdoprofile.com');\n item.small_url = item.small_url.replace('gprofile.sdo.com', 'pics.sdoprofile.com');\n return item;\n });\n // 交易时间范围\n my.model.tradeTime(response.data.tradeTimeRange);\n // 是否在交易时间\n my.model.inTradeTime(response.data.inTradeTime);\n if(my.model.inTradeTime()==false){\n var btn=document.getElementById(\"buybtn\");\n btn && (btn.innerHTML = \"非交易时间\");\n my.model.btnInTradeTime(true);//禁用按钮\n }\n my.model.image_list(image_list);\n my.model.availQty(response.data.availQty);\n my.model.updateTime(response.data.updateTime);\n my.model.createTime(response.data.createTime);\n var pdetail = response.data.pDetail;\n my.model.pDetail(pdetail);\n // for(var i=0; i 0){\n var imgSrc = response.data.pImageList[0].small_url;\n }\n\n var goodTitle = response.data.pTitle;\n window.jiathis_config={\n siteNum:3,\n sm:\"weixin,cqq,tsina\",\n summary:\"\",\n title:goodTitle,\n shortUrl:false,\n hideMore:true\n }\n //my.model.goods_type(response.data.goods_type);\n\n if(typeof(sBookId)!= \"undefined\" && sBookId!=\"\" && typeof(gameId)!= \"undefined\" && gameId!=\"\" ){\n dao.saveGoodsHis(sBookId,imgSrc,goodTitle,price,gameId);\n }\n my.model._calc_msg();\n my.model.getGameName(response.data.gameId);//取游戏名字\n router.getPageModule(\"common/js/yhqlist\",function(pageModel){\n var goods_type = my.model.goods_type();\n var gameId = response.data.gameId;\n var sBookId = my.model.sBookId();\n pageModel.queryYhqList(gameId,goods_type,sBookId);\n },1);\n if (login.hasLoggedIn()) {\n my.model.queryCoupons(response.data.price);\n }\n if (!login.hasLoggedIn()){\n my.model.getNewCouponList()\n }\n //保障类型tips\n var safeType = response.data.safeTypeData;\n if(safeType.is_area_trans || safeType.is_free_post || safeType.is_quick || safeType.is_best_proportion || safeType.is_support_compensation || safeType.is_accept_insurance || safeType.is_support_insurance){\n my.model.isGuarante(true)\n }\n\n var guaranteList = my.model.guaranteList();\n var templist = [];\n $.each(guaranteList,function(index,val){\n if(safeType[val.key]){\n templist.push(val)\n }\n })\n my.model.realList(templist);\n var nowTpyeClass = $($(\".guarante .bztype\").find(\"span\").eq(0)).attr(\"class\");\n my.model.popName(nowTpyeClass);\n var realList = my.model.realList();\n $.each(realList, function(index, val) {\n if (nowTpyeClass == 'tong') {\n var crossArea = $(\".guarante .bztype .tong\").attr(\"crossArea\");\n if (crossArea == 1) {\n var transregional_info = my.model.receiveAreaList();\n my.model.showArea(transregional_info);\n } else {\n my.model.getReceiveAreaList()\n }\n my.model.isTong(false);\n\n }else if(val.name == nowTpyeClass) {\n my.model.tipsbox(val.tips);\n my.model.isTong(true);\n }\n });\n\n if (response.data.accountInsuranceTime){\n var time = response.data.accountInsuranceTime;\n my.model.insureTime(time);\n }\n\n var book_id = response.data.bookId;\n var goods_type=response.data.goods_type || response.data.goodsType;\n var game_id = response.data.gameId;\n var h5Url = \"http://www.gmmsj.com/h5/goods/detail_db/index.html?book_id=\"+book_id+\"&goods_type=\"+ goods_type +\"&game_id=\" + game_id + \"&from=buy\";\n $('.page-goods-detailzb .iconcode').qrcode(h5Url);\n my.model.shareUrl(h5Url);\n router.getPageModule(\"common/js/search\",function(pageModel){\n pageModel.model.queryAdvert({'ad_position':'goods_detail_top','game_id':game_id, 'goods_type':goods_type});\n },1);\n\n my.model.areaId(response.data.areaId);\n my.model.groupId(response.data.groupId);\n my.model.checkGameTenance();\n my.model.bottom_area_operation_h5(my.model.setAccountBtn(response.data.state));\n //用户登录需要日志上报\n if(dataAccess.getCookie(\"gmmpc_loginstatus\") == 1){\n my.model.goodsReqLog(\n {\n book_id:book_id,\n goods_type:goods_type,\n game_id:game_id,\n area_id:my.model.areaId(),\n group_id:my.model.groupId(),\n b_uid:my.login.getLoginUserId()\n }\n );\n }\n // my.model.initRollScreenshot();\n // my.model.initScreenshot();\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n\n\n },\n initRollScreenshot: function () {\n $(\"#page-goods-detaildb-carousel\").slide({\n mainCell: \"#imgSmallList\",\n // titCell:\"#imgLists .item\",\n autoPage: true,\n effect: \"left\",\n autoPlay: false,\n pnLoop: true,\n scroll:1,\n trigger:\"click\",\n vis: 6\n });\n },\n initScreenshot: function () {\n $(\"#imgLists\").slide({\n mainCell:\".item\",\n autoPlay: false,\n trigger:\"click\",\n effect:\"left\",\n mouseOverStop:false\n });\n },\n copyContent:function(){\n var input = document.createElement('input');\n document.body.appendChild(input);\n input.value = my.model.sBookId(); // 修改文本框的内容\n input.select(); // 选中文本\n document.execCommand(\"copy\");\n my.model.toastText(\"复制成功\");\n $(\"#model-copy-sucess\").show();\n setTimeout(function () { $(\"#model-copy-sucess\").hide() }, 2000)\n document.body.removeChild(input);\n },\n //获取留言列表\n getCommont:function(currentPageNumber){\n var goods_type=my.model.goods_type();\n var url='';\n var type='';\n var params={};\n my.model.page(currentPageNumber);\n my.model.arrayPush([]);\n $(\".comment .editcont\").find(\".allselect\").attr(\"checked\",false);\n var self = this;\n if(goods_type==31 || goods_type==35){\n return;\n // url=api.security.commentList;\n // type=\"POST\";\n // params={\n // bookId:my.model.book_id(),\n // pageNo:currentPageNumber,\n // pageSize:10\n // }\n }else{\n url=\"/api/consigntradeapi/goods\";\n type=\"GET\";\n var query_params={\n page: currentPageNumber,\n book_id:my.model.book_id(),\n sort_dir:2,\n limit:10\n //ticket:ticket\n };\n params={\n method:\"GetGoodsCommentList\",\n params:JSON.stringify(query_params)\n };\n }\n // $.ajax( \"/gmmweb/goodsgw/getGoodsCommentList\",{\n $.ajax( url,{\n data: params,\n type:type,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n if(goods_type == 31 || goods_type==35){\n detail_data.dbCommon.parse(response,my.model);\n }else{\n detail_data.common.parse(response,my.model);\n }\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n\n },\n getGameName:function(gameid){//查游戏名称\n var gameName = game.getGameByGameId(gameid)['game_name'];\n my.model.gamename(gameName);\n },\n\n\n //收藏按钮\n onCollect:function(){\n var self = this;\n var url=\"\";\n var is_favorite = my.model.favorite_flag();\n var book_id = my.model.book_id();\n var game_id = my.model.game_id();\n var goods_type = my.model.goods_type();\n var seller_b_uid = my.model.seller_b_uid();\n var loginUserId = my.login.getLoginUserId();\n var type='';\n var query_params={};\n if(goods_type==31 || goods_type==35){\n type=\"GET\"\n query_params={\n bookId:book_id,\n goodsType: goods_type\n };\n if(is_favorite == \"1\"){\n url=api.security.cancelFavorite\n }else if(is_favorite == \"0\"){\n url=api.security.favorite\n }\n }else{\n type=\"GET\"\n query_params={\n game_id:game_id,\n goods_type:goods_type,\n book_id:book_id\n };\n if(is_favorite == \"1\"){\n url = \"/gatew/consigntradeapi/goods/deletefavorite\";\n }else if(is_favorite == \"0\"){\n // url = \"/gmmweb/MyGW/addFavorite\";\n url = \"/gatew/userapi/addFavorite\";\n }\n }\n console.log(loginUserId);\n if(typeof (loginUserId) !=\"undefined\" && seller_b_uid == loginUserId){\n galert(\"卖家不能收藏自己的商品\");\n return;\n }\n $.ajax({\n type : type,\n url : url,\n data: query_params,\n dataType:\"json\",\n success: function(response){\n if(response.return_code == 0)\n {\n my.entry();\n //\n // if(is_favorite == \"1\"){\n // my.model.is_favorite(\"0\");\n // my.model.favorite_cnt(my.model.favorite_cnt()-1);\n // }else if(is_favorite == \"0\"){\n // my.model.is_favorite(\"1\");\n // my.model.favorite_cnt(my.model.favorite_cnt()+1);\n //\n // }\n }\n else\n {\n galert(response.return_message);\n }\n },\n error: function() {\n galert(\"您的网络不给力,请检查网络!\");\n },\n loginCallBack:function(){\n my.model.onCollect();\n }\n });\n\n },\n //发布留言\n pubMeg:function(){\n my.model.comType(\"publish\");\n my.model.getMyUserInfo();\n my.model.nick_name(\"\");\n my.model.to_nick_name(\"\");\n var loginUserId = my.login.getLoginUserId();\n if(typeof (loginUserId) !=\"undefined\" && loginUserId != \"\"){\n $(\".page-goods-detail-pubMeg\").modal('show');\n return;\n }\n\n },\n btnPubMeg:function(){\n var self = this;\n var pubarea= $(\".page-goods-detailzb .pubarea\").val();\n var book_id= my.model.book_id();\n var to_comment_id = my.model.comment_id();\n var nick_name = my.model.nick_name();\n var to_nick_name = my.model.to_nick_name();\n var goods_type = my.model.goods_type();\n var comarea=\"\";\n var query_params={};\n var url = \"\";\n var type=\"\";\n if(pubarea==\"\"){\n galert(\"请输入留言的内容!\");\n return;\n }\n if(typeof(to_nick_name)!=\"undefined\" && to_nick_name!=\"\"){\n comarea =\"回复\" + \"【\" + nick_name +\"】\" +\": \" + pubarea;\n }else{\n comarea = pubarea;\n }\n if(goods_type == 31 || goods_type == 35){\n return;\n // url=api.security.commentAdd;\n // type=\"POST\";\n // query_params={\n // bookId:book_id,\n // content:comarea,\n // commentId:to_comment_id\n // }\n }else{\n url=\"/gatew/goodsgw/addgoodscomment\";\n type=\"GET\";\n query_params={\n book_id:book_id,\n comment:comarea,\n to_comment_id:to_comment_id\n };\n }\n\n $.ajax( url,{\n data: query_params,\n type:type,\n success: function(response){\n if(response.return_code ==0 ){\n $(\".page-goods-detail-pubMeg\").modal('hide');\n my.model.getCommont(my.model.page());\n var pubarea= $(\".page-goods-detailzb .pubarea\").val(\"\");\n $('#modal-commentsucc').modal();\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n // Util.alert(\"您的网络不给力,请检查网络!\");\n }\n });\n\n },\n\n getMyUserInfo: function(){\n var self = this;\n $.ajax( \"/gatew/userapi/getMyUserInfo\",{\n success: function(response){\n var data = response.data;\n if (response.return_code === 0) {\n var userphone = response.data.phone;\n var start = userphone.substr(0,3);\n var end = userphone.substr(7,4);\n my.model.sendPhone(start+\"****\"+end);\n\n } else {\n galert(response.return_message);\n }\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n // Util.alert(\"您的网络不给力,请检查网络!\");\n },\n loginCallBack:function(){\n $(\".page-goods-detail-conOrd\").modal(\"hide\");\n my.model.getMyUserInfo();\n\n }\n\n\n });\n },\n /**\n * @description:查询担保在线状态\n * @return {*}\n */ \n querySellerState:function(){\n var params = {\n buid:my.model.seller_b_uid()\n };\n $.ajax({\n url: api.security.querySellerState,\n data: params,\n success: function (response) {\n if (response.return_code == 0) {\n if (response.data && response.data.state == 0){\n $(\"#modal-offline\").modal(\"show\");\n } else {\n my.model.showConfirm(); //除了查出卖家离线状态,其他情况都正常购买\n }\n } else {\n my.model.showConfirm();\n }\n },\n error: function () {\n my.model.showConfirm();\n }\n })\n },\n showConfirm : function(){\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n my.pageInf.consignbuy(book_id,goods_type);\n },\n\n editComment : function(data,e){\n var self = this;\n var t = e.currentTarget;\n //var t = theEvent.target || theEvent.srcElement; //IE和Chrome下是srcElement FF下是target\n var texcom = $(t).html();\n if(texcom==\"编辑留言\"){\n $(\"#comment .editcont\").show();\n //$(\"#comment .checkcont\").show();\n $(\"#comment .pubcont\").hide();\n my.model.isShow(true);\n\n $(t).html(\"取消编辑\");\n }else if(texcom==\"取消编辑\"){\n my.model.isShow(false);\n $(\"#comment .editcont\").hide();\n $(\"#comment .checkcont\").hide();\n $(\"#comment .pubcont\").show();\n $(t).html(\"编辑留言\");\n }\n },\n\n buySure : function(){\n //先确认购买获得订单\n var self = this;\n var query_params={\n book_id:my.model.book_id(),\n goods_type:10\n };\n // $.ajax( \"/gmmweb/ordergw/accountbuy\",{\n $.ajax( \"/gatew/ordergw/accountbuy\",{\n data: query_params,\n success: function(response){\n if(response.return_code ==0 ){\n //orderdetail_data.accountbuy.parse(response,my.model);\n my.pageInf.routeToPay(response.data.gbao_url);\n return;\n\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n\n selCheck:function(data,e){\n var self = my.model;\n\n var arrayPush = my.model.arrayPush();\n\n var selArea = \"\";\n var t = e.currentTarget;//theEvent.target || theEvent.srcElement; //IE和Chrome下是srcElement FF下是target\n var field = $(\".checkcont\");\n var isCheck = $(t).prop('checked');\n\n if (isCheck){\n arrayPush.push( Number(data.comment_id));\n my.model.arrayPush(arrayPush);\n }else{\n for (var i = 0; i < arrayPush.length; i++) {\n if(arrayPush[i] == data.comment_id){\n my.model.arrayPush().splice(i,1);\n }else{}\n }\n $(\".comment .editcont\").find(\".allselect\").attr(\"checked\",false);\n\n }\n\n return true;\n },\n\n selectAll:function(data,e){\n var self=this;\n // var theEvent = window.event ;//|| arguments.callee.caller.arguments[1];\n var t = e.currentTarget;//theEvent.target || theEvent.srcElement; //IE和Chrome下是srcElement FF下是target\n var field = $(\".checkcont\");\n var checkflag = self.checkflag();\n var isCheck = $(e.currentTarget).prop('checked');\n var arrayPush = my.model.arrayPush();\n // 如果全选按钮状态是未选中\n if (isCheck){\n for (var i = 0; i < field.length; i++){\n field[i].checked = true;\n var nowId =$(field[i]).next(\".avatar\").attr(\"commentid\");\n arrayPush.push(Number(nowId));\n }\n my.model.arrayPush(arrayPush);\n\n self.checkflag(\"true\");\n }else{\n for (var i = 0; i < field.length; i++){\n field[i].checked = false;\n var nowId=$(field[i]).next(\".avatar\").attr(\"commentid\");\n for (var j = 0; j < arrayPush.length; j++) {\n if(arrayPush[j] == nowId){\n my.model.arrayPush().splice(j,1);\n }else{}\n }\n\n }\n my.model.arrayPush(arrayPush);\n // 更改全选按钮选中标志\n self.checkflag(\"false\");\n }\n\n return true;\n },\n\n repCommont: function(data,e){\n var self = this;\n console.log(data);\n var t = e.currentTarget;\n $(t).parents(\".popover\").hide();\n //var t = theEvent.target || theEvent.srcElement; //IE和Chrome下是srcElement FF下是target\n var commentid= $(t).parents(\".popover\").prev(\".avatar\").attr(\"commentid\");\n my.model.comment_id(commentid);\n my.model.nick_name(data.nick_name);\n my.model.to_nick_name(data.nick_name);\n my.model.comType(\"reply\");\n $(\".page-goods-detail-pubMeg\").modal('show');\n },\n\n deltOnePopMeg:function(data,e){\n var t = e.currentTarget;\n $(t).parents(\".popover\").hide();\n my.model.deletype(\"onlyone\");\n my.model.detecomid(data.comment_id);\n\n $(\"#modal-delete-message\").modal(\"show\");\n },\n\n deltAllPopMeg:function(data,e){\n my.model.deletype(\"all\");\n var field = $(\".checkcont\");\n var comentIdArea=my.model.arrayPush();\n console.log(comentIdArea);\n if(comentIdArea==\"\"){\n galert(\"请选择要删除的留言!\");\n return;\n }\n $(\"#modal-delete-message\").modal(\"show\");\n },\n\n\n\n //删除留言\n delCommont: function(){\n var self = this;\n var book_id = my.model.book_id();\n var comment_ids = my.model.detecomid();\n var goods_type = my.model.goods_type();\n var query_params={\n book_id:book_id,\n comment_ids:comment_ids,\n goods_type:goods_type\n };\n $.ajax( \"/gatew/goodsgw/deletegoodscomment\",{\n data: query_params,\n success: function(response){\n if(response.return_code ==0 ){\n my.model.getCommont(my.model.page());\n $(\".page-goods-detailzb .checkcont\").show();\n $(\"#modal-delete-message\").modal(\"hide\");\n\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n\n\n //删除某商品下某用户所有留言\n delAllCommont:function(){\n var self = this;\n var comentIdArea=my.model.arrayPush();\n var commentList =$(\"#commentList li\").find(\".checkcont\");\n var comentIdfield = JSON.stringify(comentIdArea) .replace(\"[\",\"\").replace(\"]\",\"\");\n console.log(comentIdfield);\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var query_params={\n book_id:book_id,\n comment_ids:comentIdfield,\n goods_type:goods_type\n };\n\n console.log(query_params);\n $.ajax( \"/gatew/goodsgw/deletegoodscomment\",{\n data: query_params,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n if(comentIdArea.length < commentList.length ){\n my.model.getCommont(my.model.page());\n }else if(comentIdArea.length == commentList.length){\n my.model.getCommont(my.model.page()-1);\n }\n $(\"#comment .editcont\").find(\".checkbox-inline\").find(\"input\").attr(\"checked\",false);\n $(\"#comment .pubcont\").show();\n $(\"#modal-delete-message\").modal(\"hide\");\n //my.model.getCommont();\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n\n },\n\n //删除某商品下某用户所有留言\n //delUserCommont:function(b_uid){\n // var self = this;\n // var book_id = my.model.book_id();\n // var query_params={\n // b_uid: b_uid,\n // book_id:book_id\n // };\n // console.log(query_params);\n // return;\n // $.ajax( \"/gmmweb/goodsgw/deleteUserGoodsComment\",{\n // data: query_params,\n // success: function(response){\n // if(response.return_code ==0 ){\n // detail_data.common.parse(response,my.model);\n //\n // }else{\n // galert(response.return_message);\n // }\n //\n // },\n // error : function() {\n // galert(\"您的网络不给力,请检查网络!\");\n // }\n // });\n //},\n\n\n blackList: function(data,e){\n var self = this;\n console.log(data);\n var t = e.currentTarget;\n $(t).parents(\".popover\").hide();\n var b_uid = data.b_uid;\n var query_params={\n //memo:memo,\n black_b_uid:b_uid\n };\n // $.ajax( \"/gmmweb/mygw/adduserblacklist\",{\n $.ajax( \"/gatew/userapi/adduserblacklist\",{\n data: query_params,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n var loginUserId = my.model.loginUserId();\n var seller_b_uid = my.model.seller_b_uid();\n my.model.getCommont(my.model.page());\n\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n deleteblacklist: function(data,e){\n var self = this;\n console.log(data);\n var t = e.currentTarget;\n var query_params={\n //memo:memo,\n black_b_uid:data.b_uid\n };\n //$.ajax( \"/gmmweb/mygw/deleteuserblacklist\",{\n $.ajax( \"/gatew/userapi/deleteuserblacklist\",{\n data: query_params,\n success: function(response){\n console.log(response);\n if(response.return_code ==0 ){\n my.model.getCommont(my.model.page());\n\n }else{\n galert(response.return_message);\n }\n\n },\n error : function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n goodsRefresh: function(book_id,goods_type){\n var self = this;\n var params = {\n 'book_id':book_id || '',\n 'goods_type':goods_type\n };\n $.ajax( \"/gatew/mygw/goodsRefresh\",{\n data:params,\n success: function(response){\n var data = response.data;\n if (response.return_code === 0) {\n $('#modal-refreshsucc').modal();\n } else if (response.return_code === -20008) { //已擦亮,过一小时再擦\n $('#modal-refreshfail').modal();\n } else {\n galert(response.return_message);\n }\n\n }\n });\n },\n\n selectReason:function (data) {\n var self = this;\n $(\"#modal-offshelf .offbox a\").find(\".ticket-txt\").text(data);\n my.model.selreason(data)\n },\n\n offReason:function(){\n var self = this;\n $.ajax( \"/gate/frontconfigapi/GetVersion\",{\n data: {\n object_id: 'before_offshelf_reason_cfg'\n },\n success: function(response) {\n if (response.return_code == 0 ) {\n my.model.reasonList(response.data.memo.data);\n $('#modal-offshelf').modal();\n } else if (response.return_code !== 0) {\n galert(response.return_message);\n }\n }\n });\n },\n\n offSelect: function(cb) {\n var self = this;\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var params = {\n 'book_id':book_id || '',\n 'goods_type':goods_type\n };\n\n var gameId = my.model.game_id();\n if(gameId==\"791000283\" || gameId == \"791000284\" || gameId == \"791000291\" || gameId == \"791000292\" || gameId == \"791000289\" || gameId == \"791000378\" || gameId == \"791000285\"){\n var selreason = my.model.selreason();\n if( typeof selreason!=\"undefined\" && selreason!=\"\"){\n params['reason'] = selreason\n }else{\n galert(\"请选择下架原因\");\n return;\n }\n }\n\n var url = '';\n if (goods_type == goodsType.securityEquipment || goods_type == goodsType.securityCurrency){\n url = api.security.offShelf;\n params={\n 'bookId':book_id || ''\n }\n } else {\n url = \"/gatew/mygw/goodsOffShelf\";\n }\n //$.ajax( \"/gmmweb/mygw/goodsOffShelf\",{\n $.ajax( url,{\n data:params,\n success: function(response){\n var data = response.data;\n if (response.return_code === 0) {\n if(my.model.goods_type()==1){\n my.model.gotoDetailZb();\n }else{\n my.model.gotoDetailDbZb();\n }\n $('#modal-offshelf').modal('hide');\n $('#modal-offconfirm').modal('hide');\n cb && cb();\n } else {\n galert(response.return_message);\n }\n }\n });\n },\n\n\n delSelect: function() {\n var self = this;\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var url='';\n var type='';\n var params=null;\n if (goods_type == goodsType.securityEquipment || goods_type == goodsType.securityCurrency){\n url = api.security.deleteGood;\n type='POST';\n params={\n 'bookIds':book_id || ''\n };\n }else{\n url=\"/gatew/gmmMyGw/deleteBatchGoods\";\n type='GET';\n params = {\n 'book_id':book_id || '',\n 'goods_type':goods_type\n };\n }\n $.ajax( url,{\n data:params,\n type:type,\n success: function(response){\n var data = response.data;\n if (response.return_code === 0) {\n $('#modal-delconfirm').modal('hide');\n $('#delgood_sucess').modal('show');\n setTimeout(\n function(){\n my.pageInf.mypublish();\n },2000);\n\n } else {\n galert(response.return_message);\n }\n\n }\n });\n },\n\n scrollToComment: function(){\n $('.page-goods-detailzb .nav-tabs a[href=\"#comment\"]').tab('show');\n $('.page-goods-detailzb #panel-detail')[0].scrollIntoView();\n },\n //编辑先下架再重新上架\n gotoEdit:function() {\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var game_id = my.model.game_id();\n my.model.offSelect(function(){\n my.pageInf.gotoGoodsReshelf(book_id,game_id,goods_type);\n });\n },\n // 查询游戏是否维护\n checkGameTenance:function(){\n var game_id = my.model.gameId() || my.model.game_id();\n var area_id = my.model.areaId();\n var group_id = my.model.groupId();\n var query_params={\n game_id:game_id,\n area_id:area_id,\n group_id:group_id\n };\n $.ajax('/gatew/gamemaintenancetime/queryByIds', {\n type : \"get\",\n data: query_params,\n success: function(response) {\n var data = response.data;\n if (response.return_code === 0) {\n if(data && data.memo){\n my.model.gameTenance(true);\n my.model.gameTenanceMemo(data.memo || '');\n $(\"#modal-game-tenance\").modal('show');\n }\n }\n },\n error: function() {\n galert(\"您的网络不给力,请检查网络!\");\n }\n });\n },\n /**\n * @description: 开启jsim聊天\n * @return {*}\n */ \n getJsImOpenConfig:function(){\n var params = {\n object_id:'jsim_open_config'\n };\n $.ajax(\"/gate/frontconfigapi/GetVersion\",{\n data: params,\n success: function(response) {\n if (response.return_code == 0 ) {\n var result = response.data.memo;\n if (result.open_config == 0){\n my.model.openJsIm(false);\n } else {\n my.model.openJsIm(true);\n }\n }\n }\n });\n }\n };\n };\n\n this.bindEvent = function(){\n var self = this;\n login.addObserver(my.pageSelector,my.entry,my.model);//不需要登录,但如果登录了,通知到此方法\n\n $(document).on(\"click\",\" #page-goods-detail-carousel .carousel-inner .item img\", function(){\n var nowIndex= $(this).parent(\".item\").attr(\"data-index\");\n my.model.nowIndex(nowIndex);\n $(\".page-goods-detail-bigimg\").modal('show');\n })\n $(document).on(\"click\",\" #page-goods-detaildb-carousel .carousel-inner .item img\", function(){\n var nowIndex= $(this).parent(\".item\").attr(\"data-index\");\n my.model.nowIndex(nowIndex);\n $(\".page-goods-detail-bigimg\").modal('show');\n })\n $(document).on(\"mouseenter\",\".page-goods-detailzb .avatar\", function(){\n $(this).next(\".popover\").show();\n })\n $(document).on(\"mouseenter\",\".page-goods-detailzb .popover\", function(){\n $(this).show();\n })\n $(document).on(\"mouseleave\",\".page-goods-detailzb .popover\", function(){\n $(this).hide();\n\n })\n $(document).on(\"mouseleave\",\".page-goods-detailzb .avatar\", function(){\n $(this).next(\".popover\").hide();\n\n })\n\n $(document).on(\"mouseenter\",\".page-goods-detailzb .phonebuy\", function(){\n $(this).children(\"span\").attr(\"class\",\"\").addClass(\"dup\");\n $(this).children(\".phonecode\").children(\"cite\").show(220);\n $(this).children(\".phonecode\").show(200);\n })\n $(document).on(\"mouseleave\",\".page-goods-detailzb .phonebuy\", function(){\n $(this).children(\"span\").attr(\"class\",\"\").addClass(\"down\");\n $(this).children(\".phonecode\").children(\"cite\").hide();\n $(this).children(\".phonecode\").hide(200);\n })\n\n $(document).on('click', '.page-goods-detailzb .jiathis', function(event) {\n event.preventDefault();\n /* Act on the event */\n });\n\n my.model.loginUserId(my.login.getLoginUserId());\n\n };\n\n //actionConf里用到id对应action,name没使用,由服务端为准\n this.actionConf = [\n {\n id:'edit',\n name:'编辑',\n action:function(obj){\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var game_id = my.model.game_id();\n var game_name = my.model.gameName();\n if (goods_type == goodsType.account || goods_type == goodsType.account2 || goods_type == goodsType.equipment || goods_type == goodsType.currency){ //要审核的编辑先下架再重新发布\n $('#modal-editconfirm').modal();\n } else {\n my.pageInf.gotoGoodsEdit(book_id,game_id,goods_type,null,null,game_name);\n }\n // my.pageInf.gotoGoodsEdit(book_id,game_id,goods_type,null,null,game_name);\n }\n },\n {\n id:'update',\n name:'擦亮',\n action:function(obj){\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n my.model.goodsRefresh(book_id,goods_type);\n }\n },\n {\n id:'off_shelf',\n name:'下架',\n action:function(obj){\n var gameId = my.model.game_id();\n if(gameId==\"791000283\" || gameId == \"791000284\" || gameId == \"791000291\" || gameId == \"791000292\" || gameId == \"791000289\" || gameId == \"791000378\" || gameId == \"791000285\"){\n my.model.offReason()\n }else{\n $('#modal-offconfirm').modal();\n }\n }\n },\n {\n id:'on_shelf',\n name:'重新上架',\n action:function(obj){\n var book_id = my.model.book_id();\n var goods_type = my.model.goods_type();\n var game_id = my.model.game_id();\n my.pageInf.gotoGoodsReshelf(book_id,game_id,goods_type);\n }\n },\n\n {\n id:'delete_product',\n name:'删除',\n action:function(obj){\n $('#modal-delconfirm').modal();\n }\n }\n\n ]\n\n //定义入口函数\n this.entry = function(){\n // strhelp.checkParams(\"book_id\");\n var game_id = window.pageParamsConfig.game_id ? window.pageParamsConfig.game_id : strhelp.urlParamName(\"game_id\");\n var goods_type = window.pageParamsConfig.goods_type ? window.pageParamsConfig.goods_type : strhelp.urlParamName(\"goods_type\");\n var book_id = window.pageParamsConfig.book_id ? window.pageParamsConfig.book_id : strhelp.urlParamName(\"book_id\");\n my.model.game_id(game_id);\n my.model.goods_type(goods_type);\n console.log(my.model.goods_type());\n my.model.book_id(book_id);\n my.model.displayAcc(my.login.getDisplayAccount());\n my.model.loginUserId(my.login.getLoginUserId());\n if(my.model.goods_type()==1){\n my.model.gotoDetailZb();\n }else{\n my.model.gotoDetailDbZb();\n }\n my.model.getCommont();\n my.model.getJsImOpenConfig();\n };\n })\n\n})\n"],"names":["define","pcbase","ko","bootstrap","galert","game","detail_data","detailzb_data","dao","strhelp","boxer","login","dataAccess","router","qrcode","api","orderGoodsTypeConfig","extend","my","this","goodsType","init","needLogin","pageSelector","model","pDetail","observable","createTime","toastText","updateTime","availQty","showRealName","gameName","deliverMode","sBookId","gameID","inTradeTime","btnInTradeTime","tradeTime","selreason","reasonList","area_id","group_id","receiveAreaList","hasCoupon","yhprice","btnbuy","pub_time_area","pub_left_seconds","bottom_area_operation","observableArray","bottom_area_operation_h5","seller_credit_level","seller_credit_level_h5","seller_nickname","timesBind","imageId","page","jumpNum","s_book_id","sendPhone","arrayPush","loginUserId","comType","isShow","comment_id","detecomid","deletype","nick_name","is_area_trans","to_nick_name","contentHtml","good_type_name","gameId","areaId","groupId","gamename","imgUrl","totalPage","is_favorite","favorite_flag","user_b_uid","seller_b_uid","checkflag","nowIndex","goods_title","p_name","goods_type","game_id","game_name","goods_type_name","price","goods_sub_title","favorite_cnt","view_cnt","state","state_desc","p_offshelf_time","goods_main_detail","goods_more_detail","image_list","picList","commentList","commentTotalSize","displayAcc","book_id","s_mid","s_b_uid","hadNewUserCouponList","gameTenance","gameTenanceMemo","guaranteList","text","name","key","tips","isGuarante","realList","isTong","popName","tipsbox","insureTime","equmentImg","shareUrl","openJsIm","item_type","item_type_name","itemTypeText4ptips","showTips","data","e","types","el","$","currentTarget","left","offset","parents","crossArea","attr","transregional_info","showArea","getReceiveAreaList","replace","parent","siblings","show","find","css","showTipsDb","popover","html","hide","hideTips","getGoodsList","goodType","keyword","refer","gameOs","operatorId","tradeMode","getGoodsListUrl","getGoodsListByItemType","itemType","divHtmlTxt","obj","JSON","parse","length","temp","each","index","push","group_name","join","ajax","type","url","method","params","stringify","success","resp","return_code","return_message","error","queryCoupons","amount","Number","available","list","getNewCouponList","sort","a","b","discount","toFixed","object_id","response","memo","new_user_coupons","i","j","catId","gameAppIds","minamount","itemTypesList","itemTypes","split","k","closeRealName","window","open","showRealNameConfirm","query_params","realName","getStatus","realNameStatus","modal","contact","callbackAfterLogin","supportCallback","pageInf","gotoJsIM","gotoGchat","title","picture_url","matrix_name","b_mid","getCookie","b_b_uid","unsupportCallback","checkIESupport","checkLoginStatusWithShownLoginPage","formatSeconds","leftime","days","Math","floor","hours","minutes","seconds","_calc_msg","setTimeout","action","id","param","actionConf","bindBoxer","labels","close","count","next","previous","setAccountBtn","classname","gotoDetailZb","b_uid","detailzb","map","item","small_url","conf","queryGoodsName","imgSrc","goodTitle","jiathis_config","siteNum","sm","summary","shortUrl","hideMore","saveGoodsHis","getGameName","getPageModule","pageModel","queryYhqList","hasLoggedIn","safeType","safe_type_data","is_free_post","is_quick","is_best_proportion","is_support_insurance","is_accept_insurance","templist","val","nowTpyeClass","eq","p_values","account_insurance_time","time","p_tips","h5Url","queryAdvert","ad_position","checkGameTenance","goodsReqLog","getLoginUserId","gotoDetailDbZb","bookId","security","queryDetail","detailDbzb","tradeTimeRange","btn","document","getElementById","innerHTML","pdetail","sellerInfo","buid","itemTypeName","pImageList","pTitle","safeTypeData","is_support_compensation","accountInsuranceTime","initRollScreenshot","slide","mainCell","autoPage","effect","autoPlay","pnLoop","scroll","trigger","vis","initScreenshot","mouseOverStop","copyContent","input","createElement","body","appendChild","value","select","execCommand","removeChild","getCommont","currentPageNumber","sort_dir","limit","dbCommon","common","gameid","getGameByGameId","onCollect","cancelFavorite","favorite","dataType","entry","loginCallBack","pubMeg","getMyUserInfo","btnPubMeg","pubarea","to_comment_id","comarea","comment","userphone","phone","start","substr","end","querySellerState","showConfirm","consignbuy","editComment","t","texcom","buySure","routeToPay","gbao_url","selCheck","isCheck","prop","splice","selectAll","self","field","checked","nowId","repCommont","commentid","prev","deltOnePopMeg","deltAllPopMeg","comentIdArea","delCommont","comment_ids","delAllCommont","comentIdfield","blackList","black_b_uid","deleteblacklist","goodsRefresh","selectReason","offReason","offSelect","cb","securityEquipment","securityCurrency","offShelf","delSelect","deleteGood","bookIds","mypublish","scrollToComment","tab","scrollIntoView","gotoEdit","gotoGoodsReshelf","getJsImOpenConfig","result","open_config","bindEvent","addObserver","on","children","addClass","event","preventDefault","account","account2","equipment","currency","gotoGoodsEdit","pageParamsConfig","urlParamName","getDisplayAccount"],"mappings":"AAG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