The upcoming 5G system is considered not only can meet the demand of various services, but also solve the problem that data will grow explosively. Therefore, we need a viable network architecture to support various service demand and realize resources allocation flexibly. C-RAN was considered to be a promising 5G network architecture. And network slicing, which as a promising technology, can provides customized service according to the various business scenarios of 5G. This paper proposed a joint resources allocation scheme of network slicing that based on C-RAN. The scheme not only combine network slicing with C-RAN, but also solve the problem of joint spectrum and computing resource allocation. This paper model the problem into a MINLP problem. Based on the characteristics of the model, the problem will be decomposed into two subproblems respectively to be solved. In order to verify the proposed model, the other two joint resource allocation scheme will be introduced to compare. The simulation results also illustrate the effectiveness of the proposed scheme.