刚过去的2020年或许是很多人最难熬的一年,很多人开始是靠副业,思考在工作之外的收益。其实第二职业是很多人在做的一个工作,但是因为认知、因为时间、因为执行等等问题导致自己的第二职业毫无起色。
在很多人看来,第二职业一定要有专业的知识才能做,才能赚到钱。事是上很多人从想做到执行都会思考很长一段时间,因为思考是否值得做就浪费了很多时间,在执行的时候因为各种原因,导致毫无收获。
今天我们要说的是一个傻瓜式操作就能够月入5000的玩法,外卖CPS,外卖淘客这个项目,从我从老黑哪里知道可以在淘宝开直通车到渔哥的外卖CPS分销小程序。看到了各种各样的玩法,有咸鱼、有淘宝…
最近外卖分销小程序、电影票小程序比较火爆,引流裂变极快,很多人短期内积累的大量粉丝,赚了不少钱!
另外也有一些刚刚入局的小伙伴不知道如何推广,下面给大家分享一下外卖分销小程序的推广方法,供大家参考!
0基础搭建源代码地址分享
美团/饿了么外卖CPS联盟返利公众号小程序裂变核心源码
代码地址:http://www.mybei.cn
部署教程
小程序截图如下
步骤
- 下载以上源代码到本地
- 修改为你自己的微信小程序,打开 /dist/pages/ele/index.js
- 微信小程序->开发管理->开发设置 添加 request的域名: 地址:
https://mp.weixin.qq.com/wxamp/devprofile/get_profile?token=271531762&lang=zh_CN
- 小程序管理后台配置你的链接
后台地址: http://q.mybei.cn - 进去之后选择小程序管理->无裂变小程序管理->添加小程序->填入你自己的链接
- 微信开发者工具,导入项目,提交审核
核心代码
@import '../../assets/css/main.less';
.page{
background-color: #f1f1f1;
}
.mine {
// margin-top: 150rpx;
padding-bottom: 50rpx;
}
.mine .mine_takeout .agent {
position: relative;
height: 426rpx;
background-color: #fff;
}
.mine .mine_takeout .agent .placeholder,.mine .mine_takeout .agent .placeholder .radius {
height: 220rpx;
background: -webkit-gradient(linear,top bottom,top bottom,from(#e66465),to(#e66465));
background: -webkit-linear-gradient(left,#e66465,#e66465);
background: -o-linear-gradient(left,#e66465,#e66465);
background: linear-gradient(90deg,#e66465,#e66465);
position: relative;
}
.mine .mine_takeout .agent .placeholder .radius {
position: absolute;
bottom: -20rpx;
left: 0;
right: 0;
height: 40rpx;
border-radius: 0 0 50% 50%;
}
.mine .mine_takeout .agent .hover {
position: absolute;
top: 0;
right: 14rpx;
bottom: 0;
left: 14rpx;
width: 722rpx;
}
.mine .mine_takeout .agent .hover .info {
-ms-flex-pack: justify;
justify-content: space-between;
padding: 0 6rpx 0 14rpx;
}
.mine .mine_takeout .agent .hover .info,.mine .mine_takeout .agent .hover .info .left,.mine .mine_takeout .agent .hover .info .left .more .label {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_takeout .agent .hover .info .left .avatar {
width: 92rpx;
height: 92rpx;
border-radius: 50%;
}
.mine .mine_takeout .agent .hover .info .left .more {
color: #fff;
margin-left: 16rpx;
}
.mine .mine_takeout .agent .hover .info .left .more .label .nickname {
font-size: 30rpx;
margin-right: 10rpx;
}
.mine .mine_takeout .agent .hover .info .left .more .label .tuanzhang {
width: 67rpx;
height: 32rpx;
}
.mine .mine_takeout .agent .hover .info .left .more .mp {
font-size: 22rpx;
margin-top: 6rpx;
}
.mine .mine_takeout .agent .hover .info .left .more .mp .item {
margin-right: 26rpx;
}
.mine .mine_takeout .agent .hover .info .right .wechat-btn,.mine .mine_takeout .agent .hover .panel .commission {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_takeout .agent .hover .info .right .wechat-btn {
width: 175rpx;
height: 40rpx;
background: rgba(255,255,255,.85);
opacity: .86;
border-radius: 20rpx;
}
.mine .mine_takeout .agent .hover .info .right .wechat-btn .icon-font {
color: #81c873;
font-size: 28rpx;
}
.mine .mine_takeout .agent .hover .info .right .wechat-btn .label {
font-size: 20rpx;
color: #5d5d5d;
margin-left: 8rpx;
}
.mine .mine_takeout .agent .hover .panel {
height: 298rpx;
background: -webkit-gradient(linear,left bottom,left top,from(#1b1b1b),to(#4d4d4d));
background: -webkit-linear-gradient(bottom,#1b1b1b,#4d4d4d);
background: -o-linear-gradient(bottom,#1b1b1b,#4d4d4d);
background: linear-gradient(0deg,#1b1b1b,#4d4d4d);
box-shadow: 0 7rpx 16rpx 0 rgba(232,232,232,.69);
border-radius: 15rpx;
position: relative;
margin-top: 36rpx;
padding: 10rpx 0;
}
.mine .mine_takeout .agent .hover .panel .commission {
width: 190rpx;
height: 49rpx;
background: #464646;
border: 1rpx solid #fee7be;
border-radius: 25rpx;
position: absolute;
top: -22rpx;
left: 50%;
margin-left: -88.5rpx;
}
.mine .mine_takeout .agent .hover .panel .commission .vip {
width: 31rpx;
height: 30rpx;
}
.mine .mine_takeout .agent .hover .panel .commission .label {
font-size: 22rpx;
color: #fae7c5;
margin-left: 4rpx;
}
.mine .mine_takeout .agent .hover .panel .row {
height: 139rpx;
display: -ms-flexbox;
display: flex;
-ms-flex-pack: justify;
justify-content: space-between;
}
.mine .mine_takeout .agent .hover .panel .row .col {
width: 33.33%;
color: #e3dabb;
padding-left: 48rpx;
display: -ms-flexbox;
display: flex;
flex-direction: column;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_takeout .agent .hover .panel .row .col .label {
font-size: 24rpx;
}
.mine .mine_takeout .agent .hover .panel .row .col .number {
font-size: 40rpx;
}
.mine .mine_takeout .agent .hover .panel .row .col .withdraw {
width: 148rpx;
height: 58rpx;
background: -webkit-gradient(linear,left top,right top,from(#f23f5d),to(#ff6b3d));
background: -webkit-linear-gradient(left,#f23f5d,#ff6b3d);
background: -o-linear-gradient(left,#f23f5d,#ff6b3d);
background: linear-gradient(90deg,#f23f5d,#ff6b3d);
border-radius: 29rpx;
color: #fff;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: center;
justify-content: center;
font-size: 25rpx;
}
.mine .mine_takeout .friend,.mine .mine_takeout .friend .item {
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
}
.mine .mine_takeout .friend {
background-color: #fff;
padding: 30rpx 0;
height: 140rpx;
margin-top: 0rpx;
}
.mine .mine_takeout .friend .item {
width: 50%;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: distribute;
justify-content: space-around;
border-right: 1rpx dashed #eee;
}
.mine .mine_takeout .friend .item .icon {
width: 57rpx;
height: 47rpx;
}
.mine .mine_takeout .friend .item .icon.invite {
width: 57rpx;
height: 47rpx;
}
.mine .mine_takeout .friend .item .label {
color: #333;
font-size: 26rpx;
margin-top: 10rpx;;
}
.mine .mine_takeout .friend .item:last-child {
border: 0;
}
.mine .mine_takeout .noticePanel{
display: flex;
margin-top: 13rpx;
background-color: #fff;
color: #DF8F1F;
padding: 23rpx 0rpx;
margin-bottom: 10rpx;
font-size: 27rpx;
justify-content: space-around;
}
.mine .mine_takeout .notice {
display: flex;
}
.mine .mine_takeout .click_more {
display: flex;
align-items: flex-end;
color: rgb(64, 64, 231);
}
.mine .mine_takeout .btns {
display: -ms-flexbox;
display: flex;
flex-direction: column;
margin-top: 13rpx;
background-color: #fff;
padding: 0 25rpx;
}
.mine .mine_takeout .btns .item,.mine .mine_takeout .btns .item .icon_wrapper {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_takeout .btns .item {
padding: 10rpx 0;
-ms-flex-pack: start;
justify-content: flex-start;
box-sizing: border-box;
height: 105rpx;
position: relative;
border-bottom: 1rpx solid #f0f1f6;
}
.mine .mine_takeout .btns .item .icon_wrapper {
width: 60rpx;
height: 60rpx;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_takeout .btns .item .label {
color: #333;
font-size: 28rpx;
margin-left: 20rpx;
font-weight: 700;
letter-spacing: 1rpx;
}
.mine .mine_takeout .btns .item .right {
margin-left: auto;
}
.mine .mine_takeout .btns .item .right .extra {
font-size: 26rpx;
color: #666;
}
.mine .mine_takeout .btns .item .right .at-icon {
margin-left: 20rpx;
}
.mine .mine_takeout .btns .item .contact {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
}
.icon11{
height: 36rpx;
width: 42rpx;
}
.mine .mine_takeout .btns .item:last-child {
border-bottom: 0;
}
.bannerview{
display: flex;
justify-content: center;
padding: 0rpx 20rpx 20rpx 20rpx;
background: white;
}
.banner{
text-align: center;
width: 100%;
height: 170rpx;
}
.mine .mine_takeout .btns .item.order .icon {
width: 29rpx;
height: 33rpx;
}
.mine .mine_takeout .btns .item.contact .icon,.mine .mine_takeout .btns .item.wallet .icon {
width: 39rpx;
height: 31rpx;
}
.mine .mine_takeout .btns .item.inviter .icon {
width: 35rpx;
height: 26rpx;
}
.mine .mine_takeout .btns .item.setting .icon {
width: 39rpx;
height: 31rpx;
}
.mine .mine_takeout .btns .item.favorite .icon,.mine .mine_takeout .btns .item.score .icon {
width: 32rpx;
height: 30rpx;
}
.mine .mine_takeout .btns .item.free .icon {
width: 30rpx;
height: 35rpx;
}
.mine .mine_group .user {
background-color: #fff;
padding: 24rpx 0;
position: relative;
width: 100%;
text-align: center;
z-index: 2;
}
.mine .mine_group .user.user_youpin:after {
width: 140%;
height: 65%;
position: absolute;
left: -20%;
top: 0;
z-index: -1;
content: "";
border-radius: 0 0 50% 50%;
background-color: #81007f;
}
.mine .mine_group .user .user__info {
display: -ms-flexbox;
display: flex;
width: 92%;
margin: 10rpx auto;
background-color: #fff;
border-radius: 10rpx;
padding: 20rpx;
-ms-flex-pack: justify;
justify-content: space-between;
border: 1rpx solid #eee;
box-shadow: 4rpx 10rpx 10rpx #eee;
}
.mine .mine_group .user .user__info .user__info__box {
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: start;
justify-content: flex-start;
margin-bottom: 20rpx;
}
.mine .mine_group .user .user__info .user__info__box .user__info__left {
display: -ms-flexbox;
display: flex;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-align: center;
align-items: center;
margin-right: 30rpx;
}
.mine .mine_group .user .user__info .user__info__box .user__info__left .avatar {
width: 108rpx;
height: 108rpx;
border-radius: 50%;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right {
display: -ms-flexbox;
display: flex;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right .name {
width: 100%;
display: -ms-flexbox;
display: flex;
margin: 20rpx 0 12rpx;
-ms-flex-pack: start;
justify-content: flex-start;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right .name .text {
color: #474747;
font-size: 30rpx;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right .name .tuanzhang {
width: 115rpx;
height: 42rpx;
margin-left: 10rpx;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right .name .privilege {
width: 150rpx;
height: 36rpx;
margin-left: 10rpx;
}
.mine .mine_group .user .user__info .user__info__box .user__info__right .number {
width: 100%;
text-align: left;
font-size: 24rpx;
color: #afafaf;
}
.mine .mine_group .user .user__info .user__info__box .user__info__noAgent {
width: 100%;
}
.mine .mine_group .user .user__info .user__info__box .user__info__noAgent .avatar {
width: 108rpx;
height: 108rpx;
border-radius: 50%;
}
.mine .mine_group .user .user__info,.mine .mine_group .user .user__info .user__info__login {
flex-direction: column;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_group .user .user__info .user__info__login .avatar {
width: 108rpx;
height: 108rpx;
border-radius: 50%;
margin-bottom: 20rpx;
}
.mine .mine_group .user .user__info .user__info__login,.mine .mine_group .user .user__info .user__info__login .name {
width: 100%;
display: -ms-flexbox;
display: flex;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_group .user .user__info .user__info__login .name {
margin: 20rpx 0 12rpx;
}
.mine .mine_group .user .user__info .user__info__login .name .text {
color: #474747;
font-size: 30rpx;
}
.mine .mine_group .user .user__info .friend,.mine .mine_group .user .user__info .friend .item {
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
}
.mine .mine_group .user .user__info .friend {
width: 100%;
background-color: #fff;
margin-top: 24rpx;
padding: 18rpx 0;
height: 140rpx;
}
.mine .mine_group .user .user__info .friend .item {
width: 50%;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: distribute;
justify-content: space-around;
}
.mine .mine_group .user .user__info .friend .item .icon__friendsList {
width: 50rpx;
height: 43rpx;
}
.mine .mine_group .user .user__info .friend .item .icon__share {
width: 50rpx;
height: 47rpx;
}
.mine .mine_group .user .user__info .friend .item .icon__invite {
width: 50rpx;
height: 41rpx;
}
.mine .mine_group .user .user__info .friend .item .label {
color: #333;
font-size: 26rpx;
}
.mine .mine_group .user .user__info .friend .item:last-of-type {
border-right: none;
}
.mine .mine_group .user .user__info .friend .line {
border-right: 1rpx solid #eee;
}
.mine .mine_group .user .name,.mine .mine_group .user .wrap {
display: -ms-flexbox;
display: flex;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_group .user .wrap {
width: 120rpx;
height: 120rpx;
border-radius: 60rpx;
background-color: #efefef;
-ms-flex-align: center;
align-items: center;
margin: 10rpx auto;
}
.mine .mine_group .user .wrap .avatar {
width: 108rpx;
height: 108rpx;
border-radius: 50%;
}
.mine .mine_group .user .name {
width: 100%;
margin: 20rpx 0 12rpx;
}
.mine .mine_group .user .name .text {
color: #fff;
font-size: 30rpx;
}
.mine .mine_group .user .name .tuanzhang {
width: 72rpx;
height: 36rpx;
margin-left: 10rpx;
}
.mine .mine_group .user .name .privilege {
width: 150rpx;
height: 36rpx;
margin-left: 10rpx;
}
.mine .mine_group .user .number {
font-size: 26rpx;
color: #efefef;
}
.mine .mine_group .count {
background-color: #fff;
display: -ms-flexbox;
display: flex;
}
.mine .mine_group .count .item,.mine .mine_group .friend {
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
}
.mine .mine_group .count .item {
width: 25%;
height: 106rpx;
flex-direction: column;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: distribute;
justify-content: space-around;
padding: 8rpx 0;
}
.mine .mine_group .count .item .money {
color: #f60;
font-size: 28rpx;
}
.mine .mine_group .count .item .label {
font-size: 26rpx;
color: #777;
}
.mine .mine_group .friend {
background-color: #fff;
margin-top: 24rpx;
padding: 18rpx 0;
height: 140rpx;
}
.mine .mine_group .btns,.mine .mine_group .friend .item {
display: -ms-flexbox;
display: flex;
flex-direction: column;
}
.mine .mine_group .friend .item {
width: 50%;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: distribute;
justify-content: space-around;
box-sizing: border-box;
}
.mine .mine_group .friend .item .icon {
width: 48rpx;
height: 48rpx;
}
.mine .mine_group .friend .item .label {
color: #333;
font-size: 26rpx;
}
.mine .mine_group .friend .line {
border-right: 1rpx solid #eee;
}
.mine .mine_group .btns {
margin-top: 24rpx;
background-color: #fff;
padding: 0 25rpx;
}
.mine .mine_group .btns.setting {
margin-top: 0;
}
.mine .mine_group .btns .item {
padding: 10rpx 0;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: start;
justify-content: flex-start;
height: 105rpx;
position: relative;
border-bottom: 1rpx solid #fcfcfd;
}
.mine .mine_group .btns .item .icon {
width: 39rpx;
height: 31rpx;
}
.mine .mine_group .btns .item .label {
color: #333;
font-size: 26rpx;
margin-left: 32rpx;
font-weight: 600;
}
.mine .mine_group .btns .item .right {
margin-left: auto;
}
.mine .mine_group .btns .item .contact {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
}
.mine .mine_group .card {
padding-bottom: 10rpx;
border-radius: 10rpx;
background-color: #fff;
}
.mine .mine_group .btns .item,.mine .mine_group .card .body,.mine .mine_group .card .header {
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
}
.mine .mine_group .card .header {
padding: 20rpx;
-ms-flex-align: center;
align-items: center;
-ms-flex-pack: justify;
justify-content: space-between;
}
.mine .mine_group .card .header .title {
font-size: 28rpx;
}
.mine .mine_group .card .body .menu,.mine .mine_group .card .header .extra {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_group .card .header .extra {
font-size: 26rpx;
color: #999;
}
.mine .mine_group .card .header .extra .label {
height: 40rpx;
line-height: 40rpx;
}
.mine .mine_group .card .header .extra .icon {
position: relative;
top: -2rpx;
}
.mine .mine_group .card .body {
flex-wrap: wrap;
padding: 10rpx;
}
.mine .mine_group .card .body .menu {
width: 20%;
padding: 20rpx 0;
flex-direction: column;
}
.mine .mine_group .card .body .menu:active {
background-color: #f7f7f7;
}
.mine .mine_group .card .body .menu .icon {
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_group .card .body .menu .icon,.mine .mine_group .card .body .menu .icon .iconfont,.mine .mine_group .group .item,.mine .mine_group .group .item .icon {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_group .card .body .menu .icon .iconfont {
-ms-flex-pack: center;
justify-content: center;
font-size: 60rpx;
color: #81007f;
}
.mine .mine_group .card .body .menu .name {
color: #666;
margin-top: 10rpx;
font-size: 28rpx;
}
.mine .mine_group .group {
margin-top: 24rpx;
}
.mine .mine_group .group .item,.mine .mine_group .group .item .icon {
height: 104rpx;
}
.mine .mine_group .group .item {
background-color: #fff;
box-sizing: border-box;
position: relative;
}
.mine .mine_group .group .item .icon {
width: 104rpx;
-ms-flex-pack: center;
justify-content: center;
}
.mine .mine_group .group .item .icon .image {
width: 40rpx;
height: 40rpx;
}
.mine .mine_group .group .item .wrap {
flex: 1;
-ms-flex-pack: justify;
justify-content: space-between;
box-sizing: border-box;
border-bottom: 2rpx solid #eee;
}
.mine .mine_group .group .item .wrap .title {
height: 104rpx;
line-height: 104rpx;
font-size: 28rpx;
color: #333;
}
.mine .mine_group .group .item .wrap,.mine .mine_group .group .item .wrap .right {
height: 104rpx;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
}
.mine .mine_group .group .item .wrap .right {
width: 104rpx;
-ms-flex-pack: center;
justify-content: center;
color: #999;
}
.mine .mine_group .group .item .open_type {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
opacity: 0;
}
.mine .mine_group .group .item:last-child .wrap {
border: 0;
}