A few vendors, such as hotels and restaurants with a lot of non-Chinese customers, may be willing to accept US dollars as payment.
However, you may wind up paying an unfavorable exchange rate. Instead, make a withdrawal using your debit card at an ATM. You’ll be able to get local currency at a better exchange rate.