no message
Showing
3 changed files
with
49 additions
and
45 deletions
| ... | @@ -193,7 +193,7 @@ function h5Login(userName) { | ... | @@ -193,7 +193,7 @@ function h5Login(userName) { |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | function showLogin(callback) { | 195 | function showLogin(callback) { |
| 196 | // uni.clearStorageSync() | 196 | uni.removeStorageSync("token") |
| 197 | 197 | ||
| 198 | uni.showModal({ | 198 | uni.showModal({ |
| 199 | title: '请输入身份证,进行身份验证', | 199 | title: '请输入身份证,进行身份验证', | ... | ... |
| ... | @@ -53,13 +53,6 @@ let request = function(req) { | ... | @@ -53,13 +53,6 @@ let request = function(req) { |
| 53 | 53 | ||
| 54 | const token = getToken() | 54 | const token = getToken() |
| 55 | let tempUrl = req.url | 55 | let tempUrl = req.url |
| 56 | if (token) { | ||
| 57 | if (tempUrl.indexOf('?') > -1) { | ||
| 58 | tempUrl += '&userNo=' + token | ||
| 59 | } else { | ||
| 60 | tempUrl += '?userNo=' + token | ||
| 61 | } | ||
| 62 | } | ||
| 63 | 56 | ||
| 64 | let url, data | 57 | let url, data |
| 65 | if (config.localPort) { | 58 | if (config.localPort) { |
| ... | @@ -77,6 +70,13 @@ let request = function(req) { | ... | @@ -77,6 +70,13 @@ let request = function(req) { |
| 77 | params: 'jsonBody=' + JSON.stringify(req.params) | 70 | params: 'jsonBody=' + JSON.stringify(req.params) |
| 78 | } | 71 | } |
| 79 | } else { | 72 | } else { |
| 73 | if (token) { | ||
| 74 | if (tempUrl.indexOf('?') > -1) { | ||
| 75 | tempUrl += '&userNo=' + token | ||
| 76 | } else { | ||
| 77 | tempUrl += '?userNo=' + token | ||
| 78 | } | ||
| 79 | } | ||
| 80 | if (req.params) { | 80 | if (req.params) { |
| 81 | for (const key of Object.keys(req.params)) { | 81 | for (const key of Object.keys(req.params)) { |
| 82 | if (tempUrl.indexOf('?') > -1) { | 82 | if (tempUrl.indexOf('?') > -1) { | ... | ... |
| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 | <view class="uni-margin-wrap"> | 3 | <view class="uni-margin-wrap"> |
| 4 | <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" | 4 | <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" |
| 5 | :duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff"> | 5 | :duration="duration" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff"> |
| 6 | <!-- <swiper-item v-for="(p, index) in venue.venuePicArr" :key="index"> | 6 | <!-- <swiper-item v-for="(p, index) in venue.venuePicArr" :key="index"> |
| 7 | <view class="swiper-item"> | 7 | <view class="swiper-item"> |
| 8 | <image mode="aspectFill" :src="p"></image> | 8 | <image mode="aspectFill" :src="p"></image> |
| 9 | </view> | 9 | </view> |
| ... | @@ -15,16 +15,14 @@ | ... | @@ -15,16 +15,14 @@ |
| 15 | </swiper-item> | 15 | </swiper-item> |
| 16 | </swiper> | 16 | </swiper> |
| 17 | </view> | 17 | </view> |
| 18 | <view class="infoArea"> | 18 | <view class="infoArea"> |
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | <view class="contentbox"> | 19 | <view class="contentbox"> |
| 23 | <view class="name"> | 20 | <view class="name"> |
| 24 | 国电培训中心简介 | 21 | 国电培训中心简介 |
| 25 | <!-- <view class="content" v-html="venue.introdution"> --> | 22 | <!-- <view class="content" v-html="venue.introdution"> --> |
| 26 | <view class="content" style="margin-top: 20rpx;"> | 23 | <view class="content" style="margin-top: 20rpx;"> |
| 27 | 国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城 盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询 | 24 | 国网江苏省电力公司营销技能培训中心办公室地址位于传统的江南文化、鱼米之乡盐城,盐城 |
| 25 | 盐城市大庆东路66号,于2008年10月30日在盐城市工商行政管理局注册成立,注册资本为400万元人民币,在公司发展壮大的15年里,我们始终为客户提供好的产品和技术支持、健全的售后服务,我公司主要经营住宿服务;电力人才交流、培训、信息服务。,我们有好的产品和专业的销售和技术团队,我公司属于盐城电力供应业黄页行业,如果您对我公司的产品服务有兴趣,期待您在线留言或者来电咨询 | ||
| 28 | </view> | 26 | </view> |
| 29 | </view> | 27 | </view> |
| 30 | <view class="n9" @click="makeCall"> | 28 | <view class="n9" @click="makeCall"> |
| ... | @@ -46,19 +44,19 @@ | ... | @@ -46,19 +44,19 @@ |
| 46 | </view> | 44 | </view> |
| 47 | </view> | 45 | </view> |
| 48 | </view> | 46 | </view> |
| 49 | <view class="contentbox" style="padding: 0;"> | 47 | <view class="contentbox" style="padding: 0;"> |
| 50 | <view class="content"> | 48 | <view class="content"> |
| 51 | <uni-grid :column="3" :highlight="true" :showBorder="false"> | 49 | <uni-grid :column="3" :highlight="true" :showBorder="false"> |
| 52 | <uni-grid-item v-for="(item, index) in list" :index="index" :key="index"> | 50 | <uni-grid-item v-for="(item, index) in list" :index="index" :key="index"> |
| 53 | <view class="grid-item-box" @click="goItem(item)"> | 51 | <view class="grid-item-box" @click="goItem(item)"> |
| 54 | <image :src="item.partLogo" class="image" mode="aspectFill" /> | 52 | <image :src="item.partLogo" class="image" mode="aspectFill" /> |
| 55 | <text class="text">{{ item.name }}</text> | 53 | <text class="text">{{ item.name }}</text> |
| 56 | </view> | 54 | </view> |
| 57 | </uni-grid-item> | 55 | </uni-grid-item> |
| 58 | </uni-grid> | 56 | </uni-grid> |
| 59 | </view> | 57 | </view> |
| 60 | </view> | 58 | </view> |
| 61 | 59 | ||
| 62 | <view class="contentbox" v-if="venue.notice"> | 60 | <view class="contentbox" v-if="venue.notice"> |
| 63 | <view class="t">培训公告</view> | 61 | <view class="t">培训公告</view> |
| 64 | <rich-text class="richText" :nodes="venue.notice"></rich-text> | 62 | <rich-text class="richText" :nodes="venue.notice"></rich-text> |
| ... | @@ -118,18 +116,18 @@ | ... | @@ -118,18 +116,18 @@ |
| 118 | const svId = ref(null); | 116 | const svId = ref(null); |
| 119 | const list = ref([{ | 117 | const list = ref([{ |
| 120 | id: 0, | 118 | id: 0, |
| 121 | name: '培训助手', | 119 | name: '培训助手', |
| 122 | partLogo:'/static/btn01.png', | 120 | partLogo: '/static/btn01.png', |
| 123 | path: '/pages_hotel/hotel/index' | 121 | path: '/pages_hotel/hotel/index' |
| 124 | }, { | 122 | }, { |
| 125 | id: 2, | 123 | id: 2, |
| 126 | name: '校园风采', | 124 | name: '校园风采', |
| 127 | partLogo:'/static/btn03.png', | 125 | partLogo: '/static/btn03.png', |
| 128 | path: '' | 126 | path: '' |
| 129 | }, { | 127 | }, { |
| 130 | id: 3, | 128 | id: 3, |
| 131 | name: '我的', | 129 | name: '我的', |
| 132 | partLogo:'/static/btn04.png', | 130 | partLogo: '/static/btn04.png', |
| 133 | path: '/pages_hotel/hotel/mycenter' | 131 | path: '/pages_hotel/hotel/mycenter' |
| 134 | }]); | 132 | }]); |
| 135 | 133 | ||
| ... | @@ -145,13 +143,13 @@ | ... | @@ -145,13 +143,13 @@ |
| 145 | onLoad(option => { | 143 | onLoad(option => { |
| 146 | if (option.scene) { | 144 | if (option.scene) { |
| 147 | proId = decodeURIComponent(option.scene); | 145 | proId = decodeURIComponent(option.scene); |
| 148 | } | 146 | } |
| 149 | if(option.relogo){ | 147 | if (option.relogo) { |
| 150 | showLogin(()=>{ | 148 | showLogin(() => { |
| 151 | uni.redirectTo({ | 149 | uni.redirectTo({ |
| 152 | url: '/pages/index/index' | 150 | url: '/pages/index/index' |
| 153 | }); | 151 | }); |
| 154 | }) | 152 | }) |
| 155 | } | 153 | } |
| 156 | }); | 154 | }); |
| 157 | onReady(() => { | 155 | onReady(() => { |
| ... | @@ -295,10 +293,16 @@ | ... | @@ -295,10 +293,16 @@ |
| 295 | 293 | ||
| 296 | } | 294 | } |
| 297 | </script> | 295 | </script> |
| 298 | <style scope lang="scss"> | 296 | <style scope lang="scss"> |
| 299 | .grid-item-box{text-align: center; | 297 | .grid-item-box { |
| 300 | image{width: 120rpx;height: 120rpx;} | 298 | text-align: center; |
| 299 | |||
| 300 | image { | ||
| 301 | width: 120rpx; | ||
| 302 | height: 120rpx; | ||
| 303 | } | ||
| 301 | } | 304 | } |
| 305 | |||
| 302 | .singlePop { | 306 | .singlePop { |
| 303 | max-height: 60vh; | 307 | max-height: 60vh; |
| 304 | overflow: auto; | 308 | overflow: auto; | ... | ... |
-
Please register or sign in to post a comment