wangmingchuan321@qq.com 5 months ago
parent 85c0594528
commit a9c41e3bf4
  1. 67
      technician/pages/apply.vue
  2. 2
      unpackage/dist/dev/app-plus/__uniappchooselocation.js
  3. 2
      unpackage/dist/dev/app-plus/app-config-service.js
  4. 7731
      unpackage/dist/dev/app-plus/app-service.js
  5. 13451
      unpackage/dist/dev/app-plus/app-view.js
  6. 2
      unpackage/dist/dev/app-plus/manifest.json
  7. 2
      unpackage/dist/dev/app-plus/view.css
  8. 2
      unpackage/dist/dev/app-plus/view.umd.min.js

@ -129,13 +129,23 @@
<view class="label">手机号</view>
<view class=""><input type="text" v-model="form.mobile" class="input" placeholder="请输入手机号" /></view>
<view class="label">意向工作城市</view>
<picker class="input" @change="pickerChange($event,'city')" :value="cityIndex" :range="cityList"
range-key="title">
<picker v-if="quanxian" class="input" @change="pickerChange($event,'city')" :value="cityIndex"
:range="cityList" range-key="title">
<view class="flex-between">
<view class="max-400 ellipsis">{{cityIndex!=-1?cityList[cityIndex].title:'请选择'}}</view>
<i class="iconfont icon-right ml-sm" style="font-size: 28rpx;"></i>
</view>
</picker>
<view v-else class="input" @tap="goquanxian">
<view class="flex-between">
<view class="max-400 ellipsis">请选择</view>
<i class="iconfont icon-right ml-sm" style="font-size: 28rpx;"></i>
</view>
</view>
<view class="flex-y-baseline mt-md">
<view class="f-title c-title text-bold">工作形象照</view>
<view class="f-caption c-caption ml-sm">图片建议尺寸: 750 * 750</view>
@ -146,8 +156,10 @@
</view>
<view class="flex-between mt-sm" @click="checkquanxian">
<view class="flex-warp" v-if="xianshi==2">
<view class="radius-16 flex-center flex-column item-child upload-item fill-body radius-16 margin" style="width: 216rpx;height: 216rpx;background: #F7F7F7;">
<view class="upload-icon flex-center c-title radius-10" style="display: contents;width:41px;height:39px;background:#FFFFFF;align-items:center;justify-content:center;">
<view class="radius-16 flex-center flex-column item-child upload-item fill-body radius-16 margin"
style="width: 216rpx;height: 216rpx;background: #F7F7F7;">
<view class="upload-icon flex-center c-title radius-10"
style="display: contents;width:41px;height:39px;background:#FFFFFF;align-items:center;justify-content:center;">
<view class="iconfont icon-camera _i">
</view>
@ -160,8 +172,8 @@
</view>
</view>
</view>
<upload @upload="imgUpload" v-if="xianshi==1" imgtype="work_img" text="上传图片"
:imgsize="1" imgclass="apply">
<upload @upload="imgUpload" v-if="xianshi==1" imgtype="work_img" text="上传图片" :imgsize="1"
imgclass="apply">
</upload>
</view>
</view>
@ -176,7 +188,16 @@
当您使用APP时为了提供图片上传的功能我们需要申请相机/存储权限
</view>
</uni-popup>
<uni-popup ref="perpopup2" type="top" :mask-click='false' :zIndex="999">
<view class="permissions_box">
为了获取您附近的服务人员更好的为您服务,我们需要申请位置信息权限请您确认授权否则无法使用该功能
</view>
</uni-popup>
</view>
</view>
</template>
@ -194,6 +215,7 @@
},
data() {
return {
quanxian: true,
isLoad: false,
options: {},
cityList: [],
@ -344,6 +366,15 @@
if (this.timer) clearInterval(this.timer)
},
onShow() {
let that = this
const appAuthorizeSetting = uni.getAppAuthorizeSetting()
console.log(9987, appAuthorizeSetting);
if (appAuthorizeSetting.locationAuthorized != 'authorized') {
that.quanxian = false
}else{
that.quanxian = true
}
plus.android.checkPermission('android.permission.WRITE_EXTERNAL_STORAGE',
granted => {
if (granted.checkResult == -1) {
@ -360,6 +391,26 @@
methods: {
...mapActions(['getConfigInfo', 'getUserInfo', 'updateCommonOptions']),
...mapMutations(['updateUserItem']),
goquanxian: function() {
console.log(2345)
var that = this
that.$refs.perpopup2.open('top')
uni.showModal({
title: '温馨提示',
content: '为了获取您附近的服务人员,更好的为您服务,我们需要申请位置信息权限,请您确认授权,否则无法使用该功能~',
cancelText: '关闭',
confirmText: '去授权',
success(res) {
if (res.confirm) {
that.$refs.perpopup2.close();
permision.gotoAppPermissionSetting()
} else {
that.$refs.perpopup2.close();
}
}
})
},
async checkquanxian() {
let that = this;
if (uni.getSystemInfoSync().platform == 'android') {
@ -803,6 +854,7 @@
color: #FFFFFF;
margin-top: 50rpx;
}
.apply-pages {
background: #F6F6F6;
}
@ -810,9 +862,11 @@
.label1 {
margin-bottom: 30rpx;
}
.label2 {
margin-top: 30rpx;
}
.box {
width: 702rpx;
// height: 1088rpx;
@ -887,6 +941,7 @@
}
.permissions_box {
padding: 100rpx 30rpx;
font-size: 30rpx;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save