更改楼层装修适配 修改一些样式

master
lemon橪 2021-06-09 20:12:26 +08:00
parent 7cbb226416
commit 305f05bade
13 changed files with 57 additions and 56 deletions

View File

@ -52,6 +52,7 @@ export default {
// #ifdef APP-PLUS
this.checkArguments(); //
APPUpdate();
//
plus.globalEvent.addEventListener("newintent", (e) => {
this.checkArguments(); //

View File

@ -4,6 +4,8 @@
*/
// 开发环境
const dev = {
// common: 'http://192.168.0.109:8890',
// buyer: 'http://192.168.0.109:8888',
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
};
@ -11,7 +13,6 @@ const dev = {
const prod = {
common: "https://common-api.pickmall.cn",
buyer: "https://buyer-api.pickmall.cn",
};
//默认生产环境
@ -22,7 +23,7 @@ if (process.env.NODE_ENV == "development") {
} else {
api = prod;
}
//微信小程序app的打包方式只能是生产环境,所以这块直接条件编译赋值
//微信小程序app的打包方式建议为生产环境,所以这块直接条件编译赋值
// #ifdef MP-WEIXIN || APP-PLUS
api = prod;
// #endif

View File

@ -193,18 +193,16 @@
"desc" : "位置信息将用于高德地图的效果展示"
}
},
"plugins" : {
"myPlugin" : {
"version" : "1.1.0",
"provider" : "wx738958e0f4c894f9"
},
"live-player-plugin": {
"version": "1.3.0",
"provider": "wx2b03c6e691cd7370"
"plugins" : {
"myPlugin" : {
"version" : "1.1.0",
"provider" : "wx738958e0f4c894f9"
},
"live-player-plugin" : {
"version" : "1.3.0",
"provider" : "wx2b03c6e691cd7370"
}
}
}
},
"h5" : {
"devServer" : {

View File

@ -18,7 +18,7 @@
<view>客服邮箱lili@lili.com</view>
</view>
<view class="bottom flex-center">
<view @click="navigateTo('/pages/help/tips?type=user')">lili</view>
<view @click="navigateTo('/pages/mine/help/tips?type=user')">lili</view>
<view>CopyRight @ {{config.name}} </view>
</view>
</view>

View File

@ -118,7 +118,9 @@
<!-- 拼团用户列表 -->
<PromotionAssembleListLayout v-if="isGroup" @to-assemble-buy-now="toAssembleBuyNow" :res="PromotionList" />
<view class="card-box">
<!-- 配置地址 如果是虚拟产品的时候不展示 -->
<view class="card-box" v-if="goodsDetail.goodsType !='VIRTUAL_GOODS'">
<view class="card-flex" @click="shutMask(4)">
<view class="card-title"> 已选 </view>
<view class="card-content">
@ -177,7 +179,7 @@
</view>
<!-- 正常结算页面 -->
<view class="detail-btn" v-if="!isGroup">
<view class="to-store-car to-store-btn" @click="shutMask(4)"></view>
<view class="to-store-car to-store-btn" v-if="goodsDetail.goodsType!='VIRTUAL_GOODS'" @click="shutMask(4)"></view>
<view class="to-buy to-store-btn" @click="shutMask(4, 'buy')">立即购买</view>
<view class="to-store-car to-store-btn" v-if="startTimer"></view>
</view>

View File

@ -13,12 +13,12 @@
<view class="goods-price " v-if="goodsDetail.promotionPrice">
<span v-if="goodsDetail.promotionPrice && !pointDetail">
<span class="goods-price-promotionShow goods-price-bigshow" >{{ formatPrice(goodsDetail.promotionPrice)[0] }}</span>
<span class="goods-price-promotionShow goods-price-bigshow">{{ formatPrice(goodsDetail.promotionPrice)[0] }}</span>
.{{ formatPrice(goodsDetail.promotionPrice)[1] }}
</span>
<span v-if="pointDetail.points">
<span class="goods-price-promotionShow goods-price-bigshow" >{{ pointDetail.points }}</span>
<span class="goods-price-promotionShow goods-price-bigshow">{{ pointDetail.points }}</span>
积分
</span>
<div class="promotion-box">
@ -33,11 +33,11 @@
<!-- 正常商品的价格 -->
<view class="goods-price" v-else>
<span>
<span class="goods-price-bigshow">{{
<span class="goods-price-bigshow">{{
formatPrice(goodsDetail.price)[0]
}}</span>
.{{ formatPrice(goodsDetail.price)[1] }}
.{{ formatPrice(goodsDetail.price)[1] }}
</span>
</view>
@ -69,7 +69,8 @@
</view>
<!-- 按钮 -->
<view class="btns">
<view class="box-btn card" v-if="buyType !='PINTUAN'" @click="addToCartOrBuy('cart')"></view>
<view class="box-btn card" v-if="buyType != 'PINTUAN' && goodsDetail.goodsType!='VIRTUAL_GOODS'" @click="addToCartOrBuy('cart')"></view>
<view class="box-btn buy" @click="addToCartOrBuy('buy')"></view>
</view>
</view>
@ -100,8 +101,8 @@ export default {
formatList: [],
currentSelceted: [],
skuList: "",
isMask:false, //
isClose:false, //
isMask: false, //
isClose: false, //
};
},
props: [
@ -110,7 +111,7 @@ export default {
"selectedSku",
"goodsSpec",
"addr",
"pointDetail" //
"pointDetail", //
],
watch: {
buyType: {
@ -128,6 +129,8 @@ export default {
},
methods: {
// 1999 --> [1999,00]
formatPrice(val) {
if (typeof val == "undefined") {
@ -168,7 +171,7 @@ export default {
};
this.selectName = specValue.value;
this.$emit("handleClickSku", selectedSkuId.skuId,this.goodsDetail.id);
this.$emit("handleClickSku", selectedSkuId.skuId, this.goodsDetail.id);
},
/**
@ -207,19 +210,16 @@ export default {
data.cartType = "BUY_NOW";
}
API_trade.addToCart(data).then((res) => {
if (res.data.code == 200) {
uni.navigateTo({
url: `/pages/order/fillorder?way=${data.cartType}&addr=${
this.addr.id || ''
this.addr.id || ""
}&parentOrder=${encodeURIComponent(
JSON.stringify(this.parentOrder)
)}`,
});
}
});
}
},
@ -288,8 +288,9 @@ export default {
},
mounted() {
this.formatSku(this.goodsSpec);
console.log(this.goodsDetail);
},
};
</script>

View File

@ -473,7 +473,7 @@ export default {
getCardData() {
if (this.$options.filters.isLogin("auth")) {
uni.showLoading({
mask: true,
title: "加载中",
});
API_Trade.getCarts()
.then((result) => {
@ -498,12 +498,10 @@ export default {
});
}
uni.stopPullDownRefresh();
uni.hideLoading();
}
})
.catch((err) => {
uni.hideLoading();
});
.catch((err) => {});
uni.hideLoading();
} else {
uni.hideLoading();
}

View File

@ -1,8 +1,8 @@
.image-mode {
max-width: 100%;
height: auto;
width: 100%;
height: 100%;
display: block;
padding: 2rpx;
}
.layout {
padding: 16rpx;
@ -18,10 +18,10 @@
width: 100%;
}
.view-height-75 {
height: 150rpx;
// height: 150rpx;
}
.view-height-150 {
height: 300rpx;
// height: 300rpx;
flex: 1;
}
@ -29,3 +29,4 @@
height: 170rpx;
flex: 1;
}

View File

@ -1,7 +1,7 @@
<template>
<div class="layout">
<div class="flex-one" @click="modelNavigateTo(res.list[0])">
<u-image width="100%" height="280rpx" :src="res.list[0].img" alt=""></u-image>
<u-image width="100%" mode="aspectFit" height="280rpx" :src="res.list[0].img" alt=""></u-image>
</div>
</div>
</template>
@ -9,7 +9,7 @@
import { modelNavigateTo } from "./tpl";
export default {
title:"单行图片模块",
title: "单行图片模块",
data() {
return {
modelNavigateTo,

View File

@ -2,12 +2,12 @@
<div class="layout">
<div class="flex-two">
<div class="flex-item" @click="modelNavigateTo(res.list[0])">
<u-image height="325rpx" width="100%" mode="scaleToFill" :src="res.list[0].img" alt>
<u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[0].img" alt>
<u-loading slot="loading"></u-loading>
</u-image>
</div>
<div class="flex-item" @click="modelNavigateTo(res.list[1])">
<u-image height="325rpx" width="100%" mode="scaleToFill" :src="res.list[1].img" alt>
<u-image height="250rpx" width="100%" mode="scaleToFill" :src="res.list[1].img" alt>
<u-loading slot="loading"></u-loading>
</u-image>
</div>

View File

@ -2,18 +2,18 @@
<template>
<div class="layout">
<div class="view-height-150" @click="modelNavigateTo(res.list[0])">
<u-image width="100%" height="300rpx" class="image-mode" :src="res.list[0].img">
<u-image width="100%" height="340rpx" class="image-mode" :src="res.list[0].img">
<u-loading slot="loading"></u-loading>
</u-image>
</div>
<div class="view-height-150">
<div class="view-height-75" @click="modelNavigateTo(res.list[1])">
<u-image width="100%" height="150rpx" class="image-mode" :src="res.list[1].img" alt>
<u-image width="100%" height="170rpx" class="image-mode" :src="res.list[1].img" alt>
<u-loading slot="loading"></u-loading>
</u-image>
</div>
<div class="view-height-75" @click="modelNavigateTo(res.list[2])">
<u-image width="100%" height="150rpx" class="image-mode" :src="res.list[2].img" alt>
<u-image width="100%" height="170rpx" class="image-mode" :src="res.list[2].img" alt>
<u-loading slot="loading"></u-loading>
</u-image>
</div>

View File

@ -93,6 +93,7 @@ export default {
mounted() {
this.init();
},
methods: {
/**

View File

@ -2,8 +2,6 @@
/**** 此文件说明请看注释 *****/
// 可以用自己项目的请求方法
// 请求配置说明https://ext.dcloud.net.cn/plugin?id=822
import http from '@/utils/request.js';
/**** 结束 *****/
import {
getAppVersionList
} from '@/api/message.js'
@ -32,7 +30,7 @@ export const getServerNo = function (callback) {
platform == "android" ? type = "ANDROID" : type = "IOS"
getAppVersionList(type).then(res => {
console.log(res)
if(res.data.success && res.data.result.downloadUrl){
let response = res.data.result
let result ={}