手機(jī)充值HTML代碼_第1頁
手機(jī)充值HTML代碼_第2頁
手機(jī)充值HTML代碼_第3頁
手機(jī)充值HTML代碼_第4頁
手機(jī)充值HTML代碼_第5頁
已閱讀5頁,還剩48頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、 充話費(fèi)-充值中心-淘寶網(wǎng) (num)return Math.floor(Math.random()*num)+1var (function()function atrandP=location.pathname;if(parent=self)|P.indexOf(/list_forum)!=-1|P.indexOf(/theme/info/info)!= -1|P.indexOf(/promo/co_header.php)!= -1|P.indexOf(fast_buy.htm)!= -1|P.indexOf(/add_collection.htm)!= -1)var R=escape(do

2、cument.referrer);document.write()(); (function()function akrand(num)return Math.floor(Math.random()*num)+1var P=location.pathname;if(parent=self)|P.indexOf(/list_forum)!=-1|P.indexOf(/theme/info/info)!= -1|P.indexOf(/promo/co_header.php)!= -1|P.indexOf(fast_buy.htm)!= -1|P.indexOf(/add_collection.ht

3、m)!= -1)var R=escape(document.referrer);var acookie_load_id=+akrand(9999999999)+akrand(9999999999);var isv_title=escape(document.title);document.write()(); 手機(jī)號碼: 查看最近輸入的號碼 所屬: 請選擇 浙江 上海 北京 廣東 江蘇 安徽 重慶 福建 甘肅 廣西 貴州 河北 湖北 黑龍江 海南 河南 湖南 吉林 江西 遼寧 內(nèi)蒙古 寧夏 青海 四川 山東 山西 陜西 天津 新疆 西藏 云南 運(yùn)營商: 請選擇 移動(dòng) 聯(lián)通 電信/CDMA 所屬

4、:浙江移動(dòng)(不是浙江移動(dòng),) 充值方式: 自動(dòng)充值(1-10分鐘充值到帳) 賣家代充(2小時(shí)充值到帳) 自動(dòng)發(fā)貨(提取卡密手動(dòng)充值) 其他充值方式 面額: 100元 50元 其他 1元 10元 20元 30元 200元 300元 500元 1000元 價(jià)格: 98元-99.6元 點(diǎn)此充值 new!開通定期充值 YAHOO.util.Event.onDOMReady(function() var Util = YAHOO.util,Dom = Util.Dom, Event = Util.Event,Lang = Util.Lang; var telInput=Dom.get(J_TelInpu

5、t); /輸入框默認(rèn)顯示文字提示 var telInputTips=telInput.title; telInput.removeAttribute(title); telInput.value=telInputTips; telInput.style.color=#808080; /切換輸入框的提示顯示 Event.on(telInput,click,function() if(telInput.value=telInputTips) telInput.value=; telInput.style.color=#404040; ); Event.on(telInput,focus,funct

6、ion() if(telInput.value=telInputTips) telInput.value=; telInput.style.color=#404040; ); Event.on(telInput,blur,function() if(Lang.trim(telInput.value)=) telInput.value=telInputTips; telInput.style.color=#808080; ); /前端校驗(yàn)輸入的電話號碼是否合格 var telInputBox=Dom.get(J_TelInputBox); var selectZone=Dom.get(J_Sel

7、ectZone); var msgBox=Dom.get(J_Msg); var belongResult=Dom.get(J_BelongResult); var belong=Dom.get(J_Belong); var belongModifyLink=Dom.get(J_BelongModifyLink); var validateResultPanelArr=selectZone,msgBox,belongResult; var telZoneSelect=Dom.get(J_TelZone); var telISPSelect=Dom.get(J_TelISP); /* *設(shè)置選擇

8、運(yùn)營商是否只有電信可用 * param Boolean ifOnlyCTSelectable=false 設(shè)置運(yùn)營商是否只有電信可選 */ function setISPOptionState(ifOnlyCTSelectable) var ISPOptionArr=telISPSelect.getElementsByTagName(option); if(ifOnlyCTSelectable) for(var i=0,len=ISPOptionArr.length;ilen;i+) if(ISPOptionArri.innerHTML.indexOf(電信)0 & ISPOptionArri

9、.innerHTML.indexOf(選擇)0) ISPOptionArri.disabled=true; else for(var i=0,len=ISPOptionArr.length;i=0) result.catName = 電信 ; else if (result.catName & result.catName.indexOf(移動(dòng))=0) result.catName = 移動(dòng) ; else if (result.catName & result.catName.indexOf(聯(lián)通)=0) result.catName = 聯(lián)通 ; /埋點(diǎn)log var suoshu = Do

10、m.get(suoshu); var type = Dom.get(type); var telString = Dom.get(telString); suoshu.value=vince; type.value=result.catName; telString.value=result.telString; /如果請求的是固話的 if(telInput.value.substr(0,1)=0) setISPOptionState(true); /如果返回的省信息不成功,默認(rèn)設(shè)置北京 if(vince = ) setSelectValue(telZoneSelect,innerHTML,北

11、京); else setSelectValue(telZoneSelect,innerHTML,vince); setSelectValue(telISPSelect,innerHTML,電信/CDMA); else /如果請求的是手機(jī)號碼且查詢成功的 if(result.mts) showPanel(belongResult); setSelectValue(telZoneSelect,innerHTML,vince); if(result.catName = 電信) setSelectValue(telISPSelect,innerHTML,電信/CDMA); else setSelect

12、Value(telISPSelect,innerHTML,result.catName); belong.innerHTML=vince+result.catName; belongModifyLink.innerHTML=不是+vince+result.catName; /如果手機(jī)號碼查詢不成功,僅返回地區(qū) else setSelectValue(telZoneSelect,innerHTML,請選擇); setSelectValue(telISPSelect,innerHTML,請選擇); /如果ip也查詢不成功,默認(rèn)省信息為移動(dòng) if(vince = ) /setSelectValue(

13、telZoneSelect,innerHTML,浙江); /setSelectValue(telISPSelect,innerHTML,移動(dòng)); Dom.addClass(Dom.get(J_SubmitButton),active); else /setSelectValue(telZoneSelect,innerHTML,vince); / add by mbn 請求成功刷新一次價(jià)格 start if(isPriceEnoughCondition() getPriceInfo(); else getPriceZoneInfo(); / add by mbn 請求成功刷新一次價(jià)格 end ,

14、 charset: document.charset | document.characterSet ); /modified by mbn 修改了正則表達(dá)式 手機(jī)以1開頭,長度11位 start /增加固話表達(dá)式,以0開頭,長度9到12位 /中國移動(dòng)手機(jī)號表達(dá)式 CMCCPhoneNumberPattern=/1d10$/; /中國聯(lián)通手機(jī)號表達(dá)式 CUCPhoneNumberPattern=/1d10$/; /固話表達(dá)式 CommonPhoneNumberPattern=/0d8,11$/; /modified by mbn 修改了正則表達(dá)式 end /* *設(shè)置select的指定項(xiàng)為選中

15、狀態(tài) * param HTMLElement selectEl 要設(shè)置的select元素 * param String attribute 根據(jù)select的該屬性來判定哪個(gè)option被選中,接受兩個(gè)值value和innerHTML * param String value 被選中的option的指定屬性對應(yīng)的值 */ function setSelectValue(selectEl,attribute,value) if(attribute=value) selectEl.value=value; else var optionArr=selectEl.getElementsByTagNa

16、me(option); for(var i=0,len=optionArr.length;i11) telInput.value=val.substr(0,11); val=telInput.value; /如果手機(jī)號碼輸入到11位,且通過移動(dòng)或者聯(lián)通號碼格式的校驗(yàn) if(val.length=11) if(val.match(CMCCPhoneNumberPattern) | val.match(CUCPhoneNumberPattern) highlightTelInputBox(false); showPanel(selectZone); /手機(jī)號碼通過驗(yàn)證時(shí)才去獲取地區(qū)信息 getTe

17、lInfo(); /add by mbn else highlightTelInputBox(true); showPanel(msgBox); msgBox.innerHTML=請輸入正確的手機(jī)號碼; else showPanel(); highlightTelInputBox(false); ; if(val = ) getPriceZoneInfo(); Event.on(telInput,keyup,validateTel); /獲取手機(jī)號碼信息成功后,給用戶自行修改的鏈接 Event.on(belongModifyLink,click,function(ev) Event.stopE

18、vent(ev); showPanel(selectZone); ) /顯示更多充值方式 var methodBox=Dom.get(J_MethodBox); var moreMethodTrigger=Dom.get(J_MoreMethodTrigger); Event.on(moreMethodTrigger,click,function(e) Event.preventDefault(e); methodBox.style.height=auto; this.style.display=none; ); /高亮選中的面額 var inationBox).getElementsByTa

19、gName(label); denominationRadioArr=Dom.get(J_Denomfor(var i=0,len=denominationRadioArr.length;ilen;i+) if(denominationRadioArri.getElementsByTagName(input)0.checked) Dom.addClass(denominationRadioArri,selected); break; Event.on(denominationRadioArr,click,function(e) Dom.removeClass(denominationRadio

20、Arr,selected); Dom.addClass(this,selected); var t=Event.getTarget(e); if(t.nodeName.toLowerCase()=input) / add by mbn 高亮的同時(shí)刷新價(jià)格或價(jià)格區(qū)間 start if(isPriceEnoughCondition() getPriceInfo(); else getPriceZoneInfo(); / add by mbn 高亮的同時(shí)刷新價(jià)格或價(jià)格區(qū)間 end ); /初始化flash本地存儲 flashStorage.init(); /將通過驗(yàn)證提交的號碼添加到本地存儲,存儲最

21、近5個(gè)號碼 function addTelToStorage(tel) flashStorage.read(latestTelNum,function(val) if(!val | val.length=0) flashStorage.save(latestTelNum,tel); else var telNumArr=val.split(,); if(val.indexOf(tel)=3) telNumArr.shift(); else for(var i=0,len=telNumArr.length;i0) Dom.addClass(telInputIcon,has-latest-inpu

22、t); var telNumArr=val.split(,); var telNumList=document.createElement(div); Event.onDOMReady(function()document.body.appendChild(telNumList);); telNumList.style.display=none; telNumList.className=tel-num-list; var inner=; inner+=; for(var len = telNumArr.length,i = len - 1;i = 0;i-) if(i=len - 1) /a

23、dd by mbn 20100318 號碼輸入框顯示最近輸入的一個(gè)號碼,并刷新價(jià)格 start telInput.value = telNumArri; validateTel(); /add by mbn 20100318 end inner+=+telNumArri+ else inner+=+telNumArri+ if (Dom.get(J_AdNewLink) Dom.get(J_AdNewLink).style.display=block ; inner+=; telNumList.innerHTML=inner; var popupOffset = YAHOO.env.ua.ie

24、 = 6 ? -41,-2 : -40,0; TB.widget.SimplePopup.decorate(telInputIcon,telNumList,position:bottom,align:right,offset:popupOffset); Event.on(telNumList,click,function(e) Event.stopEvent(e); var t=Event.getTarget(e); if(t.nodeName.toLowerCase()=a) telInput.value=t.innerHTML; telNumList.style.display=none;

25、 /add by mbn 20100318 刷新價(jià)格 start validateTel(); /add by mbn 20100318 end ); ); var act = , hasLogin = false,/false, roper = ;/ /提交前驗(yàn)證號碼是否足位 Event.on(J_FormTelephone,submit,function(e) var val=telInput.value; var itemId = formTelephoneitem_id_num.value; if(!(val.match(CMCCPhoneNumberPattern) | val.ma

26、tch(CUCPhoneNumberPattern) | val.match(CommonPhoneNumberPattern) Event.preventDefault(e); highlightTelInputBox(true); showPanel(msgBox); msgBox.innerHTML=號碼錯(cuò)誤,如需充固話請?zhí)砑訁^(qū)號。; else if(!validateItemId(itemId) Event.preventDefault(e); Dom.removeClass(msgBox, hidden); msgBox.innerHTML=請選擇歸屬地; else /modifie

27、d by mbn 20100322 只有直沖帶auction參數(shù),其他不帶 /獲得充值方式,不同的充值方式url參數(shù)不一樣 var method = getMethodSelected(); if(method = 0) buyA = action; else buyA = noaction; addTelToStorage(val); tloadAt(2); if (typeof act != undefined & act = hb) if (hasLogin) document.createElement(img).src = /recharge/saveRope.do?roper=+r

28、oper; else Event.stopEvent(e); top.location.href = .com%/member/login.jhtml?redirectURL=http%3A%2F%2Fwww.taobao2Fgo%2Fact%2Fsale%2Fbwdj.php%3Froper%3D+roper; ); /埋點(diǎn)函數(shù) function tloadAt(pmid) var cImg = document.createElement(img); if(pmid = 1) cImg.src = /?url=?ad_id=&am_id=&cm_id=&pm_id

29、914483f8; else cImg.src = /?url=?ad_id=&am_id=&cm_id=&pm_idcd5542ca; return true; function nloadAt(pmid) var cImg = document.createElement(img); if(pmid) cImg.src = /jsclick?cache=+(Math.floor(Math.random()*99999)+1)+&xfzhyj=+pmid; return true; function StringBuffer() this._strings_ = n

30、ew Array(); StringBtotype.append = function(str) this._strings_.push(str); StringBtotype.toString = function() return this._strings_.join(); /form對象 var formTelephone = Dom.get(J_FormTelephone); /其他面值 var denominationSelect = Dom.get(J_DenominationSelect); /價(jià)格 var priceSelect = Dom.get(J_Price); /價(jià)格

31、label var priceLabel = Dom.get(J_PriceLabel); /面值區(qū)域box var denominationBox = Dom.get(J_DenominationBox); /充值方式box var methodBox = Dom.get(J_MethodBox); /點(diǎn)此充值按鈕 var submitButton = Dom.get(J_SubmitButton); /buy的auction參數(shù)隱藏域 var buyAuction = Dom.get(J_BuyAuction); var CatProps = function() ; var catPro

32、ps = new CatProps(); catProps150401 = 20780,20779,20789; catProps150402 = 20782,20781,20790; catProps50011814 = 1626918,1626917,1626919; var CatReserve = function() ; var catReserve = new CatReserve(); catReserve150401 = 1,10,20,30,200,300,500,1000; catReserve150402 = 1,10,20,30,133,200,300,500; cat

33、Reserve50011814 = 1,10,20,30,200,300,500,1000; catReservepersonnal = 1,10,20,30,200,300,500; var ecardPrice = 1:30675, 10:30676, 20:30677, 30:30688, 50:30678, 100:30679, 200:30690, 300:30691, 500:30692, 1000:38182, 其它面值:30689 var areaLocations = 全國通用:30680, 北京:29400, 天津:29428, 內(nèi)蒙古:30495, 黑龍江:30496,

34、吉林:30497, 遼寧:30498, 河北:30499, 河南:30500, 山東:30501, 山西:30502, 陜西:30503, 青海:30504, 甘肅:30505, 新疆:30506, 西藏:27009, 寧夏:30507, 重慶:29404, 四川:30508, 安徽:30509, 上海:29423, 浙江:30510, 江蘇:30511, 江西:30512, 湖北:30513, 湖南:30514, 云南:30515, 貴州:30516, 廣東:30517, 廣西:30518, 福建:30519, 臺灣:27368, 香港:27369, 澳門:29121, 海南:30520,

35、其他地區(qū):30681 var gFilters = new Array(); gFilters150401-auto_ship-10=10,12; gFilters150401-auto_ship-20=19.6,23; gFilters150401-auto_ship-30=29.5,32; gFilters150401-auto_ship-50=49.05,50; gFilters150401-auto_ship-100=98.1,100; gFilters150401-auto_ship-200=196.4,200; gFilters150401-auto_ship-300=294.6,

36、300; gFilters150401-auto_ship-500=490,500; gFilters150401-auto_ship-1000=984,1000; gFilters150401-delegator_fill_72H-1=1.2,2; gFilters150401-delegator_fill_72H-10=9.85,12; gFilters150401-delegator_fill_72H-20=19.7,22; gFilters150401-delegator_fill_72H-30=29.55,31; gFilters150401-delegator_fill_72H-5

37、0=48,50; gFilters150401-delegator_fill_72H-100=96,100; gFilters150401-delegator_fill_72H-200=192,200; gFilters150401-delegator_fill_72H-300=288,300; gFilters150401-delegator_fill_72H-500=480,500; gFilters150401-delegator_fill_72H-1000=984,1000; gFilters150401-delegator_fill_10M-1=1.2,2; gFilters1504

38、01-delegator_fill_10M-10=9.9,12; gFilters150401-delegator_fill_10M-20=20,23; gFilters150401-delegator_fill_10M-30=29.5,32; gFilters150401-delegator_fill_10M-50=49,50; gFilters150401-delegator_fill_10M-100=98,100; gFilters150401-delegator_fill_10M-200=196.4,200; gFilters150401-delegator_fill_10M-300=

39、294.6,300; gFilters150401-delegator_fill_10M-500=490,500; gFilters150401-delegator_fill_10M-1000=984,1000; gFilters150401-ecard_item-10=10,10.6; gFilters150401-ecard_item-20=20,20.8; gFilters150401-ecard_item-30=30.5,30.5; gFilters150401-ecard_item-50=49.7,49.9; gFilters150401-ecard_item-100=99.4,99

40、.5; gFilters150401-ecard_item-200=199.5,199.5; gFilters150401-ecard_item-300=299.3,299.3; gFilters150401-ecard_item-500=498.9,498.9; gFilters150402-auto_ship-1=1.35,2; gFilters150402-auto_ship-10=9.7,12; gFilters150402-auto_ship-20=19.4,23; gFilters150402-auto_ship-30=29.4,32; gFilters150402-auto_sh

41、ip-50=49.05,50; gFilters150402-auto_ship-100=98.1,100; gFilters150402-auto_ship-133=130,135; gFilters150402-auto_ship-200=196.4,200; gFilters150402-auto_ship-300=294.6,300; gFilters150402-auto_ship-500=490,500; gFilters150402-auto_ship-1000=984,1000; gFilters150402-delegator_fill_10M-1=1.2,2; gFilte

42、rs150402-delegator_fill_10M-10=9.7,12; gFilters150402-delegator_fill_10M-20=19.4,23; gFilters150402-delegator_fill_10M-30=29.4,32; gFilters150402-delegator_fill_10M-50=49; gFilters150402-delegator_fill_10M-100=98; gFilters150402-delegator_fill_10M-133=130,135; gFilters150402-delegator_fill_10M-200=1

43、96.4,200; gFilters150402-delegator_fill_10M-300=294.6,300; gFilters150402-delegator_fill_10M-500=490,500; gFilters150402-delegator_fill_10M-1000=984,1000; gFilters150402-delegator_fill_72H-1=1.2,2; gFilters150402-delegator_fill_72H-10=9.6,13; gFilters150402-delegator_fill_72H-20=19.2,22; gFilters150

44、402-delegator_fill_72H-30=29,31; gFilters150402-delegator_fill_72H-50=47.75,50; gFilters150402-delegator_fill_72H-100=95.5,100; gFilters150402-delegator_fill_72H-133=128,135; gFilters150402-delegator_fill_72H-200=191,200; gFilters150402-delegator_fill_72H-300=287,300; gFilters150402-delegator_fill_7

45、2H-500=479,500; gFilters150402-delegator_fill_72H-1000=984,1000; gFilters150402-ecard_item-20=20,21.5; gFilters150402-ecard_item-30=30,31.5; gFilters150402-ecard_item-50=49.15,49.6; gFilters150402-ecard_item-100=99.1,99.6; gFilters150402-ecard_item-200=199,199; gFilters50011814-auto_ship-10=10,12; g

46、Filters50011814-auto_ship-20=19.6,23; gFilters50011814-auto_ship-30=29.5,32; gFilters50011814-auto_ship-50=49.05,50; gFilters50011814-auto_ship-100=98.1,100; gFilters50011814-auto_ship-200=196.4,200; gFilters50011814-auto_ship-300=294.6,300; gFilters50011814-auto_ship-500=490,500; gFilters50011814-a

47、uto_ship-1000=984,1000; gFilters50011814-delegator_fill_72H-1=1.2,2; gFilters50011814-delegator_fill_72H-10=9.85,12; gFilters50011814-delegator_fill_72H-20=19.7,22; gFilters50011814-delegator_fill_72H-30=29.55,31; gFilters50011814-delegator_fill_72H-50=48,50; gFilters50011814-delegator_fill_72H-100=

48、96,100; gFilters50011814-delegator_fill_72H-200=192,200; gFilters50011814-delegator_fill_72H-300=288,300; gFilters50011814-delegator_fill_72H-500=480,500; gFilters50011814-delegator_fill_72H-1000=984,1000; gFilters50011814-delegator_fill_10M-1=1.2,2; gFilters50011814-delegator_fill_10M-10=9.9,12; gF

49、ilters50011814-delegator_fill_10M-20=20,23; gFilters50011814-delegator_fill_10M-30=29.5,32; gFilters50011814-delegator_fill_10M-50=49,50; gFilters50011814-delegator_fill_10M-100=98,100; gFilters50011814-delegator_fill_10M-200=196.4,200; gFilters50011814-delegator_fill_10M-300=294.6,300; gFilters5001

50、1814-delegator_fill_10M-500=490,500; gFilters50011814-delegator_fill_10M-1000=984,1000; gFilters50011814-ecard_item-20=19.84,19.96; gFilters50011814-ecard_item-20=29.58,29.76; gFilters50011814-ecard_item-20=49.3,49.8; gFilters50011814-ecard_item-20=98,99.6; gFilterscommon-ecard_item-1=0.98,1.5; gFil

51、terscommon-ecard_item-10=10,10.6; gFilterscommon-ecard_item-20=19.84,20.8; gFilterscommon-ecard_item-30=29.58,31.5; gFilterscommon-ecard_item-50=49.3,49.9; gFilterscommon-ecard_item-100=98,99.6; gFilterscommon-ecard_item-133=130.3,131.6; gFilterscommon-ecard_item-200=199,199.5; gFilterscommon-ecard_

52、item-300=299,299.3; gFilterscommon-ecard_item-500=498,498.9; gFilterscommon-ecard_item-1000=980,990; gFilterscommon-delegator_fill-1=0.98,1.5; -delegator_fill-10=9.8,9.9; gFilterscommongFilterscommon-delegator_fill-20=19.6,20; gFilterscommon-delegator_fill-30=29.4,30; gFilterscommon-delegator_fill-5

53、0=49,49.8; gFilterscommon-delegator_fill-100=98,99.5; gFilterscommon-delegator_fill-133=130.3,131.6; gFilterscommon-delegator_fill-200=196,199; gFilterscommon-delegator_fill-300=294,299; gFilterscommon-delegator_fill-500=490,498; gFilterscommon-delegator_fill-1000=980,990; gFilterscommon-auto_post-1

54、=0.98,1.5; gFilterscommon-auto_post-10=9.81,9.9; gFilterscommon-auto_post-20=19.62,21; gFilterscommon-auto_post-30=29.43,30; gFilterscommon-auto_post-50=49.05,49.8; gFilterscommon-auto_post-100=98.1,99.5; gFilterscommon-auto_post-133=130.3,131.6; gFilterscommon-auto_post-200=196.2,199; gFilterscommo

55、n-auto_post-300=294.3,299; gFilterscommon-auto_post-500=490.5,498; gFilterscommon-auto_post-1000=981,990; function changeReserve() var cat = telISPSelect.value; var r = denominationSelect; var or = r.value; if(catReservecat = undefined | catReservecat = null) return; var resetReserve = false; r.leng

56、th = 0 ; for(var i = 0 ;i catReservecat.length ;i +) r.optionsi = new Option(catReservecati + 元 , catReservecati); if(catReservecati = or)resetReserve = true ; if(resetReserve)r.value = or; /獲得選中的面額的值 function getReservePrice() var reservePrice = 100; var denominationRadioArr=denominationBox.getElem

57、entsByTagName(label); for(var i=0,len=denominationRadioArr.length;ilen;i+) var input = denominationRadioArri.getElementsByTagName(input)0; if(input.checked) if(i 2) reservePrice = input.value; else reservePrice = denominationSelect.value; break; return reservePrice; /獲得選中的充值方式,返回0為直沖,1為代充,2為自動(dòng)發(fā)貨 fun

58、ction getMethodSelected() var methodRadioArr=methodBox.getElementsByTagName(label); for(var i=0,len=methodRadioArr.length;ilen;i+) var input = methodRadioArri.getElementsByTagName(input)0; if(input.checked) return i; break; return -1; var rootUrl = /cc/json/mobile_price.htm?; /獲得請求服務(wù)器的url,包括根鏈接和參數(shù) f

59、unction getPriceUrl() /存放組裝的參數(shù) var params = new StringBuffer(); /獲取所在地,面值,地區(qū)等 var location = telZoneSelect.value; var reservePrice = getReservePrice(); var catId = telISPSelect.value; /獲取屬性id屬性值id var prop = catPropscatId; pidvid = prop1 + : + ecardPricereservePrice+ ; + prop0 + : + areaLocationsloc

60、ation; /首先組裝各種充值方式都必須的參數(shù) start params.append(cat= + catId); params.append(&ar=20); params.append(&commend=all); params.append(&sort=price); params.append(&reserve_price= + reservePrice + 元); /首先組裝各種充值方式都必須的參數(shù) end /獲得充值方式,不同的充值方式url參數(shù)不一樣 var method = getMethodSelected(); if(method = 0) /直沖 params.app

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論