linxian_wei 发表于 2021-7-3 17:54:25

如何根据VIP等级来做一个折扣的价格生成

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAmwAAABzCAYAAAAlil5CAAAgAElEQVR4Ae2dC1xU5br/lyIiCkLERchrkljuUPG23WiipqK78eSlPKj/Y1JamqZ5a4caqPlJj5fO3rory/5oKOw097HJG5hShhcsKVIJxFAwZJSbICN3f+ezZphhBgYQHdZ61zvPfD7zAYaZ9bzP93neZ/1mrfci/P0WwOvzE00VLv5+HTHZWm595DV2LPtFecVvzWA57+Rq2+GsAiRcz6EayvG5Uq7cYs2uobaXlGjB4kNgDZg122OAT4KNTrCUV5QD1swBWzoWCTbqO7aS7wbNQIJNhm8nBvgk2KjgWLPgUF5RPlkzn1g/Fgk2ynfWc9Ra7TPUdhJsJNjoloIMOWCtjmx6HEOnpi8CdCIzzQtefyfBRnnOa27X9ctQ20mwyXCyNsCnEysVnLod81H+pryifHqU/FHaZ0mwUb4rLWcftr2G2k6CjQQbXWGTIQcetuM29jlDp6YvAnQiayxPePkfCTbKc15yuSk/DLWdBJsMJ2sDfDqxUsFpqqM25/+UV5RPzckXpb+XBBvlu9Jz+EHbb6jtJNhIsNEVNhly4EE7anPeZ+jU9EWATmTNyRulvpcEG+W5UnO3ue021HYSbDKcrA3w6cRKBae5Hbex91NeUT41lh+8/Y8EG+U7bzndkD+G2k6CjQQbXWGTIQca6piP8rqhU9MXATqRPUoeKeWzJNgoz5WSq4/aTkNtJ8Emw8naAJ9OrFRwHrUjm36e8oryyTQfeP+dBBvlO+85bvDPUNtJsJFgoytsMuSAoSNa86ehU9MXATqRWTOvWD0WCTbKc1Zz09rtMtR2ZgWb2EBen5E3y3R7iX71RzG3PvIaO5b9orzit2awnHdytS02Kw9nrt+kGsrxuVKu3GLNrqG2MyvYxM3ReX6mXf0dl3+/xrWPPMePVd8or/iuG6zmnRztSvn9GlKvZlAN5fxcKUdusWhTrO3MCjaxYbw+i4qL8XvGNeTlF3DrI6+xY9kvyit+aw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NgGARJsthFn8pIIEAEiQASIABFQMAESbAoOHjWdCBABIkAEiAARsA0CJNhsI87kJREgAkSACBABIqBgAiTYFBw8ajoRIAJEgAgQASJgGwT+D6bHUK0tqkO8AAAAAElFTkSuQmCC


如题,我想把这个订单折后价格根据客户的VIP等级的不同而享受的VIP折扣不同应该怎么制作。。




客户等级有5个级别,分别是V1、V2、V3、V4、V5
折扣分别为:1折,0.9折,0.8折,0.7折,0.6折。


我需要这个折扣最后的算法结果为:折扣价格=总金额X折扣金额(折扣金额需要获取当前用户的VIP等级享受当前等级的折扣)应该如何实现呢?




是把用户的等级和折扣都需要做一个接口还是怎么样,求教一下。。

长宁 发表于 2021-7-5 08:57:38

你可以建立一个客户信息维护表单,字段包括客户名称、vip等级、折扣,其中vip等级和折扣是做接口的,可以直接在这个表单里做接口,可以省个表单,然后建立下面这个接口,添加参数。
这样你就可以用金额值变化套这个接口实现你要的功能了

天铎 发表于 2021-7-5 10:04:10

涉及到的模板:《订单》《客户信息》《VIP设置》
《客户信息》中记录VIP等级,《VIP设置》中记录各个VIP等级享受的折扣优惠。
调用客户信息的数据接口添加数据源《VIP设置》,联结方式由“交集”改为“左关联” ,关联关系添加一条“客户.VIP等级 = VIP设置.VIP等级”。 接口做好了,在《订单》模板中随你使用。
页: [1]
查看完整版本: 如何根据VIP等级来做一个折扣的价格生成