uniapp上门预约家政保洁服务系统 二次开发 安装搭建部署

前端使用的是Uniapp开发,支持微信小程序、H5网页、APP打包的;
支持全国开放城市设置;服务类型后台定义,如家电维修、家政保洁、养生护理、按摩美容、服务上门等;
支持固定价格服务和上门查看后现场定价两种模式,可设置上门服务费;针对每个服务设置用户下单时是否需要选择技师;订单分配支持任务大厅抢单模式和后台手动派单两种模式。家政服务人员收益查看,收益提现。

部分代码展示:

//检查上传
public function uploadFile($info_path){
    $info = [];
    $upload_status = false;
    if(isset($this->config['open_oss']))
    {
        switch($this->config['open_oss'])
        {
            //本地
            case 0:
                $upload_status = true;
                $info['longbing_driver'] = 'loacl';
                break;
            case 1:
                $oss_res = $this->aliyunUpload($info_path);
                if(isset($this->config['aliyun_base_dir']) && !empty($this->config['aliyun_base_dir'])) $info_path = $this->config['aliyun_base_dir'] . '/' . $info_path;
                if(in_array(substr($info_path,0,1) ,['/' ,"/"])) {
                    $info_path = substr($info_path,1,(strlen($info_path)-1));
                }
                $info['attachment'] = $info_path;
                $info['longbing_driver'] = 'aliyun';
                if(isset($oss_res['info']['url'])) $upload_status = true;
                break;
            case 2:
                $oss_res = $this->qiniuUpload($info_path);
                $info['longbing_driver'] = 'qiniuyun';
                if(empty($oss_res[1])) $upload_status = true;
                break;
            case 3:
                $oss_res = $this->tenxunUpoload($info_path);
                $info['longbing_driver'] = 'tengxunyun';
                if(isset($oss_res['ETag'])  && isset($oss_res['ObjectURL'])) $upload_status = true;
                break;
            default:
                $info['longbing_driver'] = 'loacl';
                $upload_status = true;
                break;
        }
    }else{
        $upload_status = true;
        $info['longbing_driver'] = 'loacl';
    }
    return $upload_status;
}

在这里插入图片描述

一套系统可以做 家电预约上门维修、预约到家保洁、在线预约养生护理、预约到家按摩美容、预约服务上门等

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

<?php
namespace app\Common;

use think\Request;
use think\Image;
use think\Session;	
use think\facade\Db;
use app\Common\Upload;
//生成微信小程序码
class WeChatCode {
	//小程序唯一识别码
	protected $uniacid;
	//系统配置
	protected $config;
	//accesstoken
	protected $access_token;
	//构造函数
	public function __construct($uniacid)
    {
    	$this->uniacid = $uniacid;
		$this->config  = longbingGetAppConfig($uniacid);
		$this->access_token  = $this->getAccessToken();
    }
	
	//获取accesstoken
	public function getAccessToken()
	{
		return longbingGetAccessToken($this->uniacid ,true);
	}
	
	//获取code (方法一)
	public function getQRCode($path ,$width = 430)
	{
		//url
		$url = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token={$this->access_token}";
		$post_data = ['path' => $path ,'width' => $width];
		//发送数据
		$result = longbingCurl($url ,json_encode($post_data ,true) ,'POTH');
		return $result;
	}
	//获取code (方法二)
	public function getWxCode($path ,$width = 430 ,$auto_color = true ,$line_color = null ,$is_hyaline	= false)
	{
		//url
		$url = "https://api.weixin.qq.com/wxa/getwxacode?access_token={$this->access_token}";
		$post_data = ['path' => $path ,
					  'width' => $width ,
					  'auto_color' => $auto_color ,
					  'line_color' => $line_color ,
					  'is_hyaline' => $is_hyaline];
		//生成
		$result = longbingCurl($url ,json_encode($post_data ,true) ,'POTH');
		return $result;
	}
	//获取code (方法三)
	public function getUnlimitedCode($scene ,$path = '',$width = 430 ,$auto_color = false ,$line_color = '{"r":0,"g":0,"b":0}' ,$is_hyaline	= true)
	{
		$access_token = $this->access_token;


//		$access_token = '123';
		$url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$access_token}";
		$post_data = ['scene' => $scene ];
		if(!empty($width)) $post_data['width'] = $width;
		if(!empty($auto_color)) $post_data['auto_color'] = $auto_color;
//		if(!empty($line_color)) $post_data['line_color'] = $line_color;
		if(!empty($is_hyaline)) $post_data['is_hyaline'] = $is_hyaline;
//		if(!empty($auto_color)) unset($post_data['line_color']);
        if(!empty($path)) $post_data['page'] = $path;
		//生成
		$result = longbingCurl($url ,json_encode($post_data ,true) ,'POST');
		return $result;
	}
	
}

后台功能介绍:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

需要uniapp上门预约家政保洁服务系统安装部署的 可以QQ扫一扫:

在这里插入图片描述

  • 12
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值