index.vue 26 KB

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