You could spend years trying understand elections in China and you would still be scratching your head. National elections and most regional elections are indirect where local elections are mostly direct. The National People's Congress, the NPC is composed of about 2800 delegates who are elected by 35 electoral units such as the Congresses of municipalities, regions, the National Liberation Army, Special Administration Regions, etc, etc. Elections to these congresses are both direct and indirect elections. Generally local congresses are directly elected by the people. Getting on the ballot is not uniform. Basically the candidates are selected by the various parties and major pollical groups. Most candidate will be Communists because the Communist Party is the dominate party. One of the major responsibilities of these congresses are selections of leader. The NPC selects the President of China and lower level congresses select some municipal and regional leaders. Others are by direct vote of the people. Most campaigning in direct elections campaign online.