rechargeCenter.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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" @click="confirmBuy">确认协议并购买</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. confirmBuy(){
  83. uni.navigateTo({
  84. url:'/pagesPublish/payResult'
  85. })
  86. }
  87. }
  88. }
  89. </script>
  90. <style scoped lang="scss">
  91. .default_page{
  92. padding: 0;
  93. background: #F9F6EE;
  94. box-sizing: border-box;
  95. .info{
  96. padding: 40rpx 36rpx 37rpx;
  97. &-left{
  98. width: 98rpx;
  99. height: 98rpx;
  100. image{
  101. width: 100%;
  102. height: 100%;
  103. }
  104. }
  105. &-right{
  106. width: calc(100% - 98rpx);
  107. padding-left: 20rpx;
  108. box-sizing: border-box;
  109. &-name{
  110. font-family: PingFang-SC, PingFang-SC;
  111. font-weight: bold;
  112. font-size: 36rpx;
  113. color: #795021;
  114. line-height: 32rpx;
  115. }
  116. &-tip{
  117. font-family: PingFangSC, PingFang SC;
  118. font-weight: 400;
  119. font-size: 26rpx;
  120. color: #667E90;
  121. line-height: 24rpx;
  122. margin-top: 22rpx;
  123. }
  124. }
  125. }
  126. .box{
  127. flex: 1;
  128. overflow-y: auto;
  129. background: #FFFFFF;
  130. border-radius: 36rpx 36rpx 3rpx 3rpx;
  131. padding: 32rpx 30rpx 60rpx;
  132. &-tab{
  133. &-pre{
  134. width: calc(100% / 3);
  135. position: relative;
  136. font-family: PingFang-SC, PingFang-SC;
  137. font-weight: bold;
  138. font-size: 32rpx;
  139. color: #667E90;
  140. line-height: 45rpx;
  141. text-align: center;
  142. &.active{
  143. font-weight: bold;
  144. color: #002846;
  145. &::after{
  146. content: '';
  147. width: 48rpx;
  148. height: 6rpx;
  149. background: #002846;
  150. border-radius: 3rpx;
  151. position: absolute;
  152. left: 50%;
  153. margin-left: -24rpx;
  154. bottom: -15rpx;
  155. }
  156. }
  157. }
  158. }
  159. &-price{
  160. margin-top: 34rpx;
  161. justify-content: space-between;
  162. flex-wrap: wrap;
  163. &-pre{
  164. width: calc(50% - 10rpx);
  165. margin-top: 16rpx;
  166. background: #FFFFFF;
  167. border-radius: 24rpx;
  168. border: 2rpx solid #FBEBCB;
  169. position: relative;
  170. &-once{
  171. width: 121rpx;
  172. height: 35rpx;
  173. background: linear-gradient( 270deg, #EF923B 0%, #EA4F27 100%);
  174. border-radius: 10rpx;
  175. font-family: PingFangSC, PingFang SC;
  176. font-weight: 400;
  177. font-size: 24rpx;
  178. color: #FFFFFF;
  179. line-height: 35rpx;
  180. text-align: center;
  181. position: absolute;
  182. left: 0;
  183. top: 0;
  184. }
  185. &-times{
  186. font-family: PingFang-SC, PingFang-SC;
  187. font-weight: bold;
  188. font-size: 30rpx;
  189. color: #002846;
  190. line-height: 30rpx;
  191. text-align: center;
  192. margin-top: 36rpx;
  193. }
  194. &-money{
  195. font-family: D-DINCondensed, D-DINCondensed;
  196. font-weight: bold;
  197. font-size: 80rpx;
  198. color: #002846;
  199. line-height: 87rpx;
  200. margin-top: 20rpx;
  201. span{
  202. font-size: 54rpx;
  203. line-height: 59rpx;
  204. }
  205. }
  206. &-bottom{
  207. width: 100%;
  208. height: 56rpx;
  209. background: #FFF3CB;
  210. border-radius: 0rpx 0rpx 24rpx 24rpx;
  211. font-family: PingFangSC, PingFang SC;
  212. font-weight: 400;
  213. font-size: 24rpx;
  214. color: #95581C;
  215. line-height: 56rpx;
  216. text-align: center;
  217. margin-top: 31rpx;
  218. }
  219. &.active{
  220. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bg.png') no-repeat;
  221. background-size: 100% 100%;
  222. .box-price-pre-times,.box-price-pre-money{
  223. color: #955A1D;
  224. }
  225. .box-price-pre-bottom{
  226. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bottom2.png') no-repeat;
  227. color: #795021;
  228. }
  229. }
  230. }
  231. }
  232. &-other{
  233. margin-top: 51rpx;
  234. &-left{
  235. font-family: PingFang-SC, PingFang-SC;
  236. font-weight: bold;
  237. font-size: 30rpx;
  238. color: #002846;
  239. line-height: 42rpx;
  240. }
  241. }
  242. &-memo{
  243. margin-top: 48rpx;
  244. &-title{
  245. font-family: PingFang-SC, PingFang-SC;
  246. font-weight: bold;
  247. font-size: 28rpx;
  248. color: #667E90;
  249. line-height: 40rpx;
  250. }
  251. &-p{
  252. font-family: PingFangSC, PingFang SC;
  253. font-weight: 400;
  254. font-size: 24rpx;
  255. color: #95A5B1;
  256. line-height: 40rpx;
  257. margin-top: 16rpx;
  258. }
  259. }
  260. &-btn{
  261. margin-top: 206rpx;
  262. width: 100%;
  263. height: 100rpx;
  264. background: linear-gradient(to right, #242424 0%, #575757 50%);
  265. border-radius: 24rpx;
  266. &-left{
  267. padding-left: 30rpx;
  268. &-text{
  269. font-family: PingFangSC, PingFang SC;
  270. font-weight: 400;
  271. font-size: 24rpx;
  272. color: #FFFFFF;
  273. line-height: 33rpx;
  274. }
  275. &-money{
  276. font-family: D-DINCondensed, D-DINCondensed;
  277. font-weight: bold;
  278. font-size: 48rpx;
  279. color: #FCEED2;
  280. line-height: 52rpx;
  281. margin-left: 9rpx;
  282. span{
  283. font-family: D-DINCondensed, D-DINCondensed;
  284. font-weight: bold;
  285. font-size: 24rpx;
  286. color: #FCEED2;
  287. line-height: 26rpx;
  288. }
  289. }
  290. }
  291. &-right{
  292. width: 365rpx;
  293. height: 100rpx;
  294. background: #11120F;
  295. border-radius: 24rpx;
  296. font-family: PingFang-SC, PingFang-SC;
  297. font-weight: bold;
  298. font-size: 32rpx;
  299. color: #FCEED2;
  300. line-height: 100rpx;
  301. text-align: center;
  302. letter-spacing: 2rpx;
  303. }
  304. }
  305. }
  306. }
  307. </style>