publish.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='发布问卷' :showback="false"></cus-header>
  4. <image :style="{'top':mt+'px'}" :src="imgBase+'publish_bg.png'" mode="widthFix"></image>
  5. <div class="list">
  6. <div class="list-item adfacjb" v-for="(item,index) in list" :key="index" @click="handleTurnPage('')">
  7. <div class="list-item-left">
  8. <div class="list-item-left-title">{{item.title}}</div>
  9. <div class="list-item-left-type">{{typeDict[item.type]||'默认版'}}</div>
  10. </div>
  11. <image class="list-item-right" :src="imgBase+'publish_arrow_right.png'"></image>
  12. </div>
  13. </div>
  14. <div class="dialog adffcacjc" v-if="buyShow">
  15. <div class="dialog-box adffcac">
  16. <image :src="imgBase+'new_free_close.png'" @click="buyShow=false"></image>
  17. <div class="dialog-box-list adf">
  18. <div class="dialog-box-list-item adffcac" v-for="(item,index) in buyImgList" :key="index">
  19. <image :src="item.img"></image>
  20. <text>{{item.text}}</text>
  21. </div>
  22. </div>
  23. <div class="dialog-box-btn" @click="handleTurnPage('/pagesPublish/rechargeCenter')">立即购买</div>
  24. </div>
  25. </div>
  26. <Tabbar :tabbarIndex="1"></Tabbar>
  27. </view>
  28. </template>
  29. <script>
  30. import Tabbar from '@/components/CusTabbar/index.vue'
  31. export default {
  32. components:{ Tabbar },
  33. data(){
  34. return {
  35. list:[
  36. { title:'GW+MC PREILL36测评题库版本', type:1 },
  37. { title:'GW+MC PREILL36测评题库版本', type:2 },
  38. { title:'PREILL BANK 模型问题库 CN120道', type:2 },
  39. ],
  40. typeDict:{
  41. 1:'基础版',
  42. 2:'专业版'
  43. },
  44. buyShow:false,
  45. buyImgList:[
  46. {img:this.$imgBase+'buy_img1.png',text:'全球200+客户'},
  47. {img:this.$imgBase+'buy_img2.png',text:'企业正念'},
  48. {img:this.$imgBase+'buy_img3.png',text:'国际教练专业认证'},
  49. {img:this.$imgBase+'buy_img4.png',text:'4A领导力'}
  50. ]
  51. }
  52. },
  53. methods:{
  54. handleTurnPage(url){
  55. if(!url) this.buyShow = true;
  56. else uni.navigateTo({ url })
  57. },
  58. }
  59. }
  60. </script>
  61. <style scoped lang="scss">
  62. .tabPage{
  63. padding: 0;
  64. &>image{
  65. width: 100%;
  66. position: absolute;
  67. left: 0;
  68. right: 0;
  69. }
  70. .list{
  71. margin-top: 369rpx;
  72. position: relative;
  73. padding: 0 24rpx;
  74. &-item{
  75. margin-top: 20rpx;
  76. background: #FFFFFF;
  77. border-radius: 24rpx;
  78. padding: 40rpx 30rpx;
  79. &:first-child{
  80. margin-top: 0;
  81. }
  82. &-left{
  83. width: calc(100% - 50rpx);
  84. padding-right: 30rpx;
  85. box-sizing: border-box;
  86. &-title{
  87. font-family: PingFang-SC, PingFang-SC;
  88. font-weight: bold;
  89. font-size: 30rpx;
  90. color: #002846;
  91. line-height: 42rpx;
  92. text-overflow: ellipsis;
  93. overflow: hidden;
  94. white-space: nowrap;
  95. }
  96. &-type{
  97. background: #FFEFB9;
  98. border-radius: 8rpx;
  99. margin-top: 20rpx;
  100. padding: 2rpx 13rpx;
  101. font-family: PingFangSC, PingFang SC;
  102. font-weight: 400;
  103. font-size: 24rpx;
  104. color: #6F4611;
  105. line-height: 33rpx;
  106. letter-spacing: 2rpx;
  107. display: inline-block;
  108. }
  109. }
  110. &-right{
  111. width: 50rpx;
  112. height: 50rpx;
  113. }
  114. }
  115. }
  116. .dialog{
  117. position: fixed;
  118. left: 0;
  119. right: 0;
  120. top: 0;
  121. bottom: 0;
  122. z-index: 1000;
  123. background: rgba(0, 0, 0, .6);
  124. &-box{
  125. width: calc(100% - 48rpx);
  126. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_bg.png') no-repeat;
  127. background-size: 100% 100%;
  128. padding: 308rpx 30rpx 40rpx;
  129. box-sizing: border-box;
  130. position: relative;
  131. &>image{
  132. width: 48rpx;
  133. height: 48rpx;
  134. position: absolute;
  135. top: 0;
  136. right: 30rpx;
  137. }
  138. &-list{
  139. width: 100%;
  140. justify-content: space-between;
  141. &-item{
  142. width: calc(25% - 16rpx);
  143. image{
  144. width: 80rpx;
  145. height: 80rpx;
  146. }
  147. text{
  148. font-family: PingFangSC, PingFang SC;
  149. font-weight: 400;
  150. font-size: 22rpx;
  151. color: #6F4611;
  152. line-height: 30rpx;
  153. text-align: center;
  154. margin-top: 24rpx;
  155. }
  156. }
  157. }
  158. &-btn{
  159. width: calc(100% - 70rpx);
  160. height: 88rpx;
  161. background: linear-gradient( 90deg, #EBB56C 0%, #FCEAD0 100%);
  162. border-radius: 44rpx;
  163. margin-top: 27rpx;
  164. font-family: PingFang-SC, PingFang-SC;
  165. font-weight: bold;
  166. font-size: 32rpx;
  167. color: #6F4611;
  168. line-height: 88rpx;
  169. text-align: center;
  170. letter-spacing: 2rpx;
  171. }
  172. }
  173. }
  174. }
  175. </style>