wangmingchuan321@qq.com 5 months ago
parent 85c0594528
commit a9c41e3bf4
  1. 191
      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. 7809
      unpackage/dist/dev/app-plus/app-service.js
  5. 13503
      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

@ -111,13 +111,13 @@
<radio value="form.sex" />
</label> -->
<radio-group @change="radioChange" style="display: flex;">
<label style="display: flex; margin-right: 50rpx;"v-for="(item, index) in ['男','女']" :key="index">
<view>
<radio :value="item" :checked="index === current" />
</view>
<view>{{item}}</view>
</label>
</radio-group>
<label style="display: flex; margin-right: 50rpx;" v-for="(item, index) in ['男','女']" :key="index">
<view>
<radio :value="item" :checked="index === current" />
</view>
<view>{{item}}</view>
</label>
</radio-group>
<view class="label2">您的生日</view>
<picker class="input" @change="pickerChange($event,'birthday')" mode="date" :end="endYear"
:value="form.birthday">
@ -129,54 +129,75 @@
<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 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>
<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 class="f-caption c-caption mt-sm">请上传本人近期照片图片大小不超过10M</view>
<view class="" v-for="(item,index) in form.work_img" :key="index">
</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>
</view>
<view class="f-caption c-caption mt-sm">请上传本人近期照片图片大小不超过10M</view>
<view class="" v-for="(item,index) in form.work_img" :key="index">
<image :src="item.path" mode=""></image>
</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="iconfont icon-camera _i">
</view>
<view class="f-caption c-caption mt-sm">
上传视频
</view>
<view class="cur-imgsize f-caption c-caption">
0/3
</view>
</view>
</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="iconfont icon-camera _i">
</view>
<view class="f-caption c-caption mt-sm">
上传视频
</view>
<view class="cur-imgsize f-caption c-caption">
0/3
</view>
</view>
</view>
<upload @upload="imgUpload" v-if="xianshi==1" imgtype="work_img" text="上传图片"
:imgsize="1" imgclass="apply">
</upload>
</view>
<upload @upload="imgUpload" v-if="xianshi==1" imgtype="work_img" text="上传图片" :imgsize="1"
imgclass="apply">
</upload>
</view>
<view style="width:100%;color: #ED2A2A;text-align: center;">
平台不会通过任何渠道泄露您的个人信息请放心输入
</view>
<view style="width:100%;color: #ED2A2A;text-align: center;">
平台不会通过任何渠道泄露您的个人信息请放心输入
</view>
<view class="sbubtn" @click="submit">
提交
</view>
<uni-popup ref="perpopup" type="top" :mask-click='false'>
<view class="permissions_box">
当您使用APP时为了提供图片上传的功能我们需要申请相机/存储权限
</view>
<view class="sbubtn" @click="submit">
提交
</uni-popup>
<uni-popup ref="perpopup2" type="top" :mask-click='false' :zIndex="999">
<view class="permissions_box">
为了获取您附近的服务人员更好的为您服务,我们需要申请位置信息权限请您确认授权否则无法使用该功能
</view>
<uni-popup ref="perpopup" type="top" :mask-click='false'>
<view class="permissions_box">
当您使用APP时为了提供图片上传的功能我们需要申请相机/存储权限
</view>
</uni-popup>
</view>
</uni-popup>
</view>
</view>
</template>
@ -187,13 +208,14 @@
mapActions,
mapMutations
} from "vuex"
import permision from '@/utils/permission.js'
import permision from '@/utils/permission.js'
export default {
components: {
wPicker
},
data() {
return {
quanxian: true,
isLoad: false,
options: {},
cityList: [],
@ -259,7 +281,7 @@
max_level: 0,
authTime: 0,
timer: null,
xianshi:2,
xianshi: 2,
form: {
id: 0,
admin_id: 0,
@ -343,39 +365,68 @@
onUnload() {
if (this.timer) clearInterval(this.timer)
},
onShow(){
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){
this.xianshi=2
}else{
this.xianshi=1
if (granted.checkResult == -1) {
this.xianshi = 2
} else {
this.xianshi = 1
}
},
error => {
console.error('Error checking permission:', error.message);
console.error('Error checking permission:', error.message);
}
);
},
methods: {
...mapActions(['getConfigInfo', 'getUserInfo', 'updateCommonOptions']),
...mapMutations(['updateUserItem']),
async checkquanxian(){
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') {
if (uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission('android.permission.WRITE_EXTERNAL_STORAGE',
granted => {
console.log(1,granted.checkResult)
if (granted.checkResult==-1){
console.log(1, granted.checkResult)
if (granted.checkResult == -1) {
that.$refs.perpopup.open('top')
}else{
that.xianshi=1
} else {
that.xianshi = 1
}
},
error => {
console.error('Error checking permission:', error.message);
console.error('Error checking permission:', error.message);
}
);
);
that.requestAndroidPermission('android.permission.WRITE_EXTERNAL_STORAGE')
}
},
@ -383,16 +434,16 @@
let that = this;
console.log(permision)
var result = await permision.requestAndroidPermission(permisionID);
if(result != 1){
if (result != 1) {
this.recorderAuthModal();
}else{
} else {
this.$refs.perpopup.close()
if(that.open_update_info == 0){
if (that.open_update_info == 0) {
return;
}
}
},
recorderAuthModal: function () {
recorderAuthModal: function() {
const that = this;
uni.showModal({
title: '温馨提示',
@ -403,7 +454,7 @@
if (res.confirm) {
that.$refs.perpopup.close();
permision.gotoAppPermissionSetting()
}else{
} else {
that.$refs.perpopup.close();
}
}
@ -803,16 +854,19 @@
color: #FFFFFF;
margin-top: 50rpx;
}
.apply-pages {
background: #F6F6F6;
}
.label1{
.label1 {
margin-bottom: 30rpx;
}
.label2{
.label2 {
margin-top: 30rpx;
}
.box {
width: 702rpx;
// height: 1088rpx;
@ -885,9 +939,10 @@
}
}
}
.permissions_box{
.permissions_box {
padding: 100rpx 30rpx;
font-size: 30rpx;
line-height: 50rpx;

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