Commit 237539b8 authored by zhoucong's avatar zhoucong

处理我的vlog bug

parent 9a899114
......@@ -28,7 +28,7 @@
export default {
data() {
return {
show: true, //显示默认页面
show: true, //跳转过渡页面
vlogList: [], //我的vlog集合
}
},
......@@ -44,10 +44,10 @@
this.$request("wechatUser/myPage/getVlogRecord", {
openid: uni.getStorageSync("openid")
}).then(res => {
this.show = false
if(res.code==="00"){
this.vlogList = res.data
if (this.vlogList.length > 0) { //如果有数据
this.show = false
uni.setNavigationBarColor({ //动态更改导航条颜色
frontColor: '#ffffff',
backgroundColor: '#192033',
......
......@@ -5,7 +5,7 @@
<video class="video" :src="item.productUrl" :poster="item.thumbImageUrl" @error="error" controls
play-btn-position="center" :id="index" @play="playing(index)"></video>
<view class="">
<button v-if="item.shareNumber===4" :data-productUrl="item.productUrl" :data-productId="item.productId" class="btnn"
<button v-if="item.shareNumber===0" :data-productUrl="item.productUrl" :data-productId="item.productId" class="btnn"
open-type="share">分享下载</button>
<button v-else class="btnn" @click="handleDownload">下载视频</button>
<text class="price">¥<text>0</text></text>
......
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?1676","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?a085","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?6504","uni-app:///pages/vlog/myVlog/myVlog.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?3f80","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?099f"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,qG;AACAA,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACsK;AACtK,gBAAgB,6KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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,aAAa,mNAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAknB,CAAgB,gnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2BtoB;AACA,MADA,kBACA;AACA;AACA,gBADA,EACA;AACA,kBAFA,CAEA;AAFA;AAIA,GANA;AAOA,SAPA,qBAOA,EAPA;AAQA,QARA,oBAQA;AACA;AACA,GAVA;AAWA;AACA,SADA,iBACA,IADA,EACA;AACA;AACA,KAHA;AAIA,iBAJA,2BAIA;AACA;AACA,4CADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,wCAFA;AAGA;AACA,2BADA;AAEA,oCAFA,EAHA;;;AAQA;AACA,wCADA;;AAGA,WAbA,MAaA;AACA;AACA;AACA;AACA,OAtBA;AAuBA,KA5BA;AA6BA,SA7BA,iBA6BA,CA7BA,EA6BA;AACA;AACA,KA/BA,EAXA,E;;;;;;;;;;;;;AC3BA;AAAA;AAAA;AAAA;AAA2pC,CAAgB,klCAAG,EAAC,C;;;;;;;;;;;ACA/qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/vlog/myVlog/myVlog.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/vlog/myVlog/myVlog.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./myVlog.vue?vue&type=template&id=3904d3a7&scoped=true&\"\nvar renderjs\nimport script from \"./myVlog.vue?vue&type=script&lang=js&\"\nexport * from \"./myVlog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"3904d3a7\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/vlog/myVlog/myVlog.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=template&id=3904d3a7&scoped=true&\"","var components\ntry {\n components = {\n uSearch: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-search/u-search\" */ \"@/uview-ui/components/u-search/u-search.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view v-if=\"vlogList.length>0 && show===false\" class=\"noEmpty\">\r\n\t\t\t<view style=\"height: 20rpx;\"></view>\r\n\t\t\t<u-search bg-color=\"#434957\" color=\"#ffffff\" placeholder=\"景区/关键词搜索\" v-model=\"search\" :clearabled=\"true\"\r\n\t\t\t\t@search=\"query\" :show-action=\"false\"></u-search>\r\n\t\t\t<view class=\"body\">\r\n\t\t\t\t<view class=\"item\" v-for=\"(item,index) in vlogList\" :key=\"index\" @click=\"navTo(item)\">\r\n\t\t\t\t\t<image :src=\"item.thumbImageUrl\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t<text>{{item.merchantName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view v-else-if=\"vlogList.length===0 && show===false\" class=\"empty\">\r\n\t\t\t<view class=\"row\">\r\n\t\t\t\t<text>啊哦。。。没找到呢</text>\r\n\t\t\t\t<image src=\"../../../static/img/vlog/icon/icon_thereisnovideo.png\"></image>\r\n\t\t\t</view>\r\n\t\t\t<navigator url=\"../vlogface/vlogface\" class=\"btnn\">\r\n\t\t\t\t<view>点击获取我的Vlog</view>\r\n\t\t\t</navigator>\r\n\t\t</view>\r\n\t\t<view v-else></view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tshow: true, //显示默认页面\r\n\t\t\t\tvlogList: [], //我的vlog集合\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReady() {},\r\n\t\tonLoad() {\r\n\t\t\tthis.getMyVlogList()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tnavTo(item){\r\n\t\t\t\tthis.$u.route('/pages/vlog/vlogList/vlogList?merchantId='+item.merchantId);\r\n\t\t\t},\r\n\t\t\tgetMyVlogList(){\r\n\t\t\t\tthis.$request(\"wechatUser/myPage/getVlogRecord\", {\r\n\t\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tif(res.code===\"00\"){\r\n\t\t\t\t\t\tthis.vlogList = res.data\r\n\t\t\t\t\t\tif (this.vlogList.length > 0) { //如果有数据\r\n\t\t\t\t\t\t\tthis.show = false\r\n\t\t\t\t\t\t\tuni.setNavigationBarColor({ //动态更改导航条颜色\r\n\t\t\t\t\t\t\t\tfrontColor: '#ffffff',\r\n\t\t\t\t\t\t\t\tbackgroundColor: '#192033',\r\n\t\t\t\t\t\t\t\tanimation: {\r\n\t\t\t\t\t\t\t\t\tduration: 1,\r\n\t\t\t\t\t\t\t\t\ttimingFunc: 'easeIn'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tuni.setBackgroundColor({\r\n\t\t\t\t\t\t\t\tbackgroundColor: \"#192033\"\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else { //数据为空\r\n\t\t\t\t\t\t\tthis.show = false\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\tquery(e) {\r\n\t\t\t\tconsole.log(e)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.content {\r\n\t\theight: 100%;\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\r\n\t\t.noEmpty {\r\n\t\t\tcolor: #fff;\r\n\t\t\theight: 100%;\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground-color: #192033;\r\n\t\t\tpadding: 0 20rpx;\r\n\r\n\t\t\t.body {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-wrap: wrap;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\tmargin-top: 30rpx;\r\n\r\n\t\t\t\t.item {\r\n\t\t\t\t\twidth: 49%;\r\n\t\t\t\t\theight: 250rpx;\r\n\t\t\t\t\tmargin-top: 20rpx;\r\n\r\n\t\t\t\t\timage {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 80%;\r\n\t\t\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttext {\r\n\t\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.empty {\r\n\t\t\theight: 100%;\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tpadding: 0 20rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\tpadding-top: 30rpx;\r\n\r\n\t\t\t.row {\r\n\t\t\t\theight: 200rpx;\r\n\t\t\t\tbackground: linear-gradient(90deg, #ECF5FF 0%, #CEE5FF 100%);\r\n\t\t\t\tline-height: 200rpx;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\tmargin-bottom: 300rpx;\r\n\r\n\t\t\t\ttext {\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\tmargin-left: 120rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\timage {\r\n\t\t\t\t\theight: 180rpx;\r\n\t\t\t\t\twidth: 200rpx;\r\n\t\t\t\t\tfloat: right;\r\n\t\t\t\t\tmargin-right: 50rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.btnn {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\tborder-radius: 40rpx;\r\n\t\t\t\tbackground-color: #FFE600;\r\n\t\t\t\tpadding: 20rpx 40rpx;\r\n\t\t\t\tmargin: 30rpx 0;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631101035799\n var cssReload = require(\"C:/Users/admin/Desktop/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?1676","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?a085","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?6504","uni-app:///pages/vlog/myVlog/myVlog.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?3f80","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/myVlog/myVlog.vue?099f"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,qG;AACAA,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;AACsC;;;AAG3F;AACsK;AACtK,gBAAgB,6KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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,aAAa,mNAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAknB,CAAgB,gnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2BtoB;AACA,MADA,kBACA;AACA;AACA,gBADA,EACA;AACA,kBAFA,CAEA;AAFA;AAIA,GANA;AAOA,SAPA,qBAOA,EAPA;AAQA,QARA,oBAQA;AACA;AACA,GAVA;AAWA;AACA,SADA,iBACA,IADA,EACA;AACA;AACA,KAHA;AAIA,iBAJA,2BAIA;AACA;AACA,4CADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,wCAFA;AAGA;AACA,2BADA;AAEA,oCAFA,EAHA;;;AAQA;AACA,wCADA;;AAGA,WAZA,MAYA;AACA;AACA;AACA;AACA,OAtBA;AAuBA,KA5BA;AA6BA,SA7BA,iBA6BA,CA7BA,EA6BA;AACA;AACA,KA/BA,EAXA,E;;;;;;;;;;;;;AC3BA;AAAA;AAAA;AAAA;AAA2pC,CAAgB,klCAAG,EAAC,C;;;;;;;;;;;ACA/qC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/vlog/myVlog/myVlog.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/vlog/myVlog/myVlog.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./myVlog.vue?vue&type=template&id=3904d3a7&scoped=true&\"\nvar renderjs\nimport script from \"./myVlog.vue?vue&type=script&lang=js&\"\nexport * from \"./myVlog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"3904d3a7\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/vlog/myVlog/myVlog.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=template&id=3904d3a7&scoped=true&\"","var components\ntry {\n components = {\n uSearch: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-search/u-search\" */ \"@/uview-ui/components/u-search/u-search.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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 \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view v-if=\"vlogList.length>0 && show===false\" class=\"noEmpty\">\r\n\t\t\t<view style=\"height: 20rpx;\"></view>\r\n\t\t\t<u-search bg-color=\"#434957\" color=\"#ffffff\" placeholder=\"景区/关键词搜索\" v-model=\"search\" :clearabled=\"true\"\r\n\t\t\t\t@search=\"query\" :show-action=\"false\"></u-search>\r\n\t\t\t<view class=\"body\">\r\n\t\t\t\t<view class=\"item\" v-for=\"(item,index) in vlogList\" :key=\"index\" @click=\"navTo(item)\">\r\n\t\t\t\t\t<image :src=\"item.thumbImageUrl\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t<text>{{item.merchantName}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view v-else-if=\"vlogList.length===0 && show===false\" class=\"empty\">\r\n\t\t\t<view class=\"row\">\r\n\t\t\t\t<text>啊哦。。。没找到呢</text>\r\n\t\t\t\t<image src=\"../../../static/img/vlog/icon/icon_thereisnovideo.png\"></image>\r\n\t\t\t</view>\r\n\t\t\t<navigator url=\"../vlogface/vlogface\" class=\"btnn\">\r\n\t\t\t\t<view>点击获取我的Vlog</view>\r\n\t\t\t</navigator>\r\n\t\t</view>\r\n\t\t<view v-else></view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tshow: true, //跳转过渡页面\r\n\t\t\t\tvlogList: [], //我的vlog集合\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReady() {},\r\n\t\tonLoad() {\r\n\t\t\tthis.getMyVlogList()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tnavTo(item){\r\n\t\t\t\tthis.$u.route('/pages/vlog/vlogList/vlogList?merchantId='+item.merchantId);\r\n\t\t\t},\r\n\t\t\tgetMyVlogList(){\r\n\t\t\t\tthis.$request(\"wechatUser/myPage/getVlogRecord\", {\r\n\t\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tthis.show = false\r\n\t\t\t\t\tif(res.code===\"00\"){\r\n\t\t\t\t\t\tthis.vlogList = res.data\r\n\t\t\t\t\t\tif (this.vlogList.length > 0) { //如果有数据\r\n\t\t\t\t\t\t\tuni.setNavigationBarColor({ //动态更改导航条颜色\r\n\t\t\t\t\t\t\t\tfrontColor: '#ffffff',\r\n\t\t\t\t\t\t\t\tbackgroundColor: '#192033',\r\n\t\t\t\t\t\t\t\tanimation: {\r\n\t\t\t\t\t\t\t\t\tduration: 1,\r\n\t\t\t\t\t\t\t\t\ttimingFunc: 'easeIn'\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tuni.setBackgroundColor({\r\n\t\t\t\t\t\t\t\tbackgroundColor: \"#192033\"\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t} else { //数据为空\r\n\t\t\t\t\t\t\tthis.show = false\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\tquery(e) {\r\n\t\t\t\tconsole.log(e)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.content {\r\n\t\theight: 100%;\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\r\n\t\t.noEmpty {\r\n\t\t\tcolor: #fff;\r\n\t\t\theight: 100%;\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground-color: #192033;\r\n\t\t\tpadding: 0 20rpx;\r\n\r\n\t\t\t.body {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-wrap: wrap;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\tmargin-top: 30rpx;\r\n\r\n\t\t\t\t.item {\r\n\t\t\t\t\twidth: 49%;\r\n\t\t\t\t\theight: 250rpx;\r\n\t\t\t\t\tmargin-top: 20rpx;\r\n\r\n\t\t\t\t\timage {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 80%;\r\n\t\t\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttext {\r\n\t\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.empty {\r\n\t\t\theight: 100%;\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tpadding: 0 20rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\tpadding-top: 30rpx;\r\n\r\n\t\t\t.row {\r\n\t\t\t\theight: 200rpx;\r\n\t\t\t\tbackground: linear-gradient(90deg, #ECF5FF 0%, #CEE5FF 100%);\r\n\t\t\t\tline-height: 200rpx;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\tmargin-bottom: 300rpx;\r\n\r\n\t\t\t\ttext {\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\tmargin-left: 120rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\timage {\r\n\t\t\t\t\theight: 180rpx;\r\n\t\t\t\t\twidth: 200rpx;\r\n\t\t\t\t\tfloat: right;\r\n\t\t\t\t\tmargin-right: 50rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.btnn {\r\n\t\t\t\tdisplay: inline-block;\r\n\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\tborder-radius: 40rpx;\r\n\t\t\t\tbackground-color: #FFE600;\r\n\t\t\t\tpadding: 20rpx 40rpx;\r\n\t\t\t\tmargin: 30rpx 0;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myVlog.vue?vue&type=style&index=0&id=3904d3a7&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631183441525\n var cssReload = require(\"C:/Users/admin/Desktop/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?309f","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?e9f8","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?565f","uni-app:///pages/vlog/vlogList/vlogList.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?e1ae","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?6a6c"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,2G;AACAA,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACsK;AACtK,gBAAgB,6KAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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;AAAonB,CAAgB,knBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmBxoB;;AAEA,MAFA,kBAEA;AACA;AACA,oBADA,EACA;AACA,oBAFA,CAEA;AAFA;AAIA,GAPA;AAQA,QARA,kBAQA,OARA,EAQA;AACA;AACA;AACA,GAXA;AAYA,QAZA,oBAYA;;AAEA,GAdA;AAeA,UAfA,sBAeA;;AAEA,GAjBA;AAkBA,QAlBA,oBAkBA,EAlBA;AAmBA,SAnBA,qBAmBA,EAnBA;AAoBA,mBApBA,6BAoBA,GApBA,EAoBA;AACA;AACA;AACA;AACA,0BADA;AAEA,0CAFA;AAGA,QAHA,CAGA;AACA;AACA;AACA;AACA,KAPA;AAQA;AACA;AACA,qBADA;AAEA,eAFA;AAGA,yDAHA;;AAKA;AACA,GAtCA;AAuCA;AACA,iBADA,2BACA;AACA;AACA,4CADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAJA;AAKA;AACA,OAVA;AAWA,KAbA;AAcA,WAdA,mBAcA,CAdA,EAcA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA,KApBA;AAqBA,kBArBA,4BAqBA;AACA;AACA,oBADA;AAEA,kBAFA;;AAIA,0CALA,CAKA;AACA;AACA,4LADA;AAEA;AACA,cAHA,EAGA;AACA;AACA;AACA;AACA,8BADA;AAEA;AACA;AACA;AACA;AACA;AACA,sBAFA;;AAIA;AACA,6BADA;AAEA,+BAFA;AAGA,0BAHA;;AAKA,aAdA;AAeA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,sCAFA;AAGA,mCAHA;AAIA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,gDAFA;AAGA;AACA;AACA,uCADA;AAEA,wDAFA;AAGA,6CAHA;;AAKA,yBATA,MASA;AACA;AACA,uCADA;AAEA,sDAFA;AAGA,6CAHA;;AAKA;AACA,uBAlBA;;AAoBA,mBA1BA;;AA4BA;AACA,aAhDA;;AAkDA,SAxDA;AAyDA;AACA;AACA;AACA;AACA,qCADA;AAEA,0BAFA;AAGA,wBAHA;;AAKA;AACA,SAlEA;;AAoEA,KA/FA;AAgGA,SAhGA,iBAgGA,CAhGA,EAgGA;AACA;AACA,gCADA;AAEA,yBAFA;;AAIA,KArGA,EAvCA,E;;;;;;;;;;;;;ACnBA;AAAA;AAAA;AAAA;AAA6pC,CAAgB,olCAAG,EAAC,C;;;;;;;;;;;ACAjrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/vlog/vlogList/vlogList.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/vlog/vlogList/vlogList.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./vlogList.vue?vue&type=template&id=1f5bdab2&scoped=true&\"\nvar renderjs\nimport script from \"./vlogList.vue?vue&type=script&lang=js&\"\nexport * from \"./vlogList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"1f5bdab2\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/vlog/vlogList/vlogList.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=template&id=1f5bdab2&scoped=true&\"","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 \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view style=\"padding-top: 30rpx;\">\r\n\t\t\t<view class=\"item\" v-for=\"(item,index) in myVlogList\" :key=\"index\">\r\n\t\t\t\t<video class=\"video\" :src=\"item.productUrl\" :poster=\"item.thumbImageUrl\" @error=\"error\" controls\r\n\t\t\t\t\tplay-btn-position=\"center\" :id=\"index\" @play=\"playing(index)\"></video>\r\n\t\t\t\t<view class=\"\">\r\n\t\t\t\t\t<button v-if=\"item.shareNumber===4\" :data-productUrl=\"item.productUrl\" :data-productId=\"item.productId\" class=\"btnn\"\r\n\t\t\t\t\t\topen-type=\"share\">分享下载</button>\r\n\t\t\t\t\t<button v-else class=\"btnn\" @click=\"handleDownload\">下载视频</button>\r\n\t\t\t\t\t<text class=\"price\">¥<text>0</text></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"clear: both;\"></view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tmyVlogList: [], //我的视频列表\r\n\t\t\t\tmerchantId: \"\", //景区id\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tthis.merchantId = options.merchantId\r\n\t\t\tthis.getMyVlogList()\r\n\t\t},\r\n\t\tonShow() {\r\n\r\n\t\t},\r\n\t\tonUnload() { //退出页面\r\n\r\n\t\t},\r\n\t\tonHide() {},\r\n\t\tonReady() {},\r\n\t\tonShareAppMessage(res) { //分享\r\n\t\t\tlet productId = res.target.dataset.productid\r\n\t\t\tlet productUrl= res.target.dataset.producturl\r\n\t\t\tthis.$request(\"wechatUser/myPage/updateVlogRecord\", {\r\n\t\t\t\tproductId,\r\n\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t}).then(res => {\r\n\t\t\t\tif (res.code === \"00\") {\r\n\t\t\t\t\tthis.getMyVlogList()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif (res.from === \"button\") {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttitle: '胖丁旅行',\r\n\t\t\t\t\ttype: 4,\r\n\t\t\t\t\tpath: '/pages/vlog/share/share?url='+productUrl,\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetMyVlogList() { //获取景区vlog列表\r\n\t\t\t\tthis.$request(\"wechatUser/myPage/getVlogRecord\", {\r\n\t\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tif (res.code === \"00\") {\r\n\t\t\t\t\t\tres.data.forEach(item => { //获取当前景区视频列表\r\n\t\t\t\t\t\t\tif (this.merchantId === item.merchantId) {\r\n\t\t\t\t\t\t\t\tthis.myVlogList = item.vlogList\r\n\t\t\t\t\t\t\t}\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\tplaying(e) { //控制只播放当前video\r\n\t\t\t\tthis.myVlogList.forEach((item, index) => {\r\n\t\t\t\t\tif (e !== index) {\r\n\t\t\t\t\t\tuni.createVideoContext(index.toString()).pause()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\thandleDownload() { // 下载功能\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: \"下载中\",\r\n\t\t\t\t\tmask: true\r\n\t\t\t\t})\r\n\t\t\t\tlet fileName = new Date().valueOf(); //获取时间戳\r\n\t\t\t\tuni.downloadFile({ //下载文件资源到本地\r\n\t\t\t\t\turl: 'https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/414ef566a39247159965f355043b379b/minio_service/mgc-video-store/mix/2021-08-31/concat/7c4d09c044b84893959cb541e0c48d38.mp4',\r\n\t\t\t\t\tfilePath: wx.env.USER_DATA_PATH + '/' + fileName +\r\n\t\t\t\t\t\t'.mp4', //filePath指定文件下载后存储的路径,wx.env.USER_DATA_PATH,时间戳为文件名\r\n\t\t\t\t\tsuccess: res => { //下载到本地成功\r\n\t\t\t\t\t\tlet filePath = res.filePath;\r\n\t\t\t\t\t\tuni.saveVideoToPhotosAlbum({ //保存视频到系统相册。\r\n\t\t\t\t\t\t\tfilePath,\r\n\t\t\t\t\t\t\tsuccess: file => { //保存成功\r\n\t\t\t\t\t\t\t\t//删除本地缓存\r\n\t\t\t\t\t\t\t\tlet fileMgr = uni.getFileSystemManager();\r\n\t\t\t\t\t\t\t\tfileMgr.unlink({\r\n\t\t\t\t\t\t\t\t\tfilePath: wx.env.USER_DATA_PATH + '/' + fileName +\r\n\t\t\t\t\t\t\t\t\t\t'.mp4',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle: \"下载成功\",\r\n\t\t\t\t\t\t\t\t\ticon: \"success\",\r\n\t\t\t\t\t\t\t\t\tmask: true\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tfail: err => {\r\n\t\t\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\t\t\t//拒绝授权时显示\r\n\t\t\t\t\t\t\t\tif (err.errMsg === 'saveVideoToPhotosAlbum:fail auth deny') {\r\n\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\tcontent: '需要您授权保存相册',\r\n\t\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\t\tsuccess: data => {\r\n\t\t\t\t\t\t\t\t\t\t\t//打开权限设置\r\n\t\t\t\t\t\t\t\t\t\t\tuni.openSetting({\r\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess: setting => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (setting\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.authSetting[\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'scope.writePhotosAlbum'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontent: '获取权限成功,再次点击下载即可保存',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tontent: '获取权限失败,将无法保存到相册哦',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail: err => { //下载失败\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tif (err.errMsg == 'downloadFile:fail createDownloadTask:fail url not in domain list') {\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '服务器错误,请联系相关管理员',\r\n\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\tmask: true\r\n\t\t\t\t\t\t\t})\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\terror(e) { //视频播放出错触发函数\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\tcontent: e.target.errMsg,\r\n\t\t\t\t\tshowCancel: false\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.content {\r\n\t\tpadding: 0 20rpx;\r\n\t\tmin-height: 100%;\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\t\tbackground-color: #192033;\r\n\r\n\t\t.item {\r\n\t\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);\r\n\t\t\tpadding: 0 10rpx;\r\n\t\t\tborder-radius: 10rpx;\r\n\t\t\tbackground-color: #192033;\r\n\t\t\tpadding-bottom: 40rpx;\r\n\r\n\t\t\t.video {\r\n\t\t\t\theight: 350rpx;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\tview {\r\n\t\t\t\tmargin: 20rpx 0;\r\n\r\n\t\t\t\t.btnn {\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\twidth: 150rpx;\r\n\t\t\t\t\tbackground-color: #FFE600;\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tborder-radius: 30rpx;\r\n\t\t\t\t\tline-height: 30rpx;\r\n\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\tpadding: 10rpx 15rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.price {\r\n\t\t\t\t\tfloat: right;\r\n\t\t\t\t\tcolor: #DE6F26;\r\n\t\t\t\t\tfont-size: 22rpx;\r\n\r\n\t\t\t\t\ttext {\r\n\t\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\t\tmargin-left: 5rpx;\r\n\t\t\t\t\t\tfont-weight: bold;\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</style>\n","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631156631418\n var cssReload = require(\"C:/Users/admin/Desktop/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":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js",null,"webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?309f","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?e9f8","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?565f","uni-app:///pages/vlog/vlogList/vlogList.vue","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?e1ae","webpack:///C:/Users/admin/Desktop/zc/uni-pdtravel/pages/vlog/vlogList/vlogList.vue?6a6c"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,2G;AACAA,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACsK;AACtK,gBAAgB,6KAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;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;AAAonB,CAAgB,knBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmBxoB;;AAEA,MAFA,kBAEA;AACA;AACA,oBADA,EACA;AACA,oBAFA,CAEA;AAFA;AAIA,GAPA;AAQA,QARA,kBAQA,OARA,EAQA;AACA;AACA;AACA,GAXA;AAYA,QAZA,oBAYA;;AAEA,GAdA;AAeA,UAfA,sBAeA;;AAEA,GAjBA;AAkBA,QAlBA,oBAkBA,EAlBA;AAmBA,SAnBA,qBAmBA,EAnBA;AAoBA,mBApBA,6BAoBA,GApBA,EAoBA;AACA;AACA;AACA;AACA,0BADA;AAEA,0CAFA;AAGA,QAHA,CAGA;AACA;AACA;AACA;AACA,KAPA;AAQA;AACA;AACA,qBADA;AAEA,eAFA;AAGA,yDAHA;;AAKA;AACA,GAtCA;AAuCA;AACA,iBADA,2BACA;AACA;AACA,4CADA;AAEA,UAFA,CAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAJA;AAKA;AACA,OAVA;AAWA,KAbA;AAcA,WAdA,mBAcA,CAdA,EAcA;AACA;AACA;AACA;AACA;AACA,OAJA;AAKA,KApBA;AAqBA,kBArBA,4BAqBA;AACA;AACA,oBADA;AAEA,kBAFA;;AAIA,0CALA,CAKA;AACA;AACA,4LADA;AAEA;AACA,cAHA,EAGA;AACA;AACA;AACA;AACA,8BADA;AAEA;AACA;AACA;AACA;AACA;AACA,sBAFA;;AAIA;AACA,6BADA;AAEA,+BAFA;AAGA,0BAHA;;AAKA,aAdA;AAeA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,sCAFA;AAGA,mCAHA;AAIA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,gDAFA;AAGA;AACA;AACA,uCADA;AAEA,wDAFA;AAGA,6CAHA;;AAKA,yBATA,MASA;AACA;AACA,uCADA;AAEA,sDAFA;AAGA,6CAHA;;AAKA;AACA,uBAlBA;;AAoBA,mBA1BA;;AA4BA;AACA,aAhDA;;AAkDA,SAxDA;AAyDA;AACA;AACA;AACA;AACA,qCADA;AAEA,0BAFA;AAGA,wBAHA;;AAKA;AACA,SAlEA;;AAoEA,KA/FA;AAgGA,SAhGA,iBAgGA,CAhGA,EAgGA;AACA;AACA,gCADA;AAEA,yBAFA;;AAIA,KArGA,EAvCA,E;;;;;;;;;;;;;ACnBA;AAAA;AAAA;AAAA;AAA6pC,CAAgB,olCAAG,EAAC,C;;;;;;;;;;;ACAjrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/vlog/vlogList/vlogList.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/vlog/vlogList/vlogList.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./vlogList.vue?vue&type=template&id=1f5bdab2&scoped=true&\"\nvar renderjs\nimport script from \"./vlogList.vue?vue&type=script&lang=js&\"\nexport * from \"./vlogList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"1f5bdab2\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/vlog/vlogList/vlogList.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=template&id=1f5bdab2&scoped=true&\"","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 \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<view style=\"padding-top: 30rpx;\">\r\n\t\t\t<view class=\"item\" v-for=\"(item,index) in myVlogList\" :key=\"index\">\r\n\t\t\t\t<video class=\"video\" :src=\"item.productUrl\" :poster=\"item.thumbImageUrl\" @error=\"error\" controls\r\n\t\t\t\t\tplay-btn-position=\"center\" :id=\"index\" @play=\"playing(index)\"></video>\r\n\t\t\t\t<view class=\"\">\r\n\t\t\t\t\t<button v-if=\"item.shareNumber===0\" :data-productUrl=\"item.productUrl\" :data-productId=\"item.productId\" class=\"btnn\"\r\n\t\t\t\t\t\topen-type=\"share\">分享下载</button>\r\n\t\t\t\t\t<button v-else class=\"btnn\" @click=\"handleDownload\">下载视频</button>\r\n\t\t\t\t\t<text class=\"price\">¥<text>0</text></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"clear: both;\"></view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tmyVlogList: [], //我的视频列表\r\n\t\t\t\tmerchantId: \"\", //景区id\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tthis.merchantId = options.merchantId\r\n\t\t\tthis.getMyVlogList()\r\n\t\t},\r\n\t\tonShow() {\r\n\r\n\t\t},\r\n\t\tonUnload() { //退出页面\r\n\r\n\t\t},\r\n\t\tonHide() {},\r\n\t\tonReady() {},\r\n\t\tonShareAppMessage(res) { //分享\r\n\t\t\tlet productId = res.target.dataset.productid\r\n\t\t\tlet productUrl= res.target.dataset.producturl\r\n\t\t\tthis.$request(\"wechatUser/myPage/updateVlogRecord\", {\r\n\t\t\t\tproductId,\r\n\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t}).then(res => {\r\n\t\t\t\tif (res.code === \"00\") {\r\n\t\t\t\t\tthis.getMyVlogList()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tif (res.from === \"button\") {\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttitle: '胖丁旅行',\r\n\t\t\t\t\ttype: 4,\r\n\t\t\t\t\tpath: '/pages/vlog/share/share?url='+productUrl,\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetMyVlogList() { //获取景区vlog列表\r\n\t\t\t\tthis.$request(\"wechatUser/myPage/getVlogRecord\", {\r\n\t\t\t\t\topenid: uni.getStorageSync(\"openid\")\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tif (res.code === \"00\") {\r\n\t\t\t\t\t\tres.data.forEach(item => { //获取当前景区视频列表\r\n\t\t\t\t\t\t\tif (this.merchantId === item.merchantId) {\r\n\t\t\t\t\t\t\t\tthis.myVlogList = item.vlogList\r\n\t\t\t\t\t\t\t}\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\tplaying(e) { //控制只播放当前video\r\n\t\t\t\tthis.myVlogList.forEach((item, index) => {\r\n\t\t\t\t\tif (e !== index) {\r\n\t\t\t\t\t\tuni.createVideoContext(index.toString()).pause()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\thandleDownload() { // 下载功能\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: \"下载中\",\r\n\t\t\t\t\tmask: true\r\n\t\t\t\t})\r\n\t\t\t\tlet fileName = new Date().valueOf(); //获取时间戳\r\n\t\t\t\tuni.downloadFile({ //下载文件资源到本地\r\n\t\t\t\t\turl: 'https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/414ef566a39247159965f355043b379b/minio_service/mgc-video-store/mix/2021-08-31/concat/7c4d09c044b84893959cb541e0c48d38.mp4',\r\n\t\t\t\t\tfilePath: wx.env.USER_DATA_PATH + '/' + fileName +\r\n\t\t\t\t\t\t'.mp4', //filePath指定文件下载后存储的路径,wx.env.USER_DATA_PATH,时间戳为文件名\r\n\t\t\t\t\tsuccess: res => { //下载到本地成功\r\n\t\t\t\t\t\tlet filePath = res.filePath;\r\n\t\t\t\t\t\tuni.saveVideoToPhotosAlbum({ //保存视频到系统相册。\r\n\t\t\t\t\t\t\tfilePath,\r\n\t\t\t\t\t\t\tsuccess: file => { //保存成功\r\n\t\t\t\t\t\t\t\t//删除本地缓存\r\n\t\t\t\t\t\t\t\tlet fileMgr = uni.getFileSystemManager();\r\n\t\t\t\t\t\t\t\tfileMgr.unlink({\r\n\t\t\t\t\t\t\t\t\tfilePath: wx.env.USER_DATA_PATH + '/' + fileName +\r\n\t\t\t\t\t\t\t\t\t\t'.mp4',\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\ttitle: \"下载成功\",\r\n\t\t\t\t\t\t\t\t\ticon: \"success\",\r\n\t\t\t\t\t\t\t\t\tmask: true\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\tfail: err => {\r\n\t\t\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\t\t\t//拒绝授权时显示\r\n\t\t\t\t\t\t\t\tif (err.errMsg === 'saveVideoToPhotosAlbum:fail auth deny') {\r\n\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\tcontent: '需要您授权保存相册',\r\n\t\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\t\tsuccess: data => {\r\n\t\t\t\t\t\t\t\t\t\t\t//打开权限设置\r\n\t\t\t\t\t\t\t\t\t\t\tuni.openSetting({\r\n\t\t\t\t\t\t\t\t\t\t\t\tsuccess: setting => {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (setting\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.authSetting[\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'scope.writePhotosAlbum'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t]) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontent: '获取权限成功,再次点击下载即可保存',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tontent: '获取权限失败,将无法保存到相册哦',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tshowCancel: false\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},\r\n\t\t\t\t\tfail: err => { //下载失败\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tif (err.errMsg == 'downloadFile:fail createDownloadTask:fail url not in domain list') {\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '服务器错误,请联系相关管理员',\r\n\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\tmask: true\r\n\t\t\t\t\t\t\t})\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\terror(e) { //视频播放出错触发函数\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\tcontent: e.target.errMsg,\r\n\t\t\t\t\tshowCancel: false\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.content {\r\n\t\tpadding: 0 20rpx;\r\n\t\tmin-height: 100%;\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\t\tbackground-color: #192033;\r\n\r\n\t\t.item {\r\n\t\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);\r\n\t\t\tpadding: 0 10rpx;\r\n\t\t\tborder-radius: 10rpx;\r\n\t\t\tbackground-color: #192033;\r\n\t\t\tpadding-bottom: 40rpx;\r\n\r\n\t\t\t.video {\r\n\t\t\t\theight: 350rpx;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t}\r\n\r\n\t\t\tview {\r\n\t\t\t\tmargin: 20rpx 0;\r\n\r\n\t\t\t\t.btnn {\r\n\t\t\t\t\tfloat: left;\r\n\t\t\t\t\twidth: 150rpx;\r\n\t\t\t\t\tbackground-color: #FFE600;\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tborder-radius: 30rpx;\r\n\t\t\t\t\tline-height: 30rpx;\r\n\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\tpadding: 10rpx 15rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.price {\r\n\t\t\t\t\tfloat: right;\r\n\t\t\t\t\tcolor: #DE6F26;\r\n\t\t\t\t\tfont-size: 22rpx;\r\n\r\n\t\t\t\t\ttext {\r\n\t\t\t\t\t\tfont-size: 32rpx;\r\n\t\t\t\t\t\tmargin-left: 5rpx;\r\n\t\t\t\t\t\tfont-weight: bold;\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</style>\n","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./vlogList.vue?vue&type=style&index=0&id=1f5bdab2&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631182329319\n var cssReload = require(\"C:/Users/admin/Desktop/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":""}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment