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
16 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?7379","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?4111","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?1a30","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?2b0f","uni-app:///pages/user/follow.vue","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?7d18","webpack:///C:/Users/liudan/Desktop/git/huajucanyin/pages/user/follow.vue?4a2d"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","dataList","reload","current_page","last_page","status","contentText","contentdown","contentrefresh","contentnomore","onLoad","onPullDownRefresh","onReachBottom","methods","loadData","url","success","uni","handleFollow","id","type","concern","handleUser"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,eAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;AACc;;;AAGnE;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;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,qMAEN;AACP,KAAK;AACL;AACA,aAAa,sNAEN;AACP,KAAK;AACL;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7DA;AAAA;AAAA;AAAA;AAA6mB,CAAgB,0nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC8CjoB;EACAC;IACA;MACAC;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;EACAC;IACA;IACA;MACA;IACA;MACA;MACA;MACA;MACA;IACA;EACA;EACAC;IACAC;MAAA;MAAA;QAAA;UAAA;YAAA;cAAA;gBACA;kBACAC;kBACAC;oBACAC;oBACA;oBACA;oBACA;oBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACA;kBACAlB;kBACA;oBACAe;oBACAf;sBACAmB;sBACAC;oBACA;oBACAJ;sBACA;sBACA;wBACAK;sBACA;wBACAA;sBACA;sBACA;wBACAA;sBACA;sBAEArB;oBACA;kBACA;gBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAsB;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC5HA;AAAA;AAAA;AAAA;AAAgqC,CAAgB,inCAAG,EAAC,C;;;;;;;;;;;ACAprC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/follow.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/follow.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./follow.vue?vue&type=template&id=2f2f240c&\"\nvar renderjs\nimport script from \"./follow.vue?vue&type=script&lang=js&\"\nexport * from \"./follow.vue?vue&type=script&lang=js&\"\nimport style0 from \"./follow.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../k/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/user/follow.vue\"\nexport default component.exports","export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./follow.vue?vue&type=template&id=2f2f240c&\"","var components\ntry {\n components = {\n wanlEmpty: function () {\n return import(\n /* webpackChunkName: \"components/wanl-empty/wanl-empty\" */ \"@/components/wanl-empty/wanl-empty.vue\"\n )\n },\n uniLoadMore: function () {\n return import(\n /* webpackChunkName: \"components/uni-load-more/uni-load-more\" */ \"@/components/uni-load-more/uni-load-more.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 var g0 = _vm.dataList.length === 0 && _vm.status !== \"loading\"\n var g1 = _vm.dataList.length\n var l0 =\n g1 > 0\n ? _vm.__map(_vm.dataList, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var g2 = _vm.$wanlshop.oss(item.shop.avatar, 88, 88)\n return {\n $orig: $orig,\n g2: g2,\n }\n })\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n l0: l0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./follow.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./follow.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"wanlfind-follow-container\">\r\n\t\t<view class=\"edgeInsetTop\"></view>\r\n\t\t<wanl-empty src=\"find_default3x\" text=\"没有任何关注马上关注去吧 !\" v-if=\"dataList.length === 0 && status !== 'loading'\"/>\r\n\t\t<view v-if=\"dataList.length > 0\" class=\"wanlfind-follow-container__list\">\r\n\t\t\t<view class=\"item padding-bj margin-bj bg-white radius-bock\" v-for=\"(item, index) in dataList\"\r\n\t\t\t\t:key=\"item.id\" @click=\"handleUser(item.user_no)\">\r\n\t\t\t\t<view class=\"cu-avatar margin-right-bj round\"\r\n\t\t\t\t\t:style=\"{backgroundImage: `url(${$wanlshop.oss(item.shop.avatar, 88, 88)})`}\"></view>\r\n\t\t\t\t<view class=\"subject\">\r\n\t\t\t\t\t<view class=\"info\">\r\n\t\t\t\t\t\t<view v-if=\"item.shop.isself == 1\">\r\n\t\t\t\t\t\t\t<view class=\"cu-tag sm wanl-bg-redorange radius margin-right-xs\">自营</view>\r\n\t\t\t\t\t\t\t{{item.shop.shopname}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"text-cut-2 margin-bottom-xs\" v-else>\r\n\t\t\t\t\t\t\t<view class=\"cu-tag sm bg-gray radius margin-right-xs\" v-if=\"item.shop.state == 0\">个人</view>\r\n\t\t\t\t\t\t\t<view class=\"cu-tag sm wanl-bg-blue radius margin-right-xs\" v-if=\"item.shop.state == 1\">企业</view>\r\n\t\t\t\t\t\t\t<view class=\"cu-tag sm wanl-bg-orange radius margin-right-xs\" v-if=\"item.shop.state == 2\">旗舰</view>\r\n\t\t\t\t\t\t\t{{item.shop.shopname}}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"wanl-gray-light text-sm text-cut\">\r\n\t\t\t\t\t\t\t<text>{{item.shop.city}}</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"menu\">\r\n\t\t\t\t\t\t<button class=\"cu-btn wlIcon margin-right-sm\" @click.stop=\"onShop(item.shop.id)\">\r\n\t\t\t\t\t\t\t<text class=\"wlIcon-31dianpu\"></text>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t<button v-if=\"item.isFollow === 0\" class=\"cu-btn wlIcon\" @click.stop=\"handleFollow(index)\">\r\n\t\t\t\t\t\t\t<text class=\"wlIcon-tianjia\"></text>\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t\t<button v-else class=\"cu-btn radius-bock text-sm\" @click.stop=\"handleFollow(index)\">\r\n\t\t\t\t\t\t\t<text class=\"wlIcon-31guanbi margin-right-xs text-bold\"></text>取消\r\n\t\t\t\t\t\t</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"edgeInsetBottom\"></view>\r\n\t\t<!-- 加载更多 -->\r\n\t\t<uni-load-more :status=\"status\" :content-text=\"contentText\" />\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\tdataList: [],\r\n\t\t\t\treload: false, //判断是否上拉\r\n\t\t\t\tcurrent_page: 1, //当前页码\r\n\t\t\t\tlast_page: 1, //总页码\r\n\t\t\t\tstatus: 'loading',\r\n\t\t\t\tcontentText: {\r\n\t\t\t\t\tcontentdown: '',\r\n\t\t\t\t\tcontentrefresh: '疯狂加载中...',\r\n\t\t\t\t\tcontentnomore: ''\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.loadData();\r\n\t\t},\r\n\t\tonPullDownRefresh() {\r\n\t\t\tthis.current_page = 1;\r\n\t\t\tthis.reload = true;\r\n\t\t\tthis.loadData();\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\t//判断是否最后一页\r\n\t\t\tif (this.current_page >= this.last_page) {\r\n\t\t\t\tthis.status = 'noMore';\r\n\t\t\t} else {\r\n\t\t\t\tthis.reload = false;\r\n\t\t\t\tthis.current_page = this.current_page + 1; //页码+1\r\n\t\t\t\tthis.status = 'loading';\r\n\t\t\t\tthis.loadData();\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync loadData() {\r\n\t\t\t\tthis.$api.post({\r\n\t\t\t\t\turl: '/wanlshop/find/user/getShopList',\r\n\t\t\t\t\tsuccess: res => {\r\n\t\t\t\t\t\tuni.stopPullDownRefresh();\r\n\t\t\t\t\t\tthis.dataList = this.reload ? res.data : this.dataList.concat(res.data); //数据 追加\r\n\t\t\t\t\t\tthis.current_page = res.current_page; //当前页码\r\n\t\t\t\t\t\tthis.last_page = res.last_page; //总页码\r\n\t\t\t\t\t\tthis.status = res.total == 0 ? 'noMore' : 'more';\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tasync handleFollow(index) {\r\n\t\t\t\tif (this.$store.state.user.isLogin) {\r\n\t\t\t\t\tlet data = this.dataList[index];\r\n\t\t\t\t\tthis.$api.post({\r\n\t\t\t\t\t\turl: '/wanlshop/find/user/setFindUser',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\tid: data.user_no,\r\n\t\t\t\t\t\t\ttype: 'follow'\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\tlet concern = this.$store.state.statistics.dynamic.concern;\r\n\t\t\t\t\t\t\tif(res.data === 0){\r\n\t\t\t\t\t\t\t\tconcern -= 1;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tconcern += 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.$store.commit('statistics/dynamic', {\r\n\t\t\t\t\t\t\t\tconcern: concern,\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tdata.isFollow = res.data;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$wanlshop.to('/pages/user/auth/auth')\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\thandleUser(user_no) {\r\n\t\t\t\tthis.$wanlshop.to(`/pages/apps/find/user?id=${user_no}`);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.wanlfind-follow-container {\r\n\t\t&__list {\r\n\t\t\t.item {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\r\n\t\t\t\t.cu-avatar {\r\n\t\t\t\t\twidth: 100rpx;\r\n\t\t\t\t\theight: 100rpx;\r\n\t\t\t\t\tflex-shrink: 0;\r\n\t\t\t\t\tbackground-color: #f9f9f9;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.subject {\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\tflex: 1;\r\n\r\n\t\t\t\t\t.info {\r\n\t\t\t\t\t\tmax-width: 250rpx;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t.menu {\r\n\t\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\t\talign-items: center;\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>","import mod from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./follow.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../k/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./follow.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1699839792719\n var cssReload = require(\"C:/Users/liudan/Desktop/k/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":""}