index.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. <template>
  2. <view class="container" :data-theme="theme">
  3. <!-- :style="userInfo.avatar?{ backgroundImage: `url(${userInfo.avatar})` }: ''" -->
  4. <!-- #ifdef MP || APP -->
  5. <NavBar navTitle="个人主页" :isBackgroundColor="false" iconColor='#fff'></NavBar>
  6. <!-- #endif -->
  7. <view class="header">
  8. <view class="header-bg" :style="{'background-image': userInfo.avatar}">
  9. <img :src="userInfo.avatar" alt="">
  10. <view class="header-bg-mc"></view>
  11. </view>
  12. <view class="user_wrapper flex-between-center">
  13. <image v-if="userInfo.userLevelIcon" class="level_icon" :src="userInfo.userLevelIcon" alt="">
  14. <view class="flex-y-center row-middle">
  15. <image :src="userInfo.avatar || urlDomain+'crmebimage/presets/morenT.png'" class="picture">
  16. </image>
  17. <view class="user_text flex-1">
  18. <view class="name acea-row">
  19. <text>{{userInfo.isLogoff ? "用户已注销": (userInfo.nickname || '')}}</text>
  20. </view>
  21. <!-- <view v-if="userInfo.id" class="user_id">ID: {{userInfo.id || ''}}</view> -->
  22. <view class="flex-between-center mt-16" @click="onEdit('school')">
  23. <view class="user_id">学校: {{school || '暂无'}}</view>
  24. <text v-show="userInfo.id==uid" class="ml10 iconfont icon-fabuzhongcao"></text>
  25. </view>
  26. </view>
  27. </view>
  28. <view v-if="id && id!=uid" @click.stop="followAuthor">
  29. <button v-if="!userInfo.isConcerned" class="follow_btn focus">
  30. <text class="iconfont icon-jiahao2"></text>关注
  31. </button>
  32. <button v-else class="follow_btn focused">已关注</button>
  33. </view>
  34. <view v-if="userInfo.id==uid">
  35. <navigator hover-class="none" :url="`/pages/discover/discover_release/index?fair=${true}`" class="follow_btn focus bg-color">
  36. 去发布
  37. </navigator>
  38. </view>
  39. </view>
  40. <view class="acea-row plant_info" @click="onEdit('signature')">
  41. <view v-if="!userInfo.signature && userInfo.id==uid">点击可编辑个性签名</view>
  42. <view class="" v-if="userInfo.signature" style="width: 92%;">
  43. <view class="acea-row" v-if="userInfo.isMore || userInfo.signature.length<=30">
  44. <text class="signature">{{userInfo.signature}}</text>
  45. <text v-if="userInfo.isMore" class="more" @click.stop="moreTap">收起</text>
  46. </view>
  47. <view v-else class="acea-row">
  48. <text class="info signature">{{userInfo.signature.slice(0,23)}}...</text>
  49. <text class="more" @click.stop="moreTap"> 展开</text>
  50. </view>
  51. </view>
  52. <text v-show="userInfo.id==uid" class="ml10 iconfont icon-fabuzhongcao"></text>
  53. </view>
  54. <view class="plant_info" style="padding-bottom: 30rpx;">
  55. <view class="count_wrapper acea-row">
  56. <navigator :url="!id ? '/pages/discover/discover_follow/index?type=follow' : ''" class="item" hover-class="none">
  57. <text class="mr10">{{userInfo.concernedNum}}</text> 关注
  58. </navigator>
  59. <navigator :url="!id ? '/pages/discover/discover_follow/index?type=fans' : ''" class="item" hover-class="none">
  60. <text class="mr10">{{userInfo.fansNum}}</text> 粉丝
  61. </navigator>
  62. <view class="item">
  63. <text class="mr10">{{userInfo.likeNum}}</text> 获赞
  64. </view>
  65. </view>
  66. </view>
  67. <view v-if="!id && isShow" class="tab_count relative">
  68. <text @click.stop="changeTab(0)" :class="tab==0 ? 'on' : ''">我发布的</text>
  69. <text @click.stop="changeTab(1)" :class="tab==1 ? 'on' : ''">我想要的</text>
  70. <text @click.stop="changeTab(2)" :class="tab==2 ? 'on' : ''">我收藏的</text>
  71. <text @click.stop="changeTab(3)" :class="tab==3 ? 'on' : ''">我购买的</text>
  72. </view>
  73. </view>
  74. <view class="main">
  75. <view class="tab-conts">
  76. <view v-if="list.length > 0 && tab!==3" class="goods-wrap flex-1">
  77. <view class="goods">
  78. <!-- <WaterfallsFlow v-if="list.length" :wfList="list" :fromType="1" fromTo="home">
  79. </WaterfallsFlow> -->
  80. <WaterfallsFlow :wfList='list' :type="1" :isDynamics="true" :userFair="true" :isManage="manage">
  81. <template slot-scope="{item}">
  82. <WaterfallsFlowItem :item="item" :type="1" :isStore="1" />
  83. </template>
  84. </WaterfallsFlow>
  85. </view>
  86. </view>
  87. <view class='my-order' v-else>
  88. <view class='list'>
  89. <view class='item' v-for="(item,index) in list" :key="index">
  90. <view class='title acea-row row-between-wrapper'>
  91. <view class="acea-row row-middle">
  92. <view v-if="item.merName">
  93. <navigator :url="`/pages/merchant/home/index?merId=${item.merId}`" hover-class="none">
  94. <text class='iconfont icon-shangjiadingdan mr10'></text>
  95. <text class="mr10">{{item.merName}}</text>
  96. <text class='iconfont icon-xiangyou'></text>
  97. </navigator>
  98. </view>
  99. <view v-else>
  100. <text class="mr10">{{item.orderNo}}</text>
  101. </view>
  102. </view>
  103. <view v-if="item.refundStatus == 3" class='font_color'>已退款</view>
  104. <template v-else>
  105. <view class='font_color'>{{item.status | orderStatusFilter}}</view>
  106. </template>
  107. </view>
  108. <view v-for="(items,indexs) in item.orderInfoList" :key="indexs">
  109. <view @click='goOrderDetails(item)' class='item-info acea-row row-between row-top'>
  110. <view class='pictrue'>
  111. <easy-loadimage mode="widthFix" :image-src="items.image"></easy-loadimage>
  112. </view>
  113. <view class='text acea-row row-between'>
  114. <view class="nameBox">
  115. <view class='name line2'>
  116. <span v-if="Number(item.type) > 0 && Number(item.type) < 3" class="activity bg_color">{{item.type | orderTypeFilter}}</span>
  117. <span v-if="Number(item.secondType) === 1" class="activity bg_color">积分</span>
  118. <span>{{items.productName}}</span>
  119. </view>
  120. <view class="sku line1">{{items.sku}}</view>
  121. </view>
  122. <view class='money'>
  123. <view>¥{{items.price}}</view>
  124. <view>x{{items.payNum}}</view>
  125. </view>
  126. </view>
  127. </view>
  128. <view v-if="items.applyRefundNum && item.refundStatus > -1" class="text-24rpx font-color oppoSans-R mr-20px px-30 mt-14">
  129. 售后申请数量:{{ items.applyRefundNum }}
  130. </view>
  131. </view>
  132. <view class='totalPrice' :class="item.status===0?'no-border':''">{{item.totalNum}}
  133. 件商品,总金额
  134. <text class='money semiBold'> ¥{{item.payPrice}}</text>
  135. </view>
  136. <!-- <view v-if="item.status===0" class="mx-20 flex">
  137. <view class="tips w-full px-20 f-s-26">
  138. 付款提醒<text class="ml-20 text-999">请在{{item.expirationTime}}前完成支付!</text>
  139. </view>
  140. </view> -->
  141. <!-- 订单状态(0:待支付,1:待发货,2:部分发货, 3:待核销,4:待收货,5:已收货,6:已完成,9:已取消) -->
  142. <view class='bottom acea-row row-right row-middle'>
  143. <view class='bnt cancelBnt' v-if="item.status === 0" @click='cancelOrder(index,item.orderNo)'>
  144. 取消订单
  145. </view>
  146. <view class='bnt bg_color' v-if="item.status === 0" @click='goPay(item)'>
  147. 立即付款
  148. </view>
  149. <view class='bnt bg_color' v-if="((item.paid || item.status == 9)&&item.type!=2)||(item.type==2&&item.groupBuyRecordStatus!==0)"
  150. @click='goOrderDetails(item)'>
  151. 查看详情</view>
  152. <view class='bnt cancelBnt' v-if="item.status==6 || item.status==9" @click='delOrder(item.orderNo,index)'>
  153. 删除订单
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. <view class="empty-boxs noContent" v-if="list.length == 0 && !loading">
  160. <emptyPage title="暂无更多内容~" mTop="13%" :imgSrc="urlDomain+'crmebimage/presets/noguanzhu.png'">
  161. </emptyPage>
  162. </view>
  163. <view class='loadingicon acea-row row-center-wrapper'>
  164. <text class='loading iconfont icon-jiazai' :hidden='loading==false'></text>
  165. <view class="end" :hidden="loading || list.length == 0"><text :class="loaded ? 'loaded' : ''">{{loadTitle}}</text>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. <uni-popup ref="inputDialog" type="dialog">
  171. <view v-if="isShowSignature" class="tui-modal-custom">
  172. <view class="fs-32 fw-500 lh-44rpx text-center">{{fieldStr == 'signature' ? '编辑简介' : '编辑学校'}}</view>
  173. <view class="mt-24 bg--w111-f5f5f5 rd-16rpx p-24">
  174. <textarea v-if="fieldStr == 'signature'" class="w-full fs-26 h-342" ref="myTextarea" v-model="signature" :focus="focus"
  175. :always-embed="true" :adjust-position="true" cursor-spacing="85rpx" placeholder="请输入内容" :maxlength="100" name="desc" />
  176. <input v-if="fieldStr == 'school'" class="placeholder" type='text' v-model='school' :focus="focus"
  177. placeholder='请输入学校' placeholder-class='placeholder'></input>
  178. </view>
  179. <view class="flex-between-center mt-40">
  180. <view class="w-244 h-72 rd-36rpx flex-center fs-26 font-color close-btn" @tap="handleInputClose">取消
  181. </view>
  182. <view class="w-244 h-72 rd-36rpx flex-center bg-color text--w111-fff fs-26"
  183. @tap="handleInputConfirm">保存
  184. </view>
  185. </view>
  186. </view>
  187. </uni-popup>
  188. </view>
  189. </template>
  190. <script>
  191. // +----------------------------------------------------------------------
  192. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  193. // +----------------------------------------------------------------------
  194. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
  195. // +----------------------------------------------------------------------
  196. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  197. // +----------------------------------------------------------------------
  198. // | Author: CRMEB Team <admin@crmeb.com>
  199. // +----------------------------------------------------------------------
  200. import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlow.vue'
  201. import WaterfallsFlowItem from '@/components/discoverFlowItem/discoverFlowItem.vue'
  202. import emptyPage from '@/components/emptyPage.vue';
  203. import NavBar from '@/components/navBar.vue';
  204. import {
  205. userHomeApi,
  206. myHomeApi,
  207. authorNoteApi,
  208. mySecondHandListApi,
  209. myLikeListApi,
  210. secondHandListApi,
  211. secondHandFollowListApi,
  212. editSignatureApi,
  213. editSchoolApi
  214. } from '@/api/discover.js';
  215. import {
  216. ProductTypeEnum,
  217. } from "@/enums/productEnums";
  218. import {secondHandOrderList} from '@/api/secondHand.js';
  219. import {
  220. toLogin
  221. } from '@/libs/login.js';
  222. import {
  223. mapGetters
  224. } from "vuex";
  225. import {
  226. discoverFollowAuthor
  227. } from '@/libs/follow.js';
  228. import easyLoadimage from '@/components/base/easy-loadimage.vue';
  229. const app = getApp();
  230. let sysHeight = uni.getSystemInfoSync().statusBarHeight;
  231. export default {
  232. components: {
  233. WaterfallsFlow,
  234. WaterfallsFlowItem,
  235. emptyPage,
  236. NavBar,
  237. easyLoadimage
  238. },
  239. data() {
  240. return {
  241. sysHeight: sysHeight,
  242. urlDomain: this.$Cache.get("imgHost"),
  243. theme: app.globalData.theme,
  244. ProductTypeEnum: ProductTypeEnum,
  245. list: [], // 内容列表
  246. loadTitle: '加载更多',
  247. loading: false,
  248. loaded: false,
  249. isShowAuth: false, //是否隐藏授权
  250. isAuto: false, //没有授权的不会自动授权
  251. userInfo: {},
  252. where: {
  253. page: 1,
  254. limit: 10
  255. },
  256. tab: 0,
  257. id: '', //作者id
  258. isShow: false,
  259. focus: false,
  260. isShowSignature: false, // 是否显示简介编辑内容
  261. signature: '', //弹窗中的签名
  262. school: '',
  263. fieldStr: '',
  264. manage: 1
  265. }
  266. },
  267. created() {},
  268. computed: {
  269. ...mapGetters(['isLogin', 'uid']),
  270. },
  271. watch: {},
  272. onLoad: function(options) {
  273. this.id = options.id ? options.id : '';
  274. },
  275. onShow() {
  276. // if (this.id) {
  277. // this.isShow = false
  278. // this.getUserHome(this.id);
  279. // this.authorNoteList();
  280. // } else {
  281. this.isShow = true
  282. this.getMyHome();
  283. this.myNoteList();
  284. // }
  285. },
  286. onReady() {},
  287. mounted: function() {},
  288. methods: {
  289. moreTap() {
  290. this.$set(this.userInfo, 'isMore', !this.userInfo.isMore)
  291. },
  292. //个性签名取消
  293. handleInputClose() {
  294. this.$refs.inputDialog.close()
  295. this.isShowSignature = false;
  296. },
  297. //个性签名保存
  298. handleInputConfirm() {
  299. const api = this.fieldStr == 'signature' ? editSignatureApi({signature: this.signature}) : editSchoolApi({school: this.school});
  300. api.then(res => {
  301. uni.showToast({
  302. title: res.data,
  303. icon: 'none'
  304. })
  305. this.getMyHome();
  306. }).catch(err => {
  307. uni.showToast({
  308. title: err,
  309. icon: 'none'
  310. })
  311. });
  312. // 关闭窗口后,恢复默认内容
  313. this.$refs.inputDialog.close()
  314. this.isShowSignature = false;
  315. },
  316. //编辑个性签名
  317. onEdit(str) {
  318. if (this.userInfo.id == this.uid) {
  319. this.fieldStr = str;
  320. this.isShowSignature = true;
  321. this.signature = this.userInfo.signature;
  322. this.$refs.inputDialog.open();
  323. }
  324. },
  325. //回退页面之后重新加载页面
  326. reFresh() {
  327. this.loading = false;
  328. this.loaded = false;
  329. this.where = {
  330. page: 1,
  331. limit: 10
  332. }
  333. this.list = []
  334. // if (this.id) {
  335. // this.getUserHome(this.id);
  336. // this.authorNoteList();
  337. // } else {
  338. this.getMyHome();
  339. this.myNoteList();
  340. // }
  341. },
  342. //获取我的用户信息
  343. getMyHome() {
  344. myHomeApi().then(res => {
  345. console.log(res.data)
  346. this.userInfo = res.data;
  347. this.signature = this.userInfo.signature
  348. this.school = this.userInfo.school
  349. this.isMore = false;
  350. }).catch(err => {
  351. uni.showToast({
  352. title: err,
  353. icon: 'none'
  354. })
  355. });
  356. },
  357. /**
  358. * 去订单详情
  359. */
  360. goOrderDetails: function(item, status) {
  361. if (!item.orderNo) return this.$util.Tips({
  362. title: '缺少订单号无法查看订单详情'
  363. });
  364. //虚拟商品
  365. if (item.secondType === this.ProductTypeEnum.CloudDrive || item.secondType === this.ProductTypeEnum
  366. .CardPassword) {
  367. // #ifdef MP
  368. uni.navigateTo({
  369. url: '/pages/goods/virtual_order_details/index?orderNo=' + item.orderNo
  370. })
  371. // #endif
  372. // #ifndef MP
  373. uni.navigateTo({
  374. animationType: animationType.type,
  375. animationDuration: animationType.duration,
  376. url: '/pages/goods/virtual_order_details/index?orderNo=' + item.orderNo
  377. })
  378. // #endif
  379. } else {
  380. // #ifdef MP
  381. uni.navigateTo({
  382. url: '/pages/goods/order_details/index?orderNo=' + item.orderNo + '&orderType=secondHand'
  383. })
  384. // #endif
  385. // #ifndef MP
  386. uni.navigateTo({
  387. animationType: animationType.type,
  388. animationDuration: animationType.duration,
  389. url: '/pages/goods/order_details/index?orderNo=' + item.orderNo + "'&orderType=secondHand'
  390. })
  391. // #endif
  392. }
  393. },
  394. //逛逛用户主页
  395. getUserHome(id) {
  396. userHomeApi(id).then(res => {
  397. this.userInfo = res.data
  398. }).catch(err => {
  399. uni.showToast({
  400. title: err,
  401. icon: 'none'
  402. })
  403. });
  404. },
  405. // 关注作者
  406. followAuthor: function() {
  407. if (this.isLogin) {
  408. if (this.userInfo.isLogoff) return;
  409. discoverFollowAuthor(this.id).then(() => {
  410. this.$set(this.userInfo, 'isConcerned', !this.userInfo.isConcerned);
  411. });
  412. } else {
  413. toLogin();
  414. }
  415. },
  416. changeTab(tab) {
  417. this.tab = tab
  418. this.where.page = 1
  419. this.loaded = this.loading = false
  420. this.list = []
  421. if (tab === 0) {
  422. this.manage = 1;
  423. this.myNoteList();
  424. } else if (tab === 1) {
  425. this.manage = 0;
  426. this.myLikeList();
  427. } else if (tab === 2) {
  428. this.manage = 0;
  429. this.myFollowList()
  430. } else {
  431. this.manage = 0;
  432. this.myOrderList()
  433. }
  434. },
  435. // 获取我购买的作品
  436. myOrderList: function() {
  437. let that = this;
  438. if (that.loaded || that.loading) return;
  439. that.loading = true;
  440. that.loadTitle = '';
  441. that.where.status = -1;
  442. secondHandOrderList(that.where).then(res => {
  443. let list = res.data.list;
  444. let goods = that.$util.SplitArray(list, that.list);
  445. that.loaded = list.length < that.where.limit;
  446. that.loading = false;
  447. that.loadTitle = that.loaded ? '到底了' : '加载更多';
  448. that.$set(that, 'list', goods);
  449. that.$set(that.where, 'page', that.where.page + 1);
  450. }).catch(err => {
  451. that.loading = false;
  452. uni.showToast({
  453. title: err,
  454. icon: 'none'
  455. })
  456. })
  457. },
  458. // 获取我的收藏作品
  459. myFollowList: function() {
  460. let that = this;
  461. if (that.loaded || that.loading) return;
  462. that.loading = true;
  463. that.loadTitle = '';
  464. secondHandFollowListApi(that.where).then(res => {
  465. let list = res.data.list;
  466. let goods = that.$util.SplitArray(list, that.list);
  467. that.loaded = list.length < that.where.limit;
  468. that.loading = false;
  469. that.loadTitle = that.loaded ? '到底了' : '加载更多';
  470. that.$set(that, 'list', goods);
  471. that.$set(that.where, 'page', that.where.page + 1);
  472. }).catch(err => {
  473. that.loading = false;
  474. uni.showToast({
  475. title: err,
  476. icon: 'none'
  477. })
  478. })
  479. },
  480. // 获取我的点赞作品
  481. myLikeList: function() {
  482. let that = this;
  483. if (that.loaded || that.loading) return;
  484. that.loading = true;
  485. that.loadTitle = '';
  486. secondHandListApi(that.where).then(res => {
  487. let list = res.data.list;
  488. let goods = that.$util.SplitArray(list, that.list);
  489. that.loaded = list.length < that.where.limit;
  490. that.loading = false;
  491. that.loadTitle = that.loaded ? '到底了' : '加载更多';
  492. that.$set(that, 'list', goods);
  493. that.$set(that.where, 'page', that.where.page + 1);
  494. }).catch(err => {
  495. that.loading = false;
  496. uni.showToast({
  497. title: err,
  498. icon: 'none'
  499. })
  500. })
  501. },
  502. // 获取我的的作品
  503. myNoteList: function() {
  504. let that = this;
  505. if (that.loaded || that.loading) return;
  506. that.loading = true;
  507. that.loadTitle = '';
  508. mySecondHandListApi(that.where).then(res => {
  509. let list = res.data.list;
  510. let goods = that.$util.SplitArray(list, that.list);
  511. that.loaded = list.length < that.where.limit;
  512. that.loading = false;
  513. that.loadTitle = that.loaded ? '到底了' : '加载更多';
  514. that.$set(that, 'list', goods);
  515. that.$set(that.where, 'page', that.where.page + 1);
  516. }).catch(err => {
  517. that.loading = false;
  518. uni.showToast({
  519. title: err,
  520. icon: 'none'
  521. })
  522. })
  523. },
  524. // 作者的作品
  525. authorNoteList: function() {
  526. let that = this;
  527. if (that.loaded || that.loading) return;
  528. that.loading = true;
  529. that.loadTitle = '';
  530. this.where.authorId = this.id
  531. authorNoteApi(this.where.authorId, that.where).then(res => {
  532. let list = res.data.list;
  533. let goods = that.$util.SplitArray(list, that.list);
  534. that.loaded = list.length < that.where.limit;
  535. that.loading = false;
  536. that.loadTitle = that.loaded ? '到底了' : '加载更多';
  537. that.$set(that, 'list', goods);
  538. that.$set(that.where, 'page', that.where.page + 1);
  539. }).catch(err => {
  540. that.loading = false;
  541. uni.showToast({
  542. title: err,
  543. icon: 'none'
  544. })
  545. })
  546. }
  547. },
  548. onReachBottom() {
  549. // if (this.id) {
  550. // this.authorNoteList();
  551. // } else {
  552. if (this.tab === 0) {
  553. this.myNoteList();
  554. } else {
  555. this.myLikeList();
  556. }
  557. // }
  558. },
  559. onPullDownRefresh() {},
  560. // 滚动监听
  561. onPageScroll(e) {
  562. // 传入scrollTop值并触发所有easy-loadimage组件下的滚动监听事件
  563. uni.$emit('scroll');
  564. }
  565. }
  566. </script>
  567. <style lang="scss" scoped>
  568. .close-btn {
  569. @include coupons_border_color(theme);
  570. }
  571. .tui-modal-custom {
  572. width: 600rpx;
  573. position: relative;
  574. box-sizing: border-box;
  575. padding: 40rpx;
  576. border-radius: 16px;
  577. background-color: #fff;
  578. z-index: 9999;
  579. .h-342 {
  580. min-height: 268rpx;
  581. max-height: 268rpx;
  582. ;
  583. overflow-y: scroll;
  584. }
  585. }
  586. .signature {
  587. overflow: hidden;
  588. display: -webkit-box;
  589. -webkit-line-clamp: 5;
  590. -webkit-box-orient: vertical;
  591. text-overflow: ellipsis;
  592. width: 88%;
  593. }
  594. .goods-wrap {
  595. padding-top: 24rpx;
  596. }
  597. .more {
  598. font-weight: 600;
  599. margin-left: 8rpx;
  600. }
  601. .container {
  602. background: #ffffff;
  603. min-height: 100vh;
  604. }
  605. .header-bg {
  606. position: absolute;
  607. width: 100%;
  608. height: 650rpx;
  609. top: 0;
  610. /* #ifdef MP || APP-PLUS */
  611. z-index: -1;
  612. /* #endif */
  613. /* #ifdef H5 */
  614. z-index: 0;
  615. /* #endif */
  616. z-index: 0;
  617. filter: blur(0);
  618. overflow: hidden;
  619. img {
  620. width: 100%;
  621. height: 100%;
  622. filter: blur(16rpx);
  623. transform: scale(1.5);
  624. }
  625. .header-bg-mc {
  626. position: absolute;
  627. top: 0;
  628. width: 100%;
  629. height: 100%;
  630. background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 39%, rgba(0, 0, 0, 0.7) 100%);
  631. }
  632. }
  633. .header {
  634. width: 750rpx;
  635. padding: 20rpx 0 0;
  636. box-sizing: border-box;
  637. background: linear-gradient(360deg, #72798E 0%, #384857 99%);
  638. opacity: 1;
  639. .tab_count {
  640. text-align: center;
  641. background: #ffffff;
  642. padding: 30rpx 0 15rpx 0;
  643. border-radius: 12px 12px 0 0;
  644. text {
  645. font-size: 28rpx;
  646. color: #999999;
  647. margin: 0 30rpx;
  648. position: relative;
  649. padding-bottom: 14rpx;
  650. &.on {
  651. font-size: 32rpx;
  652. color: #282828;
  653. font-weight: bold;
  654. &::after {
  655. content: "";
  656. width: 80%;
  657. height: 5rpx;
  658. @include main_bg_color(theme);
  659. position: absolute;
  660. bottom: 0;
  661. left: 12rpx;
  662. }
  663. .underline {
  664. opacity: 1;
  665. }
  666. }
  667. }
  668. }
  669. .user_wrapper {
  670. align-items: center;
  671. justify-content: space-between;
  672. padding: 0 34rpx;
  673. position: relative;
  674. .level_icon {
  675. position: absolute;
  676. width: 38rpx;
  677. height: 38rpx;
  678. margin: 4rpx 0 0 6rpx;
  679. border: none;
  680. z-index: 11;
  681. bottom: 2rpx;
  682. left: 124rpx;
  683. }
  684. .image,
  685. uni-image,
  686. image {
  687. width: 140rpx;
  688. height: 140rpx;
  689. border-radius: 100%;
  690. border: 4rpx solid #ffffff;
  691. }
  692. .user_text {
  693. margin-left: 30rpx;
  694. color: #FFFFFF;
  695. .name {
  696. font-size: 34rpx;
  697. font-weight: bold;
  698. align-items: center;
  699. }
  700. .user_id {
  701. text-overflow: ellipsis;
  702. white-space: nowrap;
  703. overflow: hidden;
  704. max-width: 300rpx;
  705. font-size: 24rpx;
  706. }
  707. }
  708. }
  709. .plant_info {
  710. position: relative;
  711. padding: 0 34rpx;
  712. margin-top: 30rpx;
  713. justify-content: space-between;
  714. color: #ffffff;
  715. font-size: 24rpx;
  716. .count_wrapper {
  717. color: #FFFFFF;
  718. font-size: 24rpx;
  719. .item {
  720. text-align: center;
  721. margin-right: 60rpx;
  722. &:last-child {
  723. margin-right: 0;
  724. }
  725. text {
  726. font-size: 30rpx;
  727. margin-top: 10rpx;
  728. }
  729. }
  730. }
  731. }
  732. .iconfont {
  733. font-size: 24rpx;
  734. margin-right: 12rpx;
  735. }
  736. .follow_btn {
  737. color: #ffffff;
  738. font-size: 26rpx;
  739. display: flex;
  740. align-items: center;
  741. justify-content: center;
  742. width: 146rpx;
  743. height: 62rpx;
  744. @include linear-gradient(theme);
  745. border-radius: 33rpx;
  746. .icon-fabu {
  747. font-size: 24rpx;
  748. }
  749. &.focused {
  750. background: transparent;
  751. color: #FFFFFF;
  752. border: 1px solid #FFFFFF;
  753. }
  754. }
  755. }
  756. .main {
  757. background: #ffffff;
  758. position: relative;
  759. }
  760. .goods {
  761. // display: flex;
  762. // flex-wrap: wrap;
  763. // justify-content: space-between;
  764. // width: 750rpx;
  765. padding: 0 24rpx;
  766. }
  767. .empty {
  768. margin: 130rpx 0 150rpx;
  769. text-align: center;
  770. image,
  771. uni-image {
  772. display: inline-block;
  773. width: 414rpx;
  774. height: 305rpx;
  775. }
  776. text {
  777. display: block;
  778. color: #999999;
  779. font-size: 26rpx;
  780. }
  781. }
  782. .end {
  783. margin-top: 50rpx 0;
  784. text-align: center;
  785. text {
  786. color: #999999;
  787. font-size: 22rpx;
  788. position: relative;
  789. &.loaded {
  790. &::before,
  791. &::after {
  792. content: "";
  793. display: inline-block;
  794. width: 22rpx;
  795. height: 1rpx;
  796. background: #999999;
  797. position: absolute;
  798. top: 18rpx;
  799. opacity: .5;
  800. }
  801. &::before {
  802. left: -30rpx;
  803. }
  804. &::after {
  805. right: -30rpx;
  806. }
  807. }
  808. }
  809. }
  810. .my-order .list {
  811. width: 690rpx;
  812. margin: 0 auto;
  813. }
  814. .my-order .list .item {
  815. background-color: #fff;
  816. border-radius: 14rpx;
  817. margin-bottom: 14rpx;
  818. }
  819. .my-order .list .item .title {
  820. height: 84rpx;
  821. padding: 0 24rpx;
  822. border-bottom: 1rpx solid #eee;
  823. font-size: 28rpx;
  824. color: #282828;
  825. }
  826. .my-order .list .item .title .sign {
  827. font-size: 24rpx;
  828. padding: 0 13rpx;
  829. height: 36rpx;
  830. margin-right: 15rpx;
  831. border-radius: 18rpx;
  832. @include coupons_border_color(theme);
  833. @include main_color(theme);
  834. }
  835. .my-order .list .item .item-info {
  836. padding: 0 30rpx;
  837. margin-top: 22rpx;
  838. }
  839. .my-order .list .item .item-info .pictrue {
  840. width: 120rpx;
  841. height: 120rpx;
  842. }
  843. .my-order .list .item .item-info .pictrue image {
  844. width: 100%;
  845. height: 100%;
  846. border-radius: 14rpx;
  847. overflow: hidden;
  848. }
  849. .my-order .list .item .item-info {
  850. .nameBox {
  851. position: relative;
  852. height: 120rpx;
  853. }
  854. .sku {
  855. font-size: 20rpx;
  856. position: absolute;
  857. bottom: 4rpx;
  858. width: 420rpx;
  859. }
  860. .text {
  861. width: 496rpx;
  862. font-size: 28rpx;
  863. color: #999;
  864. }
  865. }
  866. .my-order .list .item .item-info .text .name {
  867. width: 326rpx;
  868. color: #282828;
  869. }
  870. .my-order .list .item .item-info .text .money {
  871. text-align: right;
  872. }
  873. .font_color {
  874. @include main_color(theme);
  875. }
  876. .my-order .list .item .totalPrice {
  877. font-size: 26rpx;
  878. color: #282828;
  879. text-align: right;
  880. margin: 27rpx 0 0 30rpx;
  881. padding: 0 30rpx 30rpx 0;
  882. border-bottom: 1rpx solid #eee;
  883. }
  884. .my-order .list .item .totalPrice .money {
  885. font-size: 28rpx;
  886. font-weight: bold;
  887. @include price_color(theme);
  888. }
  889. .my-order .list .item .bottom {
  890. height: 107rpx;
  891. padding: 0 30rpx;
  892. }
  893. .my-order .list .item .bottom .bnt {
  894. width: 176rpx;
  895. height: 60rpx;
  896. text-align: center;
  897. line-height: 60rpx;
  898. color: #fff;
  899. border-radius: 50rpx;
  900. font-size: 27rpx;
  901. }
  902. .my-order .list .item .bottom .bnt.cancelBnt {
  903. border: 1rpx solid #ddd;
  904. color: #aaa;
  905. }
  906. .my-order .list .item .bottom .bnt~.bnt {
  907. margin-left: 17rpx;
  908. }
  909. .my-order {
  910. .header {
  911. height: 250rpx;
  912. padding: 0 30rpx;
  913. }
  914. }
  915. .bg_color {
  916. @include main_bg_color(theme);
  917. }
  918. .my-order .header .picTxt {
  919. height: 190rpx;
  920. }
  921. .my-order .header .picTxt .text {
  922. color: rgba(255, 255, 255, 0.8);
  923. font-size: 26rpx;
  924. font-family: 'Guildford Pro';
  925. }
  926. .my-order .header .picTxt .text .name {
  927. font-size: 34rpx;
  928. font-weight: bold;
  929. color: #fff;
  930. margin-bottom: 20rpx;
  931. }
  932. .my-order .header .picTxt .pictrue {
  933. width: 120rpx;
  934. height: 120rpx;
  935. }
  936. .my-order .header .picTxt .pictrue image {
  937. width: 100%;
  938. height: 100%;
  939. }
  940. </style>