mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
Env data updated
This commit is contained in:
parent
8c8ee3f4f0
commit
17e2df0019
229
rc-busness/config/env-data.js
Normal file
229
rc-busness/config/env-data.js
Normal file
@ -0,0 +1,229 @@
|
||||
let devData={
|
||||
catlistvideo:[
|
||||
{
|
||||
title: "主食级猫湿粮",
|
||||
video: "/images/cat/one.mp4",
|
||||
catimage: "/images/cat/one.jpg",
|
||||
productimage: "/images/cat/star-1.png",
|
||||
detail: "为10柔软细腻慕斯 适合离乳期幼猫舔食",
|
||||
price: "¥372",
|
||||
productList: [
|
||||
{
|
||||
productCode: "80240008F24",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "幼猫成长专属",
|
||||
video: "/images/cat/two.mp4",
|
||||
catimage: "/images/cat/two.jpg",
|
||||
productimage: "/images/cat/star-2.png",
|
||||
detail: "支持幼猫自身保护力 为快速生长提供足够能量",
|
||||
price: "¥33",
|
||||
productList: [
|
||||
{
|
||||
productCode: "20030040",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "室内成猫专属",
|
||||
video: "/images/cat/three.mp4",
|
||||
catimage: "/images/cat/three.jpg",
|
||||
productimage: "/images/cat/star-3.png",
|
||||
detail: "高易消化蛋白 减少粪便量和异味",
|
||||
price: "¥157",
|
||||
productList: [
|
||||
{
|
||||
productCode: "21100200",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "英短成猫专属",
|
||||
video: "/images/cat/four.mp4",
|
||||
catimage: "/images/cat/four.jpg",
|
||||
productimage: "/images/cat/star-4.png",
|
||||
detail: "增强肌肉质量 支持骨骼与关节健康",
|
||||
price: "¥402",
|
||||
productList: [
|
||||
{
|
||||
productCode: "23040450",
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
doglistvideo: [
|
||||
{
|
||||
title: "主食级狗湿粮",
|
||||
video: "/images/dog/one.mp4",
|
||||
catimage: "/images/dog/one.jpg",
|
||||
productimage: "/images/dog/star-1.png",
|
||||
detail: "柔软细腻慕斯 适合离乳期幼犬舔食",
|
||||
price: "¥359",
|
||||
productList: [
|
||||
{
|
||||
productCode: "81220020F12",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "贵宾成犬专属",
|
||||
video: "/images/dog/two.mp4",
|
||||
catimage: "/images/dog/two.jpg",
|
||||
productimage: "/images/dog/star-2.png",
|
||||
detail: "护肤靓毛 理想体态",
|
||||
price: "¥562",
|
||||
productList: [
|
||||
{
|
||||
productCode: "14200300",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "小型犬成犬专属",
|
||||
video: "/images/dog/three.mp4",
|
||||
catimage: "/images/dog/three.jpg",
|
||||
productimage: "/images/dog/star-3.png",
|
||||
detail: "亮泽被毛 呵护牙齿",
|
||||
price: "¥57",
|
||||
productList: [
|
||||
{
|
||||
productCode: "16020080",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "离乳期全价奶糕",
|
||||
video: "/images/dog/four.mp4",
|
||||
catimage: "/images/dog/four.jpg",
|
||||
productimage: "/images/dog/star-4.png",
|
||||
detail: "高易再水合颗粒 帮助增强保护健康成长",
|
||||
price: "¥263",
|
||||
productList: [
|
||||
{
|
||||
productCode: "17220400",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
||||
//Production data
|
||||
let prdData={
|
||||
catlistvideo:[
|
||||
{
|
||||
title: "主食级猫湿粮",
|
||||
video: "/images/cat/one.mp4",
|
||||
catimage: "/images/cat/one.jpg",
|
||||
productimage: "/images/cat/star-1.png",
|
||||
detail: "为10柔软细腻慕斯 适合离乳期幼猫舔食",
|
||||
price: "¥77",
|
||||
productList: [
|
||||
{
|
||||
productCode: "80240008F24",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "幼猫成长专属",
|
||||
video: "/images/cat/two.mp4",
|
||||
catimage: "/images/cat/two.jpg",
|
||||
productimage: "/images/cat/star-2.png",
|
||||
detail: "支持幼猫自身保护力 为快速生长提供足够能量",
|
||||
price: "¥146",
|
||||
productList: [
|
||||
{
|
||||
productCode: "20030200,2003004003",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "室内成猫专属",
|
||||
video: "/images/cat/three.mp4",
|
||||
catimage: "/images/cat/three.jpg",
|
||||
productimage: "/images/cat/star-3.png",
|
||||
detail: "高易消化蛋白 减少粪便量和异味",
|
||||
price: "¥140",
|
||||
productList: [
|
||||
{
|
||||
productCode: "21100200,2110020002",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "英短成猫专属",
|
||||
video: "/images/cat/four.mp4",
|
||||
catimage: "/images/cat/four.jpg",
|
||||
productimage: "/images/cat/star-4.png",
|
||||
detail: "增强肌肉质量 支持骨骼与关节健康",
|
||||
price: "¥183",
|
||||
productList: [
|
||||
{
|
||||
productCode: "23040200,2304004003,2304020002,23040450,23041000",
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
doglistvideo: [
|
||||
{
|
||||
title: "主食级狗湿粮",
|
||||
video: "/images/dog/one.mp4",
|
||||
catimage: "/images/dog/one.jpg",
|
||||
productimage: "/images/dog/star-1.png",
|
||||
detail: "柔软细腻慕斯 适合离乳期幼犬舔食",
|
||||
price: "¥78",
|
||||
productList: [
|
||||
{
|
||||
productCode: "81220020F03,81220020F06,81220020F12",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "贵宾成犬专属",
|
||||
video: "/images/dog/two.mp4",
|
||||
catimage: "/images/dog/two.jpg",
|
||||
productimage: "/images/dog/star-2.png",
|
||||
detail: "护肤靓毛 理想体态",
|
||||
price: "¥241",
|
||||
productList: [
|
||||
{
|
||||
productCode: "14560300,1456030002,14560750",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "小型犬成犬专属",
|
||||
video: "/images/dog/three.mp4",
|
||||
catimage: "/images/dog/three.jpg",
|
||||
productimage: "/images/dog/star-3.png",
|
||||
detail: "亮泽被毛 呵护牙齿",
|
||||
price: "¥121",
|
||||
productList: [
|
||||
{
|
||||
productCode: "10030200,10030800,1003020002",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "离乳期全价奶糕",
|
||||
video: "/images/dog/four.mp4",
|
||||
catimage: "/images/dog/four.jpg",
|
||||
productimage: "/images/dog/star-4.png",
|
||||
detail: "高易再水合颗粒 帮助增强保护健康成长",
|
||||
price: "¥88",
|
||||
productList: [
|
||||
{
|
||||
productCode: "16220100,16220300,16221000,1622010002,1622030002,16220100F03,16220300F03",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
//Production data end
|
||||
let data = {
|
||||
'development':devData,
|
||||
'production':prdData
|
||||
};
|
||||
|
||||
export default data;
|
@ -1048,6 +1048,7 @@ import FixRight from "~/components/fixed-right.vue";
|
||||
import Myfooter from "~/components/rc-footer.vue";
|
||||
import unlogin from "~/components/unlogin.vue";
|
||||
import { mapMutations } from "vuex";
|
||||
import envData from "~/config/env-data.js";
|
||||
import {
|
||||
userquery,
|
||||
postCourseId,
|
||||
@ -1066,6 +1067,7 @@ export default {
|
||||
dataLoaded: true,
|
||||
usermargin: { marginTop: "0" },
|
||||
useraindex: 0,
|
||||
envData,
|
||||
indexacindex:0,
|
||||
mobileVideoPlaying: false,
|
||||
usertitle: "明星猫粮",
|
||||
@ -1391,128 +1393,13 @@ export default {
|
||||
created() {
|
||||
vm = this;
|
||||
let curEnv = process.env.NODE_ENV;
|
||||
let envVariable = {
|
||||
'development':{
|
||||
catlistvideo:[
|
||||
{
|
||||
title: "主食级猫湿粮",
|
||||
video: "/images/cat/one.mp4",
|
||||
catimage: "/images/cat/one.jpg",
|
||||
productimage: "/images/cat/star-1.png",
|
||||
detail: "为10柔软细腻慕斯 适合离乳期幼猫舔食",
|
||||
price: "¥372",
|
||||
productList: [
|
||||
{
|
||||
productCode: "80240008F24",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "幼猫成长专属",
|
||||
video: "/images/cat/two.mp4",
|
||||
catimage: "/images/cat/two.jpg",
|
||||
productimage: "/images/cat/star-2.png",
|
||||
detail: "支持幼猫自身保护力 为快速生长提供足够能量",
|
||||
price: "¥33",
|
||||
productList: [
|
||||
{
|
||||
productCode: "20030040",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "室内成猫专属",
|
||||
video: "/images/cat/three.mp4",
|
||||
catimage: "/images/cat/three.jpg",
|
||||
productimage: "/images/cat/star-3.png",
|
||||
detail: "高易消化蛋白 减少粪便量和异味",
|
||||
price: "¥157",
|
||||
productList: [
|
||||
{
|
||||
productCode: "21100200",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "英短成猫专属",
|
||||
video: "/images/cat/four.mp4",
|
||||
catimage: "/images/cat/four.jpg",
|
||||
productimage: "/images/cat/star-4.png",
|
||||
detail: "增强肌肉质量 支持骨骼与关节健康",
|
||||
price: "¥402",
|
||||
productList: [
|
||||
{
|
||||
productCode: "23040450",
|
||||
},
|
||||
],
|
||||
}
|
||||
],
|
||||
doglistvideo: [
|
||||
{
|
||||
title: "主食级狗湿粮",
|
||||
video: "/images/dog/one.mp4",
|
||||
catimage: "/images/dog/one.jpg",
|
||||
productimage: "/images/dog/star-1.png",
|
||||
detail: "柔软细腻慕斯 适合离乳期幼犬舔食",
|
||||
price: "¥359",
|
||||
productList: [
|
||||
{
|
||||
productCode: "81220020F12",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "贵宾成犬专属",
|
||||
video: "/images/dog/two.mp4",
|
||||
catimage: "/images/dog/two.jpg",
|
||||
productimage: "/images/dog/star-2.png",
|
||||
detail: "护肤靓毛 理想体态",
|
||||
price: "¥562",
|
||||
productList: [
|
||||
{
|
||||
productCode: "14200300",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "小型犬成犬专属",
|
||||
video: "/images/dog/three.mp4",
|
||||
catimage: "/images/dog/three.jpg",
|
||||
productimage: "/images/dog/star-3.png",
|
||||
detail: "亮泽被毛 呵护牙齿",
|
||||
price: "¥57",
|
||||
productList: [
|
||||
{
|
||||
productCode: "16020080",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "离乳期全价奶糕",
|
||||
video: "/images/dog/four.mp4",
|
||||
catimage: "/images/dog/four.jpg",
|
||||
productimage: "/images/dog/star-4.png",
|
||||
detail: "高易再水合颗粒 帮助增强保护健康成长",
|
||||
price: "¥263",
|
||||
productList: [
|
||||
{
|
||||
productCode: "17220400",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
'production':{}
|
||||
}
|
||||
this.catlistvideo = envVariable[curEnv].catlistvideo;
|
||||
this.doglistvideo = envVariable[curEnv].doglistvideo;
|
||||
this.catlistvideo = envData[curEnv].catlistvideo;
|
||||
this.doglistvideo = envData[curEnv].doglistvideo;
|
||||
},
|
||||
watch: {},
|
||||
mounted() {
|
||||
console.log(process.env.NODE_ENV,' mounted');
|
||||
this.checkIsLogin();
|
||||
this.userdata = this.$store.state.userInfo;
|
||||
console.log(this.userdata);
|
||||
const that = this;
|
||||
|
||||
this.ifAdoid();
|
||||
|
Loading…
Reference in New Issue
Block a user