myteam.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. <template>
  2. <view style="position: relative;">
  3. <!-- 胶囊 -->
  4. <mvBar :mysNavConfig="mysNavConfig"></mvBar>
  5. <view :style="{marginTop:navH}"></view>
  6. <view class="head">
  7. <view class="show-income">
  8. <p>累计开团现金收益</p>
  9. <p style="margin-top: 20rpx;font-weight: 600;">¥0.0</p>
  10. </view>
  11. <view class="show-income">
  12. <p>累计开团积分收益</p>
  13. <p style="margin-top: 20rpx;font-weight: 600;">0</p>
  14. </view>
  15. </view>
  16. <view class="content">
  17. <p>开团明细</p>
  18. <view>
  19. <uni-search-bar @confirm="search" :focus="true" cancelButton="none" v-model="searchValue">
  20. </uni-search-bar>
  21. </view>
  22. <view class="menu">
  23. <view class="menu-item" @click="toShow1()">
  24. <p v-bind:class="tab == 'exe'?'lor':'unlor'">开团中</p>
  25. </view>
  26. <view class="menu-item" @click="toShow2()">
  27. <p v-bind:class="tab == 'end'?'lor':'unlor'">已结束</p>
  28. </view>
  29. </view>
  30. <view class="team-list" v-if="tab == 'exe'">
  31. <view class="team-card">
  32. <view class="project" @click="">
  33. <!-- 项目名称 -->
  34. <image class="platform-img"></image>
  35. <p>PUYU朴郁小树茶茶干茶粉</p>
  36. <view @click="toProject()">
  37. <image class="togo-icon" :src="picture.icon_right"></image>
  38. </view>
  39. </view>
  40. <view class="team-info">
  41. <!-- young之团信息 -->
  42. <image class="project-img"></image>
  43. <view class="team-txt">
  44. <!-- 成团编码 -->
  45. <view style="display: flex;">
  46. <p>成团编码ID:5234501300</p>
  47. <image :src="picture.icon_copy" mode=""
  48. style="padding-left:5rpx;width: 30rpx;height: 30rpx;"
  49. @click="handleCopy('5234501300')" />
  50. </view>
  51. <!-- 人数信息 -->
  52. <p style="padding: 10rpx 0;">已报名:25人 &nbsp; 申请成功:5人 &nbsp; 已结案:1人</p>
  53. <!-- 收益信息 -->
  54. <p style="font-weight: 600;">预计积分收益:1250 &nbsp; 预计现金收益:¥50.0</p>
  55. </view>
  56. </view>
  57. <view class="team-foot">
  58. <!-- 查看进度按钮 -->
  59. <button class="team-btn" type="default">查看进度</button>
  60. </view>
  61. </view>
  62. <view class="team-card">
  63. <view class="project" @click="">
  64. <!-- 项目名称 -->
  65. <image class="platform-img"></image>
  66. <p>PUYU朴郁小树茶茶干茶粉</p>
  67. <view @click="toProject()">
  68. <image class="togo-icon" :src="picture.icon_right"></image>
  69. </view>
  70. </view>
  71. <view class="team-info">
  72. <!-- young之团信息 -->
  73. <image class="project-img"></image>
  74. <view class="team-txt">
  75. <!-- 成团编码 -->
  76. <view style="display: flex;">
  77. <p>成团编码ID:5234501300</p>
  78. <image :src="picture.icon_copy" mode=""
  79. style="padding-left:5rpx;width: 30rpx;height: 30rpx;"
  80. @click="handleCopy('5234501300')" />
  81. </view>
  82. <!-- 人数信息 -->
  83. <p style="padding: 10rpx 0;">已报名:25人 &nbsp; 申请成功:5人 &nbsp; 已结案:1人</p>
  84. <!-- 收益信息 -->
  85. <p style="font-weight: 600;">预计积分收益:1250 &nbsp; 预计现金收益:¥50.0</p>
  86. </view>
  87. </view>
  88. <view class="team-foot">
  89. <!-- 查看进度按钮 -->
  90. <button class="team-btn" type="default">查看进度</button>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="team-list" v-if="tab == 'end'">
  95. <view class="team-card">
  96. <view class="project" @click="">
  97. <!-- 项目名称 -->
  98. <image class="platform-img"></image>
  99. <p>PUYU朴郁小树茶茶干茶粉</p>
  100. <view @click="toProject()">
  101. <image class="togo-icon" :src="picture.icon_right"></image>
  102. </view>
  103. </view>
  104. <view class="team-info">
  105. <!-- young之团信息 -->
  106. <image class="project-img"></image>
  107. <view class="team-txt">
  108. <!-- 成团编码 -->
  109. <view style="display: flex;">
  110. <p>成团编码ID:5234501300</p>
  111. <image :src="picture.icon_copy" mode=""
  112. style="padding-left:5rpx;width: 30rpx;height: 30rpx;"
  113. @click="handleCopy('5234501300')" />
  114. </view>
  115. <!-- 人数信息 -->
  116. <p style="padding: 10rpx 0;">已报名:25人 &nbsp; 申请成功:5人 &nbsp; 已结案:1人</p>
  117. <!-- 收益信息 -->
  118. <p style="font-weight: 600;">积分收益:1250 &nbsp; 现金收益:¥50.0</p>
  119. </view>
  120. </view>
  121. <view class="team-foot">
  122. <!-- 查看进度按钮 -->
  123. <button class="team-btn" type="default">查看历史纪录</button>
  124. </view>
  125. </view>
  126. <view class="team-card">
  127. <view class="project" @click="">
  128. <!-- 项目名称 -->
  129. <image class="platform-img"></image>
  130. <p>PUYU朴郁小树茶茶干茶粉</p>
  131. <view @click="toProject()">
  132. <image class="togo-icon" :src="picture.icon_right"></image>
  133. </view>
  134. </view>
  135. <view class="team-info">
  136. <!-- young之团信息 -->
  137. <image class="project-img"></image>
  138. <view class="team-txt">
  139. <!-- 成团编码 -->
  140. <view style="display: flex;">
  141. <p>成团编码ID:5234501300</p>
  142. <image :src="picture.icon_copy" mode=""
  143. style="padding-left:5rpx;width: 30rpx;height: 30rpx;"
  144. @click="handleCopy('5234501300')" />
  145. </view>
  146. <!-- 人数信息 -->
  147. <p style="padding: 10rpx 0;">已报名:25人 &nbsp; 申请成功:5人 &nbsp; 已结案:1人</p>
  148. <!-- 收益信息 -->
  149. <p style="font-weight: 600;">积分收益:1250 &nbsp; 现金收益:¥50.0</p>
  150. </view>
  151. </view>
  152. <view class="team-foot">
  153. <!-- 查看进度按钮 -->
  154. <button class="team-btn" type="default">查看历史纪录</button>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </template>
  161. <script>
  162. import mvBar from "@/components/mys_navBar/mysNavBar";
  163. import {
  164. fansview
  165. } from '@/components/utils.js';
  166. export default {
  167. components: {
  168. mvBar,
  169. },
  170. data() {
  171. return {
  172. navH: getApp().globalData.navHeight,
  173. mysNavConfig: {
  174. /* 开启单页显示首页图标 */
  175. isHome: true,
  176. /* 固定导航 */
  177. navFixed: true,
  178. /* 标题 (屏幕中心居中 两边图标中心居中使用slot center1) */
  179. navTitle: {
  180. text: "YOUNG之团",
  181. color: "",
  182. fontSize: "32rpx", // px upx rpx
  183. fontWeight: "normal", // 100 - 700
  184. },
  185. btnType: "type2",
  186. onLeftClick: "/pages/mycenter/mycenter",
  187. /* type2 按钮 */
  188. type2Config: {
  189. // 左图标
  190. leftPath: "/static/img/png2.png",
  191. // 右图标
  192. rightPath: "/static/img/png4.png",
  193. // 圆角
  194. radius: "40rpx",
  195. },
  196. },
  197. picture: {
  198. icon_help: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-help.png',
  199. icon_copy: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-copy.png',
  200. icon_person: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-person.png',
  201. icon_edit: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-edit2.png',
  202. icon_location: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-location.png',
  203. icon_account: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-account.png',
  204. icon_rmb: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-rmb.png',
  205. icon_message: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/youngee/talent_upload/icon-message.png',
  206. icon_right: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent_upload/icon-arrow-right.png',
  207. defaultavatarUrl: 'https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/logoxin01.png',
  208. },
  209. searchValue: "",
  210. showList1: false,
  211. showList2: false,
  212. tab: 'exe',
  213. }
  214. },
  215. async onLoad(options) {
  216. // 判断登录
  217. await this.isLogin();
  218. if (this.token === '') {
  219. uni.showModal({
  220. content: '请先登录',
  221. success: function(res) {
  222. if (res.confirm) {
  223. uni.navigateTo({
  224. url: '/pages/login/login'
  225. });
  226. } else if (res.cancel) {
  227. uni.navigateBack();
  228. }
  229. }
  230. });
  231. }
  232. let data = options.textObj.replace(/""/g, "");
  233. data = JSON.parse(decodeURIComponent(data))
  234. this.tab = data.tab
  235. },
  236. methods: {
  237. // 判断登陆是否过期
  238. isLogin() {
  239. return this.$https.get('/youngee/c/t/g/is-login')
  240. .then(res => {
  241. if (res.data.code === 403) {
  242. // 登陆已失效
  243. this.token = ""
  244. uni.clearStorage();
  245. } else {
  246. this.token = uni.getStorageSync('token')
  247. }
  248. })
  249. },
  250. async search(res) {
  251. uni.showToast({
  252. title: '搜索:' + res.value,
  253. icon: 'none'
  254. })
  255. },
  256. handleCopy(text) {
  257. wx.setClipboardData({
  258. data: text,
  259. success: function(res) {
  260. console.log("复制成功");
  261. }
  262. });
  263. },
  264. toShow1() {
  265. this.tab = 'exe';
  266. },
  267. toShow2() {
  268. this.tab = 'end';
  269. },
  270. }
  271. }
  272. </script>
  273. <style>
  274. /deep/ .uni-searchbar__box-search-input {
  275. font-size: 32rpx !important;
  276. }
  277. </style>
  278. <style lang="scss" scoped>
  279. p {
  280. font-size: 32rpx;
  281. }
  282. .head {
  283. margin: 10rpx 3%;
  284. border-radius: 15rpx;
  285. background-color: #f0d232;
  286. height: 200rpx;
  287. display: flex;
  288. align-items: center;
  289. justify-content: space-around;
  290. }
  291. .show-income {
  292. display: flex;
  293. flex-direction: column;
  294. align-items: center;
  295. }
  296. .content {
  297. margin: 30rpx 3%;
  298. }
  299. .menu {
  300. display: flex;
  301. align-items: center;
  302. justify-content: space-around;
  303. }
  304. .menu-item p {
  305. font-weight: 600;
  306. &.lor {
  307. border-bottom: 5rpx solid #F0D232;
  308. color: #F0D232;
  309. padding-bottom: 15rpx;
  310. }
  311. &.unlor {
  312. color: #81838f;
  313. padding-bottom: 15rpx;
  314. border-bottom: 5rpx solid #ffffff;
  315. }
  316. }
  317. .point-card {
  318. display: flex;
  319. justify-content: space-between;
  320. align-items: center;
  321. }
  322. .point-card-left {
  323. display: flex;
  324. flex-direction: column;
  325. justify-content: start;
  326. }
  327. .point-card-right p {
  328. color: #f0d232;
  329. font-weight: 600;
  330. }
  331. .team-list {
  332. padding: 20rpx 0;
  333. }
  334. .team-card {
  335. margin: 20rpx 0;
  336. display: flex;
  337. flex-direction: column;
  338. // justify-content: start;
  339. }
  340. .project {
  341. display: flex;
  342. align-items: center;
  343. }
  344. .project p{
  345. font-weight: 600;
  346. }
  347. .platform-img {
  348. width: 40rpx;
  349. height: 40rpx;
  350. background-color: #F0D232;
  351. margin-right: 10rpx;
  352. }
  353. .togo-icon {
  354. width: 30rpx;
  355. height: 30rpx;
  356. }
  357. .team-info {
  358. margin: 20rpx 0;
  359. display: flex;
  360. justify-content: start;
  361. align-items: center;
  362. }
  363. .project-img {
  364. width: 120rpx;
  365. height: 120rpx;
  366. background-color: #b3c96b;
  367. }
  368. .team-txt {
  369. margin-left: 10rpx;
  370. display: flex;
  371. flex-direction: column;
  372. }
  373. .team-txt p {
  374. font-size: 28rpx;
  375. }
  376. .team-foot {
  377. padding: 0 20rpx;
  378. text-align: right;
  379. }
  380. .team-btn::after {
  381. border: none;
  382. }
  383. .team-btn {
  384. display: inline-block;
  385. width: 250rpx;
  386. border: 1rpx solid #F0D232;
  387. background-color: #ffffff;
  388. border-radius: 15rpx;
  389. font-size: 28rpx;
  390. line-height: 200%;
  391. }
  392. </style>