您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Equinoctiallearning.vue 4.7 KiB

3 年前
2 年前
3 年前
2 年前
3 年前
2 年前
3 年前
3 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <view class="main">
  3. <view class="cented">
  4. <view class="ceninfo" v-for="(item,index) in alllist" :key="index">
  5. <view class="infoview">
  6. <view class="infozuo">
  7. <view class="infozuochiud1">{{item.jbaName}}</view>
  8. <view class="infozuochiud2">置业顾问</view>
  9. </view>
  10. <view class="infoyou">
  11. <view class="infoyouchiud2" @click="quclick(item)">去学习</view>
  12. </view>
  13. </view>
  14. <view class="footerinfo">
  15. <view class="footerinfozuo">{{item.assignedTime}}</view>
  16. <view class="footerinfoyou"></view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. var config = require("../../config");
  24. var util = require("../../utils/util.js");
  25. export default {
  26. data() {
  27. return {
  28. alllist: [],
  29. id: "",
  30. biaoqian:""
  31. };
  32. },
  33. onLoad(options) {
  34. this.id = options.id;
  35. this.biaoqian=options.biaoqian
  36. this.ceninit()
  37. },
  38. onPullDownRefresh() {
  39. this.ceninit()
  40. setTimeout(function () {
  41. uni.stopPullDownRefresh();
  42. }, 1000);
  43. },
  44. methods: {
  45. quclick(item) {
  46. uni.showLoading({
  47. title: '加载中',
  48. mask:true
  49. });
  50. const parames = {
  51. pageNum: 1,
  52. pageSize: 100,
  53. query: {
  54. whetherFinish: 1,
  55. customerId: item.carId,
  56. id:item.startFile
  57. }
  58. }
  59. var cet={
  60. bg:0,
  61. customerId:item.id,
  62. id:''
  63. }
  64. this.$u.post("/corpus/fendianFindByPage", parames).then(res => {
  65. var newobj = res[0];
  66. setTimeout(function () {
  67. uni.hideLoading();
  68. }, 2000);
  69. if(res[0].merge==0){
  70. uni.navigateTo({
  71. url: `/pages/learning/Equinoctial/index2?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}`
  72. })
  73. }else{
  74. uni.navigateTo({
  75. url: `/pages/learning/Equinoctial/index?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}`
  76. })
  77. }
  78. })
  79. },
  80. ceninit() {
  81. let itemid=uni.getStorageSync('buildingID').id;
  82. let infoobj = {
  83. "pageNum": 1,
  84. "pageSize": 100,
  85. "query": {
  86. "status": 1,
  87. "marketingId": this.id,
  88. "itemId":itemid
  89. }
  90. }
  91. uni.request({
  92. url: config.service.findAllZATD,
  93. method: "POST",
  94. header: {
  95. 'content-type': 'application/json',
  96. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  97. },
  98. data: infoobj,
  99. success: (data) => {
  100. console.log(data.data.data.results, "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");
  101. if (data.data.code == 10000) {
  102. this.alllist = data.data.data.results
  103. } else {
  104. uni.showToast({
  105. title: data.data.message,
  106. duration: 2000
  107. });
  108. }
  109. }
  110. })
  111. },
  112. },
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .main {
  117. background: #F1F1F1;
  118. ;
  119. min-height: 100vh;
  120. padding-top: 30rpx;
  121. }
  122. .cented {
  123. width: 100%;
  124. padding-top: 14rpx;
  125. .ceninfo {
  126. width: 690rpx;
  127. height: 160rpx;
  128. background: #FFFFFF;
  129. border-radius: 8rpx;
  130. margin: 0 auto;
  131. padding-top: 23rpx;
  132. position: relative;
  133. margin-top: 20rpx;
  134. .infoview {
  135. width: 100%;
  136. height: 64rpx;
  137. display: flex;
  138. .infozuo {
  139. width: 454rpx;
  140. height: 100%;
  141. display: flex;
  142. align-items: center;
  143. .infozuochiud1 {
  144. font-size: 36rpx;
  145. font-weight: 600;
  146. color: #0C0C0C;
  147. text-indent: 28rpx;
  148. }
  149. .infozuochiud2 {
  150. width: 113rpx;
  151. height: 42rpx;
  152. border-radius: 5rpx;
  153. margin-left: 19rpx;
  154. border: 1px solid #008EF2;
  155. font-size: 24rpx;
  156. font-weight: 400;
  157. color: #008EF2;
  158. line-height: 42rpx;
  159. text-align: center;
  160. }
  161. }
  162. .infoyou {
  163. width: 236rpx;
  164. height: 100%;
  165. display: flex;
  166. align-items: center;
  167. .infoyouchiud1 {
  168. display: block;
  169. width: 64rpx;
  170. height: 64rpx;
  171. border-radius: 50%;
  172. }
  173. .infoyouchiud2 {
  174. width: 133rpx;
  175. height: 56rpx;
  176. background: #008EF2;
  177. border-radius: 8rpx;
  178. text-align: center;
  179. color: #FFFFFF;
  180. font-size: 30rpx;
  181. line-height: 56rpx;
  182. margin-left: 80rpx;
  183. }
  184. }
  185. }
  186. .footerinfo {
  187. width: 100%;
  188. height: 42rpx;
  189. display: flex;
  190. margin-top: 14rpx;
  191. .footerinfozuo {
  192. width: 454rpx;
  193. font-size: 30rpx;
  194. color: #0C0C0C;
  195. line-height: 42rpx;
  196. margin-left: 26rpx;
  197. }
  198. .footerinfoyou {
  199. width: 236rpx;
  200. font-size: 24rpx;
  201. color: #999999;
  202. line-height: 42rpx;
  203. text-indent: 42rpx;
  204. }
  205. }
  206. .dingwei {
  207. width: 100%;
  208. height: 60rpx;
  209. border: 1px solid red;
  210. position: absolute;
  211. top: 160rpx;
  212. left: 0rpx;
  213. }
  214. }
  215. }
  216. </style>