Commit 9a7fe5bf authored by liwei's avatar liwei

修改了静态图片路径

parent aa9dfc91
......@@ -42,7 +42,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
};
},
methods: {
......
// 应用全局配置
module.exports = {
baseUrl: 'http://localhost:8092'
// baseUrl: 'http://106.3.97.198:20162'
baseUrl: 'http://192.168.1.7:8092',//接口地址
imgUrl:'http://192.168.1.7/static/images'//图片URL
}
// module.exports = {
// devServer: {
// proxy: {
......
import App from './App'
import config from '@/config'
import {
request,
BASE_URL,
} from 'util/api.js';
// 导入并挂载全局的分享方法
import share from '@/common/share.js'
......@@ -15,12 +15,11 @@ App.mpType = 'app'
Vue.use(uView)
Vue.prototype.$myRequest = request; // 接口请求
Vue.prototype.$BASE_URL = BASE_URL;//正式接口
Vue.prototype.$IMG_URL = config.imgUrl;//图片地址
Vue.prototype.$store = store;//正式接口
Vue.mixin(share)
const app = new Vue({
store,
...App
})
app.$mount()
......@@ -148,7 +148,7 @@
//登录弹窗
isLoginPop: false,
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
imgs: [],
imgLayout1: [450, 450],
imgLayout2: [220, 220],
......
......@@ -57,7 +57,7 @@
//话题列表
topicList:[],
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
// v-model绑定的这个变量不要在分页请求结束中自己赋值!!!
dataList: [],
// 当前组件是否已经加载过了
......
......@@ -50,7 +50,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//分页查询参数
queryParam:{
page:1,
......
......@@ -56,7 +56,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//tab标签
list: [
{
......
......@@ -86,7 +86,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
// 商家列表
notice:{},
//banner列表
......
......@@ -189,7 +189,7 @@ import {setUserProfile} from '../../api/login/index'
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
tipsShow:false,//授权弹窗
nologin: '',//登录标志
userInfo:{},//用户信息
......@@ -199,22 +199,22 @@ import {setUserProfile} from '../../api/login/index'
name: "金币",
num: 0,
la: "立即充值",
img: this.$store.state.imgUrl+"/user/mymoney.png",
img: this.$IMG_URL+"/user/mymoney.png",
}, {
name: "个人资料",
num: '',
la: "",
img: this.$store.state.imgUrl+"/user/myren.png",
img: this.$IMG_URL+"/user/myren.png",
}, {
name: "推荐给好友",
num: '',
la: "",
img: this.$store.state.imgUrl+"/user/myshare.png",
img: this.$IMG_URL+"/user/myshare.png",
}, {
name: "设置",
num: '',
la: "",
img: this.$store.state.imgUrl+'/user/myset.png',
img: this.$IMG_URL+'/user/myset.png',
}],
info: {
headPortrait:'http://192.168.1.7/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',
......
......@@ -121,7 +121,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
subList: [
{
name: '女生榜'
......
......@@ -23,7 +23,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
show: false,
info: this.dataInfo
};
......
......@@ -55,7 +55,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
show: false, //报名弹窗
activityDetail: {},//活动详情
activityId: '', // 活动id
......
......@@ -202,7 +202,7 @@ export default{
data () {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
item:{
createTime:'2024-12-28 15:02:01',
headPortrait:'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg',//头像
......
......@@ -83,7 +83,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
tagStyle: {
text: 'line-height:1em'
},
......
......@@ -145,7 +145,7 @@
//登录弹窗
isLoginPop: false,
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
imgs: [],
imgLayout1: [450, 450],
imgLayout2: [220, 220],
......
......@@ -47,7 +47,7 @@ export default {
//话题列表
topicList:[],
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
// v-model绑定的这个变量不要在分页请求结束中自己赋值!!!
dataList: [],
menuButtonInfo:'',
......
......@@ -232,7 +232,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//用户头像
imgList:[],
//用户信息
......
......@@ -40,7 +40,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//分页查询参数
queryParam:{
page:1,
......
......@@ -18,7 +18,7 @@
export default {
data() {
return {
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//用户初始化登录 (可能用户类型传参错误)
initLoginError: false,
tipMsg: '',
......
......@@ -23,7 +23,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
show: false,
info: this.dataInfo
};
......
......@@ -38,7 +38,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
userInfo: {},
tipMsg: '',
isConfirm: false
......
......@@ -54,7 +54,7 @@
return {
form:{},
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
updatezImg: "",
updatefImg: "",
newImageSrc: "",
......
......@@ -37,7 +37,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//用户列表
userList:[
{
......
......@@ -259,7 +259,7 @@ import {updateUser, userDetail} from "../../api/user";
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
//用户资料
userInfo: {},
uploadImgJSON:{
......
......@@ -21,7 +21,7 @@
data() {
return{
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
}
},
methods: {
......
......@@ -13,7 +13,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
};
},
onLoad() {
......
......@@ -24,7 +24,7 @@
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
list: [{
name: "推荐设置",
url: "/pagespreference/preference/preference"
......
......@@ -53,7 +53,7 @@ export default {
data() {
return {
//图片路径
baseUrl: this.$store.state.imgUrl,
baseUrl: this.$IMG_URL,
falg: false,
minValue: 1,
maxValue: 100,
......
......@@ -6,7 +6,6 @@ Vue.use(Vuex)
const store = new Vuex.Store({
state: {
imgUrl: 'http://192.168.1.7/static/images'
//公共的变量,这里的变量不能随便修改,只能通过触发mutations的方法才能改变
},
mutations: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment