fix: 配置调整
This commit is contained in:
parent
9aa6dcfd2f
commit
53a74cdc93
|
|
@ -1,7 +1,8 @@
|
|||
import globalData from '@/common/js/globalData.js';
|
||||
|
||||
export default {
|
||||
address: 'https://www.opsoul.com:8881',
|
||||
// address: 'https://www.opsoul.com:8881',
|
||||
address: 'https://gmhl.opsoul.com',
|
||||
// 异步接口拦截
|
||||
addInterceptor() {
|
||||
let _this = this;
|
||||
|
|
@ -13,9 +14,9 @@ export default {
|
|||
})
|
||||
let userInfo = _this.getCurUserInfo();
|
||||
// request 触发前拼接 url
|
||||
args.url = 'https://www.opsoul.com:8881' + args.url;
|
||||
// args.url = 'https://www.opsoul.com:8881' + args.url;
|
||||
// args.url = 'http://127.0.0.1:80' + args.url;
|
||||
// args.url = 'http://192.168.10.104:80' + args.url;
|
||||
args.url = 'https://gmhl.opsoul.com' + args.url;
|
||||
|
||||
if (!args.data) {
|
||||
args.data = {}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
export default {
|
||||
data() {
|
||||
return {
|
||||
//设置默认的分享参数
|
||||
share: {
|
||||
title: '工盟互联',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: '',
|
||||
desc: '',
|
||||
content: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
title: this.share.title,
|
||||
path: this.share.path,
|
||||
imageUrl: this.share.imageUrl,
|
||||
desc: this.share.desc,
|
||||
content: this.share.content,
|
||||
success(res) {
|
||||
uni.showToast({
|
||||
title: '分享成功'
|
||||
})
|
||||
},
|
||||
fail(res) {
|
||||
uni.showToast({
|
||||
title: '分享失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: this.share.title,
|
||||
path: this.share.path,
|
||||
imageUrl: this.share.imageUrl,
|
||||
desc: this.share.desc,
|
||||
content: this.share.content,
|
||||
success(res) {
|
||||
uni.showToast({
|
||||
title: '分享成功'
|
||||
})
|
||||
},
|
||||
fail(res) {
|
||||
uni.showToast({
|
||||
title: '分享失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
4
main.js
4
main.js
|
|
@ -48,6 +48,10 @@ Vue.prototype.$dateUtil = dateUtil;
|
|||
Vue.prototype.$calcUtil = calcUtil;
|
||||
Vue.prototype.$commonFun = commonFun;
|
||||
Vue.prototype.$request = request;
|
||||
|
||||
import share from 'common/mixin/share.js'//我命名为share.js
|
||||
Vue.mixin(share)
|
||||
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
|
|
|
|||
|
|
@ -95,10 +95,16 @@
|
|||
<view class="nav-list-panel float-clear clearfix">
|
||||
<view hover-class="none" class="nav-li serv-module" @click="clickServModule(item)"
|
||||
:class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]"
|
||||
v-for="(item,index) in servModules " :key="index">
|
||||
<view :class="index === 0 ? 'text-xxl' : 'text-xl'">{{item.title}}</view>
|
||||
<!-- <view class="nav-name">{{item.name}}</view> -->
|
||||
<text :class="'cuIcon-' + item.cuIcon"></text>
|
||||
v-for="(item,index) in servModules " :key="index">
|
||||
<template v-if="item.id !== 4">
|
||||
<view :class="index === 0 ? 'text-xxl' : 'text-xl'">{{item.title}}</view>
|
||||
<!-- <view class="nav-name">{{item.name}}</view> -->
|
||||
<text :class="'cuIcon-' + item.cuIcon"></text>
|
||||
</template>
|
||||
<button data-name="shareBtn" open-type="share" hover-class="none" v-else>
|
||||
<view :class="index === 0 ? 'text-xxl' : 'text-xl'">{{item.title}}</view>
|
||||
<text :class="'cuIcon-' + item.cuIcon"></text>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -266,10 +272,12 @@
|
|||
},
|
||||
async clickServModule(pageObj) {
|
||||
if (pageObj && !pageObj.pageUrl) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '功能开发中'
|
||||
})
|
||||
if(pageObj.id !== 4) {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '功能开发中'
|
||||
})
|
||||
}
|
||||
}
|
||||
if (pageObj.checkLogin) {
|
||||
let res = await this.authLogin();
|
||||
|
|
@ -324,6 +332,21 @@
|
|||
width: 46%;
|
||||
height: 246rpx;
|
||||
line-height: 195rpx;
|
||||
}
|
||||
|
||||
.nav-li button{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
position: static;
|
||||
text-align: left;
|
||||
}
|
||||
.nav-li button::after {
|
||||
border: none;
|
||||
|
||||
}
|
||||
|
||||
.nav-li {
|
||||
|
|
|
|||
Loading…
Reference in New Issue