With the advent of 5G era,higher requirements are put forward for the integra-tion and performance index of photonic devices.However,the disadvantages of tradition-al devices,such as non-tuning,low efficiency and poor stability,limit their application in optical communication with high integration and high transmission speed.In recent years,the excellent thermal conductivity and high refraction of diamond make it one of the best materials for studying dielectric materials in electromagnetic absorption devices,Gra-phene's characteristics,including discrete Landau energy level induced by magnetic field,tunable chemical potential and easy excitation of THz SPP,play a vital role in solving this problem.Under this research background,the tunable photonic devices based on gra-phene and diamond are studied in this paper.A phase-modulated double-band perfect ab-sorber is designed based on the tunable chemical potential of graphene and easy excitation of THz SPP.The effects of diamond dielectric thickness,graphene chemical potential and incident angle on the absorption performance of electromagnetic absorber were studied.it is found that the dielectric thickness of diamond shows a periodic modulation effect on the absorption rate,and the high refractive index of diamond can reduce the thickness of die-lectric layer,which is easy to miniaturize the device.Therefore,the device realizes the absorption of terahertz signals,and has the advantages of tunability,high absorption rate and strong stability.