WeChat official account custom menu to open the applet (java interface modification menu)

WeChat official account custom menu to open the applet (interface modification menu)

1. Basic knowledge

Configure WeChat official account menu through the interface-click to enter

2. Menu json example

Insert picture description here

2. Menu type of the check-in applet

java class: MiniprogramButton.java

public class MiniprogramButton extends AbstractButon {

	public MiniprogramButton(String name) {
		super(name);
	}

	private String type = "miniprogram";
	private String url = "http://mp.weixin.qq.com";
	private String appid = "wxf9455454545454";// 小程序-ID
	private String pagepath = "pages/index/index";

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getPagepath() {
		return pagepath;
	}

	public void setPagepath(String pagepath) {
		this.pagepath = pagepath;
	}
}

java class: AbstractButon.java

public abstract class AbstractButon {

	private String name;

	public AbstractButon(String name) {
		super();
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}

Guess you like

Origin blog.csdn.net/Asia1752/article/details/109358940