diff --git a/App.vue b/App.vue index 0a64ceb..c084788 100644 --- a/App.vue +++ b/App.vue @@ -16,14 +16,14 @@ checkLogin } from "./libs/login"; import { - + getUserInfo - + } from '@/api/user.js'; import { HTTP_REQUEST_URL } from './config/app'; - + import { getconfig, history @@ -79,17 +79,29 @@ imgColor: '', ...uni.getStorageSync('GLOBAL_DATA') || {} }, - onLaunch: function(option) { + onLaunch(option) { + // console.log(option,'1111111111') + uni.sendHostEvent('log', option, (ret) => { + //发送消息成功回调 + console.log('消息成功' + JSON.stringify(option)); + + }); + this.globalData.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'; this.globalData.uid = this.$store.state.app.uid; let appkey = uni.getStorage({ key: 'launchFlag' }) - + + + if (option.referrerInfo?.extraData?.uniMP) { uni.setStorageSync('uniMP', option.referrerInfo?.extraData?.uniMP); - uni.setStorageSync('APP_token', option.referrerInfo?.extraData?.token); - + // uni.setStorageSync('APP_token', option.referrerInfo?.extraData?.token); + this.$store.commit("LOGIN", { + 'token': option.referrerInfo?.extraData?.token, + 'time': 604800 + }); } // #ifdef APP-PLUS diff --git a/pages.json b/pages.json index fae6c79..b83f2e4 100644 --- a/pages.json +++ b/pages.json @@ -1280,75 +1280,6 @@ } ] }, - { - "root": "pages/plantGrass", - "name": "plant_grass", - "pages": [{ - "path": "plant_detail/index", - "style": { - "navigationBarTitleText": "内容详情", - "navigationStyle": "custom", - "enablePullDownRefresh": false - } - }, - { - "path": "plant_release/index", - "style": { - "navigationBarTitleText": "内容发布", - "enablePullDownRefresh": false - } - }, - { - "path": "plant_show/index", - "style": { - "navigationBarTitleText": "种草秀" - } - }, - { - "path": "plant_topic/index", - "style": { - "navigationBarTitleText": "话题筛选" - } - }, - { - "path": "plant_search/index", - "style": { - "navigationBarTitleText": "搜索" - } - }, - { - "path": "plant_search_list/index", - "style": { - "navigationBarTitleText": "搜索结果" - } - }, - { - "path": "plant_featured/index", - "style": { - "navigationBarTitleText": "为你精选" - } - }, - { - "path": "plant_user/index", - "style": { - "navigationBarTitleText": "个人主页" - } - }, - { - "path": "plant_user_attention/index", - "style": { - "navigationBarTitleText": "我的关注" - } - }, - { - "path": "plant_user_fans/index", - "style": { - "navigationBarTitleText": "我的粉丝" - } - } - - ] - }, { "root": "pages/columnGoods", "name": "columnGoods", @@ -1423,153 +1354,6 @@ } ] }, - { - "root": "pages/activity", - "name": "activity", - "pages": [{ - "path": "goods_seckill/index", - "style": { - "navigationBarTitleText": "限时秒杀", - "navigationBarBackgroundColor": "#F2F2F2" - } - }, - { - "path": "goods_seckill_details/index", - "style": { - "navigationBarTitleText": "秒杀详情", - "navigationStyle": "custom" - // #ifdef MP || APP-PLUS - , - "navigationBarTextStyle": "#fff" - // #endif - } - }, - { - "path": "liveBroadcast/index", - "style": { - "navigationBarTitleText": "直播列表", - "navigationBarBackgroundColor": "#F2F2F2" - } - }, - { - "path": "presell/index", - "style": { - "navigationBarTitleText": "预售列表" - // #ifdef MP || APP-PLUS - , - "navigationBarBackgroundColor": "#F2F2F2" - // #endif - } - }, - { - "path": "presell_details/index", - "style": { - "navigationStyle": "custom" - // #ifdef MP || APP-PLUS - , - "navigationBarTextStyle": "#fff" - // #endif - } - }, - { - "path": "combination/index", - "style": { - "navigationBarTitleText": "拼团" - // #ifdef MP || APP-PLUS - , - "navigationBarBackgroundColor": "#F2F2F2" - // #endif - } - }, - { - "path": "combination_details/index", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "拼团详情", - "navigationBarBackgroundColor": "#F2F2F2" - } - }, - { - "path": "combination_status/index", - "style": { - "navigationBarTitleText": "拼团状态" - } - }, - { - "path": "assist/index", - "style": { - "navigationBarTitleText": "助力列表", - "navigationBarBackgroundColor": "#F2F2F2" - } - }, - { - "path": "assist_detail/index", - "style": { - "navigationBarTitleText": "发起助力" - } - }, - { - "path": "assist_record/index", - "style": { - "navigationBarTitleText": "助力记录" - } - }, - { - "path": "topic/index", - "style": { - "navigationBarTitleText": "活动专场" - } - }, - { - "path": "topic_detail/index", - "style": { - "navigationBarTitleText": "主题活动" - } - }, - { - "path": "lifeService/index", - "style": { - "navigationBarTitleText": "本地服务" - } - }, - { - "path": "collect_coupons/index", - "style": { - "navigationBarTitleText": "领劵中心" - } - }, - { - "path": "rank/index", - "style": { - "navigationBarTitleText": "热卖排行" - } - } - ] - }, - { - "root": "pages/short_video", - "name": "shortVideo", - "pages": [{ - "navigationBarTitleText": "短视频", - "enablePullDownRefresh": false, - //#ifdef APP - "path": "appSwiper/index", - //#endif - //#ifndef APP - "path": "nvueSwiper/index", - //#endif - "style": { - "navigationBarTitleText": "社区视频", - "navigationStyle": "custom", - "app-plus": { - "titleNView": false, - - "bounce": "none" - } - } - - }] - }, { "root": "pages/annex", "name": "annx", diff --git a/pages/activity/assist/index.vue b/pages/activity/assist/index.vue deleted file mode 100644 index fabff7c..0000000 --- a/pages/activity/assist/index.vue +++ /dev/null @@ -1,305 +0,0 @@ - - - - - diff --git a/pages/activity/assist_detail/index.vue b/pages/activity/assist_detail/index.vue deleted file mode 100644 index ad283bc..0000000 --- a/pages/activity/assist_detail/index.vue +++ /dev/null @@ -1,1158 +0,0 @@ - - - - - diff --git a/pages/activity/assist_record/index.vue b/pages/activity/assist_record/index.vue deleted file mode 100644 index c44a43e..0000000 --- a/pages/activity/assist_record/index.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - diff --git a/pages/activity/collect_coupons/index.vue b/pages/activity/collect_coupons/index.vue deleted file mode 100644 index 18b6c4f..0000000 --- a/pages/activity/collect_coupons/index.vue +++ /dev/null @@ -1,371 +0,0 @@ - - - - - diff --git a/pages/activity/combination/index.vue b/pages/activity/combination/index.vue deleted file mode 100644 index 081f39a..0000000 --- a/pages/activity/combination/index.vue +++ /dev/null @@ -1,475 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/activity/combination_details/index.vue b/pages/activity/combination_details/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/pages/activity/combination_poster/index.vue b/pages/activity/combination_poster/index.vue deleted file mode 100644 index 8870898..0000000 --- a/pages/activity/combination_poster/index.vue +++ /dev/null @@ -1,362 +0,0 @@ - - - - - diff --git a/pages/activity/combination_status/index.vue b/pages/activity/combination_status/index.vue deleted file mode 100644 index cb099a8..0000000 --- a/pages/activity/combination_status/index.vue +++ /dev/null @@ -1,949 +0,0 @@ - - - diff --git a/pages/activity/goods_seckill/index.vue b/pages/activity/goods_seckill/index.vue deleted file mode 100644 index 73f0b91..0000000 --- a/pages/activity/goods_seckill/index.vue +++ /dev/null @@ -1,429 +0,0 @@ - - - - - diff --git a/pages/activity/goods_seckill_details/index.vue b/pages/activity/goods_seckill_details/index.vue deleted file mode 100644 index 73119f0..0000000 --- a/pages/activity/goods_seckill_details/index.vue +++ /dev/null @@ -1,1943 +0,0 @@ - - - - - diff --git a/pages/activity/lifeService/index.vue b/pages/activity/lifeService/index.vue deleted file mode 100644 index ec938a5..0000000 --- a/pages/activity/lifeService/index.vue +++ /dev/null @@ -1,668 +0,0 @@ - - - - diff --git a/pages/activity/liveBroadcast/index.vue b/pages/activity/liveBroadcast/index.vue deleted file mode 100644 index a9eb619..0000000 --- a/pages/activity/liveBroadcast/index.vue +++ /dev/null @@ -1,295 +0,0 @@ - - - - - diff --git a/pages/activity/presell/index.vue b/pages/activity/presell/index.vue deleted file mode 100644 index 7ec4933..0000000 --- a/pages/activity/presell/index.vue +++ /dev/null @@ -1,421 +0,0 @@ - - - - - diff --git a/pages/activity/presell_details/index.vue b/pages/activity/presell_details/index.vue deleted file mode 100644 index f79f205..0000000 --- a/pages/activity/presell_details/index.vue +++ /dev/null @@ -1,2339 +0,0 @@ - - - - - diff --git a/pages/activity/rank/index.vue b/pages/activity/rank/index.vue deleted file mode 100644 index a06ba34..0000000 --- a/pages/activity/rank/index.vue +++ /dev/null @@ -1,322 +0,0 @@ - - - - - diff --git a/pages/activity/static/images/no_product.png b/pages/activity/static/images/no_product.png deleted file mode 100644 index 19a208d..0000000 Binary files a/pages/activity/static/images/no_product.png and /dev/null differ diff --git a/pages/activity/static/images/poster-bag.png b/pages/activity/static/images/poster-bag.png deleted file mode 100644 index c988305..0000000 Binary files a/pages/activity/static/images/poster-bag.png and /dev/null differ diff --git a/pages/activity/static/images/presell_text.png b/pages/activity/static/images/presell_text.png deleted file mode 100644 index 561710f..0000000 Binary files a/pages/activity/static/images/presell_text.png and /dev/null differ diff --git a/pages/activity/static/images/rank.png b/pages/activity/static/images/rank.png deleted file mode 100644 index 4aaef2a..0000000 Binary files a/pages/activity/static/images/rank.png and /dev/null differ diff --git a/pages/activity/static/images/rank_cate.png b/pages/activity/static/images/rank_cate.png deleted file mode 100644 index fb2af94..0000000 Binary files a/pages/activity/static/images/rank_cate.png and /dev/null differ diff --git a/pages/activity/static/images/rank_num.png b/pages/activity/static/images/rank_num.png deleted file mode 100644 index 0d98a69..0000000 Binary files a/pages/activity/static/images/rank_num.png and /dev/null differ diff --git a/pages/activity/static/images/vacancy.png b/pages/activity/static/images/vacancy.png deleted file mode 100644 index fef8aff..0000000 Binary files a/pages/activity/static/images/vacancy.png and /dev/null differ diff --git a/pages/activity/topic/index.vue b/pages/activity/topic/index.vue deleted file mode 100644 index 9b137f2..0000000 --- a/pages/activity/topic/index.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - diff --git a/pages/activity/topic_detail/index.vue b/pages/activity/topic_detail/index.vue deleted file mode 100644 index 6807ee1..0000000 --- a/pages/activity/topic_detail/index.vue +++ /dev/null @@ -1,455 +0,0 @@ - - - - - diff --git a/pages/admin/goods_details/index.vue b/pages/admin/goods_details/index.vue index 9fc4b31..f0c5d5f 100644 --- a/pages/admin/goods_details/index.vue +++ b/pages/admin/goods_details/index.vue @@ -761,7 +761,7 @@ display: inline-block; width: 90rpx; height: 30rpx; - background: url(~pages/activity/static/images/presell_text.png); + background: url('@/static/images/presell_text.png'); background-size: 100%; color: #FD6523; font-size: 22rpx; diff --git a/pages/admin/orderList/index.vue b/pages/admin/orderList/index.vue index 399c417..7a44a64 100644 --- a/pages/admin/orderList/index.vue +++ b/pages/admin/orderList/index.vue @@ -291,6 +291,7 @@ this.where.status = option.types this.current = ""; this.merId = option.merId; + this.getIndex(); }, methods: { @@ -329,7 +330,9 @@ // 获取数据 getIndex() { + let that = this; + console.log(that.merId) if (that.loading || that.loaded) return; that.loading = true; if (that.where.status == 6) { diff --git a/pages/index/component/hotRanking.vue b/pages/index/component/hotRanking.vue index 9f60f14..c3a00b4 100644 --- a/pages/index/component/hotRanking.vue +++ b/pages/index/component/hotRanking.vue @@ -214,7 +214,7 @@ display: inline-block; width: 22rpx; height: 30rpx; - background-image: url('../../activity/static/images/rank_cate.png'); + background-image: url('@/static/images/rank_cate.png'); background-repeat: no-repeat; background-size: 100% 100%; position: absolute; @@ -263,7 +263,7 @@ font-weight: bold; font-size: 32rpx; color: #CE8F21;; - background-image: url('../../activity/static/images/rank.png'); + background-image: url('@/static/images/rank.png'); background-size: cover; font-family: '黑体'; } @@ -290,7 +290,7 @@ font-size: 16rpx; font-weight: bold; color: #CE8F21;; - background-image: url('../../activity/static/images/rank.png'); + background-image: url('@/static/images/rank.png'); background-size: cover; font-family: '黑体'; } diff --git a/pages/index/index.vue b/pages/index/index.vue index 71e3f50..0abc14f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -527,33 +527,33 @@ switch (item.type) { case 1: uni.navigateTo({ - url: '/pages/admin/orderList/index?mer_id=' + this.userInfoData.service.mer_id + + url: '/pages/admin/orderList/index?merId=' + this.userInfoData.service.mer_id + '&types=' + item.type }) break; case 2: uni.navigateTo({ - url: '/pages/admin/orderList/index?mer_id=' + this.userInfoData.service.mer_id + + url: '/pages/admin/orderList/index?merId=' + this.userInfoData.service.mer_id + '&types=' + item.type }) break; case 3: uni.navigateTo({ - url: '/pages/admin/orderList/index?mer_id=' + this.userInfoData.service.mer_id + + url: '/pages/admin/orderList/index?merId=' + this.userInfoData.service.mer_id + '&types=' + item.type }) break; case 4: uni.navigateTo({ - url: '/pages/admin/orderList/index?mer_id=' + this.userInfoData.service.mer_id + + url: '/pages/admin/orderList/index?merId=' + this.userInfoData.service.mer_id + '&types=' + item.type }) break; case 6: uni.navigateTo({ - url: '/pages/admin/orderList/index?mer_id=' + this.userInfoData.service.mer_id + + url: '/pages/admin/orderList/index?merId=' + this.userInfoData.service.mer_id + '&types=' + item.type }) diff --git a/pages/moreProject/moreProject.vue b/pages/moreProject/moreProject.vue index 3334c48..421d4e0 100644 --- a/pages/moreProject/moreProject.vue +++ b/pages/moreProject/moreProject.vue @@ -1,6 +1,6 @@ - - - - \ No newline at end of file diff --git a/pages/plantGrass/plant_featured/index.vue b/pages/plantGrass/plant_featured/index.vue deleted file mode 100644 index 7be5557..0000000 --- a/pages/plantGrass/plant_featured/index.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_release/index.vue b/pages/plantGrass/plant_release/index.vue deleted file mode 100644 index 13b26b8..0000000 --- a/pages/plantGrass/plant_release/index.vue +++ /dev/null @@ -1,818 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_search/index.vue b/pages/plantGrass/plant_search/index.vue deleted file mode 100644 index ee31038..0000000 --- a/pages/plantGrass/plant_search/index.vue +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - diff --git a/pages/plantGrass/plant_search_list/index.vue b/pages/plantGrass/plant_search_list/index.vue deleted file mode 100644 index 6645dc5..0000000 --- a/pages/plantGrass/plant_search_list/index.vue +++ /dev/null @@ -1,202 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_show/index.vue b/pages/plantGrass/plant_show/index.vue deleted file mode 100644 index 209768d..0000000 --- a/pages/plantGrass/plant_show/index.vue +++ /dev/null @@ -1,217 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_topic/index.vue b/pages/plantGrass/plant_topic/index.vue deleted file mode 100644 index 13e5f01..0000000 --- a/pages/plantGrass/plant_topic/index.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - \ No newline at end of file diff --git a/pages/plantGrass/plant_user/index.vue b/pages/plantGrass/plant_user/index.vue deleted file mode 100644 index c0a2b21..0000000 --- a/pages/plantGrass/plant_user/index.vue +++ /dev/null @@ -1,394 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_user_attention/index.vue b/pages/plantGrass/plant_user_attention/index.vue deleted file mode 100644 index ff43f86..0000000 --- a/pages/plantGrass/plant_user_attention/index.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - - diff --git a/pages/plantGrass/plant_user_fans/index.vue b/pages/plantGrass/plant_user_fans/index.vue deleted file mode 100644 index 1d76f8a..0000000 --- a/pages/plantGrass/plant_user_fans/index.vue +++ /dev/null @@ -1,179 +0,0 @@ - - - - - diff --git a/pages/plantGrass/static/images/no-topic.png b/pages/plantGrass/static/images/no-topic.png deleted file mode 100644 index dbcffb5..0000000 Binary files a/pages/plantGrass/static/images/no-topic.png and /dev/null differ diff --git a/pages/plantGrass/static/images/no_attention.png b/pages/plantGrass/static/images/no_attention.png deleted file mode 100644 index 2e4d18e..0000000 Binary files a/pages/plantGrass/static/images/no_attention.png and /dev/null differ diff --git a/pages/plantGrass/static/images/no_content.png b/pages/plantGrass/static/images/no_content.png deleted file mode 100644 index 07fb3f7..0000000 Binary files a/pages/plantGrass/static/images/no_content.png and /dev/null differ diff --git a/pages/plantGrass/static/images/no_fans.png b/pages/plantGrass/static/images/no_fans.png deleted file mode 100644 index e3f1c70..0000000 Binary files a/pages/plantGrass/static/images/no_fans.png and /dev/null differ diff --git a/pages/plantGrass/static/images/plant_bg.jpg b/pages/plantGrass/static/images/plant_bg.jpg deleted file mode 100644 index 5811735..0000000 Binary files a/pages/plantGrass/static/images/plant_bg.jpg and /dev/null differ diff --git a/pages/plantGrass/static/images/video_bg.png b/pages/plantGrass/static/images/video_bg.png deleted file mode 100644 index 8a2edd4..0000000 Binary files a/pages/plantGrass/static/images/video_bg.png and /dev/null differ diff --git a/pages/plant_grass/index.vue b/pages/plant_grass/index.vue deleted file mode 100644 index ede6a4e..0000000 --- a/pages/plant_grass/index.vue +++ /dev/null @@ -1,1137 +0,0 @@ - - - - diff --git a/pages/plant_release/index.vue b/pages/plant_release/index.vue deleted file mode 100644 index bad9ae3..0000000 --- a/pages/plant_release/index.vue +++ /dev/null @@ -1,1025 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/product/basicSet.vue b/pages/product/basicSet.vue index 1ee001b..55140d5 100644 --- a/pages/product/basicSet.vue +++ b/pages/product/basicSet.vue @@ -7,8 +7,10 @@ 上传店铺背景图 + + @click="delImg(2)"> @@ -72,9 +74,11 @@ 配送方式: - - 到店自提(加入供应链) - 快递配送 + + 到店自提(加入供应链) + 快递配送 @@ -108,10 +112,12 @@ 店铺营业时间: - {{ mer_take_time[0] ? mer_take_time[0] : '选择开始时间' }} + {{ mer_take_time[0] ? mer_take_time[0] : '选择开始时间' }} + - {{ mer_take_time[1] ? mer_take_time[1] : '选择结束时间' }} + {{ mer_take_time[1] ? mer_take_time[1] : '选择结束时间' }} + @@ -132,8 +138,8 @@ 客服电话: - - + *利率结算范围为:0.01 ~ 0.1 利率单位为:% - + @@ -61,12 +61,12 @@ src="../static/images/product_specification.png"> 规格模板 - + @@ -125,9 +125,9 @@ - + 线下入库 @@ -201,6 +201,10 @@ postImport } from "@/api/product"; import Loading from '@/components/Loading/index.vue'; + import { + merstreet, + getUserInfo + } from '@/api/user.js'; import { navigateTo, navigateBack, @@ -251,8 +255,9 @@ } }, onLoad(options) { - this.mer_id = options.mer_id; - this.getList(this.mer_id, true); + // this.mer_id = options.mer_id; + this.getUserInfo() + }, onPullDownRefresh() { this.where.page = 1 @@ -264,13 +269,30 @@ }, onReachBottom() { // console.log(this.status, '222222222') - if (this.status == 'nomore') return; + if (this.status == 'nomore') return; this.status = 'loading'; this.where.page = ++this.where.page; this.getList(this.mer_id, false); }, methods: { + /** + * 获取个人用户信息 + */ + getUserInfo() { + getUserInfo().then(res => { + + + this.mer_id = res.data.service.mer_id; + + this.getList(res.data.service.mer_id, true); + + + }).catch(res => { + console.log(res) + }) + + }, menuActiona(item, index) { if (item.is_good) { this.options = [{ @@ -282,6 +304,7 @@ value: '2', text: '预览' }, + ] } else { this.options = [{ @@ -301,9 +324,6 @@ text: '删除' }) } - - - this.ll++ // console.log(this.ll) if (this.ll % 2 == 0) { @@ -492,7 +512,6 @@ that.loading = false; that.loaded = res.data.list.length < that.where.limit; that.productList.push.apply(that.productList, res.data.list); - that.where.page = that.where.page + 1; }, @@ -558,6 +577,7 @@ title: '下架成功', icon: 'none' }) + that.getList(this.mer_id,false) } else if (res.cancel) { // console.log('用户点击取消'); } @@ -578,6 +598,7 @@ icon: 'success' }, () => { that.$set(item, 'is_show', item.is_show == 0 ? 1 : 0); + that.getList(this.mer_id,false) }); }).catch(err => { return that.$util.Tips({ diff --git a/pages/short_video/appSwiper/index.nvue b/pages/short_video/appSwiper/index.nvue deleted file mode 100644 index 6a82f59..0000000 --- a/pages/short_video/appSwiper/index.nvue +++ /dev/null @@ -1,1744 +0,0 @@ - - - \ No newline at end of file diff --git a/pages/short_video/components/douyin-scrollview/douyin-scrollview.nvue b/pages/short_video/components/douyin-scrollview/douyin-scrollview.nvue deleted file mode 100644 index b918f45..0000000 --- a/pages/short_video/components/douyin-scrollview/douyin-scrollview.nvue +++ /dev/null @@ -1,498 +0,0 @@ - - - - - diff --git a/pages/short_video/components/index/aixining.png b/pages/short_video/components/index/aixining.png deleted file mode 100644 index 99404d3..0000000 Binary files a/pages/short_video/components/index/aixining.png and /dev/null differ diff --git a/pages/short_video/components/index/close.png b/pages/short_video/components/index/close.png deleted file mode 100644 index 8a09a82..0000000 Binary files a/pages/short_video/components/index/close.png and /dev/null differ diff --git a/pages/short_video/components/index/collection.png b/pages/short_video/components/index/collection.png deleted file mode 100644 index 640e390..0000000 Binary files a/pages/short_video/components/index/collection.png and /dev/null differ diff --git a/pages/short_video/components/index/evaluate.png b/pages/short_video/components/index/evaluate.png deleted file mode 100644 index 4e9320f..0000000 Binary files a/pages/short_video/components/index/evaluate.png and /dev/null differ diff --git a/pages/short_video/components/index/icon-back.png b/pages/short_video/components/index/icon-back.png deleted file mode 100644 index f1a635f..0000000 Binary files a/pages/short_video/components/index/icon-back.png and /dev/null differ diff --git a/pages/short_video/components/index/logins.gif b/pages/short_video/components/index/logins.gif deleted file mode 100644 index 559e4c0..0000000 Binary files a/pages/short_video/components/index/logins.gif and /dev/null differ diff --git a/pages/short_video/components/index/pause.png b/pages/short_video/components/index/pause.png deleted file mode 100644 index dda7762..0000000 Binary files a/pages/short_video/components/index/pause.png and /dev/null differ diff --git a/pages/short_video/components/index/play.png b/pages/short_video/components/index/play.png deleted file mode 100644 index a53edd2..0000000 Binary files a/pages/short_video/components/index/play.png and /dev/null differ diff --git a/pages/short_video/components/index/share-fill.png b/pages/short_video/components/index/share-fill.png deleted file mode 100644 index b9a9771..0000000 Binary files a/pages/short_video/components/index/share-fill.png and /dev/null differ diff --git a/pages/short_video/components/index/video-delete.png b/pages/short_video/components/index/video-delete.png deleted file mode 100644 index 71727c9..0000000 Binary files a/pages/short_video/components/index/video-delete.png and /dev/null differ diff --git a/pages/short_video/components/index/video-edit.png b/pages/short_video/components/index/video-edit.png deleted file mode 100644 index 0b14903..0000000 Binary files a/pages/short_video/components/index/video-edit.png and /dev/null differ diff --git a/pages/short_video/components/index/video-failed.png b/pages/short_video/components/index/video-failed.png deleted file mode 100644 index f93c539..0000000 Binary files a/pages/short_video/components/index/video-failed.png and /dev/null differ diff --git a/pages/short_video/components/index/video-review.png b/pages/short_video/components/index/video-review.png deleted file mode 100644 index f87b36b..0000000 Binary files a/pages/short_video/components/index/video-review.png and /dev/null differ diff --git a/pages/short_video/components/index/we-chat.png b/pages/short_video/components/index/we-chat.png deleted file mode 100644 index 6951e7b..0000000 Binary files a/pages/short_video/components/index/we-chat.png and /dev/null differ diff --git a/pages/short_video/components/index/xin-2.png b/pages/short_video/components/index/xin-2.png deleted file mode 100644 index 6ee5ec7..0000000 Binary files a/pages/short_video/components/index/xin-2.png and /dev/null differ diff --git a/pages/short_video/components/index/xin.png b/pages/short_video/components/index/xin.png deleted file mode 100644 index 1a66f8c..0000000 Binary files a/pages/short_video/components/index/xin.png and /dev/null differ diff --git a/pages/short_video/components/index/zan01.png b/pages/short_video/components/index/zan01.png deleted file mode 100644 index dba7d64..0000000 Binary files a/pages/short_video/components/index/zan01.png and /dev/null differ diff --git a/pages/short_video/components/index/zan02.png b/pages/short_video/components/index/zan02.png deleted file mode 100644 index 0646a89..0000000 Binary files a/pages/short_video/components/index/zan02.png and /dev/null differ diff --git a/pages/short_video/components/mentioned/mentioned.vue b/pages/short_video/components/mentioned/mentioned.vue deleted file mode 100644 index 6bc365c..0000000 --- a/pages/short_video/components/mentioned/mentioned.vue +++ /dev/null @@ -1,185 +0,0 @@ - - - - - diff --git a/pages/short_video/nvueSwiper/index.nvue b/pages/short_video/nvueSwiper/index.nvue deleted file mode 100644 index f9b28e3..0000000 --- a/pages/short_video/nvueSwiper/index.nvue +++ /dev/null @@ -1,1966 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/short_video/static/img/index/close.png b/pages/short_video/static/img/index/close.png deleted file mode 100644 index 8a09a82..0000000 Binary files a/pages/short_video/static/img/index/close.png and /dev/null differ diff --git a/pages/short_video/static/img/index/collection.png b/pages/short_video/static/img/index/collection.png deleted file mode 100644 index 640e390..0000000 Binary files a/pages/short_video/static/img/index/collection.png and /dev/null differ diff --git a/pages/short_video/static/img/index/evaluate.png b/pages/short_video/static/img/index/evaluate.png deleted file mode 100644 index 4e9320f..0000000 Binary files a/pages/short_video/static/img/index/evaluate.png and /dev/null differ diff --git a/pages/short_video/static/img/index/icon-back.png b/pages/short_video/static/img/index/icon-back.png deleted file mode 100644 index f1a635f..0000000 Binary files a/pages/short_video/static/img/index/icon-back.png and /dev/null differ diff --git a/pages/short_video/static/img/index/logins.gif b/pages/short_video/static/img/index/logins.gif deleted file mode 100644 index 559e4c0..0000000 Binary files a/pages/short_video/static/img/index/logins.gif and /dev/null differ diff --git a/pages/short_video/static/img/index/pause.png b/pages/short_video/static/img/index/pause.png deleted file mode 100644 index dda7762..0000000 Binary files a/pages/short_video/static/img/index/pause.png and /dev/null differ diff --git a/pages/short_video/static/img/index/play.png b/pages/short_video/static/img/index/play.png deleted file mode 100644 index a53edd2..0000000 Binary files a/pages/short_video/static/img/index/play.png and /dev/null differ diff --git a/pages/short_video/static/img/index/posterbackgd.png b/pages/short_video/static/img/index/posterbackgd.png deleted file mode 100644 index 99e1f1c..0000000 Binary files a/pages/short_video/static/img/index/posterbackgd.png and /dev/null differ diff --git a/pages/short_video/static/img/index/share-fill.png b/pages/short_video/static/img/index/share-fill.png deleted file mode 100644 index b9a9771..0000000 Binary files a/pages/short_video/static/img/index/share-fill.png and /dev/null differ diff --git a/pages/short_video/static/img/index/video-delete.png b/pages/short_video/static/img/index/video-delete.png deleted file mode 100644 index 71727c9..0000000 Binary files a/pages/short_video/static/img/index/video-delete.png and /dev/null differ diff --git a/pages/short_video/static/img/index/video-edit.png b/pages/short_video/static/img/index/video-edit.png deleted file mode 100644 index 0b14903..0000000 Binary files a/pages/short_video/static/img/index/video-edit.png and /dev/null differ diff --git a/pages/short_video/static/img/index/video-failed.png b/pages/short_video/static/img/index/video-failed.png deleted file mode 100644 index f93c539..0000000 Binary files a/pages/short_video/static/img/index/video-failed.png and /dev/null differ diff --git a/pages/short_video/static/img/index/video-review.png b/pages/short_video/static/img/index/video-review.png deleted file mode 100644 index f87b36b..0000000 Binary files a/pages/short_video/static/img/index/video-review.png and /dev/null differ diff --git a/pages/short_video/static/img/index/we-chat.png b/pages/short_video/static/img/index/we-chat.png deleted file mode 100644 index 6951e7b..0000000 Binary files a/pages/short_video/static/img/index/we-chat.png and /dev/null differ diff --git a/pages/short_video/static/img/index/xin-2.png b/pages/short_video/static/img/index/xin-2.png deleted file mode 100644 index 6ee5ec7..0000000 Binary files a/pages/short_video/static/img/index/xin-2.png and /dev/null differ diff --git a/pages/short_video/static/img/index/xin.png b/pages/short_video/static/img/index/xin.png deleted file mode 100644 index 1a66f8c..0000000 Binary files a/pages/short_video/static/img/index/xin.png and /dev/null differ diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue deleted file mode 100644 index 0838c02..0000000 --- a/pages/supply_chains/supply_chains.vue +++ /dev/null @@ -1,1027 +0,0 @@ - - - - - \ No newline at end of file diff --git a/static/images/diaohuo.png b/static/images/diaohuo.png deleted file mode 100644 index 132b867..0000000 Binary files a/static/images/diaohuo.png and /dev/null differ diff --git a/utils/uniMPevent.js b/utils/uniMPevent.js index 19262b2..83795db 100644 --- a/utils/uniMPevent.js +++ b/utils/uniMPevent.js @@ -1,54 +1,62 @@ const mp = uni.requireNativePlugin('uniMP'); import { - uniMPgetLocation, - test + uniMPgetLocation, + test } from "@/utils/uniMPfunction.js" export const initEvent = () => { - mp.onUniMPEventReceive(async (ret) => { - console.log('小程序事件: ', ret); - if (ret.event == 'closeApp') { - mp.closeUniMP(ret.fromAppid, (ret) => { - console.log('closeUniMP: ' + JSON.stringify(ret)); - }); - } - if (ret.event == 'getLocation') { - try { - console.log('获取定位'); - let res = await uniMPgetLocation(); - console.log(res); - // plus.geolocation.getCurrentPosition(function(position) { - // console.log('经度:' + position.coords.longitude); - // console.log('纬度:' + position.coords.latitude); - // // that.markers[1].latitude = position.coords.longitude; - // // that.markers[1].longitude = position.coords.longitude; - // mp.sendUniMPEvent( - // ret.fromAppid, - // 'getLocation', {...position.coords}, - // (ret) => { - // console.log('Host sendEvent: ' + JSON.stringify(ret)); - // }); - // }, function(error) { - // console.error('获取位置失败:', error.message); - // }, {provider:'gps'}); - mp.sendUniMPEvent( - ret.fromAppid, - 'getLocation', {...res}, - (ret) => { - console.log('Host sendEvent: ' + JSON.stringify(ret)); - }); - } catch (e) { - console.log(e); - } - } - if (ret.event == 'test') { - console.log('测试'); - mp.sendUniMPEvent( - ret.fromAppid, - 'test', { 'key': 'value', 'name': 'data' }, - (ret) => { - console.log('Host sendEvent: ' + JSON.stringify(ret)); - }); - } - }); + mp.onUniMPEventReceive(async (ret) => { + console.log('小程序事件: ', ret); + if (ret.event == 'closeApp') { + mp.closeUniMP(ret.fromAppid, (ret) => { + console.log('closeUniMP: ' + JSON.stringify(ret)); + }); + } + if (ret.event == 'getLocation') { + try { + console.log('获取定位'); + let res = await uniMPgetLocation(); + console.log(res); + // plus.geolocation.getCurrentPosition(function(position) { + // console.log('经度:' + position.coords.longitude); + // console.log('纬度:' + position.coords.latitude); + // // that.markers[1].latitude = position.coords.longitude; + // // that.markers[1].longitude = position.coords.longitude; + // mp.sendUniMPEvent( + // ret.fromAppid, + // 'getLocation', {...position.coords}, + // (ret) => { + // console.log('Host sendEvent: ' + JSON.stringify(ret)); + // }); + // }, function(error) { + // console.error('获取位置失败:', error.message); + // }, {provider:'gps'}); + mp.sendUniMPEvent( + ret.fromAppid, + 'getLocation', { + ...res + }, + (ret) => { + console.log('Host sendEvent: ' + JSON.stringify(ret)); + }); + } catch (e) { + console.log(e); + } + } + if (ret.event == 'test') { + console.log('测试'); + mp.sendUniMPEvent( + ret.fromAppid, + 'test', { + 'key': 'value', + 'name': 'data' + }, + (ret) => { + console.log('Host sendEvent: ' + JSON.stringify(ret)); + }); + } + if (ret.event == 'log') { + console.log('收到小程序事件: ' + JSON.stringify(ret)); + } + }); } \ No newline at end of file