服务器提交
This commit is contained in:
1
public/weapp/pages_tool/store_notes/note_detail.js
Executable file
1
public/weapp/pages_tool/store_notes/note_detail.js
Executable file
File diff suppressed because one or more lines are too long
8
public/weapp/pages_tool/store_notes/note_detail.json
Executable file
8
public/weapp/pages_tool/store_notes/note_detail.json
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"ns-mp-html": "/components/ns-mp-html/ns-mp-html",
|
||||
"loading-cover": "/components/loading-cover/loading-cover",
|
||||
"hover-nav": "/components/hover-nav/hover-nav",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
1
public/weapp/pages_tool/store_notes/note_detail.wxml
Executable file
1
public/weapp/pages_tool/store_notes/note_detail.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}"></page-meta><view class="goods-detail"><block wx:if="{{noteType=='goods_item'}}"><view class="goods-item"><image class="item-img" src="{{$root.g0}}" mode="aspectFit" data-event-opts="{{[['error',[['imageError']]]]}}" binderror="__e"></image><block wx:if="{{goodsItemInfo.is_show_release_time==1}}"><text class="item-title">{{goodsItemInfo.note_title}}</text></block><block wx:if="{{$root.g1}}"><view class="item-lightspot"><block wx:for="{{goodsItemInfo.goods_highlights}}" wx:for-item="item" wx:for-index="index" wx:key="index"><text class="color-base-bg">{{item}}</text></block></view></block><block wx:if="{{goodsItemInfo.is_show_release_time==1}}"><text class="item-time">{{$root.g2}}</text></block><view class="item-content"><ns-mp-html vue-id="7c1ed042-1" content="{{goodsItemInfo.note_content}}" bind:__l="__l"></ns-mp-html></view><view class="rest-info"><block wx:if="{{goodsItemInfo.is_show_read_num==1}}"><text>阅读<text>{{goodsItemInfo.initial_read_num+goodsItemInfo.read_num}}</text></text></block><block wx:if="{{goodsItemInfo.is_show_dianzan_num==1}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" bindtap="__e"><block wx:if="{{giveLikeIdent}}"><text class="iconfont icon-likefill color-base-text"></text></block><block wx:if="{{!giveLikeIdent}}"><text class="iconfont icon-gz"></text></block><text>{{goodsItemInfo.initial_dianzan_num+goodsItemInfo.dianzan_num}}</text></text></block></view><view class="item-action"><view class="action-left"><block wx:if="{{!giveLikeIdent}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" class="iconfont icon-dianzan" bindtap="__e"></text></block><block wx:if="{{giveLikeIdent}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" class="iconfont icon-dianzan1 active color-base-text" bindtap="__e"></text></block><button class="iconfont icon-share" type="primary" open-type="share"></button></view><block wx:if="{{$root.g3}}"><button data-event-opts="{{[['tap',[['redirectToGoods',['$0'],['goodsItemInfo']]]]]}}" class="color-base-bg action-right" bindtap="__e">购买</button></block></view></view></block><block wx:else><block wx:if="{{noteType=='shop_said'}}"><view class="shop-said"><text class="said-title">{{shopSaidInfo.note_title}}</text><block wx:if="{{shopSaidInfo.is_show_release_time==1}}"><text class="said-time">{{$root.g4}}</text></block><view class="said-content"><ns-mp-html vue-id="7c1ed042-2" content="{{shopSaidInfo.note_content}}" bind:__l="__l"></ns-mp-html></view><view class="said-goods"><block wx:for="{{$root.l0}}" wx:for-item="goodsItme" wx:for-index="goodsIndex" wx:key="goodsIndex"><block wx:if="{{shopSaidInfo.goods_list}}"><view data-event-opts="{{[['tap',[['redirectToGoods',['$0','shop_said'],[[['shopSaidInfo.goods_list','',goodsIndex,'goods_id']]]]]]]}}" class="commodity-item" bindtap="__e"><image class="commodity-img" src="{{goodsItme.g5}}" mode="aspectFit"></image><view class="commodity-content"><text class="commodity-name">{{goodsItme.$orig.goods_name}}</text><text class="commodity-price color-base-text">{{goodsItme.$orig.price}}</text></view></view></block></block></view><view class="rest-info"><block wx:if="{{shopSaidInfo.is_show_read_num==1}}"><text>阅读<text>{{shopSaidInfo.initial_read_num+shopSaidInfo.read_num}}</text></text></block><block wx:if="{{shopSaidInfo.is_show_dianzan_num==1}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" bindtap="__e"><block wx:if="{{giveLikeIdent}}"><text class="iconfont icon-likefill color-base-text"></text></block><block wx:if="{{!giveLikeIdent}}"><text class="iconfont icon-gz"></text></block><text>{{shopSaidInfo.initial_dianzan_num+shopSaidInfo.dianzan_num}}</text></text></block></view><view class="said-action"><block wx:if="{{!giveLikeIdent}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" class="iconfont icon-dianzan" bindtap="__e"></text></block><block wx:if="{{giveLikeIdent}}"><text data-event-opts="{{[['tap',[['giveLike',['$event']]]]]}}" class="iconfont icon-dianzan1 color-base-text active" bindtap="__e"></text></block><button class="iconfont icon-share" type="primary" open-type="share"></button></view></view></block></block><loading-cover class="vue-ref" vue-id="7c1ed042-3" data-ref="loadingCover" bind:__l="__l"></loading-cover><hover-nav vue-id="7c1ed042-4" bind:__l="__l"></hover-nav><ns-login class="vue-ref" vue-id="7c1ed042-5" data-ref="login" bind:__l="__l"></ns-login><privacy-popup class="vue-ref" vue-id="7c1ed042-6" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>
|
||||
3
public/weapp/pages_tool/store_notes/note_detail.wxss
Executable file
3
public/weapp/pages_tool/store_notes/note_detail.wxss
Executable file
@@ -0,0 +1,3 @@
|
||||
page{background-color:#fff}.goods-detail{padding:30rpx 24rpx 180rpx}.goods-detail .said-content,
|
||||
.goods-detail .item-content{padding:4rpx}.goods-detail .said-content rich-text,
|
||||
.goods-detail .item-content rich-text{word-wrap:break-word}.goods-detail .goods-item .item-img{width:100%;height:400rpx;border-radius:10rpx}.goods-detail .goods-item .item-title{display:block;margin:40rpx 0 44rpx;font-size:32rpx;line-height:1}.goods-detail .goods-item .item-lightspot text{font-size:24rpx;padding:6rpx 10rpx;line-height:1;border-radius:4rpx;color:#fff}.goods-detail .goods-item .item-lightspot text ~ text{margin-left:10rpx}.goods-detail .goods-item .item-time{display:block;margin:44rpx 0 40rpx;font-size:24rpx;color:#b6b6b6}.goods-detail .goods-item .rest-info{display:flex;justify-content:space-between;align-items:center;margin-top:40rpx;color:#6b6b6b;font-size:24rpx}.goods-detail .goods-item .rest-info text text{margin-left:8rpx}.goods-detail .goods-item .rest-info text.iconfont{font-size:26rpx}.goods-detail .goods-item .item-action{position:fixed;bottom:0;width:calc(100% - 24px);display:flex;margin:80rpx 0;justify-content:space-between}.goods-detail .goods-item .item-action .action-left{display:flex}.goods-detail .goods-item .item-action .action-left text{display:flex;justify-content:center;align-items:center;width:70rpx;height:70rpx;background-color:rgba(0,0,0,.4)!important;border-radius:50%;border:2rpx solid transparent}.goods-detail .goods-item .item-action .action-left text.active{margin:0;background-color:#fff!important;border:2rpx solid #ddd}.goods-detail .goods-item .item-action .action-left button{display:flex;justify-content:center;align-items:center;margin:0;margin-left:16rpx;padding:0;width:70rpx;height:70rpx;background-color:rgba(0,0,0,.4)!important;border-radius:50%}.goods-detail .goods-item .item-action .action-left .iconfont{color:#fff;font-size:32rpx}.goods-detail .goods-item .item-action .action-right{margin:0;width:180rpx;height:70rpx;color:#fff}.goods-detail .shop-said .said-title{display:block;margin:40rpx 0 44rpx;font-size:32rpx;line-height:1}.goods-detail .shop-said .said-time{display:block;margin:44rpx 0 40rpx;font-size:24rpx;color:#b6b6b6}.goods-detail .shop-said .rest-info{display:flex;justify-content:space-between;align-items:center;margin-top:40rpx;color:#6b6b6b;font-size:24rpx}.goods-detail .shop-said .rest-info text text{margin-left:8rpx}.goods-detail .shop-said .rest-info text.iconfont{font-size:26rpx}.goods-detail .shop-said .said-action{position:fixed;bottom:0;width:calc(100% - 24px);display:flex;justify-content:center;margin:80rpx 0}.goods-detail .shop-said .said-action text{display:flex;justify-content:center;align-items:center;width:70rpx;height:70rpx;background-color:rgba(0,0,0,.4)!important;border-radius:50%}.goods-detail .shop-said .said-action text.active{margin:0;background-color:#fff!important;border:2rpx solid #ddd}.goods-detail .shop-said .said-action button{display:flex;justify-content:center;align-items:center;margin:0;margin-left:16rpx;padding:0;width:70rpx;height:70rpx;background-color:rgba(0,0,0,.4)!important;border-radius:50%}.goods-detail .shop-said .said-action .iconfont{color:#fff;font-size:32rpx}.goods-detail .shop-said .said-goods{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:40rpx}.goods-detail .shop-said .said-goods .commodity-item{display:flex;flex-direction:column;margin-bottom:22rpx;width:338rpx;border:2rpx solid #f1f1f1}.goods-detail .shop-said .said-goods .commodity-item image{width:338rpx;height:338rpx}.goods-detail .shop-said .said-goods .commodity-item .commodity-content{padding:20rpx}.goods-detail .shop-said .said-goods .commodity-item .commodity-content .commodity-name{overflow:hidden;display:block;font-size:24rpx;text-overflow:ellipsis;white-space:nowrap;color:#383838}.goods-detail .shop-said .said-goods .commodity-item .commodity-content .commodity-price{display:block;font-size:24rpx}
|
||||
1
public/weapp/pages_tool/store_notes/note_list.js
Executable file
1
public/weapp/pages_tool/store_notes/note_list.js
Executable file
File diff suppressed because one or more lines are too long
9
public/weapp/pages_tool/store_notes/note_list.json
Executable file
9
public/weapp/pages_tool/store_notes/note_list.json
Executable file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"disableScroll": true,
|
||||
"usingComponents": {
|
||||
"loading-cover": "/components/loading-cover/loading-cover",
|
||||
"ns-empty": "/components/ns-empty/ns-empty",
|
||||
"diy-bottom-nav": "/components/diy-components/diy-bottom-nav",
|
||||
"ns-login": "/components/ns-login/ns-login"
|
||||
}
|
||||
}
|
||||
1
public/weapp/pages_tool/store_notes/note_list.wxml
Executable file
1
public/weapp/pages_tool/store_notes/note_list.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<page-meta page-style="{{themeColor}}"></page-meta><view><view class="notes-nav"><scroll-view class="notes-list" scroll-x="true"><block wx:for="{{groupInfo.groupList}}" wx:for-item="gruopItem" wx:for-index="gruopIndex" wx:key="gruopIndex"><text data-event-opts="{{[['tap',[['tabCut',['$0',gruopIndex],[[['groupInfo.groupList','',gruopIndex,'group_id']]]]]]]}}" class="{{['notes-item',gruopIndex==groupInfo.currIdent?'color-base-text active color-base-border':'']}}" bindtap="__e">{{''+gruopItem.group_name+''}}</text></block></scroll-view></view><block wx:if="{{groupInfo.currId!=0}}"><mescroll-uni class="vue-ref" vue-id="5b19bd55-1" top="94" data-ref="mescroll" data-event-opts="{{[['^getData',[['getNotesList']]]]}}" bind:getData="__e" bind:__l="__l" vue-slots="{{['default','list']}}"><view slot="list"><view class="notes-content"><block wx:for="{{$root.l1}}" wx:for-item="listItem" wx:for-index="listIndex" wx:key="listIndex"><view data-event-opts="{{[['tap',[['noteDetail',['$0'],[[['noteListInfo','',listIndex,'note_id']]]]]]]}}" class="note-item" bindtap="__e"><text class="note-title">{{listItem.$orig.note_title}}</text><block wx:if="{{listItem.$orig.goods_highlights}}"><view class="notes-highlights-list"><block wx:for="{{listItem.$orig.label}}" wx:for-item="labelItem" wx:for-index="labelIndex" wx:key="labelIndex"><text class="color-base-bg">{{labelItem}}</text></block></view></block><view class="note-desc"><text class="color-base-text">{{"#"+(listItem.$orig.note_type=='goods_item'?'单品介绍':'掌柜说')+"#"}}</text>{{''+listItem.$orig.note_abstract+''}}</view><view class="{{['notes-img-wrap',(listItem.$orig.cover_type==1)?'notes-img-wrap-list':'']}}"><block wx:if="{{listItem.$orig.cover_type==0}}"><image class="notes-item-image" src="{{listItem.g0}}" mode="aspectFill"></image></block><block wx:else><block wx:for="{{listItem.l0}}" wx:for-item="imgItem" wx:for-index="imgIndex" wx:key="imgIndex"><image class="notes-item-image-li" src="{{imgItem.g1}}" mode="aspectFit"></image></block></block></view><view class="rest-info"><block wx:if="{{listItem.$orig.is_show_release_time==1}}"><view class="time">{{listItem.g2}}</view></block><view class="read-info"><block wx:if="{{listItem.$orig.is_show_read_num==1}}"><text>阅读<text>{{listItem.$orig.initial_read_num+listItem.$orig.read_num}}</text></text></block><block wx:if="{{listItem.$orig.is_show_dianzan_num==1}}"><text data-event-opts="{{[['tap',[['giveLike',['$0',listIndex],[[['noteListInfo','',listIndex,'note_id']]]]]]]}}" catchtap="__e"><block wx:if="{{listItem.$orig.is_dianzan==1}}"><text class="iconfont icon-likefill color-base-text"></text></block><block wx:else><text class="iconfont icon-gz"></text></block><text>{{listItem.$orig.initial_dianzan_num+listItem.$orig.dianzan_num}}</text></text></block></view></view></view></block></view></view><loading-cover class="vue-ref" vue-id="{{('5b19bd55-2')+','+('5b19bd55-1')}}" data-ref="loadingCover" bind:__l="__l"></loading-cover></mescroll-uni></block><block wx:if="{{$root.g3}}"><view class="empty-box"><ns-empty vue-id="5b19bd55-3" isIndex="{{false}}" text="暂无店铺笔记" bind:__l="__l"></ns-empty></view></block><view class="page-bottom"><diy-bottom-nav vue-id="5b19bd55-4" bind:__l="__l"></diy-bottom-nav></view><ns-login class="vue-ref" vue-id="5b19bd55-5" data-ref="login" bind:__l="__l"></ns-login><privacy-popup class="vue-ref" vue-id="5b19bd55-6" data-ref="privacyPopup" bind:__l="__l"></privacy-popup></view>
|
||||
2
public/weapp/pages_tool/store_notes/note_list.wxss
Executable file
2
public/weapp/pages_tool/store_notes/note_list.wxss
Executable file
@@ -0,0 +1,2 @@
|
||||
.notes-nav{overflow:hidden;padding:0 20rpx;background-color:#fff}.notes-nav .notes-list{display:flex;align-items:center;width:100%;height:90rpx;white-space:nowrap}.notes-nav .notes-list .notes-item{display:inline-block;margin:0 20rpx;height:86rpx;text-align:center;line-height:90rpx}.notes-nav .notes-list .notes-item.active{border-bottom:4rpx solid}.notes-content{height:100%;width:100%}.note-item{margin:30rpx 20rpx;padding:20rpx;background-color:#fff;border-radius:6rpx;overflow:hidden;position:relative}.note-item .note-title{font-size:30rpx;font-weight:600;line-height:44rpx;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.note-item .notes-highlights-list text{display:inline-block;color:#fff;font-size:24rpx;line-height:36rpx;padding:0 10rpx;border-radius:4rpx;margin:0 5rpx}.note-item .note-desc{margin:4rpx 0 8rpx;line-height:40rpx;overflow:hidden}.note-item .note-desc text{float:left;margin-right:16rpx}.note-item .notes-img-wrap{position:relative;height:300rpx}.note-item .notes-img-wrap .notes-item-image{width:100%;height:300rpx;object-fit:cover}.note-item .notes-img-wrap-list{display:flex;justify-content:space-between;flex-wrap:wrap;height:auto}.note-item .notes-img-wrap-list image{width:calc((100% - 40rpx) / 3);height:210rpx;margin-top:20rpx}.note-item .notes-img-wrap-list image:nth-child(-n + 3){margin-top:0}.note-item .notes-img-wrap-list:after{content:"";width:calc((100% - 40rpx) / 3)}.note-item .note-img-one{display:flex;justify-content:center;align-items:center;width:100%;height:420rpx}.note-item .note-img-one image{width:100%;height:420rpx}.note-item .note-img-more{width:100%;white-space:nowrap}.note-item .note-img-more .more-item{overflow:hidden;display:inline-block;width:200rpx;height:200rpx;text-align:center;line-height:200rpx;border-radius:10rpx}.note-item .note-img-more .more-item ~ .more-item{margin-left:16rpx}.note-item .note-img-more .more-item image{width:200rpx;height:200rpx}.note-item .notes-img-wrap{position:relative;height:300rpx}.note-item .notes-img-wrap .notes-item-image{width:100%;height:300rpx;object-fit:cover}.note-item .notes-img-wrap-list{display:flex;justify-content:space-between;flex-wrap:wrap;height:auto}.note-item .notes-img-wrap-list image{width:calc((100% - 40rpx) / 3);height:210rpx;margin-top:20rpx}.note-item .notes-img-wrap-list image:nth-child(-n + 3){margin-top:0}.note-item .notes-img-wrap-list:after{content:"";width:calc((100% - 40rpx) / 3)}.note-item .rest-info{display:flex;justify-content:space-between;align-items:center;margin-top:20rpx}.note-item .rest-info .time,
|
||||
.note-item .rest-info .read-info{color:#b6b6b6;font-size:24rpx}.note-item .rest-info text{margin-left:10rpx}.note-item .rest-info .read-info > text{margin-left:30rpx}.empty-box{margin-top:200rpx}
|
||||
Reference in New Issue
Block a user