1.测试优化
parent
fb0ac1856f
commit
9a26aa5985
8
App.vue
8
App.vue
|
|
@ -71,11 +71,11 @@
|
|||
// tabbar页面
|
||||
tabbar_pages: ['/pages/index/index', '/pages/goods-category/goods-category', '/pages/cart/cart', '/pages/user/user'],
|
||||
// 请求地址
|
||||
// request_url: 'https://new.shopxo.vip/',
|
||||
request_url: 'http://shopxo.com/',
|
||||
request_url: 'https://new.shopxo.vip/',
|
||||
// request_url: 'http://shopxo.com/',
|
||||
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/)
|
||||
// static_url: 'https://new.shopxo.vip/',
|
||||
static_url: 'http://shopxo.com/',
|
||||
static_url: 'https://new.shopxo.vip/',
|
||||
// static_url: 'http://shopxo.com/',
|
||||
// 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
system_type: 'default',
|
||||
// 基础信息
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@
|
|||
<view class="fw-b">共{{ data.comments_count || 0 }}个回答</view>
|
||||
<!-- 点赞、评论、分享 -->
|
||||
<view v-if="propType == 'detail'" class="tr ask-comments-bottom-container cr-base">
|
||||
<view v-if="(data_base.is_ask_comments_show || 0) == 1" class="item dis-inline-block" :data-value="'/pages/plugins/ask/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<view v-if="(data_base.is_ask_comments_show || 0) == 1" class="item dis-inline-block cr-base" :data-value="'/pages/plugins/ask/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">评论({{ data.comments_count }})</text>
|
||||
</view>
|
||||
<view v-if="(data_base.is_ask_give_thumbs || 0) == 1" :class="'item dis-inline-block cr-' + ((data.is_give_thumbs || 0) == 1 ? 'main' : 'grey')" :data-askid="data.id" @tap="give_thumbs_event">
|
||||
<view v-if="(data_base.is_ask_give_thumbs || 0) == 1" :class="'item dis-inline-block cr-' + ((data.is_give_thumbs || 0) == 1 ? 'main' : 'base')" :data-askid="data.id" @tap="give_thumbs_event">
|
||||
<iconfont :name="(data.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="va-m text-size-xs">点赞({{ data.give_thumbs_count }})</text>
|
||||
</view>
|
||||
<view class="item dis-inline-block" @tap="popup_share_event">
|
||||
<view class="item dis-inline-block cr-base" @tap="popup_share_event">
|
||||
<iconfont name="icon-bowenxiangqing-fenxiang" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">分享</text>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -5,15 +5,15 @@
|
|||
<view class="fw-b">评论 {{ data.comments_count || '' }}</view>
|
||||
<!-- 点赞、评论、分享 -->
|
||||
<view v-if="propType == 'detail'" class="tr blog-comments-bottom-container cr-grey">
|
||||
<view v-if="(data_base.is_blog_comments_show || 0) == 1" class="item dis-inline-block" :data-value="'/pages/plugins/blog/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<view v-if="(data_base.is_blog_comments_show || 0) == 1" class="item dis-inline-block cr-base" :data-value="'/pages/plugins/blog/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">评论({{ data.comments_count }})</text>
|
||||
</view>
|
||||
<view v-if="(data_base.is_blog_give_thumbs || 0) == 1" :class="'item dis-inline-block cr-' + ((data.is_give_thumbs || 0) == 1 ? 'main' : 'grey')" :data-blogid="data.id" @tap="give_thumbs_event">
|
||||
<view v-if="(data_base.is_blog_give_thumbs || 0) == 1" :class="'item dis-inline-block cr-' + ((data.is_give_thumbs || 0) == 1 ? 'main' : 'base')" :data-blogid="data.id" @tap="give_thumbs_event">
|
||||
<iconfont :name="(data.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="va-m text-size-xs">点赞({{ data.give_thumbs_count }})</text>
|
||||
</view>
|
||||
<view class="item dis-inline-block" @tap="popup_share_event">
|
||||
<view class="item dis-inline-block cr-base" @tap="popup_share_event">
|
||||
<iconfont name="icon-bowenxiangqing-fenxiang" size="28rpx" class="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">分享</text>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
<view v-if="(data_base || null) != null">
|
||||
<view class="pr">
|
||||
<!-- 分类 -->
|
||||
<scroll-view v-if="(brand_category_list || null) != null && brand_category_list.length > 0" class="nav-list scroll-view-horizontal bg-white oh" scroll-x="true">
|
||||
<view class="flex-row flex-nowrap align-c">
|
||||
<block v-for="(item, index) in brand_category_list" :key="index">
|
||||
<view class="item flex-col align-c text-size-xss" @tap="nav_event" :data-value="item.id">
|
||||
<image :src="item.icon" mode="aspectFit"></image>
|
||||
<view class="padding-left-sm padding-right-sm round" :class="nav_active_value == item.id ? 'bg-main cr-white' : ''">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
<scroll-view v-if="(brand_category_list || null) != null && brand_category_list.length > 0" :scroll-x="true" :show-scrollbar="false" :scroll-with-animation="true" :scroll-into-view="'one-nav-item-' + nav_active_index" class="nav-list scroll-view-horizontal bg-white oh" scroll-x="true">
|
||||
<!-- <view class="flex-row flex-nowrap align-c"> -->
|
||||
<block v-for="(item, index) in brand_category_list" :key="index">
|
||||
<view class="item flex-col align-c text-size-xss dis-inline-block" :id="'one-nav-item-' + index" :data-index="index" :data-itemtwoindex="-1" :data-itemthreeindex="-1" @tap="nav_event" :data-value="item.id">
|
||||
<image :src="item.icon" mode="aspectFit"></image>
|
||||
<view class="padding-left-sm padding-right-sm round" :class="nav_active_value == item.id ? 'bg-main cr-white' : ''">
|
||||
{{ item.name }}
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- </view> -->
|
||||
</scroll-view>
|
||||
<component-nav-more prop-class="bg-white" :prop-status="popupStatus" @open-popup="open_popup_event">
|
||||
<view class="nav-list-more">
|
||||
|
|
@ -47,9 +47,9 @@
|
|||
|
||||
<!-- 结尾 -->
|
||||
<component-bottom-line :propStatus="data_bottom_line_status"></component-bottom-line>
|
||||
</view>
|
||||
|
||||
<!-- 提示信息 -->
|
||||
</view>
|
||||
|
||||
<!-- 提示信息 -->
|
||||
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
|
||||
</view>
|
||||
</template>
|
||||
|
|
@ -73,6 +73,7 @@
|
|||
// 自定义分享信息
|
||||
share_info: {},
|
||||
popupStatus: false,
|
||||
nav_active_index: 0,
|
||||
};
|
||||
},
|
||||
|
||||
|
|
@ -159,6 +160,7 @@
|
|||
this.setData({
|
||||
nav_active_value: e.currentTarget.dataset.value || 0,
|
||||
popupStatus: false,
|
||||
nav_active_index: e.currentTarget.dataset.index,
|
||||
});
|
||||
this.nav_active_handle();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue