You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Equinoctiallearning.vue 4.4 KiB

преди 3 години
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. methods: {
  39. quclick(item) {
  40. const parames = {
  41. pageNum: 1,
  42. pageSize: 100,
  43. query: {
  44. whetherFinish: 1,
  45. customerId: item.carId,
  46. id:item.startFile
  47. }
  48. }
  49. var cet={
  50. bg:0,
  51. customerId:item.id,
  52. id:''
  53. }
  54. this.$u.post("/corpus/fendianFindByPage", parames).then(res => {
  55. var newobj = res[0];
  56. if(res[0].recordDuration>360){
  57. uni.navigateTo({
  58. url: `/pages/learning/Equinoctial/index2?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}`
  59. })
  60. }else{
  61. uni.navigateTo({
  62. url: `/pages/learning/Equinoctial/index?customerId=${newobj.customerId}&biaoqian=${this.biaoqian}&startTime=${item.startTime}&startFile=${item.startFile}`
  63. })
  64. }
  65. })
  66. },
  67. ceninit() {
  68. let itemid=uni.getStorageSync('buildingID').id;
  69. let infoobj = {
  70. "pageNum": 1,
  71. "pageSize": 100,
  72. "query": {
  73. "status": 1,
  74. "marketingId": this.id,
  75. "itemId":itemid
  76. }
  77. }
  78. uni.request({
  79. url: config.service.findAllZATD,
  80. method: "POST",
  81. header: {
  82. 'content-type': 'application/json',
  83. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  84. },
  85. data: infoobj,
  86. success: (data) => {
  87. console.log(data.data.data.results, "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq");
  88. if (data.data.code == 10000) {
  89. this.alllist = data.data.data.results
  90. } else {
  91. uni.showToast({
  92. title: data.data.message,
  93. duration: 2000
  94. });
  95. }
  96. }
  97. })
  98. },
  99. },
  100. }
  101. </script>
  102. <style lang="scss" scoped>
  103. .main {
  104. background: #F1F1F1;
  105. ;
  106. min-height: 100vh;
  107. padding-top: 30rpx;
  108. }
  109. .cented {
  110. width: 100%;
  111. padding-top: 14rpx;
  112. .ceninfo {
  113. width: 690rpx;
  114. height: 160rpx;
  115. background: #FFFFFF;
  116. border-radius: 8rpx;
  117. margin: 0 auto;
  118. padding-top: 23rpx;
  119. position: relative;
  120. margin-top: 20rpx;
  121. .infoview {
  122. width: 100%;
  123. height: 64rpx;
  124. display: flex;
  125. .infozuo {
  126. width: 454rpx;
  127. height: 100%;
  128. display: flex;
  129. align-items: center;
  130. .infozuochiud1 {
  131. font-size: 36rpx;
  132. font-weight: 600;
  133. color: #0C0C0C;
  134. text-indent: 28rpx;
  135. }
  136. .infozuochiud2 {
  137. width: 113rpx;
  138. height: 42rpx;
  139. border-radius: 5rpx;
  140. margin-left: 19rpx;
  141. border: 1px solid #008EF2;
  142. font-size: 24rpx;
  143. font-weight: 400;
  144. color: #008EF2;
  145. line-height: 42rpx;
  146. text-align: center;
  147. }
  148. }
  149. .infoyou {
  150. width: 236rpx;
  151. height: 100%;
  152. display: flex;
  153. align-items: center;
  154. .infoyouchiud1 {
  155. display: block;
  156. width: 64rpx;
  157. height: 64rpx;
  158. border-radius: 50%;
  159. }
  160. .infoyouchiud2 {
  161. width: 133rpx;
  162. height: 56rpx;
  163. background: #008EF2;
  164. border-radius: 8rpx;
  165. text-align: center;
  166. color: #FFFFFF;
  167. font-size: 30rpx;
  168. line-height: 56rpx;
  169. margin-left: 80rpx;
  170. }
  171. }
  172. }
  173. .footerinfo {
  174. width: 100%;
  175. height: 42rpx;
  176. display: flex;
  177. margin-top: 14rpx;
  178. .footerinfozuo {
  179. width: 454rpx;
  180. font-size: 30rpx;
  181. color: #0C0C0C;
  182. line-height: 42rpx;
  183. margin-left: 26rpx;
  184. }
  185. .footerinfoyou {
  186. width: 236rpx;
  187. font-size: 24rpx;
  188. color: #999999;
  189. line-height: 42rpx;
  190. text-indent: 42rpx;
  191. }
  192. }
  193. .dingwei {
  194. width: 100%;
  195. height: 60rpx;
  196. border: 1px solid red;
  197. position: absolute;
  198. top: 160rpx;
  199. left: 0rpx;
  200. }
  201. }
  202. }
  203. </style>