123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- <template>
- <view>
- <u-navbar :is-back="false" :border-bottom="false" :background="background">
- <view style="width: 100%;padding: 0 10rpx;">
- <view class="flztoa inlbhhe ">
- <navigator class="indihh" url="../index/index" open-type="redirect" hover-class="none">
- <text>最新</text>
- </navigator>
-
- <view class="indihh" style="width: 40%;">
- <text style="font-size: 44rpx;color: #374B6E;">治愈练习</text>
- <view
- style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
- </view>
- </view>
-
- </view>
- </view>
- </u-navbar>
- <view class="zyjjvko">
- <view class="zyddwwe" v-for="(item,index) in list" :key="index">
- <navigator class="zygdihh" :style="'background: url(../../static/zy/zy0' + (index+1) + '.png) center center no-repeat;'"
- :url="'../index/zyDetail?item=' + JSON.stringify(item)" hover-class="none">
- <view class="zywenzi">
- <text>{{item.title}}</text>
- <text class="zywenzib">{{item.desc}}</text>
- </view>
- </navigator>
- </view>
- </view>
- <view style="height: 120rpx;"></view>
- <view style="height: 130rpx;"></view>
- <view class="dibuboot">
- <navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
- <image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
- <text style="color: #374B6E">首页</text>
- </navigator>
-
- <navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
- <image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
- <text>我的</text>
- </navigator>
- </view>
- </view>
- </template>
- <style>
- page {
- background: #FAFAFA;
- }
- </style>
- <script>
- export default {
- data() {
- return {
- background: {
- backgroundColor: '#ffffff',
- },
- list:[{},{}]
- }
- },
- onLoad() {
-
- this.getcureList();
- },
- methods: {
- getcureList(){
- let user_id = uni.getStorageSync('id');
- this.$request.getcureList({}).then(res => {
- console.log(res)
- this.list = res.data.splice(0,6);
-
- }).catch(err => {
- console.log(err)
- })
- },
-
- getclassifyList() {
- let user_id = uni.getStorageSync('id');
- this.$post({
- data: {
- do: 'TypeList',
-
-
-
-
-
- }
- }).then(res => {
- this.list = res.data
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .zyjjvko {
- display: flex;
- flex-wrap: wrap;
- padding: 0 10rpx;
- margin-top: 30rpx;
- }
- .zyddwwe {
- width: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top: 20rpx;
- }
- .zygdihh {
- background-size: 100%;
- width: 342rpx;
- height: 290rpx;
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- display: flex;
- flex-direction: column;
- }
- .zygdihhb {
- background-size: 100%;
- width: 702rpx;
- height: 290rpx;
- border-radius: 16rpx 16rpx 16rpx 16rpx;
- display: flex;
- flex-direction: column;
- }
- .zywenzi {
- display: flex;
- flex-direction: column;
- padding: 40rpx 30rpx;
- font-size: 32rpx;
- font-family: PingFang SC-Bold, PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- line-height: 44rpx;
- }
- .zywenzib {
- font-size: 28rpx;
- font-family: PingFang SC-Regular, PingFang SC;
- font-weight: 400;
- color: #FFFFFF;
- line-height: 40rpx;
- }
- </style>
|