integrateConversion.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960
  1. <template>
  2. <!-- 积分兑换 -->
  3. <view>
  4. <!-- 导航栏 -->
  5. <view style="background-color: $color-white !important;" v-show="getIntegrate">
  6. <u-navbar :back-text="i18n('Back')" :back-text-style="backStyle" back-icon-color="#fff" title-color="#fff"
  7. :background="background" title-width="300" :title="i18n('getIntegrateConversion')"></u-navbar>
  8. </view>
  9. <view style="background-color: $color-white !important;" v-show="toGetIntegrate">
  10. <u-navbar :back-text="i18n('Back')" :back-text-style="backStyle" back-icon-color="#fff" title-color="#fff"
  11. :background="background" title-width="300" :title="i18n('MyIntetral')"></u-navbar>
  12. </view>
  13. <!-- 用户信息 -->
  14. <view class="title">
  15. <view class="user-info">
  16. <view class="user-pic">
  17. <image class="ui-pic-detail" :src="websiteUrl+picDetail.userPic" mode=""></image>
  18. </view>
  19. <view class="user-grade-now">
  20. {{userInfos.levelName}}
  21. </view>
  22. <view class="integrate-now"><text
  23. class="big-num">{{userInfos.point}}<br /></text>{{$i18n.locale=='zh'?'可用积分':'Available integral'}}
  24. </view>
  25. <u-button class=" get-integrate" type="custom" shape="circle" @tap="toGetInfo" v-show="getIntegrate">
  26. <text class="get-integrate-info">{{$i18n.locale=='zh'?'赚积分':'Earn Points'}}</text>
  27. </u-button>
  28. <u-button class=" get-integrate" type="custom" shape="circle" @tap="toConversion"
  29. v-show="toGetIntegrate"><text
  30. class="get-integrate-info">{{$i18n.locale=='zh'?'花积分':'Take Integral'}}</text>
  31. </u-button>
  32. </view>
  33. </view>
  34. <!-- 花积分 -->
  35. <view class="user-pay-integrate" style="background-color: #ebebeb;" v-show="getIntegrate">
  36. <uni-list class="my-list">
  37. <uni-list-item showArrow :title="i18n('MyOrderList')" clickable @tap="toMyList" />
  38. </uni-list>
  39. <view class="container">
  40. <view class="container-title">{{$i18n.locale=='zh'?'热门期刊':'Popular journals'}}</view>
  41. <view class="container-content" v-for="(InfoList,index) in ShopInfo" :key="index">
  42. <view class="content-left">
  43. <image :src="websiteUrl + InfoList.picture" class="left-pic">
  44. </image>
  45. <view class="littlt-pic">
  46. <image src="/static/fill-little.png" class="fire-pic" />TOP<text
  47. class="little-num">{{index}}</text>
  48. </view>
  49. </view>
  50. <view class="content-right">
  51. <view class="content-right-title">
  52. {{$i18n.locale=='zh'? InfoList.commodityName:InfoList.commodityNameEn}}
  53. </view>
  54. <view class="content-right-need">{{$i18n.locale=='zh'?'所需分值:':'The score:'}}<text
  55. class="need-num">{{InfoList.point}}</text>
  56. </view>
  57. <view class="content-right-lost">
  58. <view class="lost-num">
  59. {{$i18n.locale=='zh'?'累计兑换量:':'Accumulated exchange:'}}{{InfoList.exchangeQuantity}}个
  60. </view>
  61. <view class="lost-info">
  62. {{$i18n.locale=='zh'?`${InfoList.inventoryQuantity>=100?'库存充足':InfoList.inventoryQuantity}`:
  63. `${InfoList.inventoryQuantity>=100?"sufficientstock":InfoList.inventoryQuantity}`}}
  64. </view>
  65. </view>
  66. <button v-if="InfoList.commodityStatus==2" class="button-popup-success2"
  67. @tap="toShopInfo(InfoList.id,userInfos.level)">
  68. <text class="button-text-success">{{$i18n.locale=='zh'?'立即兑换':'Immediately change'}}</text>
  69. </button>
  70. <button v-else class="button-popup-success" @tap="toShopInfo(InfoList.id,userInfos.level)">
  71. <text class="button-text-success">{{$i18n.locale=='zh'?'立即兑换':'Immediately change'}}</text>
  72. </button>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- 赚积分 -->
  78. <view class="user-get-integrate" style="background-color: #f3f3f3;" v-show="toGetIntegrate">
  79. <!-- 账号积分 -->
  80. <view class="to-text">{{$i18n.locale=='zh'?'新手任务':'New task'}}</view>
  81. <uni-section>
  82. <view class="ui-btn" v-if="$i18n.locale=='zh'">
  83. <uni-segmented-control :current="current1" :values="items" :style-type="styleType"
  84. :active-color="activeColor" @clickItem="onClickItem" class="ui-get-btn" />
  85. </view>
  86. <view class="ui-btn" v-if="$i18n.locale!='zh'">
  87. <uni-segmented-control :current="current1" :values="itemsEn" :style-type="styleType"
  88. :active-color="activeColor" @clickItem="onClickItem" class="ui-get-btn" />
  89. </view>
  90. </uni-section>
  91. <view class="ui-content">
  92. <!-- 账号积分任务 -->
  93. <view v-if="current1 === 0">
  94. <uni-list class="to-my-list" v-for="(userTask,index) in userIntegrate" :key="index"
  95. v-show="!taskText[userTask.taskDict]">
  96. <view class="to-list-item">
  97. <view class="list-item-pic">
  98. <image v-if="userTask.count===userTask.number" :src="newDownTask[userTask.taskDict]"
  99. class="un-pic" />
  100. <image v-else :src="newUnDownTask[userTask.taskDict]" class="un-pic" />
  101. </view>
  102. <view class="list-item-text">
  103. <view class="item-text-title">
  104. <view class="item-text-pic">
  105. {{$i18n.locale=='zh'?userTask.taskName:userTask.taskNameEn}}
  106. </view>
  107. <view class="item-text-change">
  108. {{$i18n.locale=='zh'?'已完成':'off the stocks'}}{{userTask.count}}/{{userTask.number}}
  109. </view>
  110. </view>
  111. <view class="item-text-integrate">
  112. <view class="item-get-grow">{{$i18n.locale=='zh'?'积分':'Integrate'}}<text
  113. class="item-text-integrate-text">+{{userTask.taskPoint.day1}}</text>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="list-item-btn">
  118. <button class="list-item-btn-get" @tap="getUserIntegrate(userTask.taskDict)"
  119. v-if="userTask.count!==userTask.number">{{$i18n.locale=='zh'?'去完成':'Complete'}}</button>
  120. <button class="list-item-btn-get-end"
  121. v-else>{{$i18n.locale=='zh'?'已完成':'Completed'}}</button>
  122. </view>
  123. </view>
  124. </uni-list>
  125. </view>
  126. <!-- 账号成长值任务 -->
  127. <view v-if="current1 === 1">
  128. <uni-list class="to-my-list" v-for="(newTask,index) in TaskNewbie" :key="index"
  129. v-show="!taskText[newTask.taskDict]">
  130. <!--v-for uni-list-->
  131. <view class="to-list-item">
  132. <view class="list-item-pic">
  133. <image v-if="newTask.count===newTask.number" :src="newDownTask[newTask.taskDict]"
  134. class="un-pic" />
  135. <image v-else :src="newUnDownTask[newTask.taskDict]" class="un-pic" />
  136. </view>
  137. <view class="list-item-text">
  138. <view class="item-text-title">
  139. <view class="item-text-pic">
  140. {{$i18n.locale=='zh'?newTask.taskName:newTask.taskNameEn}}
  141. </view>
  142. <view class="item-text-change">
  143. {{$i18n.locale=='zh'?'已完成':'off the stocks'}}{{newTask.count}}/{{newTask.number}}
  144. </view>
  145. </view>
  146. <view class="item-text-integrate">
  147. <view class="item-get-grow">{{$i18n.locale=='zh'?'成长值':'Growth Value'}}<text
  148. class="item-text-integrate-text">+{{newTask.growth}}</text>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="list-item-btn">
  153. <button class="list-item-btn-get" @tap="getUserIntegrate(newTask.taskDict)"
  154. v-if="newTask.count!==newTask.number">{{$i18n.locale=='zh'?'去完成':'Complete'}}</button>
  155. <button class="list-item-btn-get-end"
  156. v-else>{{$i18n.locale=='zh'?'已完成':'Completed'}}</button>
  157. </view>
  158. </view>
  159. </uni-list>
  160. </view>
  161. </view>
  162. <!-- 每日任务 -->
  163. <view class="to-text">{{$i18n.locale=='zh'?'日常任务':'Daily Task'}}</view>
  164. <uni-section>
  165. <view class="ui-btn" v-if="$i18n.locale=='zh'">
  166. <uni-segmented-control :current="current2" :values="items" :style-type="styleType"
  167. :active-color="activeColor" @clickItem="getClickItem" class="ui-get-btn" />
  168. </view>
  169. <view class="ui-btn" v-if="$i18n.locale!='zh'">
  170. <uni-segmented-control :current="current2" :values="itemsEn" :style-type="styleType"
  171. :active-color="activeColor" @clickItem="getClickItem" class="ui-get-btn" />
  172. </view>
  173. </uni-section>
  174. <view class="ui-content">
  175. <!-- 每日积分任务 -->
  176. <view v-if="current2 === 0">
  177. <uni-list class="to-my-list" v-for="(getDailyInfos,index) in dailyIntegrate" :key="index"
  178. v-show="!taskText[getDailyInfos.taskDict]">
  179. <!--v-for uni-list-->
  180. <view class="to-list-item">
  181. <view class="list-item-pic">
  182. <image v-if="getDailyInfos.count===getDailyInfos.number"
  183. :src="newDownTask[getDailyInfos.taskDict]" class="un-pic" />
  184. <image v-else :src="newUnDownTask[getDailyInfos.taskDict]" class="un-pic" />
  185. </view>
  186. <view class="list-item-text">
  187. <view class="item-text-title">
  188. <view class="item-text-pic">
  189. {{$i18n.locale=='zh'?getDailyInfos.taskName:getDailyInfos.taskNameEn}}
  190. </view>
  191. <view class="item-text-change">
  192. {{$i18n.locale=='zh'?'已完成':'off the stocks'}}{{getDailyInfos.count}}/{{getDailyInfos.number}}
  193. </view>
  194. </view>
  195. <view class="item-text-integrate">
  196. <view class="item-get-grow">{{$i18n.locale=='zh'?'积分':'Integrate'}}<text
  197. class="item-text-integrate-text">+{{getDailyInfos.taskPoint.day1}}</text>
  198. </view>
  199. </view>
  200. </view>
  201. <view class="list-item-btn">
  202. <button class="list-item-btn-get-green" @tap="getUserIntegrate(getDailyInfos.taskDict)"
  203. v-if="getDailyInfos.count!==getDailyInfos.number">
  204. {{$i18n.locale=='zh'?'去完成':'Complete'}}</button>
  205. <button class="list-item-btn-get-end"
  206. v-else>{{$i18n.locale=='zh'?'已完成':'Completed'}}</button>
  207. </view>
  208. </view>
  209. </uni-list>
  210. </view>
  211. <!-- 每日成长值任务 -->
  212. <view v-if="current2 === 1">
  213. <uni-list class="to-my-list" v-for="(dailyInfo,index) in GetDaily" :key="index"
  214. v-show="!taskText[dailyInfo.taskDict]">
  215. <!--v-for uni-list-->
  216. <view class="to-list-item">
  217. <view class="list-item-pic">
  218. <image v-if="dailyInfo.count===dailyInfo.number" :src="newDownTask[dailyInfo.taskDict]"
  219. class="un-pic" />
  220. <image v-else :src="newUnDownTask[dailyInfo.taskDict]" class="un-pic" />
  221. </view>
  222. <view class="list-item-text">
  223. <view class="item-text-title">
  224. <view class="item-text-pic">
  225. {{$i18n.locale=='zh'?dailyInfo.taskName:dailyInfo.taskNameEn}}
  226. </view>
  227. <view class="item-text-change">
  228. {{$i18n.locale=='zh'?'已完成':'off the stocks'}}{{dailyInfo.count}}/{{dailyInfo.number}}
  229. </view>
  230. </view>
  231. <view class="item-text-integrate">
  232. <view class="item-get-grow">{{$i18n.locale=='zh'?'成长值':'Growth Value'}}<text
  233. class="item-text-integrate-text">+{{dailyInfo.growth}}</text>
  234. </view>
  235. </view>
  236. </view>
  237. <view class="list-item-btn">
  238. <button class="list-item-btn-get-green" @tap="getUserIntegrate(dailyInfo.taskDict)"
  239. v-if="dailyInfo.count!=dailyInfo.number">{{$i18n.locale=='zh'?'去完成':'Complete'}}</button>
  240. <button class="list-item-btn-get-end"
  241. v-else>{{$i18n.locale=='zh'?'已完成':'Completed'}}</button>
  242. </view>
  243. </view>
  244. </uni-list>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. </template>
  250. <script>
  251. const newUnDownTask = {
  252. point_task_upload_head_portrait: '/static/gray/user-title.png',
  253. point_task_complete_info: '/static/gray/user-own.png',
  254. point_task_verified_name: '/static/gray/user-achve.png',
  255. point_task_bind_email: '/static/gray/user-email.png',
  256. point_task_set_nickname: '/static/gray/user-name.png',
  257. point_task_bind_phone: '/static/gray/user-phone.png',
  258. platform_problem_feedback: '/static/gray2/user-ques.png',
  259. point_task_upload_resources_project: '/static/gray2/user-guo.png',
  260. project_recommended: '/static/gray2/user-ping.png',
  261. aubmit_a_message_once: '/static/gray2/user-guo.png',
  262. point_task_upload_journal: '/static/gray2/user-guo.png',
  263. point_task_upload_resources_result: '/static/gray2/user-guo.png',
  264. activity_registration_successful: '/static/gray2/user-huo.png',
  265. point_task_share_project: '/static/gray2/user-fen.png',
  266. meeting_registration_successful: '/static/gray2/user-hui.png',
  267. the_message_was_liked: '/static/gray2/user-liu.png',
  268. point_task_share_information: '/static/gray2/user-fen.png',
  269. point_task_sign: '/static/gray2/user-log.png',
  270. message_is_saved: '/static/gray2/user-yan.png',
  271. point_task_upload_information: '/static/gray2/user-shen.png',
  272. point_read_information: '/static/gray2/user-yue.png',
  273. point_task_development_cooperation_message: '/static/gray2/user-fa.png',
  274. point_task_project_ask: '/static/gray2/user-xiang.png',
  275. point_task_project_message: '/static/gray2/user-last.png',
  276. point_task_attention: '/static/gray2/user-guan.png',
  277. point_task_view_resources_project: '/static/gray/2.png'
  278. };
  279. const newDownTask = {
  280. point_task_upload_head_portrait: '/static/blue/user-title.png',
  281. point_task_complete_info: '/static/blue/user-1.png',
  282. point_task_verified_name: '/static/blue/user-2.png',
  283. point_task_bind_email: '/static/blue/user-3.png',
  284. point_task_set_nickname: '/static/blue/user-4.png',
  285. point_task_bind_phone: '/static/blue/user-5.png',
  286. platform_problem_feedback: '/static/green/user-1.png',
  287. point_task_upload_resources_project: '/static/green/user-2.png',
  288. point_task_upload_research_resources: '/static/green/user-2.png',
  289. project_recommended: '/static/green/user-3.png',
  290. aubmit_a_message_once: '/static/green/user-2.png',
  291. point_task_upload_journal: '/static/green/user-2.png',
  292. point_task_upload_resources_result: '/static/green/user-2.png',
  293. activity_registration_successful: '/static/green/user-4.png',
  294. point_task_share_project: '/static/green/user-5.png',
  295. meeting_registration_successful: '/static/green/user-6.png',
  296. the_message_was_liked: '/static/green/user-7.png',
  297. point_task_share_information: '/static/green/user-6.png',
  298. point_task_sign: '/static/green/user-8.png',
  299. message_is_saved: '/static/green/user-9.png',
  300. point_task_upload_information: '/static/green/user-11.png',
  301. point_task_development_cooperation_message: '/static/green/user-12.png',
  302. point_task_project_message: '/static/green/user-13.png',
  303. point_task_project_ask: '/static/green/user-14.png',
  304. point_read_information: '/static/green/user-15.png',
  305. point_task_attention: '/static/green/user-16.png',
  306. point_task_view_resources_project: '/static/green/user-17.png'
  307. }
  308. const taskText = {
  309. point_task_upload_research_resources: 'point_task_upload_research_resources',
  310. point_task_verified_name: 'point_task_verified_name:',
  311. point_task_development_cooperation_message: 'point_task_development_cooperation_message',
  312. point_task_upload_resources_result: 'point_task_upload_resources_result',
  313. point_task_upload_resources_project: 'point_task_upload_resources_project',
  314. point_task_upload_information: 'point_task_upload_information',
  315. point_task_upload_journal: 'point_task_upload_journal',
  316. point_task_project_message: 'point_task_project_message',
  317. platform_problem_feedback: 'platform_problem_feedback',
  318. project_recommended: 'project_recommended',
  319. aubmit_a_message_once: 'aubmit_a_message_once ',
  320. message_is_saved: 'message_is_saved',
  321. the_message_was_liked: 'the_message_was_liked',
  322. point_task_complete_info: 'point_task_complete_info',
  323. // point_task_project_ask: 'point_task_project_ask',
  324. // point_task_view_resources_project: 'point_task_view_resources_project',
  325. }
  326. // import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue'
  327. // import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue'
  328. // import uniPopup from '@/components/uni-popup/uni-popup.vue'
  329. export default {
  330. // components: {
  331. // uniPopupDialog,
  332. // uniPopupMessage,
  333. // uniPopup
  334. // },
  335. data() {
  336. return {
  337. background: {
  338. backgroundImage: 'linear-gradient(270deg, #4BC0E2 0%, #538BE7 100%)',
  339. },
  340. backStyle: {
  341. color: '#FFFFFF',
  342. },
  343. ShopInfo: {},
  344. picDetail: {},
  345. TaskNewbie: {},
  346. GetDaily: {},
  347. newUnDownTask: newUnDownTask,
  348. newDownTask: newDownTask,
  349. taskText: taskText,
  350. userIntegrate: {},
  351. dailyIntegrate: {},
  352. userInfos: {},
  353. getIntegrate: true,
  354. toGetIntegrate: false,
  355. isAchieve: true,
  356. items: ['积分任务', '成长值任务'],
  357. itemsEn: ['Integral task', 'Growing value task'],
  358. styles: [{
  359. value: 'button',
  360. text: '按钮',
  361. checked: true
  362. },
  363. {
  364. value: 'text',
  365. text: '文字'
  366. }
  367. ],
  368. colors: ['#007aff', '#4cd964', '#dd524d'],
  369. current1: 0,
  370. current2: 0,
  371. activeColor: '#007aff',
  372. styleType: 'button',
  373. };
  374. },
  375. onShow() {
  376. this.getShoppingDetail()
  377. // this.GetInfoDetails()
  378. this.getUserInfo()
  379. this.getTaskComplete()
  380. this.getIntegrateTask()
  381. },
  382. methods: {
  383. i18n(data) {
  384. return this.$t('common.' + data);
  385. },
  386. // 分段器函数
  387. onClickItem(e) {
  388. if (this.current1 !== e.currentIndex) {
  389. this.current1 = e.currentIndex
  390. }
  391. },
  392. getClickItem(e) {
  393. if (this.current2 !== e.currentIndex) {
  394. this.current2 = e.currentIndex
  395. }
  396. },
  397. //跳转详情
  398. toShopInfo(id, grade) {
  399. // console.log(id);
  400. // console.log(grade);
  401. uni.navigateTo({
  402. url: './userShopDetails?id=' + id + '&grade=' + grade
  403. })
  404. },
  405. //赚积分按钮
  406. toGetInfo() {
  407. this.getIntegrate = false;
  408. this.toGetIntegrate = true
  409. },
  410. // 花积分按钮
  411. toConversion() {
  412. this.getIntegrate = true;
  413. this.toGetIntegrate = false
  414. },
  415. // 新手积分任务跳转
  416. getUserIntegrate(e) {
  417. console.log(e, '=============');
  418. if (e == 'point_task_complete_info') {
  419. console.log('完善个人信息');
  420. uni.navigateTo({
  421. url: '/pages/profile/profileSetUp/basicInformation'
  422. })
  423. } else if (e == 'point_task_verified_name') {
  424. console.log('完成实名认证');
  425. } else if (e == 'point_task_bind_email') {
  426. console.log('绑定邮箱');
  427. uni.navigateTo({
  428. url: '/pages/profile/profileSetUp/changeMailbox'
  429. })
  430. } else if (e == 'point_task_upload_head_portrait') {
  431. console.log('上传头像');
  432. uni.switchTab({
  433. url: '/pages/profile/profile'
  434. })
  435. } else if (e == 'point_task_bind_phone') {
  436. console.log('绑定手机号');
  437. uni.navigateTo({
  438. url: '/pages/profile/profileSetUp/accountSecurity'
  439. })
  440. } else if (e == 'point_read_information') {
  441. console.log('阅读资讯');
  442. // console.log(getCurrentPages());
  443. uni.setStorageSync("currentIndex", e); //赋值
  444. uni.switchTab({
  445. url: '/pages/information/index'
  446. })
  447. } else if (e == 'point_task_development_cooperation_message') {
  448. console.log('发展合作留言');
  449. uni.navigateTo({
  450. url: ''
  451. })
  452. } else if (e == 'point_task_project_ask') {
  453. console.log('项目问询');
  454. uni.navigateTo({
  455. url: '/pages/country/projectPresentation/projectPresentation'
  456. })
  457. } else if (e == 'point_task_upload_resources_result') {
  458. console.log('上传研究成果并审核通过');
  459. uni.navigateTo({
  460. url: ''
  461. })
  462. } else if (e == 'point_task_upload_resources_project') {
  463. console.log('上传项目资源并审核通过');
  464. uni.navigateTo({
  465. url: ''
  466. })
  467. } else if (e == 'point_task_upload_information') {
  468. console.log('上传资讯信息并审核通过');
  469. uni.navigateTo({
  470. url: ''
  471. })
  472. } else if (e == 'point_task_upload_journal') {
  473. console.log('上传期刊信息并审核通过');
  474. uni.navigateTo({
  475. url: ''
  476. })
  477. } else if (e == 'point_task_view_resources_project') {
  478. console.log('查看项目资源');
  479. uni.navigateTo({
  480. url: '/pages/country/projectPresentation/projectPresentation'
  481. })
  482. } else if (e == 'point_task_attention') {
  483. console.log('关注项目、国别、企业');
  484. uni.navigateTo({
  485. url: '/pages/country/projectPresentation/projectPresentation'
  486. })
  487. } else if (e == 'activity_registration_successful') {
  488. console.log('参与合作交流活动报名成功');
  489. uni.navigateTo({
  490. url: '/pages/cooperationExchange/cooperationExchange'
  491. })
  492. } else if (e == 'meeting_registration_successful') {
  493. console.log('参与会议活动报名成功');
  494. uni.navigateTo({
  495. url: '/pages/conference/meetingIndexCh/meetingIndex'
  496. })
  497. } else if (e == 'point_task_project_message') {
  498. console.log('项目留言');
  499. uni.navigateTo({
  500. url: ''
  501. })
  502. } else if (e == 'platform_problem_feedback') {
  503. console.log('平台问题反馈');
  504. uni.navigateTo({
  505. url: ''
  506. })
  507. } else if (e == 'project_recommended') {
  508. console.log('项目被平台推荐');
  509. uni.navigateTo({
  510. url: ''
  511. })
  512. } else if (e == 'aubmit_a_message_once') {
  513. console.log('项目提交留言一次');
  514. uni.navigateTo({
  515. url: ''
  516. })
  517. } else if (e == 'the_message_was_liked') {
  518. console.log('发展合作留言被点赞');
  519. uni.navigateTo({
  520. url: ''
  521. })
  522. } else if (e == 'point_task_sign') {
  523. console.log('登录打卡');
  524. uni.navigateTo({
  525. url: ''
  526. })
  527. } else if (e == 'message_is_saved') {
  528. console.log('发展合作留言被收藏');
  529. uni.navigateTo({
  530. url: ''
  531. })
  532. }
  533. },
  534. toMyList() {
  535. uni.navigateTo({
  536. url: './myPayList'
  537. })
  538. },
  539. //礼品列表接口
  540. async getShoppingDetail() {
  541. const res = await this.$myRequest({
  542. url: '/uc/umsPointCommoditys/commodityList',
  543. data: {}
  544. });
  545. // console.log(res);
  546. this.ShopInfo = res.data.pointCommoditys
  547. },
  548. // 获取用户头像接口
  549. async getUserInfo() {
  550. const res = await this.$myRequest({
  551. url: '/uc/userCenter/findBasicInfo',
  552. data: {},
  553. });
  554. this.picDetail = res.data
  555. await this.getUserDetail()
  556. },
  557. // 用户信息接口
  558. async getUserDetail() {
  559. const res = await this.$myRequest({
  560. url: '/uc/umsUserPoints/getUserPoint',
  561. data: {
  562. // "userUid": this.picDetail.id
  563. }
  564. });
  565. // console.log(res);
  566. this.userInfos = res.data.umsUserPoints[0]
  567. if (this.userInfos.levelName == '白银用户') {
  568. if (this.$i18n.locale == 'zh') {
  569. this.userInfos.levelName = '白银用户'
  570. } else {
  571. this.userInfos.levelName = 'Silver User'
  572. }
  573. } else if (this.userInfos.levelName == '黄金用户') {
  574. if (this.$i18n.locale == 'zh') {
  575. this.userInfos.levelName = '黄金用户'
  576. } else {
  577. this.userInfos.levelName = 'Gold User'
  578. }
  579. } else if (this.userInfos.levelName == '铂金用户') {
  580. if (this.$i18n.locale == 'zh') {
  581. this.userInfos.levelName = '铂金用户'
  582. } else {
  583. this.userInfos.levelName = 'Platinum User'
  584. }
  585. } else {
  586. if (this.$i18n.locale == 'zh') {
  587. this.userInfos.levelName = '星钻用户'
  588. } else {
  589. this.userInfos.levelName = 'Star User'
  590. }
  591. }
  592. },
  593. // 成长值任务接口
  594. async getTaskComplete() {
  595. const res = await this.$myRequest({
  596. url: '/uc/umsUserGrowthTasks/getUserGrowthTaskComplete',
  597. data: {},
  598. });
  599. this.TaskNewbie = res.data.piont_newbie_task
  600. this.GetDaily = res.data.point_daily_task
  601. },
  602. // 积分任务接口
  603. async getIntegrateTask() {
  604. const res = await this.$myRequest({
  605. url: '/uc/umsUserTasks/getUserTaskComplete',
  606. data: {}
  607. });
  608. this.userIntegrate = res.data.other.piont_newbie_task
  609. this.dailyIntegrate = res.data.other.point_daily_task
  610. },
  611. }
  612. }
  613. </script>
  614. <style lang="scss" scoped>
  615. .title {
  616. width: 100%;
  617. height: 100%;
  618. .user-info {
  619. display: flex;
  620. justify-content: space-around;
  621. background-image: url('/static/bgc-user.png');
  622. background-size: 100%;
  623. height: 200rpx;
  624. position: relative;
  625. .user-pic {
  626. width: 20%;
  627. height: 73%;
  628. margin-top: 4%;
  629. margin-left: 4%;
  630. border-radius: 50%;
  631. background-color: #e9e9e9;
  632. overflow: hidden;
  633. .ui-pic-detail {
  634. width: 100%;
  635. height: 100%;
  636. }
  637. }
  638. .user-grade-now {
  639. font-size: 20rpx;
  640. width: 25%;
  641. text-align: center;
  642. transform: translateY(410%);
  643. border-radius: 50rpx;
  644. background-color: #DFAC74FF;
  645. position: absolute;
  646. left: 2%;
  647. top: 30rpx;
  648. }
  649. .integrate-now {
  650. width: 30%;
  651. text-align: center;
  652. margin-left: 11%;
  653. .big-num {
  654. display: block;
  655. font-size: 60rpx;
  656. font-weight: 700;
  657. margin-bottom: -8%;
  658. margin-top: 18%;
  659. }
  660. }
  661. .get-integrate {
  662. width: 30%;
  663. height: 26%;
  664. transform: translateX(22%) translateY(145%);
  665. background-color: #368CFFFF;
  666. border: none;
  667. .get-integrate-info {
  668. font-size: 30rpx;
  669. color: #fff;
  670. transform: translateX(-15%);
  671. }
  672. }
  673. }
  674. }
  675. .user-pay-integrate {
  676. .container {
  677. width: 100%;
  678. background-color: #fff;
  679. margin-top: 4%;
  680. .container-title {
  681. font-size: 36rpx;
  682. font-weight: 700;
  683. padding-bottom: 12px;
  684. margin-left: 4%;
  685. transform: translateY(20%);
  686. margin-bottom: 4%;
  687. }
  688. .container-content {
  689. width: 92%;
  690. margin-left: 4%;
  691. margin-bottom: 4%;
  692. display: flex;
  693. justify-content: space-between;
  694. .content-left {
  695. width: 34%;
  696. height: 300rpx;
  697. background-color: antiquewhite;
  698. .left-pic {
  699. width: 100%;
  700. height: 100%;
  701. }
  702. .littlt-pic {
  703. width: 120rpx;
  704. height: 30rpx;
  705. border-radius: 0 0 60rpx 0;
  706. background-color: #F29D43FF;
  707. transform: translateY(-1052%);
  708. font-size: 8rpx;
  709. color: #fff;
  710. line-height: 31rpx;
  711. .fire-pic {
  712. width: 20rpx;
  713. height: 20rpx;
  714. margin: 0 6rpx;
  715. }
  716. .little-num {
  717. margin-left: 4rpx;
  718. font-size: 26rpx;
  719. font-weight: 700;
  720. }
  721. }
  722. }
  723. .content-right {
  724. width: 65%;
  725. .content-right-title {
  726. font-size: 30rpx;
  727. font-weight: 700;
  728. color: #0B0B11FF;
  729. }
  730. .content-right-need {
  731. color: #0B0B11FF;
  732. margin-top: 16rpx;
  733. margin-bottom: 16rpx;
  734. margin-left: 4%;
  735. font-size: 24rpx;
  736. .need-num {
  737. color: #E02020FF;
  738. }
  739. }
  740. .content-right-lost {
  741. color: #0B0B11FF;
  742. display: flex;
  743. justify-content: space-between;
  744. margin-bottom: 18rpx;
  745. .lost-num {
  746. margin-left: 3%;
  747. font-size: 22rpx;
  748. }
  749. .lost-info {
  750. margin-right: 5%;
  751. font-size: 22rpx;
  752. }
  753. }
  754. .button-popup-success2 {
  755. color: deepskyblue;
  756. width: 40%;
  757. height: 48rpx;
  758. line-height: 48rpx;
  759. margin-left: 4%;
  760. font-size: 18rpx;
  761. border-radius: 50rpx;
  762. border: 1rpx solid #a6a9ad;
  763. background-color: #a6a9ad;
  764. .button-text-success {
  765. color: black;
  766. }
  767. }
  768. .button-popup-success {
  769. color: deepskyblue;
  770. width: 40%;
  771. height: 48rpx;
  772. line-height: 48rpx;
  773. margin-left: 4%;
  774. font-size: 18rpx;
  775. border-radius: 50rpx;
  776. border: 1rpx solid wheat;
  777. .button-text-success {
  778. color: black;
  779. }
  780. }
  781. .get-container {
  782. color: deepskyblue;
  783. width: 30%;
  784. height: 42rpx;
  785. margin-left: 4%;
  786. font-size: 18rpx;
  787. }
  788. }
  789. }
  790. }
  791. }
  792. .user-get-integrate {
  793. .to-text {
  794. height: 80rpx;
  795. line-height: 80rpx;
  796. margin-left: 3%;
  797. font-weight: 700;
  798. margin-bottom: -3%;
  799. }
  800. .ui-btn {
  801. width: 100%;
  802. .ui-get-btn {
  803. width: 100%;
  804. height: 60rpx;
  805. }
  806. }
  807. .ui-content {
  808. .to-my-list {
  809. // margin-bottom: 1%;
  810. .to-list-item {
  811. width: 94%;
  812. height: 160rpx;
  813. margin-left: 3%;
  814. display: flex;
  815. justify-content: space-evenly;
  816. .list-item-pic {
  817. width: 15%;
  818. .un-pic {
  819. width: 90%;
  820. margin-top: 30rpx;
  821. height: 100rpx;
  822. }
  823. }
  824. .list-item-text {
  825. width: 65%;
  826. .item-text-title {
  827. display: flex;
  828. justify-content: space-around;
  829. margin-top: 20rpx;
  830. .item-text-pic {
  831. width: 50%;
  832. height: 40rpx;
  833. line-height: 40rpx;
  834. font-size: 26rpx;
  835. font-weight: 700;
  836. white-space: nowrap;
  837. overflow: hidden;
  838. text-overflow: ellipsis;
  839. }
  840. .item-text-change {
  841. height: 40rpx;
  842. line-height: 40rpx;
  843. font-size: 20rpx;
  844. margin-top: 2%;
  845. white-space: nowrap;
  846. overflow: hidden;
  847. text-overflow: ellipsis;
  848. }
  849. }
  850. .item-text-integrate {
  851. display: flex;
  852. margin-top: 20rpx;
  853. .item-get-grow {
  854. font-size: 22rpx;
  855. color: #333333FF;
  856. margin-left: 15%;
  857. }
  858. .item-text-integrate-text {
  859. color: red;
  860. margin-left: 5rpx;
  861. font-weight: 700;
  862. }
  863. }
  864. }
  865. .list-item-btn {
  866. width: 20%;
  867. .list-item-btn-get {
  868. height: 50rpx;
  869. line-height: 50rpx;
  870. background-color: #368CFFFF;
  871. margin-top: 60rpx;
  872. color: #fff;
  873. font-size: 20rpx;
  874. }
  875. .list-item-btn-get-green {
  876. height: 50rpx;
  877. line-height: 50rpx;
  878. background-color: #5BB200FF;
  879. margin-top: 60rpx;
  880. color: #fff;
  881. font-size: 20rpx;
  882. }
  883. .list-item-btn-get-end {
  884. height: 50rpx;
  885. line-height: 50rpx;
  886. margin-top: 60rpx;
  887. background-color: #999999FF;
  888. color: #fff;
  889. font-size: 20rpx;
  890. }
  891. }
  892. }
  893. }
  894. }
  895. }
  896. </style>