Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

223 строки
4.4 KiB

  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].merge==0){
  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>