AI销管
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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