开源代码是用户端uniapp部分源码使用hbuilder导入即可运行

功能说明

首页

定位

搜索

banner广告位

快速入口:分类

活动专区:好店推荐,大牌甄选

商品列表

  • (饿了么,美团)商品图,标题,结束时间,剩余接单,返积分

任务详情

商品图,标题,商品位置,位置距离,开始/截止时间(类型:美团/饿了么)

品鉴要求,优惠活动,立即,剩余接单

下单门店,添加客服,下单按钮

任务流程图:1.立即,2.外卖平台下单,3.订单上传,4.评鉴上传

立即按钮

  • 上传初审凭证
  • 订单编号,支付金额,上传订单凭证,(提交/放弃按钮)
  • 放弃任务

外卖优惠

banner活动图

美团/饿了么外卖红包券

  • 标题,价格,领取按钮

分享

海报分享

按钮:保存海报,分享给好友

我的

用户头像,用户名称,会员期限

我的外卖

  • 全部,进行中,已完成,外卖积分
  • 商品图,标题,结束时间,订单状态,类型,取消订单,上传凭证

积分(展示积分金额)

  • 兑换输入金额,全部兑换,兑换到支付宝,绑定账号,兑换记录,兑换规则

会员中心

  • 会员月卡,金额,会员权益,立即开通

联系我们

  • 微信客服,联系电话

邀请奖励积分

设置

  • 支付宝账号绑定
  • 绑定美团用户名
  • 绑定饿了么用户名

开源源码下载地址:

外卖霸王餐源码: 开源项目为旗下外卖霸王餐uniapp前端源码 支持微信小程序+H5,提供uniapp开发者学习使用

<template><view class="container"><view style="background: #FFFFFF;"><view class="header"><view class="nav"><view class="navLeft" @tap="goSelectCity"><view class="localName">{{ localCampus }}</view><image src="../../static/img/home/xia.png" style="width: 20rpx;height: 14rpx;"></image><!-- <text class="cuIcon-unfold"></text> --></view><view class="search-box"><view class="search-wrap" @tap="goSearch"><image class="search-icon" src="../../static/img/home/search.png"></image><input class="search-input" type="text" value="输入美食、地点" disabled /></view></view></view></view><view class="main"><view class="home-bgi"><swiper class="swiper" autoplay="1500" :indicator-dots="true" :circular='true'indicator-active-color="#ffffff" indicator-color="#cccccc"><swiper-item class="swiper-wrap" v-for="(item,index) in banners" :key='index'@tap="toGoodsInfo(item.url)"><image :src="item.imageUrl"></image></swiper-item></swiper></view><view class="menu-box"><view class="category"><!-- <view v-for="(nav, index) in navlist" :key="index"> --><view class="category-list"><view class="icon-box" v-for="(item,ind) in navlist" :key="ind"@tap="toGoodsInfo(item.classifyUrl)"><image class="icon" :src="item.classifyIcon"style="height: 80rpx;width: 80rpx;margin-top: 10rpx;border-radius: 50%;"></image><view class="text">{{ item.classifyName }}</view></view></view></view></view><view style="display: flex;width: 98%;margin: 20rpx 11rpx;"><view v-if="mtelmCheck === '是'" style="width: 50%;height: 235rpx;" @tap="gochegnxu(2)"><image :src="elemeList.imageUrl" style="width: 371rpx;height: 235rpx;background-size: 100%;"></image></view><view v-if="mtelmCheck === '是'" style="width: 50%;height: 235rpx;" @tap="gochegnxu(1)"><image :src="meituanList.imageUrl" style="width: 371rpx;height: 235rpx;background-size: 100%;"></image></view></view></view><!-- 筛选 --><view class="root" style="margin-top: 10upx;" v-if="filterData.length > 1"><ren-dropdown-filter v-if="filterData.length > 1" :filterData='filterData' @click="navClick":defaultIndex='defaultIndex' @ed='ed' @dateChange='dateChange'></ren-dropdown-filter></view><view class="card-box" v-if="goodsHomeList.length > 0"><task-home-list class="task-home" splitLine @click="clickItem" :list="goodsHomeList"></task-home-list></view><!-- 加载更多提示 --><view v-if="goodsHomeList.length > 0"><load-more :loadingType="loadingType" :contentText="contentText"></load-more></view></view></view>
</template><script>import RenDropdownFilter from '@/components/ren-dropdown-filter/ren-dropdown-filter.vue'import taskHomeList from "@/components/mask/task-home-list1.vue"var QQMapWX = require('@/js_sdk/qqmap-wx-jssdk1.2/qqmap-wx-jssdk.js');var qqmapsdk;export default {components: {taskHomeList,RenDropdownFilter},data() {return {localCampus: '未知',city: '',meituanList: {},elemeList: {},banners: [],latitude: '',longitude: '',mtelmCheck: '',authorize: false,weizhinames: '',weizhidizhi: '',categoryHeight: '320rpx', //菜单默认高度currentPageindex: 0, //菜单滚动小点navlist: [],sortType: 0,typeId: 0,recommendList: [],content: "",phone: "",isDisable: false,tuijianList: [],goodsHomeList: [],page: 1,limit: 10,loadingType: 0,contentText: {contentdown: '上拉显示更多',contentrefresh: '正在加载...',contentnomore: '没有更多数据了'},filterData: [[{text: '综合分类',value: ''}, {text: '返现最高',value: 1}, {text: '最新发布',value: 2}, {text: '距离最近',value: 3}]],defaultIndex: [0, 0]}},onLoad(e) {let that = this;if (e.userByinvitationId) {this.$queue.setData('userByinvitationId', e.userByinvitationId);}// #ifdef MP-WEIXINif (e.scene) {const scene = decodeURIComponent(e.scene);this.$queue.setData('userByinvitationId', scene.split(',')[0]);}// #endif// #ifdef MP-WEIXIN// 实例化API核心类qqmapsdk = new QQMapWX({key: 'J5FBZ-XCUKI-UFEG2-5KOJJ-XD4L3-KNFNG'});that.authorizationLocation();// #endifthis.getBannerList();this.getnavlistClassify();this.getClassify();//美团饿了么优惠券开关this.$Request.getT('/common/type/138').then(res => {if (res.code == 0) {if (res.data && res.data.value) {this.mtelmCheck = res.data.value;}}});this.$Request.getT('/banner/selectBannerList?classify=4&state=1').then(res => {if (res.code === 0) {this.meituanList = res.data[0];}});this.$Request.getT('/banner/selectBannerList?classify=4&state=2').then(res => {if (res.code === 0) {this.elemeList = res.data[0];}});},onShow() {let that = this;var city = this.$queue.getData('city');var localCampus = this.$queue.getData('localCampus');if (city && localCampus) {console.log(city)this.latitude = this.$queue.getData('latitude');this.longitude = this.$queue.getData('longitude');this.city = city;this.localCampus = localCampus;this.$queue.remove('localCampus');this.page = 1;this.getHaoDianTuiJian1();this.getHaoDianTuiJian();}},methods: {// 点击优惠券跳转小程序gochegnxu(classify) {let token = this.$queue.getData('token');let userId = this.$queue.getData('userId');if (token) {if (classify == 1) { //美团// #ifdef MP-WEIXINuni.navigateToMiniProgram({appId: 'wxde8ac0a21135c07d',path: this.meituanList.url,fail(res) {console.error(res)}})// #endif} else if (classify == 2) { //饿了么// #ifdef MP-WEIXINuni.navigateToMiniProgram({appId: 'wxece3a9a4c82f58c9',path: this.elemeList.url,fail(res) {console.error(res)}})// #endif}} else {this.goLogin();}},tuijianClickItem(index) {let token = this.$queue.getData('token');let userId = this.$queue.getData('userId');if (token) {uni.navigateTo({url: '/pages/index/tuijianList'});} else {this.goLogin();}},ed(res) {console.log(res)},dateChange(d) {console.log(d)},getHaoDianTuiJian() {this.loadingType = 1;uni.showLoading({title: '加载中...',});let data = {page: 1,limit: 4,longitude: this.longitude,latitude: this.latitude,city: this.city,search: '',isGoods: '1'}this.$Request.getT('/wm/selectHomeGoodsList', data).then(res => {if (res.code === 0) {this.tuijianList = [];res.data.list.forEach(d => {d.distance = this.setMorKm(d.distance);this.tuijianList.push(d)});}uni.hideLoading();})},getHaoDianTuiJian1() {this.loadingType = 1;uni.showLoading({title: '加载中...',});let data = {page: this.page,limit: this.limit,longitude: this.longitude,latitude: this.latitude,city: this.city,search: '',sort: this.sortType,typeId: this.typeId}this.$Request.getT('/wm/selectHomeGoodsList', data).then(res => {if (res.code === 0) {if (this.page === 1) {this.goodsHomeList = [];}res.data.list.forEach(d => {d.distance = this.setMorKm(d.distance);this.goodsHomeList.push(d)});if (res.data.list.length === this.limit) {this.loadingType = 0;} else {this.loadingType = 3;}} else {this.loadingType = 2;}uni.hideLoading();})},setMorKm(m) {var n = ''if (m) {if (m >= 1000) {n = (m / 1000).toFixed(0) + 'km'} else {n = parseInt(m) + 'm'}} else {n = '0m'}return n},getClassify() {this.$Request.getT('/helpClassify/selectClassifyList').then(res => {if (res.code === 0) {this.navlist = res.data;}});},getnavlistClassify() {this.$Request.getT('/banner/selectBannerList?state=-1&classify=2').then(res => {if (res.code === 0) {let dataList = [];let data = {text: '全部品类',value: 0}dataList.push(data);res.data.forEach(d => {let data = {text: '',value: ''}data.text = d.name;data.value = d.id;if (d.state == 1) {dataList.push(data);}});this.filterData.push(dataList);}});},initLocation(latitude, longitude) {var that = this;qqmapsdk.reverseGeocoder({location: latitude + ',' + longitude || '',success: function(res) { //成功后的回调if (res.status == 0) {console.log(res)that.authorize = false;var res = res.result;that.latitude = latitude;that.longitude = longitude;that.$queue.setData('latitude', latitude)that.$queue.setData('longitude', longitude)let s = res.ad_info.city.substring(0, res.ad_info.city.length - 1);that.city = s;that.$queue.setData('city', that.city);that.localCampus = res.address_reference.landmark_l2.title;that.getHaoDianTuiJian1();that.getHaoDianTuiJian();}},fail: function(error) {console.error(error);},complete: function(res) {console.log(res);}})},startSetting() {let that = this;// #ifdef APP-PLUSpermision.gotoAppSetting();// #endif// #ifdef MP-WEIXINuni.openSetting({success(res3) {console.log(res3)if (res3.authSetting['scope.userLocation']) {uni.hideToast();that.initMyPosition();} else {that.authorizationLocation();}// 已授权-(获取位置信息)}});// #endif},initMyPosition() {let that = this;uni.getLocation({type: 'gcj02',altitude: true,success: res => {that.initLocation(res.latitude, res.longitude);}});},authorizationLocation: function() {let that = this;uni.getSetting({success(res1) {if (!res1.authSetting['scope.userLocation']) {// 未授权uni.authorize({scope: 'scope.userLocation',success() { //1.1 允许授权that.initMyPosition();},fail() { //1.2 拒绝授权that.authorize = true; //用户是否拒绝了定位授权 true:用户拒绝 false:用户授权}})} else {// 已授权-(获取位置信息)that.initMyPosition();}}});},getBannerList() {this.$Request.getT('/banner/selectBannerList?state=-1&classify=1').then(res => {if (res.code === 0) {this.banners = [];res.data.forEach(d => {if (d.state == 1) {this.banners.push(d);}});}});},// 轮播图跳转小程序toGoodsInfo: function(url) {let token = this.$queue.getData('token');let userId = this.$queue.getData('userId');if (url.indexOf('/pages/') !== -1) {uni.navigateTo({url});} else {//#ifndef H5uni.navigateTo({url: '/pages/public/webview?url=' + url});//#endif//#ifdef H5window.location.href = url;//#endif}},goSearch() {uni.navigateTo({url: '/pages/task/search'});},goSelectCity() {if (!this.authorize) {uni.navigateTo({url: '/pages/index/selectCampus?city=' + this.city});} else {this.startSetting();}},goLogin() {this.$queue.setData('href', '/pages/index/index');uni.navigateTo({url: '/pages/public/login'});},navClick: function(res) {console.log('点击', res)this.page = 1;if (res.index1 == 0) {this.sortType = res.index ? res.index : 0;this.getHaoDianTuiJian1();} else if (res.index1 == 1) {this.typeId = res.index ? res.index : 0;this.getHaoDianTuiJian1();}},clickItem: function(options) {let token = this.$queue.getData('token');let userId = this.$queue.getData('userId');if (token) {uni.navigateTo({url: '/pages/index/taskDetail?goodsId=' + options.item.goodsId + '&latitude=' + this.latitude + '&longitude=' + this.longitude})} else {this.goLogin();}},toNavList: function(item) {let token = this.$queue.getData('token');let userId = this.$queue.getData('userId');if (token) {uni.navigateTo({url: '/pages/task/tasklist?searchValue=&classifyId=' + item.id + '&name=' + item.classifyName});} else {this.goLogin();}},// 传进数组和指定个数,进行拆分chunk: function(array, size) {const length = array.lengthif (!length || !size || size < 1) {return []}let index = 0let resIndex = 0let result = new Array(Math.ceil(length / size))while (index < length) {result[resIndex++] = array.slice(index, (index += size))}return result},topScrollTap: function() {uni.pageScrollTo({scrollTop: 0,duration: 300});}},onPageScroll: function(e) {this.scrollTop = e.scrollTop > 200;},onReachBottom: function() {this.page = this.page + 1;this.getHaoDianTuiJian1();}}
</script><style lang="scss">page {width: 100%;background: #faf7f5;}.container {width: 100%;.header {width: 100%;background: #FFFFFF;.nav {height: 88upx;padding: 0 30upx;display: flex;justify-content: space-between;align-items: center;.navLeft {width: fit-content;max-width: 170rpx;display: flex;justify-content: space-around;align-items: center;image {width: 34upx;height: 48upx;}.localName {width: fit-content;max-width: 150rpx;font-size: 28upx;font-weight: bold;color: #333333;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}text {font-size: 22upx;color: #333333;margin-left: 12upx;}}.navRight {width: 44upx;height: 39upx;image {width: 100%;height: 100%;}}}.search-box {width: 95%;height: 78upx;padding: 0 0 0 30upx;display: flex;align-items: center;.search-wrap {width: 100%;height: 60upx;background: #F2F2F2;border-radius: 8upx;display: flex;align-items: center;padding: 0 20upx;.search-icon {width: 35upx;height: 34upx;}.search-input {flex: 1;font-size: 24upx;font-weight: 500;color: #CCCCCC;margin-left: 10upx;}}}}.main {width: 100%;padding: 20upx 20upx 0upx;.home-bgi {width: 100%;height: 260rpx;background: #FFF;.swiper {width: 100%;height: 100%;.swiper-wrap {width: 100%;height: 100%;image {width: 100%;height: 100%;border-radius: 20rpx;display: block;}}}}.menu-box {width: 100%;padding: 20upx 0 0;display: flex;.category {width: 100%;border-radius: 20upx;.swiper {width: 100%;.uni-swiper-dot {width: 20upx;}}.category-list {width: 100%;height: auto;display: flex;justify-content: flex-start;flex-flow: wrap;.icon-box {width: 20%;display: flex;flex-flow: wrap;justify-content: center;font-size: 22upx;color: #666;text-align: center;.icon {width: 100upx;height: 100upx;}.text {width: 100%;display: flex;justify-content: center;padding-bottom: 18upx;padding-top: 10upx;}}}.dots {display: flex;align-items: center;justify-content: center;height: 15upx;width: 100%;view {width: 30upx;height: 5upx;background-color: rgba(0, 0, 0, 0.2);&.active {background-color: #ff570a;}}}}.menu-item {width: 20%;display: flex;flex-direction: column;align-items: center;justify-content: center;.iconImg {width: 100upx;height: 100upx;}text {margin-top: 17upx;font-size: 24upx;font-weight: bold;color: #333333;}}}.demand-release {background-color: #FFF;padding: 32upx 20upx 30upx;.title {font-size: 34upx;font-weight: 800;color: #333333;line-height: 34upx;margin-bottom: 26upx;}.search-wrap {height: 88upx;padding: 0 20upx;background: #F5F5F5;border-radius: 5upx;display: flex;justify-content: space-between;margin-bottom: 10upx;text {margin-right: 40upx;line-height: 88upx;font-size: 28upx;}.search-input {flex: 1;height: 100%;font-size: 28upx;}.placeholder-search-input {font-size: 28upx;}.edit {height: 88upx;line-height: 88upx;font-size: 24upx;font-weight: 500;color: #FF3530;}}.btn {width: 100%;height: 88upx;text-align: center;line-height: 88upx;background: #FF3530;border-radius: 5upx;font-size: 28upx;font-weight: bold;color: #FFFFFF;margin-top: 20upx;}}.recommend-release {background-image: linear-gradient(to right, #FF4700, #FFF0EB);background-size: 100%;padding: 24upx;border-radius: 8upx;.title {font-size: 38rpx;color: #FFFFFF;font-weight: 600;margin-bottom: 20rpx;}.recommend {display: flex;flex-direction: row;justify-content: space-between;}.recommend-store {width: 150rpx;height: 210rpx;display: inline-block;background-color: #fff;border-radius: 8upx;padding: 8upx;}.recommend-img {width: 135rpx;height: 120rpx;}.recommend-title {font-size: 26upx;color: #333;line-height: 40upx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}.recommend-jinbi {position: relative;align-items: center;}.jinbi-king {width: 26rpx;height: 26rpx;margin-right: 6upx;position: absolute;top: 4upx;}.jinbi-num {padding-left: 30rpx;font-size: 26rpx;color: #333333;}}.card-box {// padding: 0 30upx;background-color: #FAF7F5;width: 100%;.title {height: 86upx;font-size: 34upx;font-weight: 800;color: #333333;line-height: 86upx;padding: 0 30upx;}.task-home {display: inline-block;width: 100%;// margin-top: 30upx;}}}}
</style>

省钱兄霸王餐源码uniapp前端相关推荐

  1. 省钱兄同城跑腿小程序源码uniapp前端模版源码(小程序+APP+H5)

    开源省钱兄同城跑腿源码,目前只开源用户端V2版本部分核心模块源码提供学习研究 使用uniapp技术,提供学习使用不可商业 适配支持公众号+APP+H5+小程序,使用Hbuilder导入即可运行 #功能 ...

  2. 省钱兄游戏陪玩小程序APP源码uniapp前端源码适配支持(APP+小程序+H5)

    开源代码是用户端uniapp静态部分源码,提供学习使用 使用hbuilder导入即可运行,目前适配小程序,安卓,IOS,H5 游戏类型,我的信息,我的要求,立即找大神 编辑,我想玩的游戏,我想找,其他 ...

  3. 省钱兄校园跑腿源码(公众号+APP+小程序+Android+IOS)校园跑腿社区跑腿同城跑腿任务兼职小程序uniapp前端模版

    开源代码是用户端uniapp部分源码,使用hbuilder导入即可运行 只提供参考学习使用!已经获得软著!不可商业使用!感谢支持 h5体验地址 h5:https://paotui.xianmxkj.c ...

  4. 家政上门预约服务小程序APP源码uniapp前端模版

    ​​​​​​​ 简介: 家政上门预约服务小程序源码是一款专业家政门到门预约服务应用小程序,开源省钱兄家政系统v1版本前端源码,目前只开源用户端V1版本部分模块源码提供学习研究,使用uniapp技术,已 ...

  5. 推荐一款即时通讯聊天app源码uniapp开发的

    该源码后台是php源码,前端是uniapp,数据库是mysql,需要linux环境 php7.2 mysql5.6, 聊天功能包括文字 图片 视频发送,没有语音聊天,可以发红包,但是有点问题,没深入研 ...

  6. java计算机毕业设计社区食堂供餐源码+系统+数据库+lw文档+mybatis+运行部署

    java计算机毕业设计社区食堂供餐源码+系统+数据库+lw文档+mybatis+运行部署 java计算机毕业设计社区食堂供餐源码+系统+数据库+lw文档+mybatis+运行部署 本源码技术栈: 项目 ...

  7. 完整企业官网源码,前端基于Vue+ElementUI,后台基于基于core3 webapi,含数据库文件,含详情安装部署文档

    完整企业官网源码,前端基于Vue+ElementUI,后台基于基于core3 webapi,含数据库文件,含详情安装部署文档 完整代码下载地址:完整企业官网源码 某工程管理有限公司企业官网 前端 新版 ...

  8. LayBox官斗精品手游《勇者名录》完整源码下载 前端laybox typeScipt脚本开发 后端php开发

    LayBox官斗精品手游<勇者名录>完整源码下载 前端laybox typeScipt脚本开发 后端php开发 数据库mysql redies等 含有详细说明文档. 勇者名录是一款三国题材 ...

  9. 一款基于微信的小程序电商系统源码(前端+后台)带文字安装教程

    小程序电商系统源码(前端+后台)带文字安装教程 运行环境 服务器宝塔面板 PHP 5.6 Mysql 5.5及以上版本 Linux Centos7以上 系统介绍: 1.一款基于微信的小程序电商系统,是 ...

  10. 通过weui-1.1.3源码学习前端开发(三)从example看起-src/index.html文件

    通过weui-1.1.3源码学习前端开发(三)从example看起 前面已经看过了gulp的构建文件gulpfile.js,下面我们就从weui提供的一个example开始看看吧 先看看src/exa ...

最新文章

  1. Vue+element UI实现“回到顶部”按钮组件
  2. Wifi模块—源码分析Wifi热点扫描2(Android P)
  3. 后台服务器控件点击跳转另一页面显示本页面
  4. 在 Intellij IDEA 里使用 OpenJFX (JavaFX)
  5. python同时注释多行代码_python怎么同时对多行代码进行注释
  6. Text Link Ads 注册[赚钱一]
  7. 还在看那些老掉牙的性能优化文章么?这些最新性能指标了解下
  8. LocalDate,LocalDate,LocateDateTime的常用方法
  9. day、11闭包函数和装饰器
  10. webpack4.0学习笔记
  11. EasyUI:Tabs 标签页/选项卡
  12. java web个人博客开发(一需求获取和需求分析文档)
  13. 单商户商城系统功能拆解19—订单管理
  14. 全角半角字符转换函数[SJIS_SBC_TO_DBC][SJIS_DBC_TO_SBC]
  15. 计算机病毒,蠕虫,木马三者之间的区别
  16. 网课答案公众号制作教程
  17. 时序分析模型——MMMC
  18. [iOS] Windows 使用IPSW文件升级iOS 13 beta
  19. 移动手机网站H5页面如何一键打开拉起微信小程序快速关注公众号功能?
  20. 正则表达式,固话和手机号码验证,支持验证分机号

热门文章

  1. 从小米雷军的逆天布局你能读出什么?
  2. 多飞行机器人吊运系统研究进展及挑战
  3. 实现一个多线程安全的单向有序链表,add单个结点、与其他链表合并
  4. Kafka学习征途:不再依赖ZK的KRaft
  5. 十一则:程序员冷“笑话”据说只有真正的程序员才看得懂
  6. 桌面天气时钟【心知天气API、可获取实时时间、合成解码cJSON】
  7. Linux系统管理命令之accton的使用
  8. JS(javascript)在自动化测试项目中的应用【软件测试开发入门教程】
  9. 3.4.3 区域与图像的平均灰度值
  10. Windows文件系统过滤驱动开发教程-楚狂人