purchaserActivityList.vue 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <block v-if="isLoad">
  3. <view class="purchaser-activity-list" v-if="collectList && collectList.length > 0">
  4. <view class="purchaser-activity-box" v-for="(item,index) in collectList" :key="item.ActivityId"
  5. :style="{'border-color':item.ActivityType==1?'#8FA4C4':'#E7E0CD'}">
  6. <view class="purchaser-activity-head" >
  7. <text :class="item.ActivityType == 1 ? 'online' : 'offline'"
  8. class="activity-which-line">{{ item.ActivityType == 1 ? "线上" : "线下" }}</text>
  9. <text class="activity-label-text">
  10. {{item.ActivityTypeName}}
  11. </text>
  12. <text class="activity-label-text">
  13. {{item.Label}}
  14. </text>
  15. </view>
  16. <view class="activity-title text_twoLine" @click="goDetail(item)">
  17. <image v-if="item.IsResearchPoints" src="https://hzstatic.hzinsights.com/cygx/icon/Research_Points.png"></image>
  18. <image v-else-if="item.IsResearch" src="https://hzstatic.hzinsights.com/cygx/icon/Research_normal.png"></image>
  19. <image v-if="item.IsExternalLabel" src="https://hzstatic.hzinsights.com/cygx/icon/activity_external.png"></image>
  20. {{ item.ActivityName }}
  21. </view>
  22. <view class="activity-time-city-row" @click="goDetail(item)">
  23. <text class="activity-time">{{ item.SourceType == 2 ? "" : item.ActivityTimeText }}</text>
  24. <view class="activity-city" v-if="item.City">
  25. <image src="https://hzstatic.hzinsights.com/cygx/icon/location-new.png"></image>
  26. {{ item.City }}
  27. </view>
  28. </view>
  29. <view class="activity-buttons-row">
  30. <block v-if="item.ActiveState == 1">
  31. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1"
  32. class="main-button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  33. <text v-if="item.IsShowAppointment" @click="summaryIsHandel(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  34. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderAdd(item.ActivityId, item.IsCancelMeetingReminder)">
  35. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  36. </text>
  37. <view v-if="item.IsShowHelpSsk">
  38. <text @click="askingGo(item)">帮我带问</text>
  39. </view>
  40. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1"
  41. class="main-button" @click="signupIsAddOfCancel(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  42. <text v-if="item.IsShowDetails" @click="goDetail(item)" class="main-button">查看详情</text>
  43. <block v-if="item.IsShowSignup">
  44. <block v-if="item.IsCClassMeeting && !item.IsYidongConduct">
  45. <text class="main-button" @click="signupIsAddOfCancel(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  46. </block>
  47. <block v-else>
  48. <text class="main-button" v-if="item.IsSignup !== 1" @click="wanttosignup(item)">我要报名</text>
  49. <text class="main-button" v-else @click="signupIsAddOfCancel(item, 2)">{{ item.SignupType == 1 ? "取消外呼" : "取消报名" }}</text>
  50. </block>
  51. </block>
  52. </block>
  53. <view class="bottom-box real-time" v-if="item.ActiveState == 2 && item.ActivityTypeId == 1">
  54. <text class="main-button" @click="askingGo(item, '提问')">实时提问</text>
  55. </view>
  56. </view>
  57. </view>
  58. <slot name="finished"></slot>
  59. <SelectPopup :selectShow.sync="selectShow" @signupIsAddOfCancel="signupIsAddOfCancel" :selectYdong="selectYdong" />
  60. <!-- 所有自定义弹框 -->
  61. <modalDialog
  62. :isShow="isShow"
  63. :signupType="signupType"
  64. :goFollow="goFollow"
  65. :hasPermission="hasPermission"
  66. :jurisdictionList="jurisdictionList"
  67. :editIsShow="editIsShow"
  68. :isCancelShow="isCancelShow"
  69. :idTypeCancel="idTypeCancel"
  70. :countryCode="countryCode"
  71. :mobileEdit="mobileEdit"
  72. :goOnNextStep="goOnNextStep"
  73. :isShowhasPermission="isShowhasPermission"
  74. :applyForIsShow="applyForIsShow"
  75. :mailboxBinding="mailboxBinding"
  76. />
  77. </view>
  78. <slot v-else></slot>
  79. </block>
  80. <view v-else>
  81. </view>
  82. </template>
  83. <script>
  84. import myActivityMixin from "@/components/activity/indexActivity.js";
  85. import modalDialog from "@/components/modalDialog.vue";
  86. import SelectPopup from "@/components/activity/selectPopup";
  87. import { activity} from "@/config/api.js";
  88. export default {
  89. mixins: [myActivityMixin],
  90. components:{modalDialog,SelectPopup},
  91. props:{
  92. // 1-未开始、进行中 0-已结束
  93. activityType:{
  94. type: Number,
  95. default:1
  96. },
  97. whichDay:{
  98. type: String,
  99. default:''
  100. },
  101. typeName:{
  102. type: String,
  103. default:''
  104. }
  105. },
  106. data(){
  107. return {
  108. pageSize:10,
  109. page_no:1,
  110. collectList:[],
  111. pages:0,
  112. isLoad:false
  113. }
  114. },
  115. methods:{
  116. // 获取列表数据
  117. async getActivityList() {
  118. const res = await activity.getActivityListNew({
  119. PageSize: this.pageSize,
  120. CurrentIndex: this.page_no,
  121. IsResearch:true,
  122. ActiveState:this.activityType==1? '':3,
  123. WhichDay:this.whichDay,
  124. ActivityTypeId:this.typeName
  125. })
  126. if (res.Ret === 200) {
  127. if (this.page_no === 1) {
  128. this.collectList = res.Data.List || [];
  129. } else {
  130. this.collectList = this.collectList.concat(res.Data.List || []);
  131. }
  132. this.pages = res.Data.Paging.Pages || 0
  133. this.isLoad=true
  134. }
  135. },
  136. reloadActivityList(){
  137. this.page_no=1
  138. this.getActivityList()
  139. },
  140. loadActivityMore(){
  141. this.page_no++
  142. this.getActivityList()
  143. },
  144. },
  145. created() {
  146. // this.getActivityList()
  147. }
  148. }
  149. </script>
  150. <style scoped lang="scss">
  151. // 从查研观向11.0 版本开始陆续更换各个页面的页面主题。先从研选页面开始
  152. .purchaser-activity-box{
  153. width: 100%;
  154. padding: 40rpx 20rpx 30rpx;
  155. border-top: solid 10rpx ;
  156. border-radius: 16rpx;
  157. background-color: white;
  158. margin-bottom: 20rpx;
  159. .purchaser-activity-head{
  160. display: flex;
  161. align-items: center;
  162. margin-bottom: 40rpx;
  163. .activity-which-line{
  164. min-width: 110rpx;
  165. height: 40rpx;
  166. border-radius: 4rpx;
  167. font-size: 24rpx;
  168. line-height: 34rpx;
  169. display: flex;
  170. align-items: center;
  171. justify-content: center;
  172. color: #333333;
  173. font-weight: 500;
  174. }
  175. .online{
  176. background-color: #DFE8FF;
  177. }
  178. .offline{
  179. background-color: #F2E8CC;
  180. }
  181. .activity-label-text{
  182. white-space: nowrap;
  183. margin-left: 20rpx;
  184. background-color:#F0F1F3 ;
  185. color: #333333;
  186. font-weight: 400;
  187. font-size: 24rpx;
  188. line-height: 34rpx;
  189. height: 40rpx;
  190. min-width: 154rpx;
  191. padding: 0 12rpx;
  192. border-radius: 40rpx;
  193. display: flex;
  194. align-items: center;
  195. justify-content: center;
  196. &:last-child{
  197. overflow: hidden;
  198. text-overflow: ellipsis;
  199. white-space: nowrap;
  200. display: block;
  201. padding: 4rpx 12rpx;
  202. text-align: center;
  203. }
  204. }
  205. }
  206. .activity-title{
  207. font-weight: 700;
  208. margin-bottom: 20rpx;
  209. image{
  210. width: 73rpx;
  211. height: 30rpx;
  212. vertical-align: bottom;
  213. margin-right: 8rpx;
  214. margin-bottom: 4rpx;
  215. }
  216. }
  217. .activity-time-city-row{
  218. display: flex;
  219. margin-bottom: 40rpx;
  220. .activity-time{
  221. font-size: 24rpx;
  222. font-weight: 400;
  223. line-height: 34rpx;
  224. color: #333333;
  225. margin-right: 20rpx;
  226. white-space: nowrap;
  227. }
  228. .activity-city{
  229. display: flex;
  230. align-items: center;
  231. font-size: 24rpx;
  232. line-height: 34rpx;
  233. color: #376CBB;
  234. overflow: hidden;
  235. image{
  236. height: 24rpx;
  237. min-width: 24rpx;
  238. width: 24rpx;
  239. }
  240. text{
  241. white-space: nowrap;
  242. overflow: hidden;
  243. text-overflow: ellipsis;
  244. }
  245. }
  246. }
  247. .activity-buttons-row{
  248. display: flex;
  249. align-items: center;
  250. justify-content: flex-end;
  251. text{
  252. height: 52rpx;
  253. min-width: 136rpx;
  254. width: 136rpx;
  255. padding: 4rpx 20rpx;
  256. box-sizing: border-box;
  257. color: #376CBB;
  258. background-color: white;
  259. border: solid 2rpx #376CBB;
  260. white-space: nowrap;
  261. font-size: 24rpx;
  262. line-height: 44rpx;
  263. margin-left: 20rpx;
  264. border-radius: 52rpx;
  265. }
  266. .main-button{
  267. color: white;
  268. background-color: #376CBB;
  269. }
  270. }
  271. }
  272. </style>