细节优化
parent
e45b04ebcf
commit
43c6ba671b
8
App.vue
8
App.vue
|
|
@ -6,13 +6,13 @@
|
|||
// 基础配置
|
||||
// 数据接口请求地址
|
||||
// request_url: 'https://new.shopxo.vip/',
|
||||
// request_url: 'https://d1.shopxo.vip/',
|
||||
request_url: 'http://shopxo.com/',
|
||||
request_url: 'https://d1.shopxo.vip/',
|
||||
// request_url: 'http://shopxo.com/',
|
||||
|
||||
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/)
|
||||
// static_url: 'https://new.shopxo.vip/',
|
||||
// static_url: 'https://d1.shopxo.vip/',
|
||||
static_url: 'http://shopxo.com/',
|
||||
static_url: 'https://d1.shopxo.vip/',
|
||||
// static_url: 'http://shopxo.com/',
|
||||
|
||||
// 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
|
||||
system_type: 'default',
|
||||
|
|
|
|||
|
|
@ -152,8 +152,15 @@
|
|||
// 店铺状态正常、是否指定商品、如果不存在操作按钮、不可以加入购物车则置空
|
||||
var realstore_goods_data = params.realstore_goods_data || null;
|
||||
var realstore_goods_data_cart_status = false;
|
||||
if(realstore_goods_data != null && (realstore_goods_data.buy_button || null) != null && (realstore_goods_data.buy_button.is_cart || 0) == 1) {
|
||||
realstore_goods_data_cart_status = true;
|
||||
if(realstore_goods_data != null && (realstore_goods_data.buy_button || null) != null && realstore_goods_data.buy_button.data.length > 0) {
|
||||
var buy_button = realstore_goods_data.buy_button.data;
|
||||
var arr = ['cart', 'buy', 'plugins-batchbuy-button-cart', 'plugins-batchbuy-button-buy'];
|
||||
for(var i in buy_button) {
|
||||
if(arr.indexOf(buy_button[i]['type']) != -1) {
|
||||
realstore_goods_data_cart_status = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.setData({
|
||||
params: params || {},
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@
|
|||
</view>
|
||||
</view>
|
||||
<view v-if="((item.distance_value || null) != null && (item.distance_unit || null) != null) || ((item.lng || 0) != 0 && (item.lat || 0) != 0)" class="item-operation br-t oh padding-top-main margin-top-main">
|
||||
<view v-if="(item.distance_value || null) != null && (item.distance_unit || null) != null" class="fl margin-top-lg">
|
||||
<text class="cr-grey">距离</text>
|
||||
<view v-if="(item.distance_value || null) != null && (item.distance_unit || null) != null" class="fl margin-top-sm">
|
||||
<text class="cr-grey">距您</text>
|
||||
<text class="cr-base">{{ item.distance_value }}</text>
|
||||
<text class="cr-grey">{{ item.distance_unit }}</text>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@
|
|||
<!-- 定位 -->
|
||||
<view v-if="is_home_location_choice == 1" class="home-top-nav-location dis-inline-block va-m single-text cr-white pr bs-bb padding-left-main padding-right-lg" @tap="choose_user_location_event">
|
||||
<view class="dis-inline-block va-m">
|
||||
<iconfont name="icon-mendian-dingwei" size="32rpx" prop-class="lh" color="#fff"></iconfont>
|
||||
<iconfont name="icon-mendian-dingwei" size="28rpx" prop-class="lh-md" color="#fff"></iconfont>
|
||||
</view>
|
||||
<text class="va-m margin-left-xs text-size-sm">{{user_location.text || ''}}</text>
|
||||
<text class="va-m margin-left-xs text-size-md">{{user_location.text || ''}}</text>
|
||||
<view class="lh pa right-0 top-xxxl">
|
||||
<iconfont name="icon-mendian-jiantou2" size="24rpx" prop-class="lh-xs" color="#fff"></iconfont>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
<!-- 位置 -->
|
||||
<view class="nav-location single-text dis-inline-block bs-bb pr padding-left-main padding-right-xxxxl" @tap="choose_user_location_event">
|
||||
<view class="dis-inline-block va-m">
|
||||
<iconfont name="icon-mendian-dingwei" size="32rpx" prop-class="lh"></iconfont>
|
||||
<iconfont name="icon-mendian-dingwei" size="28rpx" prop-class="lh-md"></iconfont>
|
||||
</view>
|
||||
<text class="va-m margin-left-xs text-size-sm">{{user_location.text || ''}}</text>
|
||||
<text class="va-m margin-left-xs text-size-md">{{user_location.text || ''}}</text>
|
||||
<view class="icon-arrow-down lh pa right-xxxxxl">
|
||||
<iconfont name="icon-mendian-jiantou2" size="24rpx" prop-class="lh-xs" color="#fff"></iconfont>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@
|
|||
<!-- 位置 -->
|
||||
<view class="nav-location flex-row align-c margin-right-sm" @tap="choose_user_location_event">
|
||||
<view class="dis-inline-block va-m">
|
||||
<iconfont name="icon-mendian-dingwei" size="32rpx" prop-class="lh"></iconfont>
|
||||
<iconfont name="icon-mendian-dingwei" size="28rpx" prop-class="lh-md"></iconfont>
|
||||
</view>
|
||||
<text class="va-m margin-left-xs text-size-sm single-text">{{user_location.text || ''}}</text>
|
||||
<text class="va-m margin-left-xs text-size-md single-text">{{user_location.text || ''}}</text>
|
||||
</view>
|
||||
<!-- 搜索 -->
|
||||
<view class="nav-search wh-auto">
|
||||
|
|
|
|||
Loading…
Reference in New Issue