+
-
+
@@ -33,11 +33,11 @@
-->
-

+
-
+
@@ -65,7 +65,6 @@
-
@@ -82,10 +81,8 @@ import ServiceListThird from '@/views/Service/component/ServiceListThird.vue'
import ServiceListFour from '@/views/Service/component/ServiceListFour.vue'
import Screen from '@/views/Service/component/Screen.vue'
export default {
- props: [
- 'centerNo'
- ],
- data () {
+ props: ['centerNo'],
+ data() {
return {
search: '',
defaultHead: require('@/assets/head.png'),
@@ -98,34 +95,34 @@ export default {
riverList: [],
tabName: 'KQ',
campList: [],
- loading: false
+ loading: false,
}
},
watch: {
$route: {
immediate: true,
- handler () {
+ handler() {
// 设置tabbar状态
let showTab = this.$route.query.showTab
this.tabName = showTab || 'KQ'
// document.title = showTab == 'ZZY' ? '周周营' : '红色网上游——柯桥研学'
this.$nextTick(() => {
- this.$refs.tabs.resize();
+ this.$refs.tabs.resize()
})
- }
- }
+ },
+ },
},
- mounted () {
+ mounted() {
console.log('base mounted')
// alert('servicebase show')
this.initService()
},
- activated () {
+ activated() {
console.log('base activated')
this.initService()
},
methods: {
- onRefresh (list) {
+ onRefresh(list) {
if (list == 'campList') {
this.getCampList()
} else if (list == 'uniList') {
@@ -140,7 +137,7 @@ export default {
this.getRiverList()
}
},
- initService () {
+ initService() {
this.getUniList()
this.getWeekList()
this.getCityList()
@@ -150,7 +147,7 @@ export default {
},
// 革命遗址
- getUniList () {
+ getUniList() {
this.$toast.loading()
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
@@ -162,37 +159,37 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "5",
- "userId": this.centerNo,
- "productTypeId": "BQ0001",
- "businessTypeId": "BQ0001",
- "channelCode": ""
+ area: '',
+ province: '',
+ city: '',
+ searchType: '5',
+ userId: this.centerNo,
+ productTypeId: 'BQ0001',
+ businessTypeId: 'BQ0001',
+ channelCode: '',
},
- onSuccess: data => {
+ onSuccess: (data) => {
this.$toast.clear()
- let uniList = data.data.data;
+ let uniList = data.data.data
for (let i in uniList) {
- uniList[i].course_labels = uniList[i].course_labels?.split(',');
+ uniList[i].course_labels = uniList[i].course_labels?.split(',')
if (uniList[i].startDate) {
- uniList[i].week = this.formatWeek(this.Moment(uniList[i].startDate).format('d'));
- uniList[i].startDate = this.Moment(uniList[i].startDate).format('YYYY.M.D');
- uniList[i].endDate = this.Moment(uniList[i].endDate).format('YYYY.M.D');
+ uniList[i].week = this.formatWeek(this.Moment(uniList[i].startDate).format('d'))
+ uniList[i].startDate = this.Moment(uniList[i].startDate).format('YYYY.M.D')
+ uniList[i].endDate = this.Moment(uniList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.uniList = uniList
console.log('革命遗址:', data)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
// 文化传承
- getWeekList () {
+ getWeekList() {
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
host: 'https://mapi.zjzwfw.gov.cn/',
@@ -203,36 +200,36 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "5",
- "userId": this.centerNo,
- "productTypeId": "BQ0002",
- "businessTypeId": "BQ0001",
- "channelCode": ""
+ area: '',
+ province: '',
+ city: '',
+ searchType: '5',
+ userId: this.centerNo,
+ productTypeId: 'BQ0002',
+ businessTypeId: 'BQ0001',
+ channelCode: '',
},
- onSuccess: data => {
- let weekList = data.data.data;
+ onSuccess: (data) => {
+ let weekList = data.data.data
for (let i in weekList) {
- weekList[i].course_labels = weekList[i].course_labels?.split(',');
+ weekList[i].course_labels = weekList[i].course_labels?.split(',')
if (weekList[i].startDate) {
- weekList[i].week = this.formatWeek(this.Moment(weekList[i].startDate).format('d'));
- weekList[i].startDate = this.Moment(weekList[i].startDate).format('YYYY.M.D');
- weekList[i].endDate = this.Moment(weekList[i].endDate).format('YYYY.M.D');
+ weekList[i].week = this.formatWeek(this.Moment(weekList[i].startDate).format('d'))
+ weekList[i].startDate = this.Moment(weekList[i].startDate).format('YYYY.M.D')
+ weekList[i].endDate = this.Moment(weekList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.weekList = weekList
console.log('文化传承:', weekList)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
// 红色军旅
- getCityList () {
+ getCityList() {
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
host: 'https://mapi.zjzwfw.gov.cn/',
@@ -243,36 +240,36 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "5",
- "userId": this.centerNo,
- "productTypeId": "BQ0003",
- "businessTypeId": "BQ0001",
- "channelCode": ""
+ area: '',
+ province: '',
+ city: '',
+ searchType: '5',
+ userId: this.centerNo,
+ productTypeId: 'BQ0003',
+ businessTypeId: 'BQ0001',
+ channelCode: '',
},
- onSuccess: data => {
- let cityList = data.data.data;
+ onSuccess: (data) => {
+ let cityList = data.data.data
for (let i in cityList) {
- cityList[i].course_labels = cityList[i].course_labels?.split(',');
+ cityList[i].course_labels = cityList[i].course_labels?.split(',')
if (cityList[i].startDate) {
- cityList[i].week = this.formatWeek(this.Moment(cityList[i].startDate).format('d'));
- cityList[i].startDate = this.Moment(cityList[i].startDate).format('YYYY.M.D');
- cityList[i].endDate = this.Moment(cityList[i].endDate).format('YYYY.M.D');
+ cityList[i].week = this.formatWeek(this.Moment(cityList[i].startDate).format('d'))
+ cityList[i].startDate = this.Moment(cityList[i].startDate).format('YYYY.M.D')
+ cityList[i].endDate = this.Moment(cityList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.cityList = cityList
console.log('红色军旅:', cityList)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
// 乡村振新
- getSelectList () {
+ getSelectList() {
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
host: 'https://mapi.zjzwfw.gov.cn/',
@@ -283,36 +280,36 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "5",
- "userId": this.centerNo,
- "productTypeId": "BQ0004",
- "businessTypeId": "BQ0001",
- "channelCode": ""
+ area: '',
+ province: '',
+ city: '',
+ searchType: '5',
+ userId: this.centerNo,
+ productTypeId: 'BQ0004',
+ businessTypeId: 'BQ0001',
+ channelCode: '',
},
- onSuccess: data => {
- let selectList = data.data.data;
+ onSuccess: (data) => {
+ let selectList = data.data.data
for (let i in selectList) {
- selectList[i].course_labels = selectList[i].course_labels?.split(',');
+ selectList[i].course_labels = selectList[i].course_labels?.split(',')
if (selectList[i].startDate) {
- selectList[i].week = this.formatWeek(this.Moment(selectList[i].startDate).format('d'));
- selectList[i].startDate = this.Moment(selectList[i].startDate).format('YYYY.M.D');
- selectList[i].endDate = this.Moment(selectList[i].endDate).format('YYYY.M.D');
+ selectList[i].week = this.formatWeek(this.Moment(selectList[i].startDate).format('d'))
+ selectList[i].startDate = this.Moment(selectList[i].startDate).format('YYYY.M.D')
+ selectList[i].endDate = this.Moment(selectList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.selectList = selectList
console.log('乡村振新:', selectList)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
// 大好河山
- getRiverList () {
+ getRiverList() {
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
host: 'https://mapi.zjzwfw.gov.cn/',
@@ -323,37 +320,37 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "5",
- "userId": this.centerNo,
- "productTypeId": "BQ0005",
- "businessTypeId": "BQ0001",
- "channelCode": ""
+ area: '',
+ province: '',
+ city: '',
+ searchType: '5',
+ userId: this.centerNo,
+ productTypeId: 'BQ0005',
+ businessTypeId: 'BQ0001',
+ channelCode: '',
},
- onSuccess: data => {
- let riverList = data.data.data;
+ onSuccess: (data) => {
+ let riverList = data.data.data
for (let i in riverList) {
- riverList[i].course_labels = riverList[i].course_labels?.split(',');
+ riverList[i].course_labels = riverList[i].course_labels?.split(',')
if (riverList[i].startDate) {
- riverList[i].week = this.formatWeek(this.Moment(riverList[i].startDate).format('d'));
- riverList[i].startDate = this.Moment(riverList[i].startDate).format('YYYY.M.D');
- riverList[i].endDate = this.Moment(riverList[i].endDate).format('YYYY.M.D');
+ riverList[i].week = this.formatWeek(this.Moment(riverList[i].startDate).format('d'))
+ riverList[i].startDate = this.Moment(riverList[i].startDate).format('YYYY.M.D')
+ riverList[i].endDate = this.Moment(riverList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.riverList = riverList
console.log('大好河山:', riverList)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
// 每周一营 6
- getCampList () {
+ getCampList() {
this.mgop({
api: 'mgop.sz.hswsy.qxyList', // 必须
host: 'https://mapi.zjzwfw.gov.cn/',
@@ -364,63 +361,82 @@ export default {
// 'isTestUrl': '1'
},
data: {
- "area": "",
- "province": "",
- "city": "",
- "searchType": "6",
- "userId": this.centerNo,
- "productTypeId": "ZZY001",
- "businessTypeId": "JY0004",
- "channelCode": "GZH002"
+ area: '',
+ province: '',
+ city: '',
+ searchType: '6',
+ userId: this.centerNo,
+ productTypeId: 'ZZY001',
+ businessTypeId: 'JY0004',
+ channelCode: 'GZH002',
},
- onSuccess: data => {
- let campList = data.data.data;
+ onSuccess: (data) => {
+ let campList = data.data.data
for (let i in campList) {
- campList[i].course_labels = campList[i].course_labels?.split(',');
+ campList[i].course_labels = campList[i].course_labels?.split(',')
if (campList[i].startDate) {
- campList[i].week = this.formatWeek(this.Moment(campList[i].startDate).format('d'));
- campList[i].startDate = this.Moment(campList[i].startDate).format('YYYY.M.D');
- campList[i].endDate = this.Moment(campList[i].endDate).format('YYYY.M.D');
+ campList[i].week = this.formatWeek(this.Moment(campList[i].startDate).format('d'))
+ campList[i].startDate = this.Moment(campList[i].startDate).format('YYYY.M.D')
+ campList[i].endDate = this.Moment(campList[i].endDate).format('YYYY.M.D')
}
}
this.loading = false
this.campList = campList
console.log('每周一营:', data)
},
- onFail: err => {
+ onFail: (err) => {
console.log('err', err)
- }
- });
+ },
+ })
},
- beforeChange (index) {
+ beforeChange(index) {
// if (index != 0 && index != 1 && index != 2) {
// this.$toast('暂未开放,敬请期待!')
// return false
// }
return true
},
- onSearch () {
+ onSearch() {
this.$toast('暂未开放,敬请期待!')
},
// 我的订单
- handleMyOrder () {
+ handleMyOrder() {
this.$router.push({ name: 'ServiceOrderXST' })
},
// 我的优惠券
- handleMyCard () {
+ handleMyCard() {
// this.$toast('暂未开放,敬请期待!');
this.$router.push({ name: 'CardBoxXST', query: { active: 1 } })
},
- formatWeek (week) {
- return week == 1 ? '周一' : week == 2 ? '周二' : week == 3 ? '周三' : week == 4 ? '周四' : week == 5 ? '周五' : week == 6 ? '周六' : week == 0 ? '周日' : '';
+ formatWeek(week) {
+ return week == 1
+ ? '周一'
+ : week == 2
+ ? '周二'
+ : week == 3
+ ? '周三'
+ : week == 4
+ ? '周四'
+ : week == 5
+ ? '周五'
+ : week == 6
+ ? '周六'
+ : week == 0
+ ? '周日'
+ : ''
},
// 点击轮播
- handleBanner () {
+ handleBanner() {
location.href = 'https://mp.weixin.qq.com/s/a4N3xr2nXZ-aG3OEakv-Dg'
},
- handleRedLink () {
- location.href = 'https://www.wasee.com/wt/b46pjfuln&ua=WaseeVRAndroid'
- }
+ handleRedLink() {
+ let isWechat = localStorage.getItem('isWechat')
+ if (isWechat==1) {
+ return
+ } else {
+ location.href = 'https://www.wasee.com/wt/b46pjfuln&ua=WaseeVRAndroid'
+ }
+ },
},
components: {
Tabbar4,
@@ -428,8 +444,8 @@ export default {
Screen,
ServiceListSecond,
ServiceListThird,
- ServiceListFour
- }
+ ServiceListFour,
+ },
}
\ No newline at end of file
+
diff --git a/src/views/Service/ServiceKQ.vue b/src/views/Service/ServiceKQ.vue
index cff239d..44d0f93 100644
--- a/src/views/Service/ServiceKQ.vue
+++ b/src/views/Service/ServiceKQ.vue
@@ -33,6 +33,7 @@ export default {
} else if (ticketId) {
// alert('getCenterByTicketId')
this.getCenterByTicketId(ticketId)
+ localStorage.setItem('isWechat',1)
} else if (centerNo) {
// alert('有中台编号:' + centerNo)
this.centerNo = centerNo
--
libgit2 0.21.0