rechargeCenter.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <template>
  2. <view class="default_page adffc" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='充值中心' bgColor="transparent"></cus-header>
  4. <div class="info adfac">
  5. <div class="info-left">
  6. <image :src="avatar"></image>
  7. </div>
  8. <div class="info-right">
  9. <div class="info-right-name">{{'龙傲天'}}</div>
  10. <div class="info-right-tip">{{'尚未激活问卷,无法开始PREILL评估'}}</div>
  11. </div>
  12. </div>
  13. <div class="box">
  14. <div class="box-tab adfacjb">
  15. <div class="box-tab-pre" :class="{'active':tindex===index}"
  16. v-for="(item,index) in tabList" :key="index" @click="changeTab(index)">{{item}}</div>
  17. </div>
  18. <template v-if="tindex===0">
  19. <div class="box-price adf">
  20. <div class="box-price-pre adffcac" :class="{'active':pindex===index}"
  21. v-for="(item,index) in priceList" :key="index" @click="changePrice(item,index)">
  22. <div class="box-price-pre-once" v-if="index===0">限时优惠</div>
  23. <div class="box-price-pre-times">{{item.times}}</div>
  24. <div class="box-price-pre-money"><span>¥</span>{{item.money}}<span v-if="index===priceList.length-1">/次</span></div>
  25. <div class="box-price-pre-bottom">{{item.tip}}</div>
  26. </div>
  27. </div>
  28. <div class="box-other adfacjb" v-if="pindex===priceList.length-1">
  29. <div class="box-other-left">其他次数</div>
  30. <div class="box-other-right">
  31. <cus-number-box :min="otherTimes" :number="otherTimes" @valueChange="valueChange"></cus-number-box>
  32. </div>
  33. </div>
  34. </template>
  35. <div class="box-memo">
  36. <div class="box-memo-title">服务条款说明</div>
  37. <div class="box-memo-p">
  38. 1、未激活的问卷:付费后使用有效期1年,过期将不能使用。<br/>
  39. 2、已进行中问卷:创建者可以设置答题截止时间,修改时间,以支持少数用户延期做问卷。<br/>
  40. 3、其他次数不能低于10次。
  41. </div>
  42. </div>
  43. <div class="box-btn adfacjb">
  44. <div class="box-btn-left adfac">
  45. <div class="box-btn-left-text">实付</div>
  46. <div class="box-btn-left-money adfac"><span>¥</span>{{590}}<span style="margin-left: 9rpx;">/{{10}}次</span></div>
  47. </div>
  48. <div class="box-btn-right">确认协议并购买</div>
  49. </div>
  50. </div>
  51. </view>
  52. </template>
  53. <script>
  54. import CusNumberBox from '@/components/CusNumberBox/index.vue'
  55. export default {
  56. components:{ CusNumberBox },
  57. data(){
  58. return {
  59. avatar:this.$imgBase+'avatar.png',
  60. tabList:['基础版','专业版','专家版'],
  61. tindex:0,
  62. pindex:0,
  63. priceList:[
  64. {times:'1次',money:99,tip:'首次登录赠送1次'},
  65. {times:'5次',money:395,tip:'¥79/次'},
  66. {times:'10次',money:590,tip:'¥59/次'},
  67. {times:'超过10次',money:39,tip:'超过10次,¥39/次'}
  68. ],
  69. otherTimes:11
  70. }
  71. },
  72. methods:{
  73. changeTab(index){
  74. this.tindex = index;
  75. },
  76. changePrice(item,index){
  77. this.pindex = index;
  78. },
  79. valueChange(val){
  80. this.otherTimes = val;
  81. }
  82. }
  83. }
  84. </script>
  85. <style scoped lang="scss">
  86. .default_page{
  87. padding: 0;
  88. background: #F9F6EE;
  89. box-sizing: border-box;
  90. .info{
  91. padding: 40rpx 36rpx 37rpx;
  92. &-left{
  93. width: 98rpx;
  94. height: 98rpx;
  95. image{
  96. width: 100%;
  97. height: 100%;
  98. }
  99. }
  100. &-right{
  101. width: calc(100% - 98rpx);
  102. padding-left: 20rpx;
  103. box-sizing: border-box;
  104. &-name{
  105. font-family: PingFang-SC, PingFang-SC;
  106. font-weight: bold;
  107. font-size: 36rpx;
  108. color: #795021;
  109. line-height: 32rpx;
  110. }
  111. &-tip{
  112. font-family: PingFangSC, PingFang SC;
  113. font-weight: 400;
  114. font-size: 26rpx;
  115. color: #667E90;
  116. line-height: 24rpx;
  117. margin-top: 22rpx;
  118. }
  119. }
  120. }
  121. .box{
  122. flex: 1;
  123. overflow-y: auto;
  124. background: #FFFFFF;
  125. border-radius: 36rpx 36rpx 3rpx 3rpx;
  126. padding: 32rpx 30rpx 60rpx;
  127. &-tab{
  128. &-pre{
  129. width: calc(100% / 3);
  130. position: relative;
  131. font-family: PingFang-SC, PingFang-SC;
  132. font-weight: bold;
  133. font-size: 32rpx;
  134. color: #667E90;
  135. line-height: 45rpx;
  136. text-align: center;
  137. &.active{
  138. font-weight: bold;
  139. color: #002846;
  140. &::after{
  141. content: '';
  142. width: 48rpx;
  143. height: 6rpx;
  144. background: #002846;
  145. border-radius: 3rpx;
  146. position: absolute;
  147. left: 50%;
  148. margin-left: -24rpx;
  149. bottom: -15rpx;
  150. }
  151. }
  152. }
  153. }
  154. &-price{
  155. margin-top: 34rpx;
  156. justify-content: space-between;
  157. flex-wrap: wrap;
  158. &-pre{
  159. width: calc(50% - 10rpx);
  160. margin-top: 16rpx;
  161. background: #FFFFFF;
  162. border-radius: 24rpx;
  163. border: 2rpx solid #FBEBCB;
  164. position: relative;
  165. &-once{
  166. width: 121rpx;
  167. height: 35rpx;
  168. background: linear-gradient( 270deg, #EF923B 0%, #EA4F27 100%);
  169. border-radius: 10rpx;
  170. font-family: PingFangSC, PingFang SC;
  171. font-weight: 400;
  172. font-size: 24rpx;
  173. color: #FFFFFF;
  174. line-height: 35rpx;
  175. text-align: center;
  176. position: absolute;
  177. left: 0;
  178. top: 0;
  179. }
  180. &-times{
  181. font-family: PingFang-SC, PingFang-SC;
  182. font-weight: bold;
  183. font-size: 30rpx;
  184. color: #002846;
  185. line-height: 30rpx;
  186. text-align: center;
  187. margin-top: 36rpx;
  188. }
  189. &-money{
  190. font-family: D-DINCondensed, D-DINCondensed;
  191. font-weight: bold;
  192. font-size: 80rpx;
  193. color: #002846;
  194. line-height: 87rpx;
  195. margin-top: 20rpx;
  196. span{
  197. font-size: 54rpx;
  198. line-height: 59rpx;
  199. }
  200. }
  201. &-bottom{
  202. width: 100%;
  203. height: 56rpx;
  204. background: #FFF3CB;
  205. border-radius: 0rpx 0rpx 24rpx 24rpx;
  206. font-family: PingFangSC, PingFang SC;
  207. font-weight: 400;
  208. font-size: 24rpx;
  209. color: #95581C;
  210. line-height: 56rpx;
  211. text-align: center;
  212. margin-top: 31rpx;
  213. }
  214. &.active{
  215. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bg.png') no-repeat;
  216. background-size: 100% 100%;
  217. .box-price-pre-times,.box-price-pre-money{
  218. color: #955A1D;
  219. }
  220. .box-price-pre-bottom{
  221. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bottom2.png') no-repeat;
  222. color: #795021;
  223. }
  224. }
  225. }
  226. }
  227. &-other{
  228. margin-top: 51rpx;
  229. &-left{
  230. font-family: PingFang-SC, PingFang-SC;
  231. font-weight: bold;
  232. font-size: 30rpx;
  233. color: #002846;
  234. line-height: 42rpx;
  235. }
  236. }
  237. &-memo{
  238. margin-top: 48rpx;
  239. &-title{
  240. font-family: PingFang-SC, PingFang-SC;
  241. font-weight: bold;
  242. font-size: 28rpx;
  243. color: #667E90;
  244. line-height: 40rpx;
  245. }
  246. &-p{
  247. font-family: PingFangSC, PingFang SC;
  248. font-weight: 400;
  249. font-size: 24rpx;
  250. color: #95A5B1;
  251. line-height: 40rpx;
  252. margin-top: 16rpx;
  253. }
  254. }
  255. &-btn{
  256. margin-top: 206rpx;
  257. width: 100%;
  258. height: 100rpx;
  259. background: linear-gradient(to right, #242424 0%, #575757 50%);
  260. border-radius: 24rpx;
  261. &-left{
  262. padding-left: 30rpx;
  263. &-text{
  264. font-family: PingFangSC, PingFang SC;
  265. font-weight: 400;
  266. font-size: 24rpx;
  267. color: #FFFFFF;
  268. line-height: 33rpx;
  269. }
  270. &-money{
  271. font-family: D-DINCondensed, D-DINCondensed;
  272. font-weight: bold;
  273. font-size: 48rpx;
  274. color: #FCEED2;
  275. line-height: 52rpx;
  276. margin-left: 9rpx;
  277. span{
  278. font-family: D-DINCondensed, D-DINCondensed;
  279. font-weight: bold;
  280. font-size: 24rpx;
  281. color: #FCEED2;
  282. line-height: 26rpx;
  283. }
  284. }
  285. }
  286. &-right{
  287. width: 365rpx;
  288. height: 100rpx;
  289. background: #11120F;
  290. border-radius: 24rpx;
  291. font-family: PingFang-SC, PingFang-SC;
  292. font-weight: bold;
  293. font-size: 32rpx;
  294. color: #FCEED2;
  295. line-height: 100rpx;
  296. text-align: center;
  297. letter-spacing: 2rpx;
  298. }
  299. }
  300. }
  301. }
  302. </style>