| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <template>
- <view>
- <block v-if="detail.urlsType == 0">
- <view class="bg-img flex align-center" :style="[{backgroundImage:'url('+ detail.urls +')'}]" style="height: 450upx;"></view>
- </block>
- <block v-else>
- <view class="bg-img flex align-center" :style="[{backgroundImage:'url('+ detail.cover +')'}]" style="height: 450upx;"></view>
- </block>
- <view class="container" style="margin: -60upx 20upx 20upx 20upx;">
- <view class="text-center">
- <view class="cu-avatar avatar round" :style="[{backgroundImage:'url('+ detail.loginWebVO.avatar +')'}]"></view>
- <view class="padding-tb-xs" style="font-size: 38upx;font-family: PingFang SC;font-weight: 800;color: #222222;">{{detail.personName}}</view>
- <view class="flex justify-center align-center">
- <view class="padding-right-sm" style="font-size: 30upx;font-family: PingFang SC;font-weight: 800;color: #222222;">{{+detail.hotValue}}</view>
- <!-- <view class="tag">
- <image src="/static/crown.png" style="width: 22upx;height: 19upx;margin-right: 10upx;"></image>
- <view class="text-sm text-white">热力榜第1</view>
- </view> -->
- </view>
- </view>
- <view style="padding: 0 60upx;">
- <view>{{detail.introduce}}</view>
- </view>
- <view class="flex justify-around padding">
- <button class="theme-bg-color text-white round cu-btn" style="width: 200upx;height: 70upx;" @click="wxShare">转发好友</button>
- <button class="theme-bg-color text-white round cu-btn" style="width: 200upx;height: 70upx;" @click="pyqShare">生成海报</button>
- </view>
- </view>
- <view class="container margin-sm">
- <block v-for="(item, index) in boostList" :key="index">
- <view class="flex align-center justify-between padding-lr-sm">
- <view class="flex align-center" style="width: 40%;">
- <view class="padding-sm">
- <u-avatar :src="item.avatar" size="82"></u-avatar>
- </view>
- <view class="name">{{item.nickName}}</view>
- </view>
- <view class="text-sm" style="color: #757575;">{{item.typeSub == 1 ? '打榜' : '打赏'}}</view>
- <view class="name padding-right flex justify-end" style="width: 180upx;">{{+item.totalHotValue}}热力值</view>
- </view>
- </block>
- </view>
- <view class="cu-modal" :class="wxShareShow ? 'show' : ''" style="z-index: 9999;">
- <view class="cu-dialog">
- <view style="height:150px;">
- <view style="color: #000000;font-size: 38upx;padding: 40upx;">1. 先点击右上角<text class="text-bold" style="font-size: 38upx;">"···"</text></view>
- <view style="color: #000000;font-size: 38upx;padding: 40upx;">2. 选择<text class="text-bold" style="font-size: 38upx;">"{{type}}"</text></view>
- </view>
- <view class="cu-bar text-green text-lg bg-white">
- <view class="action margin-0 flex-sub solid-left" @tap="wxShareShow = false">知道了</view>
- </view>
- </view>
- </view>
- <view style="height: 80rpx;" v-if="status">
- <u-divider bgColor="#f1f1f1;" height="80">到底了</u-divider>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- productId: '',
- detail: {},
- boostList: [],
- current: 1,
- size: 30,
- status: false,
- wxShareShow: false,
- type: '',
- }
- },
- onLoad(options) {
- this.productId = options.id;
- this.getProductInfo();
- this.getHelpRecord();
- },
- onReachBottom() {
- if (this.boostList.length < this.current * this.size) {
- this.status = true;
- } else {
- this.current += 1;
- this.getHelpRecord();
- }
- },
- methods: {
- getHelpRecord() {
- this.$u.api.production.helpRecord({productId: this.productId, current: this.current, size: this.size}).then(res => {
- this.boostList = [...this.boostList,...res.records];
- })
- },
- getProductInfo() {
- this.$u.api.production.detail({id: this.productId}).then(res => {
- this.detail = res;
- })
- },
- wxShare() {
- this.wxShareShow = true;
- this.type = "发送给朋友";
- },
- pyqShare() {
- this.wxShareShow = true;
- this.type = "分享到朋友圈"
- }
- }
- }
- </script>
- <style>
- .container {
- background-color: #ffffff;
- border-radius: 30upx;
- box-shadow: 10upx 10upx 60upx #d0d0d0;
- }
- .avatar {
- width: 145upx;
- height: 145upx;
- margin-top: -60upx;
- }
- .tag {
- padding: 0 10upx;
- display: flex;
- align-items: center;
- justify-content: center;
- background: linear-gradient(90deg, #7355F4 0%, #573BE5 100%);
- margin-top: 8upx;
- border-radius: 30upx;
- }
- .name {
- font-size: 26upx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #111111;
- }
- </style>
|