|
@@ -382,6 +382,17 @@ tools.delCosToken=function (data){
|
|
|
uni.removeStorageSync('cosToken')
|
|
uni.removeStorageSync('cosToken')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+tools.addQueryString=function (params) {
|
|
|
|
|
+ let str = '';
|
|
|
|
|
+ for (let Key in params) {
|
|
|
|
|
+ str += Key + '=' + params[Key] + '&';
|
|
|
|
|
+ }
|
|
|
|
|
+ return '?' + str;
|
|
|
|
|
+ //return '?' + str.substr(0, str.length -1); 严谨一些
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
tools.getCosToken=function (){
|
|
tools.getCosToken=function (){
|
|
|
let cosToken= uni.getStorageSync('cosToken')
|
|
let cosToken= uni.getStorageSync('cosToken')
|
|
|
if(!cosToken){
|
|
if(!cosToken){
|