| 12345678910111213141516171819202122232425262728293031323334353637 |
- cc.Class({
- extends: cc.BaseClass,
- properties: {
- m_EditBox:cc.EditBox,
- },
- // onLoad () {},
- start () {
- },
- OnClickCommitComplain:function(){
- if(this.m_EditBox.string.length < 10){
- this.ShowAlert("您提交的資訊內容少於10個字,請詳細描述內容重新提交");
- return;
- }
- var pGlobalUserData = g_GlobalUserInfo.GetGlobalUserData();
- var webUrl = window.PHP_HOME+'/UserFunc.php?&GetMark=32&strAccounts='+pGlobalUserData.szAccounts;
- webUrl += '&strTitle='+"防賭博投訴" ;
- webUrl += '&strContent=' + this.m_EditBox.string;
- webUrl += '&dwSort=2';
- webUrl += '&strClientIP=' + pGlobalUserData.szClientIP;
- webUrl += '&strErrorDescribe=0';
- WebCenter.GetData(webUrl, 0, function (data) {
- var Res = JSON.parse(data);
- if(Res.strErrorDescribe && Res.strErrorDescribe.length > 0){
- this.ShowAlert(Res.strErrorDescribe,Alert_Yes,function(){
- this.m_EditBox.string = "";
- this.HideView();
- }.bind(this));
- }
- }.bind(this));
- },
- // update (dt) {},
- });
|