【新增】增加表【CoreCmsAppUpdateLog】版本更新表,用于发布版本更新。

【新增】增加安卓app版本在线更新功能。
【优化】优化app端头部导航按钮错位的问题。
This commit is contained in:
大灰灰
2022-07-20 01:27:47 +08:00
parent b5c5e97583
commit 30bd8ef291
26 changed files with 2268 additions and 62 deletions

View File

@@ -2,7 +2,7 @@
<script>
import Vue from 'vue'
export default {
//使用方法
//使用方法
//getApp().globalData.showLoginTip = false
//console.log(getApp().globalData.text)
@@ -41,7 +41,7 @@
onShow: function (obj) {
// #ifdef MP-WEIXIN
this.$store.commit('scene', obj.scene)
//console.log(obj);
console.log(obj);
// #endif
//console.log('App Show')
},
@@ -116,37 +116,37 @@
})
},
// #endif
// #ifdef APP-PLUS || APP-PLUS-NVUE
// app更新检测
checkVersion() {
// 获取应用版本号
let _this = this;
let version = plus.runtime.version;
console.log('版本号:' + version);
//检测当前平台,如果是安卓则启动安卓更新
uni.getSystemInfo({
success: res => {
this.updateHandler(res.platform, version);
console.log('当前平台:' + res.platform);
if (res.platform == 'android') {
_this.updateHandler(version);
}
}
})
},
// 更新操作
updateHandler(platform, version) {
let data = {
platform: platform,
version: version
}
updateHandler(version) {
let _this = this;
this.$u.api.getAppVersion(data).then(res => {
if (res.status && res.data[0].version) {
const info = res.data[0];
if (info.version !== '' && info.version > version) {
this.$u.api.getAppVersion().then(res => {
console.log(res);
if (res.status && res.data) {
if (res.data.version !== '' && res.data.version > version) {
uni.showModal({
//提醒用户更新
title: '更新提示',
content: info.note,
content: res.data.note,
success: res => {
if (res.confirm) {
plus.runtime.openURL(info.download_url)
plus.runtime.openURL(res.data.android)
}
}
})
@@ -163,16 +163,14 @@
@import "@/uni_modules/uview-ui/index.scss";
/*公共css */
@import '@/static/style/coreCommon.scss';
@import '@/static/style/corePage.scss';
// 非nvue的样式
/* #ifndef APP-NVUE */
// vue App的样式
/* #ifdef APP-PLUS */
@import "@/static/style/style.vue.scss";
/* #endif */
// nvue的特有样式
/* #ifdef APP-NVUE */
// #ifdef APP-PLUS-NVUE
@import "@/static/style/style.nvue.scss";
/* #endif */

View File

@@ -336,7 +336,7 @@ const install = (Vue, vm) => {
//================================================================////微信图文消息
let messageDetail = (params, config = {}) => http.post('/Api/Articles/GetWeChatMessage', params, { custom: { methodName: 'articles.getweixinmessage', needToken: false } });
//================================================================////获取APP版本
let getAppVersion = (params, config = {}) => http.post('/Api/App/CheckVersion', params, { custom: { methodName: 'app-api-checkVersion', needToken: false } });
let getAppVersion = (params, config = {}) => http.post('/Api/Common/GetAppVersions', params, { custom: { methodName: 'Common.checkVersion', needToken: false } });
//============================================================//公众号授权获取openid第三方登录
let getOpenId = (params, config = {}) => http.post('/Api/User/OfficialLogin', params, { custom: { methodName: 'user.officiallogin', needToken: false } });

View File

@@ -106,31 +106,25 @@
let data = {
payment_code: code,
payment_type: _this.type
}
data['ids'] = (this.type == 1 || this.type == 5 || this.type == 6) ? this.orderId : this.uid
if ((this.type == 5 || this.type == 6) && this.recharge) {
data['params'] = {
payment_type: _this.type,
params: {
trade_type: 'APP',
}
}
data['ids'] = (this.type == this.$globalConstVars.paymentType.common || this.type == this.$globalConstVars.paymentType.pinTuan || this.type == this.$globalConstVars.paymentType.group || this.type == this.$globalConstVars.paymentType.skill || this.type == this.$globalConstVars.paymentType.bargain || this.type == this.$globalConstVars.paymentType.giveaway || this.type == this.$globalConstVars.paymentType.solitaire || this.type == this.$globalConstVars.paymentType.transactionComponent || this.type == this.$globalConstVars.paymentType.serviceOrder) ? this.orderId : this.uid
// 判断订单支付类型
if (this.type == this.$globalConstVars.paymentType.recharge && this.recharge) {
data.params.money = this.recharge;
} else if ((this.type == this.$globalConstVars.paymentType.formPay || this.type == this.$globalConstVars.paymentType.formOrder) && this.recharge) {
data.ids = this.orderId;
}
switch (code) {
case 'alipay':
/**
* 支付宝支付需要模拟GET提交数据
*/
if (_this.type == 1 && _this.orderId) {
data['params'] = {
trade_type: 'APP'
}
} else if (_this.type == 2 && _this.recharge) {
data['params'] = {
trade_type: 'APP',
money: _this.recharge
}
}
_this.$u.api.pay(data).then(res => {
if (res.status) {
uni.requestPayment({
@@ -151,18 +145,7 @@
})
break
case 'wechatpay':
// 微信 H5支付
if (_this.type == 1 && _this.orderId) {
data['params'] = {
trade_type: 'APP'
}
} else if (_this.type == 2 && _this.recharge) {
data['params'] = {
trade_type: 'APP',
money: _this.recharge
}
}
// 微信app支付
_this.$u.api.pay(data).then(res => {
if (res.status) {

View File

@@ -13,7 +13,7 @@
<view class="coreshop-text-gray coreshop-font-sm flex coreshop-text-left">
<view class="u-line-1 coreshop-text-red" v-if="item.code == 'balancepay'">
当前余额{{userInfo.balance}}
</view>
</view>
<view class="u-line-1" v-else>
{{item.memo}}
</view>
@@ -129,19 +129,18 @@
let data = {
payment_code: code,
payment_type: this.type,
params: {}
params: {
trade_type: 'JSAPI',
}
}
data['ids'] = (this.type == this.$globalConstVars.paymentType.common || this.type == this.$globalConstVars.paymentType.pinTuan || this.type == this.$globalConstVars.paymentType.group || this.type == this.$globalConstVars.paymentType.skill || this.type == this.$globalConstVars.paymentType.bargain || this.type == this.$globalConstVars.paymentType.giveaway || this.type == this.$globalConstVars.paymentType.solitaire || this.type == this.$globalConstVars.paymentType.transactionComponent || this.type == this.$globalConstVars.paymentType.serviceOrder) ? this.orderId : this.uid
// 判断订单支付类型
if (this.type == this.$globalConstVars.paymentType.recharge && this.recharge) {
data['params'] = {
money: this.recharge
}
data.params.money = this.recharge;
} else if ((this.type == this.$globalConstVars.paymentType.formPay || this.type == this.$globalConstVars.paymentType.formOrder) && this.recharge) {
data['ids'] = this.orderId;
data['params'] = {
}
data.ids = this.orderId;
}
let _this = this
switch (code) {

View File

@@ -62,3 +62,646 @@ uni-toast { z-index: 10090; }
.u-reset-button::after { border: none; }
/* end--去除button的所有默认样式--end */
//占位使用,结合顶部通用标题
.coreshop-seat-height { width: 100%; /* #ifndef MP */ height: calc(var(--status-bar-height) + 50px); /* #endif */ /* #ifdef MP */ height: calc(var(--status-bar-height) + 70px); /* #endif */ }
//占位线
.coreshop-solid-line { width: 100%; height: 1px; background: #f9f9f9; }
.coreshop-coreshop-solid-top::after { border-top: 1px solid rgba(0, 0, 0, 0.1); }
// 格式化页面
.coreshop-pageBox { height: 100%; width: 100%; display: flex; flex-direction: column; justify-content: space-between; overflow-x: hidden; background: #f6f6f6; }
.coreshop-scroll-box { flex: 1; height: 100%; position: relative; }
.coreshop-content-box { flex: 1; overflow-y: auto; }
/*头像大小自定义*/
.coreshop-head-icon { width: 20px; height: 20px; display: inline-block; margin-right: 4px; }
//底部按钮框样式
.coreshop-bottomBox { background-color: #fff; position: fixed; bottom: 0; height: 45px; width: 100%; display: flex; z-index: 66; box-shadow: 0 0 10px #ccc;
.coreshop-btn { flex: 1; }
}
.coreshop-category-bottomBox { background-color: #fff; bottom: 0; /*height: 45px;*/ width: 100%; display: flex; z-index: 66; box-shadow: 0 0 10px #ccc;
view { width: calc(50% - 10px); margin: 5px; }
}
//底部多按钮区
.coreshop-add-btn-view-box { position: fixed; z-index: 10000; bottom: 90px; right: 14px;
.cu-btn { margin: auto; width: 40px; height: 40px; font-weight: 800; border-radius: 50%; font-size: 18px; border: 5px solid #fff; box-shadow: 0 0 7px 4px #d0d0d0; }
}
//底部浮动区域,用于放置按钮内容
.coreshop-footer-fixed { position: fixed; z-index: 100; width: 100%; bottom: 0; left: 0; padding: 5px 20px; min-height: 60px; display: flex; align-items: center; flex-direction: row; justify-content: center; }
.coreshop-foot-padding-bottom { padding-bottom: calc(env(safe-area-inset-bottom) / 2); }
.coreshop-tip-view { position: relative; padding: 5px 11px;
.coreshop-content { position: relative; padding-right: 28px; }
.coreshop-icon { position: absolute; font-size: 16px; right: 14px; color: #8799a3; top: 5px; }
}
/*底部*/
.wecanui-footer-fixed { position: fixed; z-index: 10000; width: 100%; bottom: 0; left: 0; }
.wecanui-footer-fixed.foot-pb { padding-bottom: calc(env(safe-area-inset-bottom) / 2); }
.wecanui-footer-tabbar-hight-view { position: relative; width: 100%; height: calc((env(safe-area-inset-bottom) / 2) + 68px); }
.cu-form-group picker .picker { text-align: left; }
/*浮动按钮*/
.floatingButton { width: 40px; height: 40px; background-color: #fff; border-radius: 50%; position: fixed; right: 20px; bottom: 50px; display: flex; justify-content: center; align-items: center; box-shadow: 0 0 5px #ccc; padding: 0; z-index: 996; }
.floatingButton .icon { width: 30px; height: 30px; }
//顶部搜索框导航条设置
.coreshop-bar-search-title-box {
.cu-bar .action > text[class*="cuIcon-"] { font-size: 18px; }
}
//滚动商品图标颜色
.coreshop-goods-swiper-view {
swiper.screen-swiper .uni-swiper-dot { background: #f0f0f0; }
swiper.screen-swiper.square-dot .uni-swiper-dot { background-color: #aaaaaa; }
}
/*分享浮层*/
.coreshop-share-Box { width: 100%; background: #FFFFFF; }
.coreshop-share-pop { width: 100%; display: flex; }
.coreshop-share-item { flex: 1; text-align: center; font-size: 13px; color: #333; padding: 10px 0;
image { width: 40px; height: 40px; margin: 10px; }
.coreshop-btn { line-height: 1; display: block; font-size: 13px; background-color: #fff; }
}
.coreshop-share-bottomBox { background-color: #fff; height: 45px; width: 100%; display: flex; box-shadow: 0 0 10px #ccc;
.coreshop-btn { flex: 1; }
}
//顶部通用标题
.coreshop-bar-view-box { position: fixed; top: 0; width: 100%; z-index: 10000; background: #FAFAFA; /* #ifndef MP */ height: calc(var(--status-bar-height) + 50px); /* #endif */ /* #ifdef MP */ height: calc(var(--status-bar-height) + 65px); /* #endif */ padding: var(--status-bar-height) 14px 0 14px; align-items: center;
.coreshop-bar-box { position: relative; width: 100%; align-items: center; line-height: 50px;
.close { position: absolute; right: 14px; font-size: 20px; bottom: 5px; }
}
.coreshop-small-routine-title { padding: 10px 0; }
}
/*通用列表*/
.coreshop-cell-group { background-color: #fff;
.coreshop-cell-item { padding: 10px 13px 10px 10px; border-bottom: 1px solid #f3f3f3; position: relative; background-color: #fff; color: #333; display: flex; min-height: 45px; align-items: center; justify-content: space-between; flex-direction: row;
.coreshop-cell-item-hd { display: flex; align-items: center; font-size: 14px; position: relative;
.coreshop-cell-hd-title { display: inline-block; position: relative; /* #ifdef MP-ALIPAY */ top: 2px; /* #endif */ }
.coreshop-cell-bd-input { display: inline-block; float: left; font-size: 13px; }
}
.coreshop-cell-item-bd { display: flex; min-height: 15px; overflow: hidden; align-items: center; padding-right: 15px;
.coreshop-cell-bd-view { position: relative; display: flex;
.coreshop-cell-bd-text { position: relative; font-size: 12px; }
}
}
.coreshop-cell-item-ft { display: flex; align-items: center;
.coreshop-cell-ft-view { position: relative; overflow: hidden; color: #666; font-size: 12px; text-align: right; }
.coreshop-cell-ft-text { font-size: 14px; float: right; position: relative; line-height: 25px; }
}
}
.coreshop-cell-item:last-child { border: none; }
.coreshop-cell-textarea { }
.right-img {
.coreshop-cell-item-ft { right: 4px; height: 25px; position: absolute; }
}
}
/*二列商品列表展示*/
.coreshop-goods-group { border-radius: 8px; color: #333333 !important; margin: 0 5px;
.good_box { border-radius: 8px; margin: 3px; background-color: #ffffff; padding: 5px; position: relative; width: calc(100% - 6px);
.good_title { font-size: 13px; margin-top: 5px; color: $u-main-color; }
.good_title-xl { font-size: 14px; margin-top: 5px; color: $u-main-color; }
.good_image { width: 100%; border-radius: 4px; }
.good-tag-hot { display: flex; margin-top: 5px; position: absolute; top: 7.5px; left: 7.5px; background-color: $u-type-error; color: #ffffff; display: flex; align-items: center; padding: 2px 7px; border-radius: 25px; font-size: 10px; line-height: 1; }
.good-tag-recommend { display: flex; margin-top: 5px; position: absolute; top: 7.5px; right: 7.5px; background-color: $u-type-primary; color: #ffffff; margin-left: 10px; border-radius: 25px; line-height: 1; padding: 2px 7px; display: flex; align-items: center; border-radius: 25px; font-size: 10px; }
.good-tag-recommend2 { display: flex; margin-top: 5px; position: absolute; bottom: 7.5px; left: 7.5px; background-color: $u-type-primary; color: #ffffff; border-radius: 25px; line-height: 1; padding: 2px 7px; display: flex; align-items: center; border-radius: 25px; font-size: 10px; }
.good-price { font-size: 15px; color: $u-type-error; margin-top: 5px; }
.good-des { font-size: 10px; color: $u-tips-color; margin-top: 5px; }
.grid-text { font-size: 14px; margin-top: 2px; color: $u-type-info; }
}
}
/*优惠券列表*/
.coreshop-coupon {
.coreshop-coupon-card-view { position: relative;
.card-price-view { position: relative; background: #FFF5F5; border-radius: 7px 7px 0 0; padding: 9px;
.price-left-view { position: absolute; height: 63px; width: 78px; text-align: center; line-height: 63px;
.price { font-size: 23px; font-weight: 400; }
.icon { width: 61px; height: 48px; margin-top: 50%; transform: translateY(-50%); overflow: initial; }
}
.name-content-view { position: relative; padding-left: 82px; padding-right: 53px; line-height: 1.8; color: #999898; }
.name-content-view::before { content: ''; position: absolute; top: -9px; bottom: -9px; margin-left: -9px; border-left: 1px dashed #fdbabc; }
.btn-right-view { position: absolute; right: 10px; top: 15px;
.u-size-medium { padding: 0; }
}
}
.card-num-view { position: relative; background: #FFECED; border-radius: 0 0 7.5px 7.5px; border-top: 1px dashed #dedbdb; padding: 5px 5px; color: #999898;
.btnUnfold { position: absolute; right: 14px; top: 7.5px; }
}
/* .card-num-view::before { content: ''; position: absolute; width: 18px; height: 18px; background: #ffffff; border-radius: 50%; top: -9px; left: -9px; }
.card-num-view::after { content: ''; position: absolute; width: 18px; height: 18px; background: #ffffff; border-radius: 50%; top: -9px; right: -9px; }*/ }
.coreshop-lower-shelf {
.card-price-view { opacity: 0.5; }
.card-num-view { opacity: 0.5; }
.img-lower-box { position: absolute; height: 50px; width: 50px; background-color: rgba(0, 0, 0, 0.6); border-radius: 90px; text-align: center; line-height: 50px; font-size: 12px; color: #fff; top: 13px; left: 17.5px; -webkit-transition: left .15s; transition: left .15s; }
}
}
/*订单列表*/
.orderWrap { display: flex; flex-direction: column; height: calc(100vh - var(--window-top)); width: 100%; }
.orderList { background-color: #ffffff; margin: 10px; border-radius: 10px; box-sizing: border-box; padding: 10px; font-size: 14px;
.item { display: flex; margin: 10px 0 0;
.left { margin-right: 10px; }
.content {
.title { font-size: 14px; line-height: 25px; }
.type { margin: 5px 0; font-size: 12px; color: $core-tips-color; }
.delivery-time { color: #e5d001; font-size: 12px; }
}
.right { margin-left: 5px; padding-top: 10px; text-align: right;
.decimal { font-size: 12px; margin-top: 2px; }
.number { color: $core-tips-color; font-size: 12px; }
}
}
.total { margin-top: 10px; text-align: right; font-size: 12px;
.total-price { font-size: 16px; color: red; }
}
.bottom { display: flex; margin-top: 10px; padding: 0 5px; justify-content: space-between; align-items: center;
.coreshop-btn { line-height: 26px; width: 90px; border-radius: 13px; border: 1px solid $core-border-color; font-size: 13px; text-align: center; color: $core-type-info-dark; margin-left: 10px; }
.evaluate { color: $core-type-warning-dark; border-color: $core-type-warning-dark; }
.logistics { border-color: #e4e7ed; color: #82848a; }
.exchange { color: #8dc63f; border-color: #8dc63f; }
}
}
/*订单详情*/
.coreshop-solid-top::after { border-top: 1px solid rgba(0, 0, 0, 0.1); }
.coreshop-order-priceBox { position: relative; }
.coreshop-order-nums { position: absolute; top: 0; right: 0; }
/*步进器*/
.coreshop-status-img-view { position: relative;
.are-img-view { position: relative; margin-bottom: 10px;
.are-img { width: 165px; }
}
}
/*拼团区域*/
.user-head-img-c { position: relative; width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; box-sizing: border-box; display: inline-block; float: left; border: 1px solid #f3f3f3; margin-bottom: 10px; margin-top: 10px; }
.user-head-img-tip { position: absolute; top: -3px; left: -5px; display: inline-block; background-color: #FF7159; color: #fff; font-size: 11px; z-index: 99; padding: 0 5px; border-radius: 5px; transform: scale(.8); }
.group-swiper .coreshop-cell-item .user-head-img { width: 100%; height: 100%; border-radius: 50%; }
.group-swiper .coreshop-cell-item .user-head-img-c:first-child { border: 1px solid #FF7159; }
.uhihn { width: 40px; height: 40px; border-radius: 50%; margin-right: 10px; display: inline-block; border: 1px dashed #e1e1e1; text-align: center; line-height: 40px; color: #d1d1d1; font-size: 20px; box-sizing: border-box; }
/*订单卡片*/
.coreshop-card-box { padding: 14px 14px 0; }
.coreshop-card-view { position: relative; border-radius: 5px; padding: 10px; box-shadow: 0 0 7.5px #f1f1f1; }
.coreshop-price-view { position: relative;
.title-view { position: relative; margin-bottom: 10px;
.title { position: relative; padding-right: 90px; }
.coreshop-text-right { position: absolute; top: 2px; right: 0; }
}
.title-right-view { position: relative; margin-top: 14px; text-align: right; }
.title-left-view { position: relative; margin-top: 14px; text-align: left; }
.solid-line { margin: 14px 0; }
}
/*卡片-商品信息*/
.coreshop-shop-view { position: relative;
.shop-info-view { position: relative; margin-bottom: 14px; line-height: 24px; height: 24px;
.coreshop-avatar { position: absolute; }
.title-view { position: relative; padding-left: 32px; }
}
.goods-list-view { position: relative; margin: 10 0;
.coreshop-avatar { position: absolute; height: 77.5px; width: 77.5px; }
.goods-info-view { position: relative; padding-left: 86.5px; min-height: 77.5px;
.name { position: relative; height: 20px; width: 100%; }
.introduce { position: relative; height: 16px; width: 100%; }
.tag-view { position: relative; margin-bottom: 5px; margin-top: 3px; width: 100%;
.cu-tag { position: relative; top: -1px; }
}
.coreshop-text-price { position: relative; height: 18px; width: 100%; }
}
}
.coreshop-foot-view { position: relative; background: #FFFCFC; margin: 0 -10px -10px -10px; border-radius: 0 0 5px 5px; padding: 10px;
.left-view { position: relative; padding-right: 90px;
.af5-img { position: relative; margin-right: 5px; width: 18px; top: 2px; }
}
.coreshop-text-right { position: absolute; right: 10px; top: 10px; }
}
}
/*卡片-订单内容区域*/
.coreshop-order-view { position: relative;
.solid-line { margin: 14px 0; }
.title-view { position: relative; margin-bottom: 10px;
&:last-child { margin-bottom: 6.5px; }
.title { position: absolute; top: 2px; left: 0; }
.coreshop-text-right { position: relative; padding-left: 90px;
.cu-btn { padding: 0 5px; height: 15px; top: -2px; }
}
}
}
/*卡片-物流信息*/
.coreshop-address-view { position: relative;
.solid-line { margin: 10px 0; }
.coreshop-list.menu-avatar > .coreshop-list-item { height: 55px;
&:after { width: 0; height: 0; border-bottom: 0; }
.icon-view { position: absolute; border-radius: 100%; text-align: center; line-height: 23px; height: 23px; width: 23px; left: 5px; top: 13px; }
.content { left: 56px; width: calc(100% - 47.5px); }
}
}
/*推荐商品列表*/
.coreshop-recommend-goods-list-view { position: relative;
.coreshop-flex-wrap { padding: 5px; }
.list-item { text-align: center; margin-bottom: 10px;
.coreshop-avatar { width: 124px; height: 124px; }
.goods-info-view { position: relative; padding: 8px; text-align: left;
.coreshop-text-price { margin: 5px 0; }
.foot-box { position: relative;
.cu-tag { position: absolute; right: 0; top: 0; }
}
}
}
}
/*团队列表样式*/
.coreshop-team-box { margin-top: 10px;
.coreshop-team-list {
.coreshop-team-children { padding-left: 15px; padding-right: 15px; height: 66px; border-bottom: 0.5px solid #eee; background: #fff;
.head-img { width: 30px; height: 30px; border-radius: 50%; margin-right: 20px; }
.head-info { width: calc( 100% - 50px);
.head-time { font-size: 12px; font-weight: 400; color: #999999; }
.child-num { font-size: 12px; font-weight: 400; color: #999999; }
.name-box { margin-bottom: 6px;
.name-text { font-size: 12px; font-weight: 500; color: #666; }
.tag-box { background: rgba(0, 0, 0, 0.2); border-radius: 10px; line-height: 15px; padding-right: 5px; margin-left: 5px;
.tag-img { width: 17px; height: 17px; margin-right: 3px; border-radius: 50%; }
.tag-title { font-size: 9px; font-family: PingFang SC; font-weight: 500; color: white; line-height: 10px; }
}
}
}
}
}
}
/* 头像*/
.coreshop-avatar { font-variant: small-caps; margin: 0; padding: 0; display: inline-flex; text-align: center; justify-content: center; align-items: center; background-color: #ccc; color: #ffffff; white-space: nowrap; position: relative; width: 32px; height: 32px; background-size: cover; background-position: center; vertical-align: middle; font-size: 1.5em;
&.sm { width: 24px; height: 24px; font-size: 1em; }
&.lg { width: 48px; height: 48px; font-size: 2em; }
&.xl { width: 64px; height: 64px; font-size: 2.5em; }
.avatar-text { font-size: 0.4em; }
}
.coreshop-avatar-group { direction: rtl; unicode-bidi: bidi-override; padding: 0 5px 0 20px; display: inline-block;
.coreshop-avatar { margin-left: -15px; border: 2px solid #f1f1f1; vertical-align: middle;
&.sm { margin-left: -10px; border: 0.5px solid #f1f1f1; }
}
}
/*通用列表样式*/
.coreshop-list {
& + .coreshop-list { margin-top: 15px; }
& > .coreshop-list-item { transition: all .6s ease-in-out 0s; transform: translateX(0px);
&.move-cur { transform: translateX(-130px); }
.move { position: absolute; right: 0; display: flex; width: 130px; height: 100%; transform: translateX(100%);
view { display: flex; flex: 1; justify-content: center; align-items: center; }
}
}
&.menu-avatar { overflow: hidden;
& > .coreshop-list-item { position: relative; display: flex; padding-right: 5px; height: 70px; background-color: #ffffff; justify-content: flex-end; align-items: center;
& > .coreshop-avatar { position: absolute; left: 15px; }
.flex {
.text-cut { max-width: 255px; }
}
.content { position: absolute; left: 73px; width: calc(100% - 48px - 30px - 20px); line-height: 1.6em;
&.flex-sub { width: calc(100% - 48px - 30px - 10px); }
& > view {
&:first-child { font-size: 15px; display: flex; align-items: center; }
}
.coreshop-tag {
&.sm { display: inline-block; margin-left: 5px; height: 14px; font-size: 8px; line-height: 16px; }
}
}
.action { width: 50px; text-align: center;
view {
& + view { margin-top: 5px; }
}
}
}
&.comment {
& > .coreshop-list-item { padding: 15px 15px 15px 60px; height: auto;
.content { position: relative; left: 0; width: auto; flex: 1; }
}
.coreshop-avatar { align-self: flex-start; }
}
}
&.menu { display: block; overflow: hidden;
& > .coreshop-list-item { position: relative; display: flex; padding: 0 15px; min-height: 50px; background-color: #ffffff; justify-content: space-between; align-items: center;
&:last-child {
&:after { border: none; }
}
&.grayscale { background-color: #f5f5f5; }
&.cur { background-color: #fcf7e9; }
&.arrow { padding-right: 45px;
&:before { position: absolute; top: 0; right: 15px; bottom: 0; display: block; margin: auto; width: 10px; height: 10px; color: #8799a3; content: "\e605"; text-align: center; font-size: 17px; font-family: "uicon-iconfont"; line-height: 10px; }
}
button {
&.content { padding: 0; background-color: transparent; justify-content: flex-start;
&:after { display: none; }
}
}
.coreshop-avatar-group {
.coreshop-avatar { border-color: #ffffff; }
}
.content { font-size: 15px; line-height: 1.6em; flex: 1;
& > view {
&:first-child { display: flex; align-items: center; }
}
& > text[class*=cuIcon] { display: inline-block; margin-right: 5px; width: 1.6em; text-align: center; }
& > image { display: inline-block; margin-right: 5px; width: 1.6em; height: 1.6em; vertical-align: middle; }
.coreshop-tag {
&.sm { display: inline-block; margin-left: 5px; height: 14px; font-size: 8px; line-height: 16px; }
}
}
.action {
.coreshop-tag {
&:empty { right: 5px; }
}
}
}
&.sm-border {
& > .coreshop-list-item {
&:after { left: 15px; width: calc(200% - 60px); }
}
}
}
&.grid { background-color: #ffffff; text-align: center;
& > .coreshop-list-item { position: relative; display: flex; padding: 10px 0 15px; transition-duration: 0s; flex-direction: column;
&:after { position: absolute; top: 0; left: 0; box-sizing: border-box; width: 200%; height: 200%; border-right: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); border-radius: inherit; content: " "; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
text { display: block; margin-top: 5px; color: #888; font-size: 13px; line-height: 20px; }
[class*=cuIcon] { position: relative; display: block; margin-top: 10px; width: 100%; font-size: 24px; }
.coreshop-tag { right: auto; left: 50%; margin-left: 10px; }
}
&.no-border { padding: 10px 5px;
& > .coreshop-list-item { padding-top: 5px; padding-bottom: 10px;
&:after { border: none; }
}
}
}
&.card-menu { overflow: hidden; margin-right: 15px; margin-left: 15px; border-radius: 10px; }
}
.coreshop-list.menu-avatar > .coreshop-list-item:after,
.coreshop-list.menu > .coreshop-list-item:after { position: absolute; top: 0; left: 0; box-sizing: border-box; width: 200%; height: 200%; border-bottom: 0.5px solid #ddd; border-radius: inherit; content: " "; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.coreshop-list.grid.col-3 > .coreshop-list-item:nth-child(3n):after,
.coreshop-list.grid.col-4 > .coreshop-list-item:nth-child(4n):after,
.coreshop-list.grid.col-5 > .coreshop-list-item:nth-child(5n):after { border-right-width: 0; }
/*常用日志数据多列列表三联*/
.coreshop-log-item { height: 71px; background-color: #fff; padding: 0 15px; border-bottom: 0.5px solid #eee;
.item-left {
.log-img { width: 25px; height: 25px; border-radius: 50%; margin-right: 12px; }
.log-name { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.log-notice { font-size: 11px; font-weight: 500; }
}
.item-right {
.log-num { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.log-date { font-size: 11px; font-weight: 400; }
}
}
/*占高区*/
.coreshop-card-hight-box { height: 23px; }
/*底部高度区域*/
.coreshop-foot-hight-view { width: 100%; height: calc((env(safe-area-inset-bottom) / 2) + 55px); }
/*为您推荐头部效果*/
.coreshop-recommended-title-view { position: relative; margin: 18px;
.img-anc { position: relative; width: 18px; top: 2px; }
}
.coreshop-navbar-left-slot { display: flex; flex-wrap: wrap; align-items: center; flex-direction: row; justify-content: space-between; }
/*支付界面效果*/
.payment-wx {
.coreshop-btn { background-color: #fff; line-height: 1.7; padding: 0; width: 367px; position: relative; display: flex; align-items: center; }
}
.payment-pop { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 200px; height: 136px; background-color: #fff; text-align: center; box-shadow: 0 0 10px #ccc;
.text { font-size: 12px; }
}
.payment-pop-c { padding: 25px 15px; font-size: 16px; color: #999;
image { width: 30px; height: 30px; }
}
.payment-pop-b { position: absolute; bottom: 0; display: flex; width: 100%; justify-content: space-between;
.coreshop-btn { flex: 1; justify-content: center; }
.coreshop-btn-o { background-color: #ff7159; }
}
/*全屏下头部透明效果*/
.coreshop-full-screen-nav-back { width: 100%; height: 44px; /* #ifndef MP-WEIXIN */ padding: 12px 12px 0; /* #endif */ /* #ifdef MP-WEIXIN */ padding: 26px 12px 0; /* #endif */ position: fixed; top: 10px; background-color: rgba(255, 255, 255, 0); z-index: 98;
.back-btn { height: 32px; width: 32px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.8); text-align: center;
.icon { height: 20px; width: 20px; position: relative; top: 50%; left: 46%; transform: translate(-50%, -50%); }
}
}
/*全屏下顶部满屏占位幻灯片效果*/
.coreshop-full-screen-banner-swiper-box { position: relative; width: 100%;
.screen-swiper { min-height: 325px; }
.tag { font-size: 12px; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0px 8px; font-family: Helvetica Neue, Helvetica, sans-serif; white-space: nowrap; position: absolute; bottom: 14px; right: 14px; font-size: 10px; padding: 0px 6px; height: 16px; }
}
/*商品内限时秒杀区域效果*/
.coreshop-limited-seckill-box { position: relative; background-image: url('/static/images/good/titlebg.png'); background-repeat: no-repeat; background-size: 100% 100%; padding: 12.5px 14px; color: #ffffff; width: 100%;
.coreshop-cost-price-num { position: absolute; font-weight: 200; left: 100px; top: 11px; }
.coreshop-cost-price-num.price-6 { left: 127px; }
.coreshop-cost-price-num.price-5 { left: 114px; }
.coreshop-cost-price-num.price-4 { left: 100px; }
.coreshop-cost-price-num.price-3 { left: 82px; }
.coreshop-cost-price-num.price-2 { left: 68px; }
.coreshop-cost-price-num.price-1 { left: 50px; }
.coreshop-time-right { position: absolute; right: 10px; top: 5px; }
.coreshop-share-right { position: absolute; right: 14px; top: 8px; }
}
.coreshop-limited-seckill-box::after { content: ""; position: absolute; z-index: -1; background-color: inherit; width: 100%; height: 100%; left: 0; bottom: -10%; border-radius: 5px; opacity: 0.2; transform: scale(0.9, 0.9); }
/*通用空白区域*/
.coreshop-common-view-box { position: relative; padding: 10px 10px; }
/*商品标题区域效果*/
.coreshop-good-title-view-box { position: relative;
.title-view { display: inline-block; flex-direction: row; align-items: center;
.brand-tag { width: 60px; float: left; height: 10px; font-size: 10px; font-weight: normal; }
}
.coreshop-title-tip-box { position: relative; padding: 5px 10px; width: 100%;
.u-line-1 { padding-right: 14px; }
.icon { position: absolute; right: 10px; top: 6px; }
}
}
/*商品页面底部浮层*/
.coreshop-good-footer-fixed { display: flex; position: fixed; bottom: 0; margin-top: 60px; width: 100%; z-index: 1; border-top: solid 1px #f2f2f2; background-color: #ffffff;
.tabbar { display: flex; position: relative; align-items: center; min-height: 50px; justify-content: space-between; padding-left: 5px; padding-right: 5px; height: calc(50px + env(safe-area-inset-bottom) / 2); padding-bottom: calc(env(safe-area-inset-bottom) / 2); width: 100%; flex-direction: row;
.action { display: flex; align-items: center; height: 100%; justify-content: center; max-width: 100%; color: #333333; position: relative; text-align: center;
.car-num { position: absolute; top: 5px; right: 7.5px; }
}
.btn-group { justify-content: space-around; flex-direction: row;
button { margin: 0 5px; }
}
.btn-box { justify-content: space-around; width: 50%; padding: 5px; padding-left: 0px; }
}
}
/*商品页面商家面板展示*/
.coreshop-goods-shop-info-view-box {
.coreshop-shop-view { position: relative; width: 100%;
.coreshop-avatar { position: absolute; height: 40px; width: 40px; }
button { position: absolute; top: 11px; right: 0; width: 60px; }
}
.coreshop-border-view { position: relative; background: #efebeb; margin: 11px 0; height: 1px; width: 100%; }
.live-tag-view { position: relative; width: 100%;
.text-view { padding-right: 74px; display: flex;
.location-tag { width: 50px; }
}
.go-map-box { position: absolute; right: 0; top: 2px; width: 70px; display: flex; }
}
.coreshop-good-shop-recommend-list-box {
.recommend-scroll-box { position: relative; width: 100%;
.recommend-scroll { position: relative; height: 180px; white-space: nowrap; width: 100%;
.recommend-scroll-item { display: inline-block; padding-top: 14px; width: 100px; padding-right: 9px; white-space: initial;
.coreshop-avatar { width: 140px; height: 140px; }
}
}
}
}
}
/*商品页面底部弹出层效果*/
.coreshop-bottom-popup-box { border-radius: 18px 18px 0 0;
.cu-dialog { border-radius: 18px 18px 0 0; }
.coreshop-title-bar { position: relative; width: 100%;
.close-icon { position: absolute; right: 18px; }
}
.coreshop-modal-content { position: relative; width: 100%; overflow-y: auto; /*height: calc(100vh - 327.5px);*/ padding: 0 15px 15px; margin-bottom: 60px;
.coreshop-common-view-box { position: relative; width: 100%; padding: 0; text-align: left; }
.coreshop-common-view-box.service {
.text-view { margin-bottom: 10px; }
.text-list-view { position: relative; width: 100%; margin-bottom: 10px;
.u-line-1 { padding-right: 10.5px; }
}
.text-list-view + .text-view { margin-top: 18px; }
}
.coreshop-common-view-box.promotion {
.text-view { margin-bottom: 10px;
.cu-tag { position: relative; top: -2px; }
}
.text-list-view { position: relative; width: 100%; margin-bottom: 10px;
.u-line-1 { padding-right: 110px; }
.go-map-box { position: absolute; right: 0; top: 1px; }
}
.text-list-view + .text-view { margin-top: 18px; }
}
.coreshop-common-view-box.select {
.coreshop-list.menu-avatar > .coreshop-list-item {
.content { width: calc(100% - 47.5px - 30px); }
}
.coreshop-select-btn-list-box { }
}
}
}
/*商品详情区域初始高度*/
.coreshop-good-rich-text-view { min-height: 250px; }
/*拼团*/
.group-box { background: linear-gradient(#fff, #f5f5f5); border-radius: 10px; margin: 0 10px 10px 10px; min-height: 500px;
.goods-item { border-radius: 10px; overflow: hidden; position: relative; margin-bottom: 10px;
.tag { position: absolute; left: 0; top: 5px; z-index: 2; line-height: 17.5px; background: linear-gradient(132deg, rgba(255, 153, 93, 1), rgba(255, 99, 97, 1)); border-radius: 0px 9px 9px 0px; padding: 0 5px; font-size: 12px; font-family: PingFang SC; font-weight: bold; color: rgba(255, 255, 255, 0.8); }
.goods-right { width: 240px;
.title { width: 240px; color: $u-main-color }
.tip { width: 240px; }
}
.buy-btn { position: absolute; right: 0; bottom: -5px; width: 130px; height: 30px; background: linear-gradient(90deg, rgba(254, 131, 42, 1), rgba(255, 102, 0, 1)); box-shadow: 0px 3.5px 3px 0px rgba(255, 104, 4, 0.22); border-radius: 15px; font-size: 14px; font-family: PingFang SC; font-weight: 500; color: #fff; padding: 0; }
.group-num { font-size: 10px; font-family: PingFang SC; font-weight: 500; color: rgba(153, 153, 153, 1); margin-left: 10px; }
.sell-box { background: rgba(255, 224, 226, 0.3); border-radius: 8px; line-height: 16px; padding: 0 5px;
.sell-num { font-size: 10px; font-family: PingFang SC; font-weight: 400; color: rgba(247, 151, 156, 1); }
.cuIcon-hotfill { font-size: 13px; color: #e1212b; margin-right: 4px; }
}
}
}
.group-boxComponents.group-box { min-height: 25px; }
.activity-goods-box { padding: 20px 10px; background: #fff;
.img-box { margin-right: 10px; width: 100px; height: 100px; overflow: hidden; position: relative;
.img { width: 100px; height: 100px; background-color: #ccc; }
}
.goods-right { width: 425px; min-height: 100px; position: relative;
.title { font-size: 14px; line-height: 20px; }
.tip { font-size: 11px; color: #a8700d; width: 250px; padding: 3px 0; }
.current { font-size: 14px; font-weight: 500; color: rgba(225, 33, 43, 1); }
.original { font-size: 11px; font-weight: 400; text-decoration: line-through; color: rgba(153, 153, 153, 1); margin-left: 7px; }
}
}
/*版权信息*/
.coreshop-copyright { text-align: center; margin: 10px 0; width: 100%; overflow: hidden; line-height: 20px; }
/*
按钮无边框样式*/
.noButtonStyle { -webkit-appearance: none; overflow: visible; color: #606266; border-color: #c0c4cc; background-color: #ffffff; position: relative; border: 0; display: inline-flex; overflow: visible; line-height: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; cursor: pointer; z-index: 1; box-sizing: border-box; transition: all 0.15s; }
.noButtonStyle::after { border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0; }
/*顶部自定义效果*/
.coreshop-header-slot-wrap { display: flex; align-items: center; padding: 0 10px; margin-top: -5px;
.coreshop-slot-btns { background: #111727; border: 1px solid #565b6f; padding: 4px 12px; border-radius: 250px; display: flex; align-items: center; z-index: 10075;
.coreshop-slot-cut-off { margin: 0 10px; color: #fff; width: 0.5px; border-left: 1px solid #fff; background: #fff; height: 17.5px; }
}
.coreshop-header-title { padding: 1px 10px; }
}
/*接龙*/
.solitaire-details-bg { min-height: 150px; background-image: url('/static/images/common/bg.png'); background-size: cover; background-position: center; border-radius: 0 0 40px 40px; background: #272d47; }
.solitaire-details-placeholder-body { margin-top: -150px; padding: 2.5px; }
.solitaire-details-body { min-height: 150px; border-radius: 15px; margin: 20px 10px 10px 10px; padding: 5px 10px 10px 10px;
.solitaire-details-shareBox { background: #0fd7bd; padding: 2.5px 5px; border-top-left-radius: 50px; border-bottom-left-radius: 50px; margin-right: -10px; margin-left: 10px; margin-top: 10px; width: 35px; height: 25px; }
}
.coreshop-content { color: $u-content-color; font-size: 14px; line-height: 1.8;
p { color: $u-tips-color; }
}
.solitaire-details-product-item { background: #FFFFFF; border-radius: 4px; margin: 0 10px; margin-top: 10px; border-radius: 8px; padding: 10px 10px; background: #FFFFFF !important; }
.contact-btn { margin: 0 auto; }