| | |
| | | # æ¥å£åç¼ _api |
| | | VUE_APP_API_PREFIX = '/doumeeplant_api_test' |
| | | # æ¥å£åç¼ _api_api_test |
| | | VUE_APP_API_PREFIX = '/doumeeplant' |
| | | |
| | | # ä¸ä¸æè·¯å¾ --> é»è®¤./ï¼å¯ä»¥é¨ç½²å¨æå¡å¨ä»»æè·¯å¾ï¼ |
| | | VUE_APP_CONTEXT = './' |
| | |
| | | # VUE_APP_API = 'https://hsky.doumee.com/doumeeplant_api/' |
| | | |
| | | # æµè¯ |
| | | VUE_APP_API = 'https://dmtest.ahapp.net/doumeeplant_api_test/' |
| | | # VUE_APP_API = 'https://dmtest.ahapp.net/doumeeplant_api_test/' |
| | | |
| | | VUE_APP_API = 'https://127.0.0.1/doumeeplant/' |
| | | |
| | | # æ¼ç¤º |
| | | #VUE_APP_API = 'https://www.mes.red/doumeeplant/' |
| | |
| | | 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://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` |
| | | 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://dmtest.ahapp.net/doumeeplant_h5/#/wxLogin?code=${code}` |
| | | let href1 = `https://lingyang.mes.show:1801/h5/#/wxLogin?code=${code}` |
| | | window.location.replace(href1) |
| | | } |
| | | </script> |
| | |
| | | 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://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' |
| | | window.open(href) |
| | | } |
| | | }) |
| | |
| | | <u-icon name="close" size="20"></u-icon> |
| | | </div> |
| | | <div class="preview_content"> |
| | | <u-swiper :list="list" :current="current"></u-swiper> |
| | | <u-swiper :list="list" :autoplay="false" :height="300" bgColor="rgba(0,0,0,0)" :current="current"></u-swiper> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | |
| | | .preview { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background: rgba(0, 0, 0, 0.8); |
| | | z-index: 9999; |
| | | .preview_close { |
| | | position: fixed; |
| | | right: 50rpx; |
| | | top: 50rpx; |
| | | width: 70rpx; |
| | | height: 70rpx; |
| | | border-radius: 50%; |
| | | background: #B2B2B2; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | z-index: 99999; |
| | | } |
| | | .preview_content::v-deep { |
| | | position: relative; |
| | | top: 50%; |
| | | left: 0; |
| | | transform: translate(0, -50%); |
| | | .u-swiper { |
| | | width: 100%; |
| | | height: 300rpx !important; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | }
|
| | |
|
| | | }
|
| | | ],
|
| | | ],
|
| | | "subPackages": [{
|
| | | "root": "pages_adjust",
|
| | | "pages": [{
|
| | |
| | | }
|
| | | },
|
| | | {
|
| | | "path" : "pages/forgotPassword/forgotPassword",
|
| | | "style" : |
| | | {
|
| | | "navigationBarTitleText": "å¿è®°å¯ç ",
|
| | | "enablePullDownRefresh": false
|
| | | }
|
| | | },
|
| | | {
|
| | | "path": "pages/newTransfer/newTransfer",
|
| | | "style": {
|
| | | "navigationBarTitleText": "æ°å»ºè½¬åº",
|
| | |
| | | <view class="password_list_item_box"> |
| | | <input type="password" v-model="form.originalPassword" maxlength="20" placeholder="请è¾å
¥åå¯ç "> |
| | | </view> |
| | | <text class="password_list_item_btn" @click="forgotPassword">å¿è®°å¯ç </text> |
| | | </view> |
| | | <view class="password_list_item"> |
| | | <text>æ°å¯ç </text> |
| | |
| | | methods: { |
| | | // å¿è®°å¯ç |
| | | forgotPassword() { |
| | | |
| | | uni.navigateTo({ |
| | | url: '/pages_adjust/pages/forgotPassword/forgotPassword' |
| | | }); |
| | | }, |
| | | // æäº¤ä¿®æ¹ |
| | | submit() { |
| | |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | .password_list_item_btn { |
| | | text-align: right; |
| | | font-size: 26rpx; |
| | | font-family: PingFangSC-Regular, PingFang SC; |
| | | font-weight: 400; |
| | | color: #4275FC; |
| | | } |
| | | .password_list_item_box { |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
| | | <view class="info"> |
| | | <view class="info_portrait"> |
| | | <image :src="userInfo.avatar ? userInfo.avatar : avatar" mode="widthFix" /> |
| | | <text>ç¨æ·å</text> |
| | | <text>{{userInfo.companyUser ? userInfo.companyUser.name : ''}}</text> |
| | | </view> |
| | | <view class="info_list"> |
| | | <view class="info_list_item"> |
| | |
| | | :style="{height: height}"> |
| | | <view class="fp_list_item" v-for="(item, i) in list" :key="item.id" @click="clickItem(i)"> |
| | | <view class="fp_list_item_header"> |
| | | <u-checkbox :checked="item.isActive"></u-checkbox> |
| | | <view class="fp_list_item_header_xz"> |
| | | <u-checkbox-group> |
| | | <u-checkbox :checked="item.isActive"></u-checkbox> |
| | | </u-checkbox-group> |
| | | <view class="fp_list_item_header_xz_f"></view> |
| | | </view> |
| | | <text v-if="item.mmodel">{{item.mmodel.name}}</text> |
| | | <view class="tags" v-if="item.urgent">ä¼å
{{item.urgent}}</view> |
| | | <view class="warning" v-if="item.type === 2">è¿å·¥</view> |
| | |
| | | .fp_list_item_header { |
| | | display: flex; |
| | | align-items: center; |
| | | .fp_list_item_header_xz { |
| | | width: 40rpx; |
| | | height: 40rpx; |
| | | position: relative; |
| | | .fp_list_item_header_xz_f { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: 99; |
| | | } |
| | | } |
| | | text { |
| | | max-width: 64%; |
| | | overflow: hidden; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="password"> |
| | | <view class="password_tip"> |
| | | <image src="@/static/password_ic_tip@2x.png" alt="" /> |
| | | <text>å¯ç ç±6-20ä¸ªè±æåæ¯ãæ°åæç¬¦å·ç»æ</text> |
| | | </view> |
| | | <view class="password_list"> |
| | | <view class="password_list_item"> |
| | | <text>å½åç»å®</text> |
| | | <view class="password_list_item_box"> |
| | | <input type="number" disabled v-model="userInfo.companyUser.phone" maxlength="11"> |
| | | </view> |
| | | </view> |
| | | <view class="password_list_item"> |
| | | <text>éªè¯ç </text> |
| | | <view class="password_list_item_box"> |
| | | <input type="text" v-model="form.verificationCode" maxlength="4" placeholder="请è¾å
¥ææºéªè¯ç "> |
| | | <p @click="getVerificationCode" v-if="!code.isOpen">è·åéªè¯ç </p> |
| | | <p v-else>{{code.num}}</p> |
| | | </view> |
| | | </view> |
| | | <view class="password_list_item"> |
| | | <text>æ°å¯ç </text> |
| | | <view class="password_list_item_box"> |
| | | <input type="text" v-model="form.newPhone" maxlength="11" placeholder="请è¾å
¥æ°å¯ç "> |
| | | </view> |
| | | </view> |
| | | <view class="password_list_item"> |
| | | <text>确认å¯ç </text> |
| | | <view class="password_list_item_box"> |
| | | <input type="text" v-model="form.newPhone" maxlength="11" placeholder="忬¡è¾å
¥æ°å¯ç "> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="password_footer"> |
| | | <button v-preventReClick class="password_footer_submit" @click="submit"> |
| | | <text>宿</text> |
| | | </button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | import { phoneRegular } from '@/common/config.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | | form: { |
| | | newPhone: '', |
| | | verificationCode: '' |
| | | }, |
| | | code: { |
| | | num: 60, |
| | | isOpen: false, |
| | | timer: 0 |
| | | } |
| | | }; |
| | | }, |
| | | computed: mapState([ |
| | | 'userInfo' |
| | | ]), |
| | | methods: { |
| | | // è·åéªè¯ç |
| | | getVerificationCode() { |
| | | this.code.isOpen = true |
| | | this.code.timer = setInterval(() => { |
| | | if (this.code.num === 0) { |
| | | clearInterval(this.code.timer) |
| | | this.code.isOpen = false |
| | | this.code.num = 60 |
| | | } |
| | | this.code.num = this.code.num - 1 |
| | | }, 1000) |
| | | }, |
| | | // æäº¤ä¿®æ¹ |
| | | submit() { |
| | | // if (!this.form.newPhone) { |
| | | // uni.showToast({ title: 'æ°ææºå·ä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | // } else if (!phoneRegular.test(this.form.newPhone)) { |
| | | // uni.showToast({ title: 'ææºå·ä¸åæ³', icon: 'none', duration: 2000 }); |
| | | // } else if (!this.form.verificationCode) { |
| | | // uni.showToast({ title: 'éªè¯ç ä¸è½ä¸ºç©º', icon: 'none', duration: 2000 }); |
| | | // } else { |
| | | // console.log('å¯ä»¥æäº¤') |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .password { |
| | | width: 100%; |
| | | .password_tip { |
| | | padding: 20rpx 30rpx; |
| | | display: flex; |
| | | background: #F7F7F7; |
| | | box-sizing: border-box; |
| | | image { |
| | | width: 24rpx; |
| | | height: 24rpx; |
| | | margin-right: 10rpx; |
| | | margin-top: 8rpx; |
| | | } |
| | | text { |
| | | font-size: 24rpx; |
| | | font-weight: 400; |
| | | color: #666666; |
| | | } |
| | | } |
| | | .password_list { |
| | | padding: 0 30rpx; |
| | | .password_list_item { |
| | | display: flex; |
| | | align-items: center; |
| | | height: 90rpx; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | text { |
| | | width: 150rpx; |
| | | flex-shrink: 0; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #222222; |
| | | } |
| | | .password_list_item_box { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | flex: 1; |
| | | input { |
| | | border: none; |
| | | font-size: 30rpx; |
| | | } |
| | | input::-webkit-input-placeholder { |
| | | font-size: 28rpx; |
| | | font-weight: 400; |
| | | color: #B2B2B2; |
| | | } |
| | | p { |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #4275FC; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | .password_footer { |
| | | margin-top: 80rpx; |
| | | padding: 0 30rpx; |
| | | .password_footer_submit { |
| | | width: 100%; |
| | | height: 88rpx; |
| | | border: none; |
| | | background: #4275FC; |
| | | box-shadow: 0 0 12rpx 0 rgba(0, 0, 0, 0.08); |
| | | border-radius: 8rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | text { |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <button class="box_footer_submit" v-preventReClick @click="submit">æäº¤</button> |
| | | </view> |
| | | <!-- æ¥çå¤§å¾ --> |
| | | <Preview :list="form.files" :current="current" v-if="isOpen" /> |
| | | <Preview :list="form.files.map(item => item.url)" :current="current" @close="isOpen = false" v-if="isOpen" /> |
| | | <!-- éæ©è®¾å¤ --> |
| | | <ytyDataPicker :show="show" :dataList="columns" @select="handleSelect" @search="handleSearch" @close="show = false" /> |
| | | <!-- éæ©æ¶é´ --> |
| | |
| | | import { setTime, judgmentType } from '@/util/utils.js' |
| | | import { mapState } from 'vuex' |
| | | import ytyDataPicker from '@/components/yty-data-picker/yty-data-picker.vue' |
| | | import Preview from '@/components/Preview/Preview.vue' |
| | | import Preview from '@/components/Preview.vue' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | list1: [ |
| | | 'https://cloudfactory.oss-cn-hangzhou.aliyuncs.com/deviceCheck/20230911/e228a809-0a6b-443c-9a2c-78d5c1b1b633.mp4', |
| | | 'https://cdn.uviewui.com/uview/swiper/swiper2.png', |
| | | 'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
| | | ], |
| | | status: [{ |
| | | name: 'æ£å¸¸', |
| | | active: true, |
| | |
| | | } |
| | | ], |
| | | columns: [], |
| | | isOpen: false, |
| | | path: '', |
| | | show: false, |
| | | showTime: false, |
| | |
| | | ...mapState(['session']) |
| | | }, |
| | | methods: { |
| | | // æ¥ç大å¾/è§é¢ |
| | | seeBigFile(i) { |
| | | this.current = i |
| | | this.isOpen = true |
| | | }, |
| | | // å 餿宿件 |
| | | dele(i) { |
| | | this.form.files.splice(i, 1) |
| | |
| | | # VUE_APP_BASE_URL = 'http://192.168.0.134:10021/' |
| | | |
| | | # 任康æ¬å° |
| | | VUE_APP_BASE_URL = 'http://192.168.0.15:10021/' |
| | | # VUE_APP_BASE_URL = 'http://192.168.0.15:10021/' |
| | | |
| | | # æ±è |
| | | # VUE_APP_BASE_URL = 'http://192.168.0.35:10021/' |
| | | |
| | | # æµè¯æå¡å¨ |
| | | # VUE_APP_BASE_URL = 'https://dmtest.ahapp.net/doumeeplant_api/' |
| | | VUE_APP_BASE_URL = 'https://dmtest.ahapp.net/doumeeplant_api/' |
| | | |