You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
22 KiB
1 lines
22 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?d311","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?c82c","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?5b1f","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?1abc","uni-app:///pages/lanhu_kechengxiangqingmulu/index.vue","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?c61f","webpack:///C:/Users/18634/Desktop/项目/catering-front-end-meal/pages/lanhu_kechengxiangqingmulu/index.vue?0a34"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","videoUrl","poster","poster2","shoucang","modalName","url2","maxDuration","pause","list","is_buy","vip","list2","activeTab","constants","onLoad","uni","backgroundColor","frontColor","computed","methods","shoucang1","url","id","type","success","getVip","console","hideElement","document","showModal","hideModal","wanlShare","bofang","handleTimeUpdate","play","go","go1","changeTab","xuexi","getData"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA+lB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;AC+JnnB;AAEA;AAAA;AAAA,eACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MACAC;MACAC;MACAC;MAEAC;IACA;EACA;EACAC;IACA;MACA;IACA;IACA;IACAC;MACAC;MAAA;MACAC;IACA,IACA;IACA;EACA;EAEAC,4BACA,sDACA;EACAC;IACAC;MACA;QACA;MACA;QACA;MACA;MACA;QACAC;QACAtB;UACAuB;UACAC;QACA;QACAC,gCAEA;MACA;IACA;IACAC;MAAA;MACA;QACA;UACAJ;UACAtB;YACAuB;UACA;UACAE;YACA;YACAE;UACA;QACA;MACA;IACA;IACAC;MACA;QACAC;MACA;QACAA;MACA;IAEA;IAEA;IACAC;MACAH;MACA;IACA;IACA;IACAI;MACA;QACA;MACA;QACA;MACA;IACA;IACA;IACAC;MACA;QACA;MACA;QACA;MACA;IACA;IAEAC;MACA;MACA;MACA;MAEAN;IACA;IACAO;MACA;QACA;UACA;UACA;UACA;QACA;MACA;IAEA;IACAC;MACA;MACA;MACA;MACA;IACA;IACAC;MAEApB;QACAM;MACA;IACA;IACAe;MACArB;QACAM;MACA;IACA;IACAgB;MACA;IACA;IACAC;MACA;QACAjB;QACAtB;UACAuB;QACA;QACAE,gCAEA;MACA;IACA;IACAe;MAAA;MACA;QACAlB;QACAtB;UACAuB;QACA;QACAE;UACAE;UACA;UACA;UACA;UACA;UACA;UACA;QACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACvUA;AAAA;AAAA;AAAA;AAAi3B,CAAgB,k3BAAG,EAAC,C;;;;;;;;;;;ACAr4B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/lanhu_kechengxiangqingmulu/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/lanhu_kechengxiangqingmulu/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=35d2e2e1&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/lanhu_kechengxiangqingmulu/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=35d2e2e1&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"page flex-col\" style=\" position: relative;height: auto;background-color: #F8F6ED;\">\r\n\t\t<view class=\"group_1 flex-col\" style=\" height: calc(100% - 50px);\">\r\n\r\n\t\t\t<view class=\"section_2 flex-col\" style=\"height: auto;\">\r\n\t\t\t\t<view class=\"block_1 flex-col\" style=\"border-radius: 0;\">\r\n\t\t\t\t\t<view class=\"text-wrapper_1 flex-row\">\r\n\t\t\t\t\t\t<text class=\"text_2\">{{list.b.title}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"text-wrapper_2 flex-row justify-between\">\r\n\t\t\t\t\t\t<text class=\"text_3\">¥{{list.b.price}}</text>\r\n\t\t\t\t\t\t<text class=\"text_4\">已有{{list.b.num}}人学习</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\r\n\r\n\t\t\t\t<video style=\"z-index: 3;\" class=\"block_2 flex-col\" :src=\"videoUrl\" controls\r\n\t\t\t\t\t@timeupdate=\"handleTimeUpdate\" @play=\"play\" :poster=\"poster\" object-fit=\"fill\">\r\n\r\n\t\t\t\t\t<!-- \t<image class=\"block_2 flex-col\" v-if=\"poster\" :src=\"poster\"\r\n\t\t\t\t\t\tstyle=\"width: 100%;height: 100%;z-index: 2;opacity: 0.5; pointer-events: none;\" /> -->\r\n\r\n\t\t\t\t</video>\r\n\r\n\r\n\t\t\t</view>\r\n\r\n\t\t\t<view class=\"section_3 flex-col\"\r\n\t\t\t\tstyle=\"height: auto;border-radius: 0;margin-top: 20rpx;padding-bottom: 20rpx;\">\r\n\t\t\t\t<div class=\"tabs_1 flex-col\" style=\"height: 70rpx;\">\r\n\t\t\t\t\t<view class=\"text-wrapper_3 flex-row justify-between\">\r\n\t\t\t\t\t\t<text style=\"height:50rpx;width:100rpx;text-align: center;\" class=\"text_5\"\r\n\t\t\t\t\t\t\t:class=\"{ active: activeTab === '介绍' }\" @click=\"changeTab('介绍')\">介绍</text>\r\n\t\t\t\t\t\t<text style=\"height:50rpx;width:100rpx;text-align: center;\" class=\"text_6\"\r\n\t\t\t\t\t\t\t:class=\"{ active: activeTab === '目录' }\" @click=\"changeTab('目录')\">目录</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</div>\r\n\r\n\r\n\r\n\r\n\r\n\t\t\t\t<view v-if=\"activeTab === '介绍'\" style=\";\">\r\n\t\t\t\t\t<view style=\"margin-left: 5%;font-weight: 900;font-size:18px;\">授课老师</view>\r\n\r\n\t\t\t\t\t<view style=\"margin-left: 3%;width: 94%;margin-top: 20rpx;margin-bottom: 20rpx;\" @tap=\"go1()\">\r\n\t\t\t\t\t\t<image :src=\"list.a.image\"\r\n\t\t\t\t\t\t\tstyle=\"width: 120rpx;height: 120rpx;border-radius: 100px;float: left;\" />\r\n\t\t\t\t\t\t<view style=\"float: left;margin-left: 20rpx;margin-top: 15rpx;\">\r\n\t\t\t\t\t\t\t<view style=\"font-size: 16px;font-weight: 900;\">{{list.a.name}}</view>\r\n\t\t\t\t\t\t\t<view style=\"font-size: 12px;margin-top: 10rpx;color: gray;\">共计{{list.a.num}}课时</view>\r\n\t\t\t\t\t\t</view>\r\n\r\n\t\t\t\t\t\t<image src=\"/static/lanhu_kechengxiangqingmulu/4467bb13053bcc92fb9c10452b036fd7.png\"\r\n\t\t\t\t\t\t\tstyle=\"width: 20rpx;height: 30rpx;margin-top:50rpx;float: right;\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view style=\"width: 100%;height: 20rpx;background-color: #F8F6ED;clear: both;\"></view>\r\n\t\t\t\t\t<view\r\n\t\t\t\t\t\tstyle=\"margin-left: 5%;font-weight: 900;font-size:18px;margin-top: 20rpx;margin-bottom: 10rpx;\">\r\n\t\t\t\t\t\t课程介绍</view>\r\n\t\t\t\t\t<rich-text :nodes=\"list.b.content\" style=\"width: 95%;margin-left: 2.5%;\"></rich-text>\r\n\t\t\t\t\t<!-- \t<view style=\"height:60rpx;padding-left: 5%;line-height: 50rpx;\" v-for=\"(item, index) in list.c\"\r\n\t\t\t\t\t\t:key=\"index\">\r\n\t\t\t\t\t\t<view style=\"float: left;margin-top: -20rpx;font-size: 30px;font-weight: 999;color: darkgray;\">.\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view style=\"float: left;color: darkgray;margin-left:5rpx;\">{{item.unit_name}}</view>\r\n\t\t\t\t\t</view> -->\r\n\r\n\t\t\t\t</view>\r\n\r\n\r\n\r\n\t\t\t\t<view v-if=\"activeTab === '目录'\" style=\"height: auto;padding-bottom: 200rpx;\">\r\n\t\t\t\t\t<text class=\"text_7\" style=\"\">可免费试看视频/音频前60s</text>\r\n\r\n\t\t\t\t\t<view v-for=\"(item, index) in list.d\" :key=\"index\">\r\n\r\n\t\t\t\t\t\t<view class=\"box_2 flex-row\" style=\"\" @tap=\"hideElement(index)\">\r\n\t\t\t\t\t\t\t<text class=\"text_8\">{{item[0].title2}}</text>\r\n\t\t\t\t\t\t\t<image class=\"label_1\" referrerpolicy=\"no-referrer\"\r\n\t\t\t\t\t\t\t\tsrc=\"/static/lanhu_kechengxiangqingmulu/4fcce6f6b93750a3be24b81f9dbaa542.png\" />\r\n\t\t\t\t\t\t</view>\r\n\r\n\t\t\t\t\t\t<view :id=\"index\">\r\n\t\t\t\t\t\t\t<view class=\"box_3 flex-row\" v-for=\"(item2, index2) in item\" :key=\"index2\">\r\n\t\t\t\t\t\t\t\t<image class=\"icon_2\" @tap=\"bofang(item2.mp4)\"\r\n\t\t\t\t\t\t\t\t\tsrc=\"/static/lanhu_kechengxiangqingmulu/35d5a4228d4ae5e616779e122f9cd5fa.png\" />\r\n\t\t\t\t\t\t\t\t<text class=\"text_9\">{{item2.title}}</text>\r\n\t\t\t\t\t\t\t\t<text class=\"text_10\">{{item2.min}}</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\r\n\r\n\t\t\t\t\t<!-- \t\t<view class=\"cu-modal bottom-modal\" :class=\"modalName == 'share' ? 'show' : ''\" @tap=\"hideModal\">\r\n\t\t\t\t<view class=\"cu-dialog\" @tap.stop=\"\">\r\n\t\t\t\t\t<wanl-share :scrollAnimation=\"scrollAnimation\" :shareTitle=\"goodsData.title\"\r\n\t\t\t\t\t\t:shareText=\"goodsData.description\" :image=\"$wanlshop.oss(goodsData.image,50, 50)\"\r\n\t\t\t\t\t\t:href=\"common.appConfig.domain + '/pages/product/goods?id='+ goodsData.id +'&QRtype=goods'\"\r\n\t\t\t\t\t\tisReport @change=\"wanlShare\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view> -->\r\n\r\n\r\n\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- \t<view class=\"image-text_1 flex-row justify-between\">\r\n\t\t\t\t\t<text class=\"text-group_1\">查看全部</text>\r\n\t\t\t\t\t<image class=\"icon_4\" referrerpolicy=\"no-referrer\"\r\n\t\t\t\t\t\tsrc=\"/static/lanhu_kechengxiangqingmulu/32abf597bb1d6f7c108813a8fa472960.png\" />\r\n\t\t\t\t</view> -->\r\n\t\t\t</view>\r\n\r\n\t\t</view>\r\n\r\n\t\t<view class=\"section_4 flex-row\" style=\"margin: 0;position: fixed;\r\n bottom: 0; \r\n left: 0; \r\n width: 100%;\r\n height: 100rpx; \r\n background-color: #f0f0f0;\">\r\n\t\t<!-- \t<view class=\"image-text_2 flex-col justify-between\" @tap=\"showModal('share')\">\r\n\t\t\t\t<image class=\"icon_5\" referrerpolicy=\"no-referrer\"\r\n\t\t\t\t\tsrc=\"/static/lanhu_kechengxiangqingmulu/aa83c3ee47d3a2604d5b1d453e21d0d8.png\" />\r\n\t\t\t\t<text class=\"text-group_2\">分享</text>\r\n\t\t\t</view> -->\r\n\t\t\t\r\n\t\t\t<view class=\"image-text_3 flex-col justify-between\" @tap=\"shoucang1\">\r\n\t\t\t\t<image class=\"icon_6\" v-if=\"!shoucang\"\r\n\t\t\t\t\tsrc=\"/static/lanhu_kechengxiangqingmulu/02f3eef93d8ab189249aebc2d123e124.png\" />\r\n\t\t\t\r\n\t\t\t\t<image class=\"icon_6\" v-if=\"shoucang\" src=\"/static/lanhu_kechengxiangqingmulu/22.png\" />\r\n\t\t\t\r\n\t\t\t\t<text class=\"text-group_3\" style=\"\">收藏</text>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t<view class=\"image-text_2 flex-col justify-between\" @tap=\"showModal('share')\">\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\r\n\t\t\r\n\r\n\r\n\t\t\t<button class=\"button_1 flex-col\" @tap=\"go(list.b.id)\" v-if=\"list.buy == 0 && !is_buy\">\r\n\t\t\t\t<text class=\"text_12\">¥{{list.b.price}}</text>\r\n\t\t\t</button>\r\n\r\n\r\n\t\t\t<button class=\"button_1 flex-col\" v-if=\"list.buy == 1 || is_buy\">\r\n\t\t\t\t<text class=\"text_12\">已购买</text>\r\n\t\t\t</button>\r\n\r\n\t\t</view>\r\n\r\n\t</view>\r\n\r\n</template>\r\n<script>\r\n\timport {\r\n\t\tmapState\r\n\t} from 'vuex';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvideoUrl: '',\r\n\t\t\t\tposter: '',\r\n\t\t\t\tposter2: '',\r\n\t\t\t\tshoucang: '',\r\n\t\t\t\tmodalName: '',\r\n\t\t\t\turl2: '',\r\n\t\t\t\tmaxDuration: 2, // 最大播放时长,单位:秒\r\n\t\t\t\tpause: false, // 是否暂停视频播放\r\n\t\t\t\tlist: '',\r\n\t\t\t\tis_buy: '',\r\n\t\t\t\tvip: '',\r\n\t\t\t\tlist2: [],\r\n\t\t\t\tactiveTab: \"介绍\",\r\n\r\n\t\t\t\tconstants: {}\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad(id) {\r\n\t\t\tif (id.is_buy == 1) {\r\n\t\t\t\tthis.is_buy = 1;\r\n\t\t\t}\r\n\t\t\tthis.id = id.id\r\n\t\t\tuni.setNavigationBarColor({\r\n\t\t\t\t\tbackgroundColor: '#802931', // 背景颜色\r\n\t\t\t\t\tfrontColor: '#ffffff' // 前景颜色(包括标题、返回图标等)\r\n\t\t\t\t}),\r\n\t\t\t\tthis.getData()\r\n\t\t\tthis.getVip()\r\n\t\t},\r\n\r\n\t\tcomputed: {\r\n\t\t\t...mapState(['user', 'statistics', 'common'])\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tshoucang1() {\r\n\t\t\t\tif (this.shoucang) {\r\n\t\t\t\t\tthis.shoucang = ''\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.shoucang = 1\r\n\t\t\t\t}\r\n\t\t\t\tthis.$api.get({\r\n\t\t\t\t\turl: '/wanlshop/data/shoucang',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tid: this.id,\r\n\t\t\t\t\t\ttype: 1\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: res => {\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tgetVip() {\r\n\t\t\t\tif (this.user.id) {\r\n\t\t\t\t\tthis.$api.get({\r\n\t\t\t\t\t\turl: '/wanlshop/data/getVip',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\tid: this.user.id\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\t\tthis.vip = res\r\n\t\t\t\t\t\t\tconsole.log(4445, res)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\thideElement(id) {\r\n\t\t\t\tif (document.getElementById(id).style.display == 'none') {\r\n\t\t\t\t\tdocument.getElementById(id).style.display = '';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdocument.getElementById(id).style.display = 'none';\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\r\n\t\t\t// 弹出层\r\n\t\t\tshowModal(name) {\r\n\t\t\t\tconsole.log(name)\r\n\t\t\t\tthis.modalName = name;\r\n\t\t\t},\r\n\t\t\t// 关闭弹出层\r\n\t\t\thideModal(name) {\r\n\t\t\t\tif (name) {\r\n\t\t\t\t\tthis.showModal(name);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.modalName = null;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 分享回调\r\n\t\t\twanlShare(e) {\r\n\t\t\t\tif (e) {\r\n\t\t\t\t\tthis.$wanlshop.auth(`/pages/user/complaint/complaint?id=${this.goodsData.id}&type=1`);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.modalName = null;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\tbofang(mp4) {\r\n\t\t\t\t// this.poster = this.poster2\r\n\t\t\t\tthis.videoUrl = mp4\r\n\t\t\t\tthis.url2 = mp4\r\n\r\n\t\t\t\tconsole.log(this.videoUrl)\r\n\t\t\t},\r\n\t\t\thandleTimeUpdate(event) {\r\n\t\t\t\tif (this.list.buy == 0 && !this.is_buy) {\r\n\t\t\t\t\tif (event.detail.currentTime > 60) {\r\n\t\t\t\t\t\tthis.url2 = this.videoUrl\r\n\t\t\t\t\t\tthis.videoUrl = ''\r\n\t\t\t\t\t\tthis.$wanlshop.msg('试看60秒结束');\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\tplay(event) {\r\n\t\t\t\t//我的学习\r\n\t\t\t\tthis.xuexi()\r\n\t\t\t\tthis.videoUrl = this.url2\r\n\t\t\t\tthis.poster = ''\r\n\t\t\t},\r\n\t\t\tgo(id) {\r\n\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pages/user/money/pay?groups=kecheng&&order_id=' + id\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tgo1() {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pages/lanhu_renmaixiangqing/index?id=' + this.list.a.id\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tchangeTab(tab) {\r\n\t\t\t\tthis.activeTab = tab;\r\n\t\t\t},\r\n\t\t\txuexi() {\r\n\t\t\t\tthis.$api.get({\r\n\t\t\t\t\turl: '/wanlshop/data/xuexi',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tid: this.id\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: res => {\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tgetData() {\r\n\t\t\t\tthis.$api.get({\r\n\t\t\t\t\turl: '/wanlshop/data/getDetail',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tid: this.id\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\tconsole.log(44, res)\r\n\t\t\t\t\t\tthis.list = res\r\n\t\t\t\t\t\tthis.shoucang = this.list.e\r\n\t\t\t\t\t\tthis.poster = this.list.b.cover\r\n\t\t\t\t\t\tthis.poster2 = this.list.b.cover\r\n\t\t\t\t\t\tthis.videoUrl = this.list.d[0][0].mp4\r\n\t\t\t\t\t\tthis.url2 = this.list.d[0][0].mp4\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t}\r\n\t};\r\n</script>\r\n<style lang='css'>\r\n\t@import '../common/common.css';\r\n\t@import './assets/style/index.rpx.css';\r\n\r\n\t.active {\r\n\r\n\t\tborder-bottom: 3px solid #802931;\r\n\t}\r\n\r\n\ttoast,\r\n\tuni-toast {\r\n\t\tz-index: 9999;\r\n\t}\r\n\r\n\t.cu-custom .cu-bar .search-form {\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\r\n\t.cu-custom .cu-bar {\r\n\t\tbackground-color: #f3f3f3;\r\n\t}\r\n\r\n\t.cu-custom .bar-bg {\r\n\t\tbackground-color: rgba(243, 243, 243, 0.96);\r\n\t}\r\n\r\n\t.cu-custom .cu-bar {\r\n\t\tz-index: 99;\r\n\t}\r\n\r\n\t/* #ifdef MP */\r\n\t.cu-custom .cu-bar .search-form {\r\n\t\tmargin: 0 0 0 25rpx;\r\n\t}\r\n\r\n\t/* #endif */\r\n\r\n\t.cu-custom .cu-bar .nav .cu-item {\r\n\t\tline-height: 70rpx;\r\n\t\theight: 70rpx;\r\n\t}\r\n\r\n\t.swiper-box {\r\n\t\tposition: relative;\r\n\t\twidth: 100%;\r\n\t\theight: 100vw;\r\n\t}\r\n\r\n\t.swiper-box swiper {\r\n\t\twidth: 100%;\r\n\t\theight: 100vw;\r\n\t}\r\n\r\n\t.swiper-box swiper swiper-item image {\r\n\t\twidth: 100%;\r\n\t\theight: 100vw;\r\n\t}\r\n\r\n\t.swiper-box .indicator {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tpadding: 0 25upx;\r\n\t\theight: 40upx;\r\n\t\tborder-radius: 40upx;\r\n\t\tfont-size: 22upx;\r\n\t\tposition: absolute;\r\n\t\tbottom: 20upx;\r\n\t\tright: 20upx;\r\n\t\tcolor: #fff;\r\n\t\tbackground-color: rgba(0, 0, 0, 0.2);\r\n\t}\r\n</style>","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699454307783\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |