12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- const isUserId = function() {
- var userId=uni.getStorageSync("wxOpenData").loginInfo.uid;
-
- if(!userId){
- uni.navigateTo({
- url:'../login/login'
- })
- }
- }
- function noMultipleClicks(methods, info) {
-
- let that = this;
- if (that.noClick) {
-
- that.noClick= false;
- if((info && info !== '') || info ==0) {
-
- methods(info);
- } else {
- methods();
- }
- setTimeout(()=> {
- that.noClick= true;
- }, 3000)
- } else {
-
- }
- }
- function getExtStoreId(type){
- try{
- const extConfig = uni.getExtConfigSync ? uni.getExtConfigSync() : {shopId:'默认的门店id'}
- console.log(extConfig,'extJson对象');
-
- return extConfig
- }catch(err){
- console.log(err,'getExtStoreId__error')
- }
- }
- export default {
- commonData:{
- companyType:1,
- },
- isUserId,
- getExtStoreId,
- noMultipleClicks,
- }
|