sync:订单结果页添加支付询问对话框,版本获取方法修改,更新README https://gitee.com/sheepjs/shopro-uniapp/commit/024f311235266334063d25b7fec604b22e613ea9

This commit is contained in:
YunaiV
2025-04-28 00:01:33 +08:00
parent 9e96df4651
commit e9ebe236e6
8 changed files with 123 additions and 96 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
import packageInfo from '@/package.json';
const { version } = packageInfo;
// 开发环境配置
export let baseUrl;
export let version;
if (process.env.NODE_ENV === 'development') {
baseUrl = import.meta.env.SHOPRO_DEV_BASE_URL;
} else {
baseUrl = import.meta.env.SHOPRO_BASE_URL;
}
version = import.meta.env.SHOPRO_VERSION;
if (typeof baseUrl === 'undefined') {
console.error('请检查.env配置文件是否存在');
} else {
+2
View File
@@ -25,6 +25,7 @@
<!-- #ifdef APP-PLUS -->
<dom-video
ref="domVideo"
:id="`sVideo${uid}`"
class="radius"
:style="[{ height: height + 'rpx' }]"
object-fit="contain"
@@ -38,6 +39,7 @@
@play="play"
@pause="pause"
@ended="end"
:poster="poster"
/>
<!-- #endif -->
<!-- <view