| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <template>
- <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
- <cus-header title='发布问卷' :showback="false"></cus-header>
- <image :style="{'top':mt+'px'}" :src="imgBase+'publish_bg.png'" mode="widthFix"></image>
- <div class="list">
- <div class="list-item adfacjb" v-for="(item,index) in list" :key="index" @click="handleTurnPage('')">
- <div class="list-item-left">
- <div class="list-item-left-title">{{item.title}}</div>
- <div class="list-item-left-type">{{typeDict[item.type]||'默认版'}}</div>
- </div>
- <image class="list-item-right" :src="imgBase+'publish_arrow_right.png'"></image>
- </div>
- </div>
- <div class="dialog adffcacjc" v-if="buyShow">
- <div class="dialog-box adffcac">
- <image :src="imgBase+'new_free_close.png'" @click="buyShow=false"></image>
- <div class="dialog-box-list adf">
- <div class="dialog-box-list-item adffcac" v-for="(item,index) in buyImgList" :key="index">
- <image :src="item.img"></image>
- <text>{{item.text}}</text>
- </div>
- </div>
- <div class="dialog-box-btn" @click="handleTurnPage('/pagesPublish/rechargeCenter')">立即购买</div>
- </div>
- </div>
- <Tabbar :tabbarIndex="1"></Tabbar>
- </view>
- </template>
- <script>
- import Tabbar from '@/components/CusTabbar/index.vue'
- export default {
- components:{ Tabbar },
- data(){
- return {
- list:[
- { title:'GW+MC PREILL36测评题库版本', type:1 },
- { title:'GW+MC PREILL36测评题库版本', type:2 },
- { title:'PREILL BANK 模型问题库 CN120道', type:2 },
- ],
- typeDict:{
- 1:'基础版',
- 2:'专业版'
- },
- buyShow:false,
- buyImgList:[
- {img:this.$imgBase+'buy_img1.png',text:'全球200+客户'},
- {img:this.$imgBase+'buy_img2.png',text:'企业正念'},
- {img:this.$imgBase+'buy_img3.png',text:'国际教练专业认证'},
- {img:this.$imgBase+'buy_img4.png',text:'4A领导力'}
- ]
- }
- },
- methods:{
- handleTurnPage(url){
- if(!url) this.buyShow = true;
- else uni.navigateTo({ url })
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .tabPage{
- padding: 0;
-
- &>image{
- width: 100%;
- position: absolute;
- left: 0;
- right: 0;
- }
-
- .list{
- margin-top: 369rpx;
- position: relative;
- padding: 0 24rpx;
- &-item{
- margin-top: 20rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- padding: 40rpx 30rpx;
- &:first-child{
- margin-top: 0;
- }
- &-left{
- width: calc(100% - 50rpx);
- padding-right: 30rpx;
- box-sizing: border-box;
- &-title{
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 30rpx;
- color: #002846;
- line-height: 42rpx;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- }
- &-type{
- background: #FFEFB9;
- border-radius: 8rpx;
- margin-top: 20rpx;
- padding: 2rpx 13rpx;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 24rpx;
- color: #6F4611;
- line-height: 33rpx;
- letter-spacing: 2rpx;
- display: inline-block;
- }
- }
- &-right{
- width: 50rpx;
- height: 50rpx;
- }
- }
- }
-
- .dialog{
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- z-index: 1000;
- background: rgba(0, 0, 0, .6);
-
- &-box{
- width: calc(100% - 48rpx);
- background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_bg.png') no-repeat;
- background-size: 100% 100%;
- padding: 308rpx 30rpx 40rpx;
- box-sizing: border-box;
- position: relative;
- &>image{
- width: 48rpx;
- height: 48rpx;
- position: absolute;
- top: 0;
- right: 30rpx;
- }
- &-list{
- width: 100%;
- justify-content: space-between;
- &-item{
- width: calc(25% - 16rpx);
- image{
- width: 80rpx;
- height: 80rpx;
- }
- text{
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 22rpx;
- color: #6F4611;
- line-height: 30rpx;
- text-align: center;
- margin-top: 24rpx;
- }
- }
- }
- &-btn{
- width: calc(100% - 70rpx);
- height: 88rpx;
- background: linear-gradient( 90deg, #EBB56C 0%, #FCEAD0 100%);
- border-radius: 44rpx;
- margin-top: 27rpx;
- font-family: PingFang-SC, PingFang-SC;
- font-weight: bold;
- font-size: 32rpx;
- color: #6F4611;
- line-height: 88rpx;
- text-align: center;
- letter-spacing: 2rpx;
- }
- }
- }
- }
- </style>
|