|
|
|
import App from '../utils/api'
|
|
|
|
import util from '../utils/util'
|
|
|
|
|
|
|
|
const {regeneratorRuntime} = global
|
|
|
|
module.exports ={
|
|
|
|
getHasEditorFlag(){
|
|
|
|
return new Promise(async function(success,fail){
|
|
|
|
let enter_params=util.cache('enter_params');
|
|
|
|
let res=await App.Reserve.SellerInfo(enter_params)
|
|
|
|
if(res.data.config.is_auth==1){
|
|
|
|
success()
|
|
|
|
}else{
|
|
|
|
fail()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
module.exports = {
|
|
|
|
getHasEditorFlag() {
|
|
|
|
return new Promise(async function (success, fail) {
|
|
|
|
let enter_params = util.cache('enter_params');
|
|
|
|
let res = await App.Reserve.SellerInfo(enter_params)
|
|
|
|
if (res.data.config.is_auth == 1) {
|
|
|
|
success()
|
|
|
|
} else {
|
|
|
|
fail()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
VerificationIsAdmin() {
|
|
|
|
//App.Seller.VerificationIsAdmin
|
|
|
|
return new Promise(async function (success, fail) {
|
|
|
|
let enter_params = util.cache('enter_params');
|
|
|
|
let res = await App.Seller.VerificationIsAdmin({openid:enter_params.seller_openid})
|
|
|
|
if (res.data && res.data.status==1) {
|
|
|
|
success()
|
|
|
|
} else {
|
|
|
|
fail()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|