Browse Source

优化标的信息详情页面

master
wanghongjun 2 years ago
parent
commit
6a6ceeeeff
  1. 14
      pages/goods/detail.scss
  2. 233
      pages/goods/detail.vue

14
pages/goods/detail.scss

@ -59,6 +59,9 @@
.info-item__name .goods-name { .info-item__name .goods-name {
font-size: 30rpx; font-size: 30rpx;
.twoline-hide {
white-space: normal;
}
} }
/* 商品分享 */ /* 商品分享 */
@ -124,11 +127,15 @@
color: #3c3c3c; color: #3c3c3c;
.item-title{ .item-title{
padding: 26rpx 30rpx; padding: 26rpx 50rpx;
font-size: 36rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
border-bottom: #eee solid 2rpx; border-bottom: #eee solid 2rpx;
display: inline-block;
} }
.item-title-text {
border-bottom: #000000 solid 4rpx;
}
.item-content{ .item-content{
padding: 20rpx 26rpx; padding: 20rpx 26rpx;
@ -148,6 +155,11 @@
&-txt{ &-txt{
color: #808080; color: #808080;
white-space: normal;
.atxt {
color: red;
text-decoration: underline;
}
} }
} }
} }

233
pages/goods/detail.vue

@ -38,110 +38,105 @@
</view> </view>
<!-- 标的信息 -->
<view v-if="!isLoading" class="bdcontent m-top20"> <view v-if="!isLoading" class="bdcontent m-top20">
<view class="item-title b-f"> <view class="item-title b-f" v-for="items in tab" @click="changeTab(items.key)">
<text>标的信息</text> <text :class="{'item-title-text': tabKey === items.key}">{{items.title}}</text>
</view> </view>
<view class="item-content b-f"> <!-- 标的信息 -->
<view class="gdic"> <view class="item-content b-f" v-if="tabKey === 1">
<text class="gdic-tit">标的名称</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_name}}</text> <text class="gdic-tit">标的名称</text>
</view> <text class="gdic-txt">{{goods.goods_name}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">标的ISLI标志码</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_islicode}}</text> <text class="gdic-tit">标的ISLI标志码</text>
</view> <text class="gdic-txt">{{goods.goods_islicode}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">标的类型</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_type==1?'文化资源数据':'文化数字内容'}}</text> <text class="gdic-tit">标的类型</text>
</view> <text class="gdic-txt">{{goods.goods_type==1?'文化资源数据':'文化数字内容'}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">交易方式</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_entrust==1?'转让':'授权'}}</text> <text class="gdic-tit">交易方式</text>
</view> <text class="gdic-txt">{{goods.goods_entrust==1?'转让':'授权'}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">权益</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_ownership_str}}</text> <text class="gdic-tit">权益</text>
</view> <text class="gdic-txt">{{goods.goods_ownership_str}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">委托类型</text> <view class="gdic">
<text class="gdic-txt">{{goods.contractual_period==1?'永久性委托':(goods.contractual_period==2?'一次性委托':'阶段性委托')}}</text> <text class="gdic-tit">委托类型</text>
</view> <text class="gdic-txt">{{goods.contractual_period==1?'永久性委托':(goods.contractual_period==2?'一次性委托':'阶段性委托')}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">收费类型</text> <view class="gdic">
<text class="gdic-txt">{{goods.charges_type==1?'免费':'付费'}}</text> <text class="gdic-tit">收费类型</text>
</view> <text class="gdic-txt">{{goods.charges_type==1?'免费':'付费'}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">标的价款</text> <view class="gdic">
<text class="gdic-txt">{{bdprice}}</text> <text class="gdic-tit">委托起止日</text>
</view> <text class="gdic-txt">{{bdprice}}</text>
</view> </view>
</view> <view class="gdic">
<text class="gdic-tit">免责条款</text>
<!-- 委托方信息 --> <text class="gdic-txt">
<view v-if="!isLoading" class="bdcontent m-top20"> <text class="atxt" @click="gotopage('escapeclause')">点击查看免责条款</text>
<view class="item-title b-f"> </text>
<text>委托方信息</text> </view>
</view> </view>
<view class="item-content b-f"> <!-- 委托方信息 -->
<view class="gdic"> <view class="item-content b-f" v-else-if="tabKey === 2">
<text class="gdic-tit">联合推荐方</text> <view class="gdic">
<text class="gdic-txt">深圳国夏文化数字科技有限公司</text> <text class="gdic-tit">联合推荐方</text>
</view> <text class="gdic-txt">深圳国夏文化数字科技有限公司</text>
<view class="gdic"> </view>
<text class="gdic-tit">交易主体唯一标志码</text> <view class="gdic">
<text class="gdic-txt">{{goods.user_islicode}}</text> <text class="gdic-tit">交易主体唯一标志码</text>
</view> <text class="gdic-txt">{{goods.user_islicode}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">认证类型</text> <view class="gdic">
<text class="gdic-txt">{{goods.user.authType}}</text> <text class="gdic-tit">认证类型</text>
</view> <text class="gdic-txt">{{goods.user.authType}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">认证状态</text> <view class="gdic">
<text class="gdic-txt">{{goods.user.state=='0'?'认证中':(goods.user.state=='1'?'认证成功':'认证失败')}}</text> <text class="gdic-tit">认证状态</text>
</view> <text class="gdic-txt">{{goods.user.state=='0'?'认证中':(goods.user.state=='1'?'认证成功':'认证失败')}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">标的数量</text> <view class="gdic">
<text class="gdic-txt">{{goods.goods_ownership_str}}</text> <text class="gdic-tit">标的数量</text>
</view> <text class="gdic-txt">{{goods.goods_ownership_str}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">店铺详情</text> <view class="gdic">
<text class="gdic-txt">{{goods.username}}</text> <text class="gdic-tit">店铺详情</text>
</view> <text class="gdic-txt">{{goods.username}}</text>
<view class="gdic"> </view>
<text class="gdic-tit">渠道机构</text> <view class="gdic">
<text class="gdic-txt">{{goods.copyrightOwner}}</text> <text class="gdic-tit">渠道机构</text>
</view> <text class="gdic-txt">{{goods.copyrightOwner}}</text>
</view>
</view> </view>
</view> <!-- 资源信息 -->
<view class="item-content b-f" v-else-if="tabKey === 3" v-for="(item,index) in goods.source" >
<!-- 资源信息 --> <view class="gdic">
<view v-if="!isLoading || goods.source" class="bdcontent m-top20"> <text class="gdic-tit">资源类型</text>
<view class="item-title b-f"> <text class="gdic-txt">{{item.source_type}}</text>
<text>资源信息</text> </view>
<view class="gdic">
<text class="gdic-tit">资源所有人</text>
<text class="gdic-txt">{{item.registrant}}</text>
</view>
<view class="gdic">
<text class="gdic-tit">服务机构编码</text>
<text class="gdic-txt">{{item.servicecode}}</text>
</view>
<view class="gdic">
<text class="gdic-tit">资源编码</text>
<text class="gdic-txt">{{item.sourceIdentify}}</text>
</view>
</view> </view>
<view class="item-content b-f" v-for="(item,index) in goods.source">
<view class="gdic">
<text class="gdic-tit">资源类型</text>
<text class="gdic-txt">{{item.source_type}}</text>
</view>
<view class="gdic">
<text class="gdic-tit">资源所有人</text>
<text class="gdic-txt">{{item.registrant}}</text>
</view>
<view class="gdic">
<text class="gdic-tit">服务机构编码</text>
<text class="gdic-txt">{{item.servicecode}}</text>
</view>
<view class="gdic">
<text class="gdic-tit">资源编码</text>
<text class="gdic-txt">{{item.sourceIdentify}}</text>
</view>
</view>
</view> </view>
<!-- 协议弹框 -->
<whpop v-model="showPopup" :maskCloseAble="true" :mkey="murl"></whpop>
<!-- 底部选项卡 --> <!-- 底部选项卡 -->
<view class="footer-fixed"> <view class="footer-fixed">
@ -177,14 +172,18 @@
<view class="xqbtn" @click="goteshop()">进入店铺</view> <view class="xqbtn" @click="goteshop()">进入店铺</view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import * as GoodsApi from '@/api/goods' import * as GoodsApi from '@/api/goods'
import whpop from "../login/components/WhPopup";
export default { export default {
components: { components: {
// Shortcut, // Shortcut,
'whpop': whpop,
}, },
data() { data() {
return { return {
@ -194,16 +193,33 @@
gislicode: null, gislicode: null,
// //
goods: {}, goods: {},
// //
gdimgs:[], gdimgs:[],
// //
bdprice:'', bdprice:'',
// //
cartTotal: 0, cartTotal: 0,
// /SKU // /SKU
showSkuPopup: false, showSkuPopup: false,
// 1: 2: 3: // 1: 2: 3:
skuMode: 1 skuMode: 1,
tab: [
{
key: 1,
title: '标的信息',
},
{
key: 2,
title: '委托方信息',
},
{
key: 3,
title: '资源信息',
},
],
tabKey: 1,
showPopup: false, //
murl: '', //
} }
}, },
@ -218,6 +234,10 @@
}, },
methods: { methods: {
//
changeTab(key) {
this.tabKey = key
},
// //
onRefreshPage() { onRefreshPage() {
@ -274,6 +294,11 @@
this.$navTo('pages/index/index') this.$navTo('pages/index/index')
}, },
//
gotopage(str){
this.murl = str
this.showPopup = ! this.showPopup
},
}, },
/** /**

Loading…
Cancel
Save