Recently, the traditional cloud computing network of vehicle networking has some problems to be solved: 1) the security trust between the vehicle and the subgrade unit; 2) The vehicle may be attacked by potentially malicious edge servers during task unloading. In this paper, in order to solve the above problems, aiming at the security problem of the edge computing network in the vehicle task unloading and resource allocation problems of multi-vehicle and multi-roadbed units in the urban intersection scene, the vehicle task unloading and resource management optimization algorithm and trust model based on the vehicle edge computing network are constructed, and the approximate optimal simulation is carried out for the urban intersection scene. Simulation results show that the proposed algorithm can effectively improve the overall efficiency of the system.