You're welcome.  I'm glad to hear that it worked.
If s:uri is a path name relative to the current directory, you would
be right.  However, if s:uri is a URI naming a file on your local
computer, then I would expect it to begin with "file:", for example:
    file:///path/to/file
The part after "file://" is already a full path name, so using ":p"
is not going to help.  It is not needed.
>  Thanks a lot for your help, I already find fnamemodify() before
> but seems my English is not good enough. 
You're welcome.  I think that ":help expand()" may have a better
explanation of file name expansion, but I don't know whether its
English is any easier to understand.
Regards,
Gary