63be4379 by 华明祺

no message

1 parent ddd8d60b
......@@ -193,7 +193,7 @@ function h5Login(userName) {
}
function showLogin(callback) {
// uni.clearStorageSync()
uni.removeStorageSync("token")
uni.showModal({
title: '请输入身份证,进行身份验证',
......
......@@ -53,13 +53,6 @@ let request = function(req) {
const token = getToken()
let tempUrl = req.url
if (token) {
if (tempUrl.indexOf('?') > -1) {
tempUrl += '&userNo=' + token
} else {
tempUrl += '?userNo=' + token
}
}
let url, data
if (config.localPort) {
......@@ -77,6 +70,13 @@ let request = function(req) {
params: 'jsonBody=' + JSON.stringify(req.params)
}
} else {
if (token) {
if (tempUrl.indexOf('?') > -1) {
tempUrl += '&userNo=' + token
} else {
tempUrl += '?userNo=' + token
}
}
if (req.params) {
for (const key of Object.keys(req.params)) {
if (tempUrl.indexOf('?') > -1) {
......
......@@ -3,7 +3,7 @@
<view class="uni-margin-wrap">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
:duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff">
<!-- <swiper-item v-for="(p, index) in venue.venuePicArr" :key="index">
<!-- <swiper-item v-for="(p, index) in venue.venuePicArr" :key="index">
<view class="swiper-item">
<image mode="aspectFill" :src="p"></image>
</view>
......@@ -15,16 +15,14 @@
</swiper-item>
</swiper>
</view>
<view class="infoArea">
<view class="infoArea">
<view class="contentbox">
<view class="name">
国电培训中心简介
<!-- <view class="content" v-html="venue.introdution"> -->
<view class="content" style="margin-top: 20rpx;">
国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城 盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询
<!-- <view class="content" v-html="venue.introdution"> -->
<view class="content" style="margin-top: 20rpx;">
国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城
盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询
</view>
</view>
<view class="n9" @click="makeCall">
......@@ -46,19 +44,19 @@
</view>
</view>
</view>
<view class="contentbox" style="padding: 0;">
<view class="content">
<uni-grid :column="3" :highlight="true" :showBorder="false">
<uni-grid-item v-for="(item, index) in list" :index="index" :key="index">
<view class="grid-item-box" @click="goItem(item)">
<image :src="item.partLogo" class="image" mode="aspectFill" />
<text class="text">{{ item.name }}</text>
</view>
</uni-grid-item>
</uni-grid>
</view>
</view>
<view class="contentbox" style="padding: 0;">
<view class="content">
<uni-grid :column="3" :highlight="true" :showBorder="false">
<uni-grid-item v-for="(item, index) in list" :index="index" :key="index">
<view class="grid-item-box" @click="goItem(item)">
<image :src="item.partLogo" class="image" mode="aspectFill" />
<text class="text">{{ item.name }}</text>
</view>
</uni-grid-item>
</uni-grid>
</view>
</view>
<view class="contentbox" v-if="venue.notice">
<view class="t">培训公告</view>
<rich-text class="richText" :nodes="venue.notice"></rich-text>
......@@ -118,18 +116,18 @@
const svId = ref(null);
const list = ref([{
id: 0,
name: '培训助手',
partLogo:'/static/btn01.png',
name: '培训助手',
partLogo: '/static/btn01.png',
path: '/pages_hotel/hotel/index'
}, {
id: 2,
name: '校园风采',
partLogo:'/static/btn03.png',
name: '校园风采',
partLogo: '/static/btn03.png',
path: ''
}, {
id: 3,
name: '我的',
partLogo:'/static/btn04.png',
name: '我的',
partLogo: '/static/btn04.png',
path: '/pages_hotel/hotel/mycenter'
}]);
......@@ -145,13 +143,13 @@
onLoad(option => {
if (option.scene) {
proId = decodeURIComponent(option.scene);
}
if(option.relogo){
showLogin(()=>{
uni.redirectTo({
url: '/pages/index/index'
});
})
}
if (option.relogo) {
showLogin(() => {
uni.redirectTo({
url: '/pages/index/index'
});
})
}
});
onReady(() => {
......@@ -295,10 +293,16 @@
}
</script>
<style scope lang="scss">
.grid-item-box{text-align: center;
image{width: 120rpx;height: 120rpx;}
<style scope lang="scss">
.grid-item-box {
text-align: center;
image {
width: 120rpx;
height: 120rpx;
}
}
.singlePop {
max-height: 60vh;
overflow: auto;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!