Check-in [9ddfbbd676]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Solution to feature request [67c4ba4175]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9ddfbbd676bdec89206ca501cf4eaffcaf0c2c20
User & Date: xiekevin 2018-01-02 16:55:32
Context
2018-01-08
18:21
Implemented feature request [c961f21c74] check-in: 4c2b0d3040 user: xiekevin tags: trunk
2018-01-02
16:55
Solution to feature request [67c4ba4175] check-in: 9ddfbbd676 user: xiekevin tags: trunk
2017-12-31
04:06
Fixed defect [62368fca39] check-in: 38e7fee3d6 user: xiekevin tags: trunk
Changes

Changes to src/fanxi/middle/entity/Customer.java.

217
218
219
220
221
222
223


224
225
	
	public static enum VIP {
		NONE,	// no discount
		NORMAL,	// 5% discount VIP customer
		BRONZE,	// 10% discount Bronze customer
		SILVER,	// 15% discount Silver customer
		GOLD,	// 20% discount silver customer


	}
}







>
>


217
218
219
220
221
222
223
224
225
226
227
	
	public static enum VIP {
		NONE,	// no discount
		NORMAL,	// 5% discount VIP customer
		BRONZE,	// 10% discount Bronze customer
		SILVER,	// 15% discount Silver customer
		GOLD,	// 20% discount silver customer
		SUPER,	// 22% discount 
		EXTREME, // 30% discount
	}
}

Changes to src/fanxi/middle/web/js/fx_customer.js.

379
380
381
382
383
384
385
386


387
388
389
390
391
392
393
};

fx.customer.vip = {
    NONE:   { discount:0, zhe:"", desc: "非VIP会员"},   // no discount
    NORMAL: { discount:5, zhe:"9.5 折", desc: "VIP会员"}, // 5% discount VIP customer
    BRONZE: { discount:10, zhe:"9 折", desc: "VIP会员"}, // 10% discount Bronze customer
    SILVER: { discount:15, zhe:"8.5 折", desc: "VIP会员"}, // 15% discount Silver customer
    GOLD:   { discount:20, zhe:"8 折", desc: "VIP会员"},   // 20% discount silver customer


    getKVPairs: function() {
        const a = [];
        $.each(fx.customer.vip, function(key, value) {
            // ignore methods
            if( !(value instanceof Function) ) {
                a.push([key, value.zhe + value.desc ]);
            }







|
>
>







379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
};

fx.customer.vip = {
    NONE:   { discount:0, zhe:"", desc: "非VIP会员"},   // no discount
    NORMAL: { discount:5, zhe:"9.5 折", desc: "VIP会员"}, // 5% discount VIP customer
    BRONZE: { discount:10, zhe:"9 折", desc: "VIP会员"}, // 10% discount Bronze customer
    SILVER: { discount:15, zhe:"8.5 折", desc: "VIP会员"}, // 15% discount Silver customer
    GOLD:   { discount:20, zhe:"8 折", desc: "VIP会员"},   // 20% discount Gold customer
    SUPER:   { discount:22, zhe:"7.8 折", desc: "VIP会员"},
    EXTREME:   { discount:30, zhe:"7 折", desc: "VIP会员"},
    getKVPairs: function() {
        const a = [];
        $.each(fx.customer.vip, function(key, value) {
            // ignore methods
            if( !(value instanceof Function) ) {
                a.push([key, value.zhe + value.desc ]);
            }