| | |
| | | # 接口前缀 _api_api_test |
| | | VUE_APP_API_PREFIX = '/doumeeplant' |
| | | VUE_APP_API_PREFIX = '/api' |
| | | |
| | | # 上下文路径 --> 默认./(可以部署在服务器任意路径) |
| | | VUE_APP_CONTEXT = './' |
| | |
| | | # 测试 |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/doumeeplant_api_test/' |
| | | |
| | | VUE_APP_API = 'https://127.0.0.1/doumeeplant/' |
| | | #VUE_APP_API = 'https://127.0.0.1/doumeeplant/' |
| | | |
| | | # 演示 |
| | | #VUE_APP_API = 'https://www.mes.red/doumeeplant/' |
| | | VUE_APP_API = 'https://www.mes.red/api/' |
| | |
| | | var url = window.location.href |
| | | if (url.indexOf('?code') === -1) { |
| | | let query = url.split('?')[1] |
| | | // let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://www.mes.red/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | // let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://dmtest.ahapp.net/doumeeplant_h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://lingyang.mes.show:1801/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://www.mes.red/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | // let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://dmtest.ahapp.net/doumeeplant_h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | // let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://lingyang.mes.show:1801/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | // let tempUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://www.mes.red/lingyangh5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect` |
| | | window.location.replace(tempUrl) |
| | | } else { |
| | | var code = url.substring(url.indexOf('?') + 6, url.indexOf('&')) |
| | | // let href1 = `https://www.mes.red/h5/#/wxLogin?code=${code}` |
| | | // let href1 = `https://dmtest.ahapp.net/doumeeplant_h5/#/wxLogin?code=${code}` |
| | | let href1 = `https://lingyang.mes.show:1801/h5/#/wxLogin?code=${code}` |
| | | let href1 = `https://www.mes.red/lingyangh5/#/wxLogin?code=${code}` |
| | | window.location.replace(href1) |
| | | } |
| | | </script> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="box_out" v-if="store.state.env && (store.state.env == 'WX' || store.state.env == 'XCX')" @click="loginOut"><span>退出登录</span></div> |
| | | <div class="box_out" @click="loginOut"><span>退出登录</span></div> |
| | | </div> |
| | | <van-popup v-model:show="show" position="bottom" round :style="{ height: '50%' }"> |
| | | <van-picker |
| | |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | // window.parent.postMessage('阿康', '*') |
| | | // let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://www.mes.red/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | // let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://dmtest.ahapp.net/doumeeplant_h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_url=https://lingyang.mes.show:1801/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://www.mes.red/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | // let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://dmtest.ahapp.net/doumeeplant_h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | // let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://lingyang.mes.show:1801/h5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | // let href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6ea339a336f26380&redirect_uri=https://www.mes.red/lingyangh5/redirect.html&response_type=code&scope=snsapi_base&state=#wechat_redirect' |
| | | window.open(href) |
| | | // window.location.replace(href) |
| | | } |
| | | }) |
| | | } |
| | |
| | | list.value.push(...res.data.records) |
| | | } else { |
| | | finished.value = true |
| | | loading.value = false |
| | | } |
| | | }).catch(err => { |
| | | refreshing.value = false |
| | |
| | | // baseUrl: 'http://106.14.20.42/test_hfznzz/',
|
| | | // baseUrl: 'https://hefei.dtkey.cn/test_hfznzz/',
|
| | | // baseUrl: '/doumeeplant_api',
|
| | | baseUrl: 'https://dmtest.ahapp.net/doumeeplant_api', |
| | | baseUrl: 'https://dmtest.ahapp.net/doumeeplant_api',
|
| | | // baseUrl: 'http://192.168.0.15:10021', |
| | | phoneRegular: /^1[3456789]\d{9}$/,
|
| | | mailboxRegular: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
|
| | | positiveInteger: /^[0-9]*[1-9][0-9]*$/,
|
| | |
| | | activeColor="#222" |
| | | inactiveColor="#666" |
| | | :safeAreaInsetBottom="true"> |
| | | <u-tabbar-item text="待办"> |
| | | <view class="" slot="active-icon"> |
| | | <u-tabbar-item text="待办" :badge="upcomingNum.d"> |
| | | <view class="" slot="active-icon"> |
| | | <image src="@/static/nav_daiban_sel@2x.png" class="icon-style" mode=""></image> |
| | | </view> |
| | | <view class="" slot="inactive-icon"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | |
| | | export default { |
| | | name:"myTabbar", |
| | | props: { |
| | |
| | | value: 0 |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapState(['upcomingNum']) |
| | | }, |
| | | methods: { |
| | | click(index) { |
| | | // console.log('click', index); |
| | |
| | | // 点击当前项 |
| | | clickItem(i) { |
| | | this.list.forEach((item, index) => { |
| | | item.isActive = i === index |
| | | if (i === index) { |
| | | item.isActive = !item.isActive |
| | | } else { |
| | | item.isActive = false |
| | | } |
| | | }) |
| | | }, |
| | | // 搜索 |
| | |
| | | capacity: this.listData.capacity, |
| | | model: { |
| | | mixParam: this.listData.mixParam, |
| | | startDate: this.listData.startDate, |
| | | endDate: this.listData.endDate, |
| | | planDateStartDate: this.listData.startDate, |
| | | planDateEndDate: this.listData.endDate, |
| | | procedureIdList: this.listData.procedureIds ? this.listData.procedureIds : [], |
| | | factoryId: this.listData.departIds, |
| | | statusList: this.listData.cateIds |
| | |
| | | scroll-y="true" |
| | | @scrolltolower="loadMore"> |
| | | <view v-for="(item1, index) in list" :key="index" class="flex mb20" @click="jump(index)"> |
| | | <view class="img36 mr20 pt10"> |
| | | <view class="img36 mr20 pt10" style="position: relative;"> |
| | | <u-checkbox-group style="display: block;" name="" @change="jump(index)"> |
| | | <u-checkbox :checked="item1.isActive"></u-checkbox> |
| | | </u-checkbox-group> |
| | |
| | | mediaType: ['image', 'video'], |
| | | sourceType: ['album', 'camera'], |
| | | success: (chooseImageRes) => { |
| | | uni.showLoading({ title: '上传中' }); |
| | | const tempFilePaths = chooseImageRes.tempFiles; |
| | | for (let i = 0; i < tempFilePaths.length; i++) { |
| | | uni.uploadFile({ |
| | |
| | | typec, |
| | | url: res.data.url |
| | | }) |
| | | uni.hideLoading(); |
| | | } |
| | | }); |
| | | } |