rechargeCenter.vue 11 KB

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