细节icon优化
parent
ec5c5db5ee
commit
3e7ada35e2
|
|
@ -8,7 +8,7 @@
|
|||
type="text"
|
||||
confirm-type="search"
|
||||
:class="'input round wh-auto dis-block '+propClass"
|
||||
:placeholder="(propPlaceholder || this.$t('search.search.660us5'))"
|
||||
:placeholder="(propPlaceholder || propPlaceholderValue || this.$t('search.search.660us5'))"
|
||||
:placeholder-class="propPlaceholderClass"
|
||||
:value="propDefaultValue"
|
||||
:focus="propFocus"
|
||||
|
|
@ -40,14 +40,18 @@
|
|||
propFormName: {
|
||||
type: String,
|
||||
default: 'keywords',
|
||||
},
|
||||
propDefaultValue: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
propPlaceholder: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
propDefaultValue: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
propPlaceholderValue: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
propPlaceholderClass: {
|
||||
type: String,
|
||||
|
|
@ -169,24 +173,25 @@
|
|||
|
||||
// 搜索确认事件
|
||||
search_submit_confirm_event() {
|
||||
// 是否验证必须要传值
|
||||
if (this.propIsRequired && this.input_value === '') {
|
||||
// 是否验证必须要传值
|
||||
var value = this.input_value || this.propPlaceholderValue;
|
||||
if (this.propIsRequired && value === '') {
|
||||
app.globalData.showToast(this.$t('search.search.ic9b89'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// 是否回调事件
|
||||
if (this.propIsOnEvent) {
|
||||
this.$emit('onsearch', this.input_value);
|
||||
this.$emit('onsearch', value);
|
||||
} else {
|
||||
// 进入搜索页面
|
||||
app.globalData.url_open(this.propUrl + '?' + this.propFormName + '=' + this.input_value);
|
||||
app.globalData.url_open(this.propUrl + '?' + this.propFormName + '=' + value);
|
||||
}
|
||||
},
|
||||
|
||||
// 搜索确认(外部调用直接跳转搜索)
|
||||
search_submit_confirm(input_value = '') {
|
||||
app.globalData.url_open(this.propUrl + '?' + this.propFormName + '=' + input_value);
|
||||
search_submit_confirm(value = '') {
|
||||
app.globalData.url_open(this.propUrl + '?' + this.propFormName + '=' + value);
|
||||
},
|
||||
|
||||
// icon事件
|
||||
|
|
|
|||
|
|
@ -7,4 +7,7 @@
|
|||
}
|
||||
.ranking-list .goods-list .goods-title {
|
||||
width: calc(100% - 120rpx);
|
||||
}
|
||||
.ranking-list .goods-list .single-text {
|
||||
width: 54vw;
|
||||
}
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
<view v-if="data_list_loding_status == 3" class="padding-main">
|
||||
<!-- 搜索 -->
|
||||
<view class="margin-bottom-xxxl">
|
||||
<component-search ref="search" :propIsBtn="true" :propIsOnEvent="true" propSize="sm" @onsearch="search_history_handle" :propPlaceholder="search_keywords_value" :propDefaultValue="search_keywords_value" propBrColor="#eee" propPlaceholderClass="cr-grey-c" propIconColor="#999" propBgColor="#fff"></component-search>
|
||||
<component-search ref="search" :propIsBtn="true" :propIsOnEvent="true" propSize="sm" @onsearch="search_history_handle" :propPlaceholderValue="search_placeholder_keywords_value" :propPlaceholder="search_keywords_value" :propDefaultValue="search_keywords_value" propBrColor="#eee" propPlaceholderClass="cr-grey-c" propIconColor="#999" propBgColor="#fff"></component-search>
|
||||
</view>
|
||||
<!-- 历史搜索关键字 -->
|
||||
<view v-if="history_keywords.length > 0" class="history-keywords margin-bottom-xxxl">
|
||||
|
|
@ -42,8 +42,21 @@
|
|||
<view class="goods-list bg-white border-radius-main padding-main margin-top-xs">
|
||||
<block v-for="(item2, index2) in item.data" :key="index2">
|
||||
<view class="goods-item oh margin-bottom-main" :data-value="item2.goods_url" @tap="url_event">
|
||||
<image class="goods-image radius fl" :src="item2.images" mode="aspectFill"></image>
|
||||
<view class="goods-title text-size-sm multi-text fr">{{item2.title}}</view>
|
||||
<view v-if="index2 > 3" class="single-text">
|
||||
<view class="dis-inline-block pr margin-right-sm">
|
||||
<iconfont :name="item.icon" size="26rpx" propClass="cr-main"></iconfont>
|
||||
<text class="pa top-0 left-0 cr-white">{{index2}}</text>
|
||||
</view>
|
||||
<text class="text-size-sm">{{item2.title}}</text>
|
||||
</view>
|
||||
<view v-else class="pr">
|
||||
<view class="pa top-sm left-sm z-i">
|
||||
<iconfont :name="item.icon" size="26rpx" propClass="cr-main"></iconfont>
|
||||
<text class="pa top-0 left-0 cr-white">{{index2}}</text>
|
||||
</view>
|
||||
<image class="goods-image radius fl" :src="item2.images" mode="aspectFill"></image>
|
||||
<view class="goods-title text-size-sm multi-text fr">{{item2.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
|
|
@ -75,6 +88,7 @@
|
|||
history_keywords: [],
|
||||
recommend_keywords: [],
|
||||
ranking_list: [],
|
||||
search_placeholder_keywords_value: '',
|
||||
search_keywords_value: '',
|
||||
};
|
||||
},
|
||||
|
|
@ -93,7 +107,7 @@
|
|||
params = app.globalData.launch_params_handle(params);
|
||||
this.setData({
|
||||
params: params,
|
||||
search_keywords_value: params.keywords || '',
|
||||
search_placeholder_keywords_value: params.keywords || '',
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -8,15 +8,15 @@
|
|||
<view class="margin-top-xxxl">
|
||||
<view class="pr">
|
||||
<input type="text" :placeholder="$t('password.password.4e24j1')" minlength="6" maxlength="18" name="my_pwd" :password="!eyes1" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" data-index="1" @tap="eyes_event"><iconfont :name="eyes1 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="1" @tap="eyes_event"><iconfont :name="eyes1 ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
<view class="pr">
|
||||
<input type="text" :placeholder="$t('password.password.1lwiaz')" minlength="6" maxlength="18" name="new_pwd" :password="!eyes2" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" data-index="2" @tap="eyes_event"><iconfont :name="eyes2 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="2" @tap="eyes_event"><iconfont :name="eyes2 ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
<view class="pr">
|
||||
<input type="text" :placeholder="$t('password.password.338433')" minlength="6" maxlength="18" name="confirm_new_pwd" :password="!eyes3" class="form-item margin-bottom-main" />
|
||||
<view class="eyes pa" data-index="3" @tap="eyes_event"><iconfont :name="eyes3 ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" color="#666" size="32rpx"></iconfont></view>
|
||||
<view class="eyes pa" data-index="3" @tap="eyes_event"><iconfont :name="eyes3 ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" color="#666" size="32rpx"></iconfont></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-top-xxxxl tc">
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@
|
|||
<!-- 点赞、评论、分享 -->
|
||||
<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 cr-base" :data-value="'/pages/plugins/ask/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">{{$t('ask-comments.ask-comments.2zlnb5')}}{{ 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' : '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" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont :name="(data.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="va-m text-size-xs">{{$t('ask-comments.ask-comments.du7rcv')}}{{ data.give_thumbs_count }})</text>
|
||||
</view>
|
||||
<view class="item dis-inline-block cr-base" @tap="popup_share_event">
|
||||
<iconfont name="icon-bowenxiangqing-fenxiang" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-share" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">{{$t('common.share')}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -50,11 +50,11 @@
|
|||
<view class="margin-top-sm comments-content">{{ item.content }}</view>
|
||||
<view class="ask-comments-right-content-operate margin-top-main flex-row jc-e align-c text-size-xs cr-grey-9">
|
||||
<view v-if="(data_base.is_ask_comments_show || 0) == 1" class="item dis-inline-block" :data-index="index" :data-username="item.user.user_name_view" :data-askcommentsid="item.id" @tap="modal_open_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.3fcnme')}}{{ item.comments_count }})</text>
|
||||
</view>
|
||||
<view v-if="(data_base.is_ask_give_thumbs || 0) == 1" :class="'item dis-inline-block margin-left-xxxl padding-left-sm cr-' + ((item.is_give_thumbs || 0) == 1 ? 'main' : '')" data-type="1" :data-index="index" :data-askid="item.ask_id" :data-askcommentsid="item.id" @tap="give_thumbs_event">
|
||||
<iconfont :name="(item.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont :name="(item.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.du7rcv')}}{{ item.give_thumbs_count }})</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -72,11 +72,11 @@
|
|||
<view class="margin-top-sm">{{ comments.content }}</view>
|
||||
<view class="ask-comments-right-content-operate flex-row jc-e align-c text-size-xs cr-grey-9 padding-0">
|
||||
<view v-if="(data_base.is_ask_comments_show || 0) == 1" class="item dis-inline-block" :data-index="index" :data-username="comments.user.user_name_view" :data-askcommentsid="comments.ask_comments_id" :data-replycommentsid="comments.id" @tap="modal_open_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.3fcnme')}}{{ comments.comments_count }})</text>
|
||||
</view>
|
||||
<view v-if="(data_base.is_ask_give_thumbs || 0) == 1" :class="'item dis-inline-block margin-left-xxxl padding-left-sm cr-' + ((comments.is_give_thumbs || 0) == 1 ? 'main' : '')" data-type="2" :data-index="index" :data-indexs="index2" :data-askid="comments.ask_id" :data-askcommentsid="comments.id" :data-replycommentsid="comments.ask_comments_id" @tap="give_thumbs_event">
|
||||
<iconfont :name="(comments.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont :name="(comments.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.du7rcv')}}{{ comments.give_thumbs_count }})</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<view v-if="item.is_error == 0" class="flex-row jc-sb align-c">
|
||||
<view class="flex-row align-c">
|
||||
<view class="margin-right-sm pr" :data-index="index" @tap="goods_cart_event">
|
||||
<iconfont name="icon-zuhedap-shoping" size="42rpx" color="#E22C08"></iconfont>
|
||||
<iconfont name="icon-cart-add" size="42rpx" color="#E22C08"></iconfont>
|
||||
<view class="cart-badge-icon pa">
|
||||
<component-badge :propNumber="item.user_cart_count || 0"></component-badge>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@
|
|||
<!-- 点赞、评论、分享 -->
|
||||
<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 cr-base" :data-value="'/pages/plugins/blog/comments/comments?id=' + data.id" @tap="url_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">{{$t('ask-comments.ask-comments.2zlnb5')}}{{ 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' : '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" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont :name="(data.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="va-m text-size-xs">{{$t('ask-comments.ask-comments.du7rcv')}}{{ data.give_thumbs_count }})</text>
|
||||
</view>
|
||||
<view class="item dis-inline-block cr-base" @tap="popup_share_event">
|
||||
<iconfont name="icon-bowenxiangqing-fenxiang" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-share" size="28rpx" propClass="pr top-sm margin-right-xs"></iconfont>
|
||||
<text class="text-size-xs">{{$t('common.share')}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -50,11 +50,11 @@
|
|||
<view class="margin-top-sm comments-content">{{ item.content }}</view>
|
||||
<view class="blog-comments-right-content-operate margin-top-main flex-row jc-e align-c text-size-xs cr-grey-9">
|
||||
<view v-if="(data_base.is_blog_comments_show || 0) == 1" class="item dis-inline-block" :data-index="index" :data-username="item.user.user_name_view" :data-blogcommentsid="item.id" @tap="modal_open_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.3fcnme')}}{{ item.comments_count }})</text>
|
||||
</view>
|
||||
<view v-if="(data_base.is_blog_give_thumbs || 0) == 1" :class="'item dis-inline-block margin-left-xxxl padding-left-sm cr-' + ((item.is_give_thumbs || 0) == 1 ? 'main' : '')" data-type="1" :data-index="index" :data-blogid="item.blog_id" :data-blogcommentsid="item.id" @tap="give_thumbs_event">
|
||||
<iconfont :name="(item.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont :name="(item.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.du7rcv')}}{{ item.give_thumbs_count }})</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
<view class="margin-top-sm">{{ comments.content }}</view>
|
||||
<view class="blog-comments-right-content-operate flex-row jc-e align-c text-size-xs cr-grey-9 padding-0">
|
||||
<view v-if="(data_base.is_blog_comments_show || 0) == 1" class="item dis-inline-block" :data-index="index" :data-username="comments.user.user_name_view" :data-blogcommentsid="comments.blog_comments_id" :data-replycommentsid="comments.id" @tap="modal_open_event">
|
||||
<iconfont name="icon-bowenxiangqing-huifu" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont name="icon-message-square" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.3fcnme')}}{{ comments.comments_count }})</text>
|
||||
</view>
|
||||
<view
|
||||
|
|
@ -86,7 +86,7 @@
|
|||
:data-replycommentsid="comments.blog_comments_id"
|
||||
@tap="give_thumbs_event"
|
||||
>
|
||||
<iconfont :name="(comments.is_give_thumbs || 0) == 1 ? 'icon-bowenxiangqing-dianzan-xuaz' : 'icon-bowenxiangqing-dianzan'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<iconfont :name="(comments.is_give_thumbs || 0) == 1 ? 'icon-givealike' : 'icon-givealike-o'" size="28rpx" propClass="pr top-md margin-right-xs"></iconfont>
|
||||
<text class="va-m">{{$t('ask-comments.ask-comments.du7rcv')}}{{ comments.give_thumbs_count }})</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view @tap="price_change">
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" size="44rpx"></iconfont>
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" size="44rpx"></iconfont>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-row jc-sb">
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<view class="text-size-40 fw-b">{{ is_price_show ? accounts_summary : '***' }}</view>
|
||||
</view>
|
||||
<view @tap="price_change">
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" size="44rpx"></iconfont>
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" size="44rpx"></iconfont>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-row jc-sb padding-bottom-main">
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
</view>
|
||||
<view class="flex-row">
|
||||
<view @tap="price_change">
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-wodeqianbao-eyeclo2'" size="44rpx"></iconfont>
|
||||
<iconfont :name="is_price_show ? 'icon-wodeqianbao-eye' : 'icon-eye-half'" size="44rpx"></iconfont>
|
||||
</view>
|
||||
<view class="margin-left-xxxl" data-value="/pages/plugins/wallet/payment-code/payment-code" @tap="url_event">
|
||||
<iconfont name="icon-qrcode" size="44rpx"></iconfont>
|
||||
|
|
|
|||
Loading…
Reference in New Issue