function t(t, e, i) {
return e in t ? Object.defineProperty(t, e, {
value: i,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = i, t;
}
require("../../@babel/runtime/helpers/Arrayincludes");
var e, i, o = getApp(), s = require("../../1A7FD9A7867180BF7C19B1A0A9E83172.js");
Page((i = {
data: (e = {
details: {
Cover: "../../images/recipe/cover_null.jpg",
Title: "菜谱数据加载中...",
AuthorAvatar: "../../images/common/default_avatar.png",
AuthorName: "{菜谱作者}",
ViewCount: "{0}",
LikeCount: "{0}",
UserName: "{菜谱作者}"
},
request_status: !0,
height: "",
head_occupy: 128,
status_bar_height: 40,
type: 0,
recipe_id: ""
}, t(e, "type", ""), t(e, "cover", ""), t(e, "video_cover", ""), t(e, "title", ""),
t(e, "video_url", ""), t(e, "view_count", ""), t(e, "like_count", ""), t(e, "user_name", ""),
t(e, "user_avatar", ""), t(e, "intro", ""), t(e, "cookie_time", ""), t(e, "enjoy_user", ""),
t(e, "recipe_food", []), t(e, "recipe_step", []), t(e, "step_count", 0), t(e, "tips", ""),
t(e, "digg_recipe", ""), t(e, "recipe_digg_status", !1), t(e, "update_time", ""),
t(e, "comment", []), t(e, "related_recipe", ""), t(e, "isfavrite", !1), t(e, "isattention", !1),
t(e, "isdigg", !1), t(e, "type_class", "recipe-default"), t(e, "head_hide", ""),
t(e, "return_img", ""), t(e, "bottom_but_class", "comment-but-hide"), t(e, "step_show", "step-hide"),
t(e, "unfurl_type", !1), t(e, "cook_time_right", ""), t(e, "textarea_type", !1),
t(e, "add_comment_hide", "add-comment-hide"), t(e, "user_comment_content", ""),
t(e, "comment_text_height", 890), t(e, "food_ad_list", []), t(e, "food_fold_status", "food-hide"),
t(e, "fold_food_btn", "fold-show"), t(e, "fold_step_btn", "fold-show"), t(e, "fold_height", 1334),
t(e, "fold_btn_height", 1060), t(e, "fold_status", "none"), e),
conf: {
lock: !1,
login_status: !1,
type: 0,
isfavrite: !1,
scroll_top: 0,
recipe_id: "",
recipe_title: "",
baidu_title: "",
recipe_picurl: "",
offset: 0,
scroll_type: !1,
step_show: !1,
digg_storagep: [],
recipe_digg: 0,
recipe_digg_storagep: [],
comment_digg_storagep: [],
recipe_digg_type: !1,
pages_num: 0,
step_img: [],
scroll_up_lock: !0,
scroll_down_lock: !0,
interface_lock: !0,
rebound_lock: !0,
return_top: !0,
page_info_lock: !1,
comment_height: 280,
page_position: "video",
height: 667,
page_height: 667,
pull_up: 150,
drop_down: 571,
scroll_direction: "down",
direction_but_class: "",
direction_but_lock: !0,
but_scroll_lock: !0,
direction_but_height: 15,
add_comment_lock: !0,
comment_content: "",
share_title: o.conf.shareinfo.title,
share_desc: o.conf.shareinfo.content,
share_img: o.conf.shareinfo.picurl,
clipboard_msg: "",
page_info: []
},
onLoad: function(t) {
var e = t.id, i = (t.type, s.isLogin());
this.conf.recipe_id = e, this.conf.login_status = i;
var n = o.conf.systeminfo;
n.statusBarHeight, this.data.fold_height = 2 * n.screenHeight, this.data.fold_btn_height = 2 * n.screenHeight - 206 - 60,
this.getDetail();
},
onShow: function() {
var t = this;
this.conf.login_status = s.isLogin(), s.loginChange(function(e) {
t.conf.login_status = !0, t.getDetail(), wx.showToast({
title: "登录成功",
icon: "success",
duration: 1500
});
});
var e = getCurrentPages();
this.conf.pages_num = e.length;
},
onReachBottom: function() {
this.conf.direction_but_lock = !1, this.setData({
bottom_but_class: ""
});
},
onPageScroll: function(t) {
var e = t.scrollTop;
e > 0 && (0 == e || (e > this.conf.scroll_top && e - this.conf.scroll_top > this.conf.direction_but_height && this.conf.but_scroll_lock && (this.conf.scroll_direction = "up",
this.conf.but_scroll_lock = !1, this.conf.direction_but_lock = !0), e < this.conf.scroll_top && this.conf.scroll_top - e > this.conf.direction_but_height && !this.conf.but_scroll_lock && (this.conf.scroll_direction = "down",
this.conf.but_scroll_lock = !0)), this.conf.scroll_top = e), this.directionBut(e);
},
directionBut: function(t) {
var e = this;
"" == this.conf.direction_but_class && "up" == this.conf.scroll_direction && this.conf.direction_but_lock && (this.setData({
bottom_but_class: "button-gradually-hide"
}), setTimeout(function(t) {
e.setData({
bottom_but_class: "comment-but-hide"
}), e.conf.direction_but_class = "comment-but-hide";
}, 500)), "comment-but-hide" == this.conf.direction_but_class && "down" == this.conf.scroll_direction && (this.setData({
bottom_but_class: ""
}), this.conf.direction_but_class = "");
},
return_but: function(t) {
this.conf.pages_num > 1 ? wx.navigateBack({
delta: 1
}) : wx.switchTab({
url: "/pages/index/index"
});
},
buyPiao1: function() {
wx.navigateToMiniProgram({
appId: 'wxece3a9a4c82f58c9',
path: 'pages/sharePid/web/index?scene=https://s.click.ele.me/QOIctau'
})
},
buyPiao2: function() {
wx.navigateToMiniProgram({
appId: 'wxde8ac0a21135c07d',
path: '/index/pages/h5/h5?lch=mhqIykekFEV63u81zLSTaQViQ&noshare=1&f_userId=0&f_openId=0&f_token=0&weburl=https%3A%2F%2Fdpurl.cn%2Fzv9u6q0z'
})
},
buyPiao3: function() {
wx.navigateToMiniProgram({
appId: 'wx77af438b3505c00e',
path: 'subPackages/webview/index?lch=cps:mix:5:65c5f4b9271221c79eae104d969a48a3:518jutuike123456:22:85459&url=https%3A%2F%2Frunion.meituan.com%2Fyouxuan%2Furl%3Factid%3D22%26key%3D65c5f4b9271221c79eae104d969a48a3%26sid%3D518jutuike123456%26target%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252F0fa89e3742cb33896d37%252F116372%252Findex.html%253FtargetPath%253D%25252FsubPackages%25252Ftransfer%25252Findex%25253Fprotocol%25253Digrocery%2525253A%2525252F%2525252Fwww.grocery.com%2525252Fmain%2525253Futm_term%2525253D%2525257B%25252522mtlm%25252522%2525253A%25252522cps%2525253Amix%2525253A5%2525253A65c5f4b9271221c79eae104d969a48a3%2525253A518jutuike123456%2525253A22%2525253A85459%25252522%2525257D%2526appkey%253D65c5f4b9271221c79eae104d969a48a3%253A518jutuike123456'
})
},
getDetail: function() {
this.conf.lock || (this.conf.lock = !0, s.get("Content/Recipe/getDetail", {
rid: this.conf.recipe_id
}, this.getDetailSuccess.bind(this), this.getDetailFail.bind(this)));
},
getDetailSuccess: function(t) {
if (200 != t.Status || !t.Result.RecipeStep) return this.setData({
request_status: !1
}), !1;
var e = [];
t.Result.Food && t.Result.Food.List.length > 0 && (e = t.Result.Food.List);
var i = [], n = 0;
t.Result.RecipeStep && t.Result.RecipeStep.List.length > 0 && (i = t.Result.RecipeStep.List,
n = t.Result.RecipeStep.Count, this.conf.step_img = t.Result.StepImg);
var c = [], a = [];
if (t.Result.Comment && t.Result.Comment.List.length > 0) {
a = "" != s.getStorage("comment") ? s.getStorage("comment") : [];
for (var r = 0; r < t.Result.Comment.List.length; r++) a.includes(t.Result.Comment.List[r].CommentId) ? t.Result.Comment.List[r].DiggStatus = !0 : t.Result.Comment.List
没有合适的资源?快使用搜索试试~ 我知道了~
类似京细菜谱微信小程序源码 云开发菜谱微信小程序源码.zip
共182个文件
png:100个
js:23个
json:20个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 1 下载量 172 浏览量
2022-12-26
09:22:36
上传
评论
收藏 1.8MB ZIP 举报
温馨提示
京细菜谱是一个美食分享网站,提供优质的家常菜谱大全,仿京细菜谱小程序源码为喜欢美食的朋友提供了很多的美食烹饪教程 让您轻松学会做美食。对不同食材和地域的饮食做了不同的分类和详细的做菜方法 分类十分详细,八大菜系、特色食品、特殊场合、热门功效、人群细分、烘焙甜品、口味和食材分类的十分详细。 本菜谱小程序源码为云开发版本,不需要域名和服务器即可搭建小程序,直接导入开发者工具即可上传审核。
资源推荐
资源详情
资源评论
收起资源包目录
类似京细菜谱微信小程序源码 云开发菜谱微信小程序源码.zip (182个子文件)
ascf.jpg 96KB
share.jpg 41KB
share.jpg 30KB
cover_null.jpg 12KB
recipe.js 18KB
mypage.js 10KB
mypage1.js 7KB
index.js 7KB
user.js 6KB
list.js 6KB
comment.js 6KB
index.js 5KB
userinfo.js 5KB
cate.js 5KB
1A7FD9A7867180BF7C19B1A0A9E83172.js 4KB
9CE874B1867180BFFA8E1CB67DD83172.js 4KB
ranklist.js 3KB
all_cate.js 3KB
food.js 2KB
app.js 2KB
all_food.js 2KB
my.js 1KB
webView.js 561B
Arrayincludes.js 540B
util.js 520B
defineProperty.js 233B
wlink.js 0B
project.config.json 2KB
app.json 2KB
project.private.config.json 373B
index.json 246B
sitemap.json 201B
my.json 148B
all_cate.json 75B
all_food.json 75B
cate.json 75B
userinfo.json 75B
ranklist.json 75B
comment.json 75B
user.json 69B
food.json 69B
recipe.json 69B
wlink.json 55B
webView.json 52B
mypage1.json 29B
mypage.json 29B
index.json 29B
mt.png 211KB
elm2.png 198KB
elm.png 166KB
mf.png 142KB
1.png 84KB
3.png 79KB
2.png 75KB
top.png 74KB
6.png 44KB
meituan_banner.png 40KB
ele_banner.png 25KB
mtBanner.png 17KB
null_favorite.png 17KB
elmBanner.png 14KB
feedback_fill.png 14KB
null_comment.png 12KB
sl.png 12KB
14.png 10KB
11.png 10KB
23.png 10KB
19.png 10KB
7.png 10KB
16.png 9KB
remind_fill.png 9KB
5.png 9KB
8.png 9KB
2.png 9KB
4.png 9KB
customerservice_fill.png 8KB
customerservice_fill.png 8KB
null_data.png 8KB
21.png 8KB
6.png 8KB
12.png 8KB
20.png 8KB
24.png 8KB
15.png 8KB
10.png 8KB
17.png 8KB
13.png 8KB
sx.png 8KB
18.png 8KB
9.png 8KB
22.png 8KB
xiao.png 7KB
live.png 7KB
3.png 7KB
1.png 7KB
wm.png 7KB
ks.png 7KB
hb.png 6KB
ele.png 6KB
dy.png 6KB
共 182 条
- 1
- 2
资源评论
- m0_709324292023-05-07实在是宝藏资源、宝藏分享者!感谢大佬~
智慧浩海
- 粉丝: 1w+
- 资源: 5459
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功