123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <template>
- <view class="content" :class="['qn-page-' + theme]">
- <u-parse :html="content"></u-parse>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- type: 2,
- content: ''
- }
- },
- onLoad(opt) {
- if(opt.type) {
- this.type = opt.type
- }
- this.getArtDetail()
- },
- onShow() {
- },
- onReachBottom() {
- },
- onReady() {
- },
- methods: {
- getArtDetail() {
- this.$u.api.getArtDetail({
- type: this.type
- }).then(({data})=> {
- this.content = data.content
- uni.setNavigationBarTitle({
- title: data.title
- })
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .gq-list {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-start;
- // justify-content: space-between;
- padding: 20rpx 0 20rpx 20rpx;
- }
- .gq-item {
- margin: 0 0 20rpx 14rpx;
- width: 227rpx;
- height: 351rpx;
- background: #FFFFFF;
- box-shadow: 0px 5rpx 5rpx 0px rgba(35, 24, 21, 0.06);
- border-radius: 10rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-between;
- padding: 30rpx 14rpx 20rpx;
- .gq-logo {
- width: 182rpx;
- height: 192rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- image {
- width: 182rpx;
- height: 192rpx;
- background-color: #eee;
- }
- }
- .store-name {
- padding-top: 10rpx;
- text-align: center;
- width: 100%;
- font-size: 26rpx;
- font-weight: 500;
- color: #262261;
- overflow: hidden;
- }
- .info {
- width: 100%;
- display: flex;
- padding: 5rpx 0;
- .info-tit {
- font-size: 18rpx;
- flex-shrink: 0;
- }
- .info-val {
- text-align: center;
- font-size: 20rpx;
- width: 140rpx;
- border-bottom: 1px #C7C7C7 solid;
- }
- }
- }
- </style>
|