No. Economic compensation is owed only in the employer-initiated situations listed in Article 46 (including mutual termination proposed by the employer and redundancy). If you resign voluntarily, none of those situations applies, so there is no statutory economic compensation.
Nationwide (all cities)
Article 46 situations
Article 46 of the Labor Contract Law lists seven situations where the employer must pay economic compensation. They all trace to the employer's side: the employee terminates under Article 38 (e.g. the employer fails to pay social insurance or wages), the employer proposes mutual termination under Article 36, the employer terminates without fault under Article 40 (the 'N+1' cases), the employer makes redundancies under Article 41, the fixed-term contract expires (unless the employer maintains or improves terms and the employee still declines), the employer's license is revoked or it is ordered to close, or other listed cases. Voluntary resignation by the employee is not among them. So being laid off (redundancy under Article 41, or employer termination under Articles 40 or 36) triggers compensation; resigning on your own does not.
The cancellation duty is the same either way
Note also that the work-permit cancellation obligation (within 10 working days of the employment ending) is identical whether you resign or are laid off.
Local variations
Shanghai caveat
For foreign employees, the same Shanghai caveat applies: in Shanghai, whether compensation is actually payable still turns on the employment contract ('follow the contract' rule), because economic compensation falls outside the five mandatory labor standards. In most other regions the Article 46 distinction applies directly.