| | |
| | | export function fakeBannerList() { |
| | | return new Promise((resolute, reject) => { |
| | | try { |
| | | const list = [{ |
| | | id: '1', |
| | | img: 'http://61.131.136.25:2081/zhba/upload/20210913/3d9fd42a80094268ab83fdd3bcb18541.jpg', |
| | | url: '../article/article_detail?detailData=' + '{"id":"119"}' |
| | | }, { |
| | | const list = [ |
| | | // { |
| | | // id: '1', |
| | | // img: 'http://61.131.136.25:2081/zhba/upload/20210913/3d9fd42a80094268ab83fdd3bcb18541.jpg', |
| | | // url: '../article/article_detail?detailData=' + '{"id":"119"}' |
| | | // }, |
| | | { |
| | | id: '2', |
| | | img: 'http://61.131.136.25:2081/zhba/upload/20220216/b3d4c45eb7202974b3155318914df829.jpg', |
| | | url: '../article/article_video?detailData=' + '{"id":981,"title":"千万别被“冰墩墩”的诱惑冲昏头 小心被盯上!","content":"","url":"http://61.131.136.25:2081/zhba/upload/20220216/b3d4c45eb7202974b3155318914df829.jpg","videoUrl":"http://61.131.136.25:2081/zhba/upload/depl/aed8c0b92b8f49b18c7c2d5056290af8.mp4","createTime":"2022-02-15 00:00:00","updateTime":"2022-02-16 22:49:21","sourceId":"","sourceName":"中国警察网","articleType":"ksp003","recommend":-1,"publish":"0","iscomment":"","iswords":"0","wordsContent":"","type":0}' |
| | |
| | | "appid" : "__UNI__1A57486", |
| | | "description" : "", |
| | | "versionName" : "1.0.0", |
| | | "versionCode" : "100", |
| | | "versionCode" : 1, |
| | | "transformPx" : false, |
| | | "networkTimeout" : { |
| | | "request" : 10000 |
| | |
| | | //获取用户信息 |
| | | getUser() { |
| | | var that = this; |
| | | debugger |
| | | uni.request({ |
| | | url: that.$store.state.BaopiAPI + '/blade-user/detail', |
| | | method: 'GET', |
| | |
| | | }); |
| | | setTimeout(function() { |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders?in=1" |
| | | url: "/pages/grabOrders/grabOrdersZAFFPX/grabOrders?in=1" |
| | | }) |
| | | }, 2200) |
| | | } else { |
| | |
| | | }); |
| | | setTimeout(function() { |
| | | uni.redirectTo({ |
| | | url: "/pages/grabOrders/grabOrdersZAYWXC/grabOrders?in=1" |
| | | url: "/pages/grabOrders/grabOrdersZAXC/grabOrders?in=1" |
| | | }) |
| | | }, 2200) |
| | | } else { |
| | |
| | | // 页数加1 |
| | | let msg = datas.message() |
| | | let maxpages = msg.length |
| | | debugger |
| | | if(msg.length > (page + 1) * 10) { |
| | | maxpages = (page + 1) * 10 |
| | | this.nowpage++ |
| | |
| | | <!-- <view> --> |
| | | <u-popup v-model="showOnceLogin" mode="center" :closeable="true" :custom-style="OnceLoginStyle" |
| | | class="OnceLoginStyles"> |
| | | <img class="imgs1" src="../../static/home/img/laba2.png" mode=""></img> |
| | | <image class="imgs1" src="/static/home/img/laba2.png" mode=""></image> |
| | | <view class="onceBody"> |
| | | <view class="names"> |
| | | 管理员{{$store.state.puserName}}: |
| | |
| | | this.getNum(); |
| | | }, |
| | | onLoad() { |
| | | //检查应用版本号 |
| | | // console.log("版本号为++++"+ plus.runtime.versionCode) |
| | | // var code = plus.runtime.versionCode; |
| | | // uni.showToast({ |
| | | // title: '提交成功'+code, |
| | | // duration: 2000 |
| | | // }); |
| | | var that = this; |
| | | // uni.request({ |
| | | // url: this.$store.state.piAPI + '/version/detail?id=1', |
| | | // method: 'GET', |
| | | // success: (res) => { |
| | | // if(res.data.data.version > code){ |
| | | // that.ccc(res.data.data); |
| | | // } |
| | | // } |
| | | // }); |
| | | |
| | | //this.ccc(); |
| | | // 后续将改为与后端联动 |
| | | // 加载banner数据 |
| | | fakePosition().then(data => { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ccc() { |
| | | let content = ` |
| | | 1. 修复badge组件的size参数无效问题<br> |
| | | 2. 新增Modal模态框组件<br> |
| | | 3. 新增压窗屏组件,可以在APP上以弹窗的形式遮盖导航栏和底部tabbar<br> |
| | | 4. 修复键盘组件在微信小程序上遮罩无效的问题 |
| | | `; |
| | | ccc(data) { |
| | | let content =data.content; |
| | | var url = data.address; |
| | | this.$u.route("/uview-ui/components/u-full-screen/u-full-screen?content=" + content + |
| | | "&src=1345678"); |
| | | "&src="+url); |
| | | }, |
| | | aaa(i) { |
| | | let key = i == 1 ? 'keke' : 'song1'; |
| | |
| | | methods: {}, |
| | | mounted() {}, |
| | | onLoad: function(options) { |
| | | debugger |
| | | console.log(options) |
| | | var that = this, |
| | | info_detail = options; |
| | |
| | | <view class="cell"> |
| | | <view class="name">账号</view> |
| | | <view class="input-box"> |
| | | <input type="text" v-model="names" placeholder="请输入账号" class="ipt" placeholder-class="hold" |
| | | <input type="text" v-model="names" placeholder="帐号为姓+身份证后4位" class="ipt" placeholder-class="hold" |
| | | @blur="handleInputCheck" /> |
| | | </view> |
| | | </view> |
| | |
| | | disabled: true |
| | | } |
| | | }, |
| | | onLoad() { |
| | | //检查应用版本号 |
| | | console.log("版本号为++++"+ plus.runtime.versionCode) |
| | | var code = plus.runtime.versionCode; |
| | | // uni.showToast({ |
| | | // title: '提交成功'+code, |
| | | // duration: 2000 |
| | | // }); |
| | | var that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + '/version/detail?id=1', |
| | | method: 'GET', |
| | | success: (res) => { |
| | | if(res.data.data.version > code){ |
| | | that.ccc(res.data.data); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | computed: { |
| | | OURpass() { |
| | | return this.$store.state.loging; |
| | | } |
| | | }, |
| | | methods: { |
| | | ccc(data) { |
| | | let content =data.content; |
| | | var url = data.address; |
| | | this.$u.route("/uview-ui/components/u-full-screen/u-full-screen?content=" + content + |
| | | "&src="+url); |
| | | }, |
| | | judgeUse() { |
| | | |
| | | // var main = plus.android.runtimeMainActivity();//获取当前的Activity |
| | |
| | | :required="true"> |
| | | <u-input v-model="form.signals" placeholder="请输入警号" /> |
| | | </u-form-item> |
| | | <u-form-item label="工作单位" left-icon="home-fill" label-width="200" :required="true"> |
| | | |
| | | <!-- <u-form-item label="工作单位" left-icon="home-fill" label-width="200" :required="true"> |
| | | <u-radio-group v-model="jobValue"> |
| | | <u-radio v-for="(item, index) in jobList" :key="index" :name="item.name" :disabled="item.disabled"> |
| | | {{item.name}} |
| | | </u-radio> |
| | | </u-radio-group> |
| | | </u-form-item> |
| | | </u-form-item> --> |
| | | |
| | | <u-form-item v-show="jobValue == '有'" label="单位名称" prop="jobUnit" label-width="200" left-icon="home" |
| | | <u-form-item v-show="form.role == '民警'" label="单位名称" prop="jobUnit" label-width="200" left-icon="home" |
| | | :required="true"> |
| | | <u-input v-model="form.jobUnit" placeholder="请输入单位名称" /> |
| | | </u-form-item> |
| | | |
| | | <u-form-item v-show="jobValue == '有'" label="工作地点" prop="xq" left-icon="map-fill" label-width="200" |
| | | <u-form-item v-show="form.role == '民警'" label="工作地点" prop="xq" left-icon="map-fill" label-width="200" |
| | | :required="true"> |
| | | <u-field :disabled="true" style="width: 100%;" label-width="0" v-model="form.xq" type="textarea" |
| | | placeholder="请选择工作地点" :fixed="true"> |
| | |
| | | </u-field> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label="居住地" prop="address" left-icon="map" label-width="200" :required="true"> |
| | | <u-form-item v-show="form.role != '民警'" label="居住地" prop="address" left-icon="map" label-width="200" :required="true"> |
| | | <u-field :disabled="true" style="width: 100%;" label-width="0" v-model="form.address" type="textarea" |
| | | placeholder="请选择居住地" :fixed="true"> |
| | | <u-icon @click="placeClick" name="map-fill" slot="right" size="44" label="定位" label-pos="bottom" |
| | |
| | | trigger: ['change', 'blur'], |
| | | }], |
| | | address: [{ |
| | | required: true, |
| | | required: false, |
| | | message: '请选择居住地', |
| | | // 可以单个或者同时写两个触发验证方式 |
| | | trigger: ['change', 'blur'], |
| | |
| | | //判断是否必填警号和工作地点 |
| | | if (that.form.role == "民警") { |
| | | that.rules.signals[0].required = true; |
| | | } |
| | | |
| | | if (that.jobValue == "有") { |
| | | that.rules.jobUnit[0].required = true; |
| | | that.rules.xq[0].required = true; |
| | | that.rules.address[0].required = false; |
| | | }else{ |
| | | that.rules.address[0].required = true; |
| | | } |
| | | |
| | | // if (that.jobValue == "有") { |
| | | // that.rules.jobUnit[0].required = true; |
| | | // that.rules.xq[0].required = true; |
| | | // } |
| | | |
| | | that.$refs.uForm.validate(valid => { |
| | | if (valid) { |
| | | that.registerEvent() |
| | |
| | | roleid: '', //角色id |
| | | Jurisdiction: '', //角色辖区 |
| | | logPath: '', |
| | | // piAPI: apis.api, |
| | | piAPI: apis.api, |
| | | // piAPI: 'http://61.131.136.25:2082/api/', |
| | | //piAPI: 'http://192.168.0.114:83/', |
| | | //piAPI: 'http://61.131.136.25:2082/api/', |
| | |
| | | }, |
| | | confirm() { |
| | | this.closeModal(); |
| | | plus.runtime.openURL(this.src) |
| | | console.log(this.src) |
| | | }, |
| | | closeModal() { |