优化 vip 弹窗

This commit is contained in:
pushuo 2023-02-13 14:30:50 +08:00 committed by Edward Yang
parent 417da1899e
commit 7e342e54ef
3 changed files with 7 additions and 6 deletions

View File

@ -3,7 +3,7 @@
* @link https://beikeshop.com
* @Author pu shuo <pushuo@guangda.work>
* @Date 2022-08-22 18:32:26
* @LastEditTime 2023-02-08 15:36:09
* @LastEditTime 2023-02-13 14:29:46
*/
export default {
@ -119,7 +119,7 @@ export default {
$('.update-btn').hide();
}
} else {
$http.get(`https://beikeshop.com/api/version?version=${config.beike_version}`).then((res) => {
$http.get(`${config.api_url}/api/version?version=${config.beike_version}`).then((res) => {
Cookies.set('beike_version', res, { expires: 1 });
bk.versionUpdateTips();
@ -136,7 +136,7 @@ export default {
$('.vip-serve').addClass('active');
}
} else {
$http.get(`https://beikeshop.com/api/vip?domain=${config.app_url}`).then((res) => {
$http.get(`${config.api_url}/api/vip?domain=${config.app_url}`).then((res) => {
Cookies.set('beike_vip', res, { expires: 1 });
bk.vipUpdateTips();

View File

@ -141,10 +141,10 @@
$('.vip-serve').click(function(event) {
layer.open({
type: 1,
type: 2,
title: '',
area: ['500px', '80%'],
content: '<div><img src="image/vip-info.webp" class="img-fluid"></div>',
area: ['700px', '80%'],
content: `${config.api_url}/api/vip_rights?domain=${config.app_url}`,
});
});
</script>

View File

@ -60,6 +60,7 @@
const config = {
beike_version: '{{ config('beike.version') }}',
api_url: '{{ config('beike.api_url') }}',
app_url: '{{ config('app.url') }}',
}
</script>