wangmingchuan321@qq.com 2 months ago
parent 566c6bda9e
commit 73b627c783
  1. 102
      agent/pages/apply.vue
  2. 2
      components/service-list-item.vue
  3. 6
      technician/pages/apply.vue
  4. 864
      unpackage/dist/dev/app-plus/app-service.js
  5. 77
      unpackage/dist/dev/app-plus/app-view.js

@ -9,7 +9,7 @@
<!-- <block v-else> -->
<!-- <view class="apply-info-box rel" :style="{background:primaryColor}">
<!-- <view class="apply-info-box rel" :style="{background:primaryColor}">
<image class="bg-1 abs" src="https://lbqny.migugu.com/admin/anmo/apply/bg-4.png">
</image>
<image class="bg-2 abs" src="https://lbqny.migugu.com/admin/anmo/apply/bg-3.png">
@ -55,18 +55,30 @@
src="https://lbqny.migugu.com/admin/anmo/apply/submit-1.png">
</image>
</view> -->
<view class="box">
<view class="label">您的姓名</view>
<view class=""><input type="text" v-model="form.user_name" class="input" placeholder="请输入您的姓名" /></view>
<view class="label">手机号</view>
<view class=""><input type="text" v-model="form.phone" class="input" placeholder="请输入手机号" /></view>
<view class="label">申请加入的区域</view>
<view class=""><input type="text" v-model="form.city" class="input" placeholder="请输入您想代理的城市" /></view>
</view>
<view class="sbubtn" @click="submit">
提交
<view class="box">
<view class="label">您的姓名</view>
<view class=""><input type="text" v-model="form.user_name" class="input" placeholder="请输入您的姓名" /></view>
<view class="label">手机号</view>
<view class=""><input type="text" v-model="form.phone" class="input" placeholder="请输入手机号" /></view>
<view class="label">申请加入的区域</view>
<view class="">
<input v-if="quanxian" type="text" v-model="form.city" class="input" placeholder="请输入您想代理的城市" />
<input v-if="!quanxian" @click="goquanxian" disabled="true" type="text" v-model="form.city"
class="input" placeholder="请输入您想代理的城市" />
</view>
</view>
<view class="sbubtn" @click="submit">
提交
</view>
<!-- </block> -->
<uni-popup ref="perpopup2" type="top" :mask-click='false' :zIndex="999">
<view class="permissions_box">
为了获取您附近的服务人员更好的为您服务,我们需要申请位置信息权限请您确认授权否则无法使用该功能
</view>
</uni-popup>
</view>
</template>
@ -76,10 +88,13 @@
mapActions,
mapMutations
} from "vuex"
import permision from '@/utils/permission.js'
export default {
components: {},
data() {
return {
quanxian: true,
xianzhi: 1,
isLoad: false,
options: {},
authTime: 0,
@ -121,6 +136,29 @@
lockTap: false
}
},
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
}
},
error => {
console.error('Error checking permission:', error.message);
}
);
},
computed: mapState({
primaryColor: state => state.config.configInfo.primaryColor,
subColor: state => state.config.configInfo.subColor,
@ -166,6 +204,26 @@
initRefresh() {
this.initIndex(true)
},
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 toSend() {
let {
@ -288,9 +346,9 @@
color: #FFFFFF;
margin-top: 500rpx;
}
.label{
}
.label {}
.box {
width: 702rpx;
// height: 1088rpx;
@ -299,6 +357,7 @@
margin: 32rpx auto;
padding: 30rpx;
}
.input {
width: 642rpx;
height: 80rpx;
@ -310,6 +369,7 @@
line-height: 80rpx;
padding: 0 20rpx;
}
.apply-info-box {
width: 100%;
height: 1632rpx;
@ -358,5 +418,19 @@
left: 47rpx;
z-index: 2;
}
.permissions_box {
padding: 100rpx 30rpx;
font-size: 30rpx;
line-height: 50rpx;
background-color: #fff;
}
}
.permissions_box {
padding: 100rpx 30rpx;
font-size: 30rpx;
line-height: 50rpx;
background-color: #fff;
}
</style>

@ -118,8 +118,6 @@
},
// -
toChoose() {
let that = this
const appAuthorizeSetting = uni.getAppAuthorizeSetting()
console.log(9987, appAuthorizeSetting);

@ -371,7 +371,7 @@
console.log(9987, appAuthorizeSetting);
if (appAuthorizeSetting.locationAuthorized != 'authorized') {
that.quanxian = false
}else{
} else {
that.quanxian = true
}
@ -634,6 +634,10 @@
},
pickerChange(e, key) {
let ind = e.target.value
if (key === 'city') {
this.goquanxian()
}
if (key === 'birthday') {
let unix = this.$util.DateToUnix(ind)
if (unix > new Date(Math.ceil(new Date().getTime())) / 1000) {

File diff suppressed because one or more lines are too long

@ -42292,21 +42292,46 @@ var render = function () {
"uni-view",
{ attrs: { _i: 9 } },
[
_c("v-uni-input", {
staticClass: _vm._$g(10, "sc"),
attrs: {
type: "text",
placeholder: "请输入您想代理的城市",
_i: 10,
},
model: {
value: _vm._$g(10, "v-model"),
callback: function ($$v) {
_vm.$handleVModelEvent(10, $$v)
},
expression: "form.city",
},
}),
_vm._$g(10, "i")
? _c("v-uni-input", {
staticClass: _vm._$g(10, "sc"),
attrs: {
type: "text",
placeholder: "请输入您想代理的城市",
_i: 10,
},
model: {
value: _vm._$g(10, "v-model"),
callback: function ($$v) {
_vm.$handleVModelEvent(10, $$v)
},
expression: "form.city",
},
})
: _vm._e(),
_vm._$g(11, "i")
? _c("v-uni-input", {
staticClass: _vm._$g(11, "sc"),
attrs: {
disabled: "true",
type: "text",
placeholder: "请输入您想代理的城市",
_i: 11,
},
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
},
},
model: {
value: _vm._$g(11, "v-model"),
callback: function ($$v) {
_vm.$handleVModelEvent(11, $$v)
},
expression: "form.city",
},
})
: _vm._e(),
],
1
),
@ -42316,8 +42341,8 @@ var render = function () {
_c(
"uni-view",
{
staticClass: _vm._$g(11, "sc"),
attrs: { _i: 11 },
staticClass: _vm._$g(12, "sc"),
attrs: { _i: 12 },
on: {
click: function ($event) {
return _vm.$handleViewEvent($event)
@ -42326,6 +42351,22 @@ var render = function () {
},
[_vm._v("提交")]
),
_c(
"uni-popup",
{ ref: "perpopup2", attrs: { _i: 13 } },
[
_c(
"uni-view",
{ staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } },
[
_vm._v(
"为了获取您附近的服务人员,更好的为您服务,我们需要申请位置信息权限,请您确认授权,否则无法使用该功能。"
),
]
),
],
1
),
],
1
)
@ -42425,7 +42466,7 @@ if(false) {}
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ./node_modules/css-loader/dist/runtime/api.js */ 16);
exports = ___CSS_LOADER_API_IMPORT___(false);
// Module
exports.push([module.i, "@charset \"UTF-8\";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\n.sbubtn {\r\n width: 642rpx;\r\n height: 90rpx;\r\n background: #1DB481;\r\n border-radius: 45rpx;\r\n line-height: 90rpx;\r\n margin: 0 auto;\r\n text-align: center;\r\n font-family: Alibaba PuHuiTi;\r\n font-weight: 400;\r\n font-size: 30rpx;\r\n color: #FFFFFF;\r\n margin-top: 500rpx;\n}\n.box {\r\n width: 702rpx;\r\n background: #FFFFFF;\r\n border-radius: 20rpx;\r\n margin: 32rpx auto;\r\n padding: 30rpx;\n}\n.input {\r\n width: 642rpx;\r\n height: 80rpx;\r\n background: #FBFBFB;\r\n border-radius: 10rpx;\r\n border: 1px solid #EAEAEA;\r\n margin-top: 30rpx;\r\n margin-bottom: 30rpx;\r\n line-height: 80rpx;\r\n padding: 0 20rpx;\n}\n.apply-info-box {\r\n width: 100%;\r\n height: 1632rpx;\n}\n.apply-info-box .bg-1 {\r\n width: 750rpx;\r\n height: 1632rpx;\r\n top: 0;\r\n left: 0;\r\n z-index: 1;\n}\n.apply-info-box .bg-2 {\r\n width: 750rpx;\r\n height: 575rpx;\r\n top: 0;\r\n left: 0;\r\n z-index: 3;\n}\n.apply-info-box .join-us {\r\n width: 671rpx;\r\n height: 890rpx;\r\n top: 482rpx;\r\n left: 44rpx;\r\n z-index: 2;\n}\n.apply-info-box .join-us .item-input {\r\n height: 74rpx;\r\n border: 4rpx solid #069F5E;\n}\n.apply-info-box .join-us .item-input .flex-between {\r\n height: 74rpx;\n}\n.apply-info-box .join-us .item-input.text {\r\n height: 82rpx;\n}\n.apply-info-box .submit {\r\n width: 662rpx;\r\n height: 93rpx;\r\n top: 1400rpx;\r\n left: 47rpx;\r\n z-index: 2;\n}\r\n", ""]);
exports.push([module.i, "@charset \"UTF-8\";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\n.sbubtn {\r\n width: 642rpx;\r\n height: 90rpx;\r\n background: #1DB481;\r\n border-radius: 45rpx;\r\n line-height: 90rpx;\r\n margin: 0 auto;\r\n text-align: center;\r\n font-family: Alibaba PuHuiTi;\r\n font-weight: 400;\r\n font-size: 30rpx;\r\n color: #FFFFFF;\r\n margin-top: 500rpx;\n}\n.box {\r\n width: 702rpx;\r\n background: #FFFFFF;\r\n border-radius: 20rpx;\r\n margin: 32rpx auto;\r\n padding: 30rpx;\n}\n.input {\r\n width: 642rpx;\r\n height: 80rpx;\r\n background: #FBFBFB;\r\n border-radius: 10rpx;\r\n border: 1px solid #EAEAEA;\r\n margin-top: 30rpx;\r\n margin-bottom: 30rpx;\r\n line-height: 80rpx;\r\n padding: 0 20rpx;\n}\n.apply-info-box {\r\n width: 100%;\r\n height: 1632rpx;\n}\n.apply-info-box .bg-1 {\r\n width: 750rpx;\r\n height: 1632rpx;\r\n top: 0;\r\n left: 0;\r\n z-index: 1;\n}\n.apply-info-box .bg-2 {\r\n width: 750rpx;\r\n height: 575rpx;\r\n top: 0;\r\n left: 0;\r\n z-index: 3;\n}\n.apply-info-box .join-us {\r\n width: 671rpx;\r\n height: 890rpx;\r\n top: 482rpx;\r\n left: 44rpx;\r\n z-index: 2;\n}\n.apply-info-box .join-us .item-input {\r\n height: 74rpx;\r\n border: 4rpx solid #069F5E;\n}\n.apply-info-box .join-us .item-input .flex-between {\r\n height: 74rpx;\n}\n.apply-info-box .join-us .item-input.text {\r\n height: 82rpx;\n}\n.apply-info-box .submit {\r\n width: 662rpx;\r\n height: 93rpx;\r\n top: 1400rpx;\r\n left: 47rpx;\r\n z-index: 2;\n}\n.apply-info-box .permissions_box {\r\n padding: 100rpx 30rpx;\r\n font-size: 30rpx;\r\n line-height: 50rpx;\r\n background-color: #fff;\n}\n.permissions_box {\r\n padding: 100rpx 30rpx;\r\n font-size: 30rpx;\r\n line-height: 50rpx;\r\n background-color: #fff;\n}\r\n", ""]);
// Exports
module.exports = exports;

Loading…
Cancel
Save