Tm1637 and ds1302 together

Neither device is SPI. They are not designed to share the SPI bus.
So I suggest that you use separate pins for each device.