feat: 注册域名修改
parent
47cac6fe5e
commit
b513a09d88
|
|
@ -62,6 +62,7 @@ service.interceptors.response.use(
|
||||||
);
|
);
|
||||||
|
|
||||||
const api = {
|
const api = {
|
||||||
|
registerDomain: 'https://www.dxzj8888.top/',
|
||||||
domain: process.env.BASE_URL == '/'? (window.location.origin+'/') : process.env.BASE_URL,
|
domain: process.env.BASE_URL == '/'? (window.location.origin+'/') : process.env.BASE_URL,
|
||||||
// TODO 刷新token
|
// TODO 刷新token
|
||||||
checkUpdate(){
|
checkUpdate(){
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ const selfStore = useSelfStore();
|
||||||
const domRef = ref(null)
|
const domRef = ref(null)
|
||||||
let size = Math.ceil(window.innerWidth * (window.devicePixelRatio || 1) / 2)
|
let size = Math.ceil(window.innerWidth * (window.devicePixelRatio || 1) / 2)
|
||||||
size = Math.ceil(size / 100) * 100
|
size = Math.ceil(size / 100) * 100
|
||||||
const url = api.getQrcodeUrl(api.domain + 'register/index.html?shopsn=' + selfStore.shop.shop_sn + '&agtcid=' + selfStore.user.id, size)
|
const url = api.getQrcodeUrl(api.registerDomain + 'register/index.html?shopsn=' + selfStore.shop.shop_sn + '&agtcid=' + selfStore.user.id, size)
|
||||||
function onClickSavePicture() {
|
function onClickSavePicture() {
|
||||||
savePicture(domRef.value, selfStore.shop.name + (props.item.lottery_name || props.item.lottery?.name))
|
savePicture(domRef.value, selfStore.shop.name + (props.item.lottery_name || props.item.lottery?.name))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ const $q = useQuasar()
|
||||||
const domRef = ref(null)
|
const domRef = ref(null)
|
||||||
let size = Math.ceil(window.innerWidth*(window.devicePixelRatio||1)/2)
|
let size = Math.ceil(window.innerWidth*(window.devicePixelRatio||1)/2)
|
||||||
size = Math.ceil(size/100)*100
|
size = Math.ceil(size/100)*100
|
||||||
const url = api.getQrcodeUrl(api.domain+'register/index.html?shopsn='+selfStore.shop.shop_sn+'&agtcid='+selfStore.user.id,size)
|
const url = api.getQrcodeUrl(api.registerDomain+'register/index.html?shopsn='+selfStore.shop.shop_sn+'&agtcid='+selfStore.user.id,size)
|
||||||
|
|
||||||
function onClickSavePicture(){
|
function onClickSavePicture(){
|
||||||
savePicture(domRef.value,selfStore.shop.name)
|
savePicture(domRef.value,selfStore.shop.name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue