purchaserActivityList.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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="goDetailCheck(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-else-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="goDetailCheck(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" v-if="isUserBindingPhoneNumber">
  30. <block v-if="item.ActiveState == 1">
  31. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId == 1"
  32. class="main-button" @click="signupCheck(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  33. <text v-if="item.IsShowAppointment" @click="summaryHandelCheck(item)">{{ item.IsAppointment == 1 ? "取消纪要" : "预约纪要" }}</text>
  34. <text v-if="item.IsShowMeetingReminder" @click="meetingReminderCheck(item.ActivityId, item.IsCancelMeetingReminder)">
  35. {{ item.IsCancelMeetingReminder == 0 ? "消息提醒" : "取消提醒" }}
  36. </text>
  37. <view v-if="item.IsShowHelpSsk">
  38. <text @click="askingCheck(item)">帮我带问</text>
  39. </view>
  40. <text v-if="item.IsShowOutboundCall && item.ActivityTypeId != 1"
  41. class="main-button" @click="signupCheck(item, 1)">{{ item.IsSignup == 1 ? "取消外呼" : "预约外呼" }}</text>
  42. <text v-if="item.IsShowDetails" @click="goDetailCheck(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="signupCheck(item, 3, 'CClass')">{{ item.IsSignup == 1 ? "取消报名" : "我要报名" }}</text>
  46. </block>
  47. <block v-else>
  48. <text class="main-button" v-if="item.IsSignup !== 1" @click="wanttosignupCheck(item)">我要报名</text>
  49. <text class="main-button" v-else @click="signupCheck(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="askingCheck(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. <ShowResearchDlg :isResearchModalShow.sync="isResearchModalShow" :jurisdictionList="jurisdictionList" :checkResearchList.sync="checkResearchList" />
  78. </view>
  79. <slot v-else></slot>
  80. </block>
  81. <view v-else>
  82. </view>
  83. </template>
  84. <script>
  85. import myActivityMixin from "@/components/activity/indexActivity.js";
  86. import modalDialog from "@/components/modalDialog.vue";
  87. import SelectPopup from "@/components/activity/selectPopup";
  88. import { activity} from "@/config/api.js";
  89. import ShowResearchDlg from "@/components/activity/showResearchDlg.vue";
  90. export default {
  91. mixins: [myActivityMixin],
  92. components:{modalDialog,SelectPopup,ShowResearchDlg},
  93. props:{
  94. // 1-未开始、进行中 0-已结束
  95. activityType:{
  96. type: Number,
  97. default:1
  98. },
  99. whichDay:{
  100. type: String,
  101. default:''
  102. },
  103. typeName:{
  104. type: String,
  105. default:''
  106. }
  107. },
  108. data(){
  109. return {
  110. pageSize:10,
  111. page_no:1,
  112. collectList:[],
  113. pages:0,
  114. isLoad:false
  115. }
  116. },
  117. methods:{
  118. // 获取列表数据
  119. async getActivityList() {
  120. const res = await activity.getActivityListNew({
  121. PageSize: this.pageSize,
  122. CurrentIndex: this.page_no,
  123. IsResearch:true,
  124. ActiveState:this.activityType==1? '':3,
  125. WhichDay:this.whichDay,
  126. ActivityTypeId:this.typeName
  127. })
  128. if (res.Ret === 200) {
  129. if (this.page_no === 1) {
  130. this.collectList = res.Data.List || [];
  131. } else {
  132. this.collectList = this.collectList.concat(res.Data.List || []);
  133. }
  134. this.pages = res.Data.Paging.Pages || 0
  135. this.isLoad=true
  136. }
  137. },
  138. reloadActivityList(){
  139. this.page_no=1
  140. this.getActivityList()
  141. },
  142. loadActivityMore(){
  143. this.page_no++
  144. this.getActivityList()
  145. },
  146. },
  147. created() {
  148. // this.getActivityList()
  149. }
  150. }
  151. </script>
  152. <style scoped lang="scss">
  153. // 从查研观向11.0 版本开始陆续更换各个页面的页面主题。先从研选页面开始
  154. .purchaser-activity-box{
  155. width: 100%;
  156. padding: 40rpx 20rpx 30rpx;
  157. border-top: solid 10rpx ;
  158. border-radius: 16rpx;
  159. background-color: white;
  160. margin-bottom: 20rpx;
  161. .purchaser-activity-head{
  162. display: flex;
  163. align-items: center;
  164. margin-bottom: 40rpx;
  165. .activity-which-line{
  166. min-width: 110rpx;
  167. height: 40rpx;
  168. border-radius: 4rpx;
  169. font-size: 24rpx;
  170. line-height: 34rpx;
  171. display: flex;
  172. align-items: center;
  173. justify-content: center;
  174. color: #333333;
  175. font-weight: 500;
  176. }
  177. .online{
  178. background-color: #DFE8FF;
  179. }
  180. .offline{
  181. background-color: #F2E8CC;
  182. }
  183. .activity-label-text{
  184. white-space: nowrap;
  185. margin-left: 20rpx;
  186. background-color:#F0F1F3 ;
  187. color: #333333;
  188. font-weight: 400;
  189. font-size: 24rpx;
  190. line-height: 34rpx;
  191. height: 40rpx;
  192. min-width: 154rpx;
  193. padding: 0 12rpx;
  194. border-radius: 40rpx;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. &:last-child{
  199. overflow: hidden;
  200. text-overflow: ellipsis;
  201. white-space: nowrap;
  202. display: block;
  203. padding: 4rpx 12rpx;
  204. text-align: center;
  205. }
  206. }
  207. }
  208. .activity-title{
  209. font-weight: 700;
  210. margin-bottom: 20rpx;
  211. image{
  212. width: 73rpx;
  213. height: 30rpx;
  214. vertical-align: bottom;
  215. margin-right: 8rpx;
  216. margin-bottom: 4rpx;
  217. }
  218. }
  219. .activity-time-city-row{
  220. display: flex;
  221. margin-bottom: 40rpx;
  222. .activity-time{
  223. font-size: 24rpx;
  224. font-weight: 400;
  225. line-height: 34rpx;
  226. color: #333333;
  227. margin-right: 20rpx;
  228. white-space: nowrap;
  229. }
  230. .activity-city{
  231. display: flex;
  232. align-items: center;
  233. font-size: 24rpx;
  234. line-height: 34rpx;
  235. color: #376CBB;
  236. overflow: hidden;
  237. image{
  238. height: 24rpx;
  239. min-width: 24rpx;
  240. width: 24rpx;
  241. }
  242. text{
  243. white-space: nowrap;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. }
  247. }
  248. }
  249. .activity-buttons-row{
  250. display: flex;
  251. align-items: center;
  252. justify-content: flex-end;
  253. text{
  254. height: 52rpx;
  255. min-width: 136rpx;
  256. width: 136rpx;
  257. padding: 4rpx 20rpx;
  258. box-sizing: border-box;
  259. color: #376CBB;
  260. background-color: white;
  261. border: solid 2rpx #376CBB;
  262. white-space: nowrap;
  263. font-size: 24rpx;
  264. line-height: 44rpx;
  265. margin-left: 20rpx;
  266. border-radius: 52rpx;
  267. }
  268. .main-button{
  269. color: white;
  270. background-color: #376CBB;
  271. }
  272. }
  273. }
  274. </style>