提交测试
parent
354a3dc1c8
commit
f13ebf09eb
14
.env
14
.env
|
|
@ -1,11 +1,11 @@
|
||||||
# 版本号
|
# 版本号
|
||||||
SHOPRO_VERSION = v1.8.3
|
SHOPRO_VERSION = v1.8.3
|
||||||
|
|
||||||
# 后端接口 - 正式环境(通过 process.env.NODE_ENV 非 development)
|
# 后端接口 - 正式环境(通过 process.env.NODE_ENV 非 developmentSHOPRO_BASE_URL = http://api-dashboard.yudao.iocoder.cn
|
||||||
SHOPRO_BASE_URL = http://api-dashboard.yudao.iocoder.cn
|
SHOPRO_BASE_URL = http://100.98.30.68:48080
|
||||||
|
|
||||||
# 后端接口 - 测试环境(通过 process.env.NODE_ENV = development)
|
# 后端接口 - 测试环境(通过 process.env.NODE_ENV = developmentSHOPRO_DEV_BASE_URL = http://saas.yibeidl.cn
|
||||||
SHOPRO_DEV_BASE_URL = http://saas.yibeidl.cn
|
SHOPRO_DEV_BASE_URL = http://100.98.30.68:48080
|
||||||
### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc
|
### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc
|
||||||
|
|
||||||
# 后端接口前缀(一般不建议调整)
|
# 后端接口前缀(一般不建议调整)
|
||||||
|
|
@ -15,10 +15,10 @@ SHOPRO_API_PATH = /app-api
|
||||||
SHOPRO_WEBSOCKET_PATH = /infra/ws
|
SHOPRO_WEBSOCKET_PATH = /infra/ws
|
||||||
|
|
||||||
# 开发环境运行端口
|
# 开发环境运行端口
|
||||||
SHOPRO_DEV_PORT = 3000
|
SHOPRO_DEV_PORT = 48080
|
||||||
|
|
||||||
# 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀
|
# 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地 | http(s)://xxx.xxx=自定义静态资源地址前缀SHOPRO_STATIC_URL = https://file.sheepjs.com
|
||||||
SHOPRO_STATIC_URL = https://file.sheepjs.com
|
SHOPRO_STATIC_URL = http://100.98.30.68
|
||||||
|
|
||||||
# 是否开启直播 1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启)
|
# 是否开启直播 1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启)
|
||||||
SHOPRO_MPLIVE_ON = 0
|
SHOPRO_MPLIVE_ON = 0
|
||||||
|
|
|
||||||
|
|
@ -23,28 +23,27 @@
|
||||||
import $share from '@/sheep/platform/share';
|
import $share from '@/sheep/platform/share';
|
||||||
// 隐藏原生tabBar
|
// 隐藏原生tabBar
|
||||||
uni.hideTabBar();
|
uni.hideTabBar();
|
||||||
|
|
||||||
const template = computed(() => sheep.$store('app').template?.home);
|
const template = computed(() => sheep.$store('app').template?.home);
|
||||||
// 在此处拦截改变一下首页轮播图 此处先写死后期复活 放到启动函数里
|
// 在此处拦截改变一下首页轮播图 此处先写死后期复活 放到启动函数里
|
||||||
// (async function() {
|
// (async function() {
|
||||||
// console.log('原代码首页定制化数据',template)
|
// console.log('原代码首页定制化数据',template)
|
||||||
// let {
|
// let {
|
||||||
// data
|
// data
|
||||||
// } = await index2Api.decorate();
|
// } = await index2Api.decorate();
|
||||||
// console.log('首页导航配置化过高无法兼容',JSON.parse(data[1].value))
|
// console.log('首页导航配置化过高无法兼容',JSON.parse(data[1].value))
|
||||||
// 改变首页底部数据 但是没有通过数组id获取商品数据接口
|
// 改变首页底部数据 但是没有通过数组id获取商品数据接口
|
||||||
// let {
|
// let {
|
||||||
// data: datas
|
// data: datas
|
||||||
// } = await index2Api.spids();
|
// } = await index2Api.spids();
|
||||||
// template.value.data[9].data.goodsIds = datas.list.map(item => item.id);
|
// template.value.data[9].data.goodsIds = datas.list.map(item => item.id);
|
||||||
// template.value.data[0].data.list = JSON.parse(data[0].value).map(item => {
|
// template.value.data[0].data.list = JSON.parse(data[0].value).map(item => {
|
||||||
// return {
|
// return {
|
||||||
// src: item.picUrl,
|
// src: item.picUrl,
|
||||||
// url: item.url,
|
// url: item.url,
|
||||||
// title: item.name,
|
// title: item.name,
|
||||||
// type: "image"
|
// type: "image"
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// }())
|
// }())
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -53,7 +52,7 @@
|
||||||
// 小程序识别二维码
|
// 小程序识别二维码
|
||||||
if (options.scene) {
|
if (options.scene) {
|
||||||
const sceneParams = decodeURIComponent(options.scene).split('=');
|
const sceneParams = decodeURIComponent(options.scene).split('=');
|
||||||
console.log("sceneParams=>",sceneParams);
|
console.log("sceneParams=>", sceneParams);
|
||||||
options[sceneParams[0]] = sceneParams[1];
|
options[sceneParams[0]] = sceneParams[1];
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue