Commit bef3301f authored by wildfirecode's avatar wildfirecode

1

parent 3c3da063
......@@ -47,6 +47,8 @@
<script src="libs/aes.js"></script>
<script src="libs/pad-zeropadding.js"></script>
<script>
window['duiba'] = '';
// window['duiba'] = '/duiba';
window['registerWX']=(result)=>{console.log(result)}
window['price1']=1;
window['price2']=2;
......
......@@ -469,7 +469,7 @@ export class NetManager extends ABNetManager {
var sgin = this.encrypt(JSON.stringify(data));
const net: INetData = {
name: 'hc_submit',
uri: '/hdtool/happyclear/submit',
uri: window['duiba'] + '/hdtool/happyclear/submit',
type: 'post',
dataType: 'json',
param: {
......@@ -492,7 +492,7 @@ export class NetManager extends ABNetManager {
hc_openTreasureBox(callback: Function): void {
const net: INetData = {
name: 'hc_openTreasureBox',
uri: '/customActivity/happyclear/openTreasureBox',
uri: window['duiba'] + '/customActivity/happyclear/openTreasureBox',
type: 'post',
dataType: 'json',
param: {
......@@ -519,7 +519,7 @@ export class NetManager extends ABNetManager {
};
const net: INetData = {
name: NetName.CUSTOM_ORDER_STATUS,
uri: '/hdtool/recon/getOrderStatus',
uri: window['duiba'] + '/hdtool/recon/getOrderStatus',
type: 'post',
dataType: 'json',
param: param,
......@@ -731,7 +731,7 @@ export class NetManager extends ABNetManager {
public getPlugOrderStatus(callback: Function, orderId: number, pollingCheck: Function, pollingCount = 10, prizeLevel?: number): void {
const net: INetData = {
name: 'getPlugOrderStatus',
uri: '/plugin/getOrderStatus',
uri:window['duiba'] + '/plugin/getOrderStatus',
type: 'get',
dataType: 'json',
param: {
......@@ -806,7 +806,7 @@ export class NetManager extends ABNetManager {
public ajaxElement(callback: Function): void {
const net: INetData = {
name: NetName.CUSTOM_ELEMENT,
uri: '/hdtool/recon/ajaxElement',
uri: window['duiba'] + '/hdtool/recon/ajaxElement',
type: 'get',
dataType: 'json',
param: {
......@@ -820,7 +820,7 @@ export class NetManager extends ABNetManager {
public getShareInfo(callback: Function, ): void {
const net: INetData = {
name: 'getShareInfo',
uri: '/wechatShare/getShareInfo/v2',
uri:window['duiba'] + '/wechatShare/getShareInfo/v2',
type: 'get',
hideMsg: true,
dataType: 'json',
......@@ -835,7 +835,7 @@ export class NetManager extends ABNetManager {
public imgUrl(callback: Function, img64: string): void {
const net: INetData = {
name: 'imgURL',
uri: '/customActivity/duiba/imgUrl',
uri: window['duiba'] + '/customActivity/duiba/imgUrl',
type: 'post',
dataType: 'json',
param: JSON.stringify({
......@@ -851,7 +851,7 @@ export class NetManager extends ABNetManager {
public hc_home(callback: Function, collectRuleId: number): void {
const net: INetData = {
name: 'hc_home',
uri: '/customActivity/happyclear/home',
uri: window['duiba'] + '/customActivity/happyclear/home',
type: 'get',
dataType: 'json',
param: {
......@@ -864,7 +864,7 @@ export class NetManager extends ABNetManager {
public hc_getLevelInfo(callback: Function, getLevelInfo: number): void {
const net: INetData = {
name: 'hc_getLevelInfo',
uri: '/customActivity/happyclear/getLevelInfo',
uri: window['duiba'] + '/customActivity/happyclear/getLevelInfo',
type: 'get',
dataType: 'json',
param: {
......@@ -886,7 +886,7 @@ export class NetManager extends ABNetManager {
}
const net: INetData = {
name: 'hc_exchange',
uri: '/customActivity/happyclear/exchange',
uri: window['duiba'] + '/customActivity/happyclear/exchange',
type: 'post',
dataType: 'json',
param: d,
......@@ -897,7 +897,7 @@ export class NetManager extends ABNetManager {
public hc_askForEnergy(callback: Function): void {
const net: INetData = {
name: 'hc_askForEnergy',
uri: '/customActivity/happyclear/askForEnergy',
uri: window['duiba'] + '/customActivity/happyclear/askForEnergy',
type: 'post',
dataType: 'json',
param: {
......@@ -910,7 +910,7 @@ export class NetManager extends ABNetManager {
public hc_useProp(callback: Function, propType: number): void {
const net: INetData = {
name: 'hc_useProp',
uri: '/customActivity/happyclear/useProp',
uri:window['duiba'] + '/customActivity/happyclear/useProp',
type: 'post',
dataType: 'json',
param: {
......@@ -1046,7 +1046,7 @@ export class NetManager extends ABNetManager {
const net: INetData = {
name: 'hc_doJoin',
uri: '/hdtool/happyclear/doJoin',
uri: window['duiba'] + '/hdtool/happyclear/doJoin',
type: 'post',
dataType: 'json',
param: param,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment