12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136 |
- <template>
- <mobile-frame>
- <view class="main">
- <view class="one">
- <scroll-view scroll-y="true" class="scroll-view">
- <view class="list-scroll-view">
- <view class="one_1">
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :interval="3000" :duration="1000">
- <swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
- <image class="image" :src="item.url" mode="aspectFit">
- </image>
- </swiper-item>
- </swiper>
- <!-- 是否关注商品 -->
- <view class="goodsColect">
- <text @tap="toGoodscolect" :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
- </view>
- <view class="acttags" v-if="info.goods.act_tags&&info.goods.act_tags.length>0">
- <text v-for="i in info.goods.act_tags" :key="i">{{i.label}}</text>
- </view>
- </view>
- <view class="one_2">
- <text class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].sell_money:0}}</text>
- <text class="money"><text>¥</text>{{info.specs&&info.specs.length>0?info.specs[0].flow_money:0}}</text>
- </view>
- <view class="one_3">
- <view class="name">
- {{info.goods.name}}
- </view>
- <view class="brief">
- {{info.goods.shot_brief||''}}
- </view>
- <view class="money">
- <text>运费{{info.specs&&info.specs.length>0?info.specs[0].freight:0}}元</text>
- <text>{{info.goods.send_time}}内发货</text>
- </view>
- </view>
- <view class="one_4" @tap="toSpec">
- <view class="l">
- 选择规格
- </view>
- <view class="r">
- <text class="iconfont icon-jiantouyou"></text>
- </view>
- </view>
- <view class="one_5" @tap="toEvaluate">
- <view class="l">
- <text>{{evaluate_num>0?`商品评价(${evaluate_num})`:`暂无评价`}}</text>
- </view>
- <view class="r">
- <text class="iconfont icon-jiantouyou"></text>
- </view>
- </view>
- <view class="one_6">
- <view class="one_6_1">
- <view class="shop_1">
- <image class="image" :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''" mode="aspectFit"></image>
- </view>
- <view class="shop_2">
- <view class="name">{{info.shop.name}}</view>
- <view class="num"><text>宝贝数:</text>{{info.shop.goods_num||0}}</view>
- </view>
- </view>
- <view class="one_6_2">
- <view class="score_1">
- <text>商品:</text>
- <text>{{info.shop.goods_score||5}}</text>
- <text>|</text>
- </view>
- <view class="score_1">
- <text>发货:</text>
- <text>{{info.shop.send_score||5}}</text>
- <text>|</text>
- </view>
- <view class="score_1">
- <text>服务:</text>
- <text>{{info.shop.service_score||5}}</text>
- </view>
- </view>
- <view class="one_6_3">
- <view class="btn">
- <button size="mini" @tap="toShop">进入店铺</button>
- </view>
- <view class="btn">
- <button size="mini" @tap="toShopcolect">{{shopColect==true?'已关注':'关注'}}</button>
- </view>
- </view>
- </view>
- <view class="one_7">
- <rich-text :nodes="info.goods.brief"></rich-text>
- </view>
- </view>
- </scroll-view>
- </view>
- <view class="two">
- <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft" @buttonClick="toNavright" />
- </view>
- </view>
- <!-- 跳转菜单 -->
- <view class="bar_1">
- <text @tap="toMenubar" class="iconfont icon-gengduo"></text>
- </view>
- <view class="bar_2" v-if="is_menu">
- <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'" @click="toPath(item)">
- <image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
- <text class="name"> {{item.name}}</text>
- </view>
- </view>
- <!-- 规格 -->
- <uni-popup ref="specShow" background-color="#fff" type="bottom" :is-mask-click="false">
- <view class="popup">
- <view class="close">
- <text @click="toClose" class="iconfont icon-shanchu"></text>
- </view>
- <view class="info_1" v-if="popupShow=='1'">
- <view class="info_1">
- <scroll-view scroll-y="true" class="scroll-view">
- <view class="list-scroll-view">
- <view class="one">
- <view class="one_1">
- <view class="l">
- <image class="image" :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url" mode="aspectFill" @tap="diaView"></image>
- </view>
- <view class="r">
- <view class="money">
- <text class="money_1"><text>¥</text>{{specsInfo.sell_money}}</text>
- <text class="money_1"><text>¥</text>{{specsInfo.flow_money}}</text>
- </view>
- <view class="other_1">
- <text>已选:</text>
- <text>{{specsInfo.name}}</text>
- </view>
- </view>
- </view>
- <view class="one_2">
- <view class="one_2_1">
- 规格
- </view>
- <view class="one_2_2">
- <view :class="['list',is_specs!=index&&item.num>0?'list':is_specs!=index&&item.num<=0?'huilist':is_specs==index&&item.num>0?'redlist':is_specs==index&&item.num<=0?'huiilist':'list']" v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
- <text>{{item.name}}</text>
- </view>
- </view>
- </view>
- <view class="one_3">
- <view class="one_3_1">
- <text>数量</text>
- </view>
- <view class="one_3_1">
- <uni-number-box v-model="buy_num" @change="toCount" :min="1" :max="specsInfo.num">
- </uni-number-box>
- </view>
- <view class="one_3_1">
- <text>库存{{specsInfo.num||0}}</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- <view class="info_2">
- <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="btn_type=='0'">
- <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toMarket">加入购物车</button>
- </view>
- <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="btn_type=='1'">
- <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toBuy">立即购买</button>
- </view>
- <view :class="[specsInfo.can_group=='0'?'btns':'btn']" v-if="specsInfo.can_group=='0'">
- <button :disabled="is_zero" :class="[is_zero?'btncolor':'']" @tap="toGroup">参团</button>
- </view>
- </view>
- </view>
- </view>
- </uni-popup>
- <view class="dialog" v-if="dialog.show==true" @tap="dialogClose">
- <view class="dialog_1" v-if="dialog.type=='1'">
- <swiper class="swiper" circular @change="diaSpecs" :current="is_specs">
- <swiper-item class="list" v-for="(item,index) in info.specs" :key="index">
- <view class="list_1">
- <image class="image" :src="item.file.length>0?item.file[0].url:info.goods.file[0].url" mode="aspectFit"></image>
- </view>
- <view class="name">
- <text>{{item.name}}</text>
- </view>
- </swiper-item>
- </swiper>
- </view>
- </view>
- </mobile-frame>
- </template>
- <script>
- export default {
- data() {
- return {
- // 系统设置
- config: {},
- // 商品id
- id: '',
- // 分享人id
- inviter: '',
- // 当前用户信息
- user: {},
- // 是否关注商品
- goodsColect: false,
- // 是否关注店铺
- shopColect: false,
- // 评价数
- evaluate_num: 2,
- // 商品详情
- info: {},
- // 底部菜单
- options: [ //
- {
- icon: 'shop',
- text: '店铺',
- type: 'shop',
- route: 'pagesHome/shop/index',
- },
- {
- icon: 'cart',
- text: '购物车',
- type: 'market',
- route: 'pages/market/index',
- },
- ],
- buttonGroup: [ //
- {
- text: '加入购物车',
- backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
- color: '#fff',
- type: '0'
- },
- {
- text: '立即购买',
- backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
- color: '#fff',
- type: '1'
- }
- ],
- // 系统菜单
- barList: [],
- is_menu: false,
- // 规格弹框
- popupShow: '1',
- // 规格信息
- is_specs: 0,
- btn_type: '1',
- specsInfo: {},
- // 是否零库存
- is_zero: false,
- // 购买数量
- buy_num: 1,
- // 规格弹出框
- dialog: {
- show: false,
- type: '1'
- },
- };
- },
- onLoad: async function(e) {
- const that = this;
- that.$set(that, `id`, e.id || '');
- that.$set(that, `inviter`, e.inviter || '');
- await that.searchConfig();
- await that.search();
- await that.configShare();
- },
- onShow: async function() {
- const that = this;
- await that.watchLogin();
- },
- onUnload: function() {
- // 页面卸载,重新部署分享内容
- const that = this;
- if (that.config) {
- // 赋值默认值
- that.$config.share = {
- title: that.config.title,
- path: '/pages/index/index',
- imageUrl: that.config.config.share[0].url
- }
- }
- },
- methods: {
- // 查询系统设置
- searchConfig() {
- const that = this;
- uni.getStorage({
- key: 'config',
- success: function(res) {
- let data = res.data;
- that.$set(that, `config`, data);
- if (data.bottom_menu && data.bottom_menu.list.length > 0) {
- let list = data.bottom_menu.list.sort((a, b) => {
- return a.sort - b.sort
- });
- that.$set(that, `barList`, list)
- }
- }
- })
- },
- // 查询用户信息
- watchLogin() {
- const that = this;
- uni.getStorage({
- key: 'token',
- success: async function(res) {
- let user = that.$jwt(res.data);
- if (user) that.$set(that, `user`, user);
- await that.searchOther();
- },
- fail: function(err) {
- console.log('暂无用户信息');
- }
- })
- },
- // 查询其他信息
- async searchOther() {
- const that = this;
- let user = that.user;
- let res;
- // 是否关注商品
- res = await that.$api(`/storeGoods/check`, `GET`, {
- customer: user._id,
- goods: that.id
- });
- if (res.errcode == '0') that.$set(that, `goodsColect`, res.data);
- // 是否关注店铺
- res = await that.$api(`/storeShop/check`, `GET`, {
- customer: user._id,
- shop: that.info?.shop?._id
- });
- if (res.errcode == '0') that.$set(that, `shopColect`, res.data)
- },
- // 查询商品信息
- async search() {
- const that = this;
- let id = that.id;
- if (id) {
- let res;
- res = await that.$api(`/viewGoods/goodsDetail`, `POST`, {
- id: id
- });
- if (res.errcode == '0') {
- let data = res.data;
- if (data.goods.brief) data.goods.brief = data.goods.brief.replace(/\<img/gi,
- '<img class="rich-img"');
- let specs = data.specs.sort((a, b) => {
- return a.sell_money - b.sell_money
- })
- data.specs = specs;
- that.$set(that, `info`, data);
- // 查询规格
- that.searchSpecs(data.specs);
- // 查询评价数
- that.searchRate(data);
- }
- } else {
- uni.showToast({
- title: '暂无商品信息',
- icon: 'none'
- })
- }
- },
- // 查询规格
- searchSpecs(e) {
- const that = this;
- if (e.length > 0) {
- let data = e.find(i => i.num > 0);
- let dataIndex = e.findIndex(i => i.id == data.id);
- if (data) {
- that.$set(that, `specsInfo`, data);
- that.$set(that, `is_specs`, dataIndex);
- }
- }
- },
- // 选择规格
- toSpecs(e) {
- const that = this;
- let specs = that.info.specs;
- let dataIndex = specs.findIndex(i => i.id == e.id);
- that.$set(that, `is_specs`, dataIndex);
- that.$set(that, `specsInfo`, e)
- that.$set(that, `buy_num`, 1);
- if (e.num <= 0) that.$set(that, `is_zero`, true)
- else that.$set(that, `is_zero`, false)
- },
- // 计数器
- toCount(e) {
- const that = this;
- that.$set(that, `buy_num`, e)
- },
- // 查询评价数
- async searchRate(e) {
- const that = this;
- let res = await that.$api(`/goodsRate`, `GET`, {
- goods: e.goods._id
- })
- if (res.errcode == '0') that.$set(that, `evaluate_num`, res.total);
- },
- // 关注商品
- async toGoodscolect() {
- const that = this;
- let user = that.user;
- if (user && user._id) {
- let res = await that.$api(`/storeGoods`, `POST`, {
- customer: user._id,
- goods: that.id
- });
- if (res.errcode == '0') {
- uni.showToast({
- title: res.data.msg,
- icon: 'none'
- })
- that.$set(that, `goodsColect`, res.data.result)
- }
- } else {
- uni.showToast({
- title: '暂无账号,无法收藏商品',
- icon: 'none'
- })
- }
- },
- // 选择规格
- toSpec() {
- const that = this;
- this.$set(that, `popupShow`, '1')
- that.$refs.specShow.open();
- },
- // 加入购物车
- async toMarket() {
- const that = this;
- let user = that.user;
- let info = that.info;
- let specsInfo = that.specsInfo;
- if (user && user._id) {
- let obj = {
- customer: user._id,
- shop: info.shop._id,
- goods: info.goods._id,
- goodsSpec: specsInfo._id,
- num: that.buy_num,
- inviter: that.inviter
- }
- let res = await that.$api(`/cart`, 'POST', obj)
- if (res.errcode == '0') {
- uni.showToast({
- title: `加入购物车成功`,
- icon: 'none'
- })
- that.toClose();
- } else {
- uni.showToast({
- title: res.errmsg,
- icon: 'none'
- })
- }
- } else {
- uni.navigateTo({
- url: `/pages/login/index`
- })
- }
- },
- // 立即购买
- async toBuy() {
- const that = this;
- let user = that.user;
- let info = that.info;
- let specsInfo = that.specsInfo;
- if (user && user._id) {
- let obj = {
- customer: user._id,
- shop: info.shop._id,
- goods: info.goods._id,
- goodsSpec: specsInfo._id,
- num: that.buy_num,
- inviter: that.inviter
- }
- let res = await that.$api(`/util/checkCanBuy`, 'POST', obj)
- if (res.errcode == '0') {
- if (res.data.result == true) {
- uni.navigateTo({
- url: `/pagesHome/order/order?key=${res.data.key}`
- })
- } else {
- uni.showToast({
- title: res.data.msg,
- icon: 'none'
- })
- }
- } else {
- uni.showToast({
- title: res.errmsg,
- icon: 'none'
- })
- }
- } else {
- uni.navigateTo({
- url: `/pages/login/index`
- })
- }
- },
- // 参团
- toGroup() {
- const that = this;
- let specs_id = that.specsInfo._id;
- let id = that.id;
- uni.navigateTo({
- url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${id}`
- })
- },
- // 关闭弹框
- toClose() {
- const that = this;
- that.$set(that, `btn_type`, '1');
- that.$refs.specShow.close();
- },
- // 评价
- toEvaluate() {
- const that = this;
- uni.navigateTo({
- url: `/pagesHome/order/appraise?id=${that.info.goods._id}`
- })
- },
- // 进入店铺
- toShop() {
- const that = this;
- let info = that.info;
- uni.navigateTo({
- url: `/pagesHome/shop/index?id=${info.shop._id}`
- })
- },
- // 关注店铺
- async toShopcolect() {
- const that = this;
- let user = that.user;
- if (user && user._id) {
- let res = await that.$api(`/storeShop`, `POST`, {
- customer: user._id,
- shop: that.info.shop._id
- });
- if (res.errcode == '0') {
- uni.showToast({
- title: res.data.msg,
- icon: 'none'
- })
- that.$set(that, `shopColect`, res.data.result)
- }
- } else {
- uni.showToast({
- title: '暂无账号,无法关注商铺',
- icon: 'none'
- })
- }
- },
- // 店铺,购物车
- toNavleft(e) {
- const that = this;
- if (e.content.type == 'shop') {
- that.toShop();
- } else if (e.content.type == 'market') {
- let obj = {
- route: e.content.route
- }
- that.toPath(obj)
- }
- },
- // 加入购物车,立即购买
- toNavright(e) {
- const that = this;
- this.$set(that, `popupShow`, '1');
- that.$set(that, `btn_type`, e.content.type);
- that.$refs.specShow.open();
- },
- // 右侧菜单
- toMenubar() {
- const that = this;
- that.$set(that, `is_menu`, that.is_menu ? false : true)
- },
- toPath(e) {
- let url = `/${e.route}`;
- uni.reLaunch({
- url
- })
- },
- // 配置分享内容
- configShare() {
- const that = this;
- let id = that.id;
- let inviter = that.user && that.user._id ? that.user._id : '';
- let title = that.info && that.info.goods ? that.info.goods.name : '';
- let imageUrl = that.info && that.info.goods ? that.info.goods.file[0].url : '';
- that.$config.share = {
- title: title,
- path: `/pagesHome/order/detail?id=${id}&inviter=${inviter}`,
- imageUrl: imageUrl
- }
- },
- // 规格预览
- diaView() {
- const that = this;
- that.$set(that, `dialog`, {
- show: true,
- type: '1'
- })
- },
- // 弹框选择规格
- diaSpecs(e) {
- const that = this;
- let specs = that.info.specs;
- let index = e.detail.current;
- let data = specs[index];
- that.$set(that, `is_specs`, index);
- that.$set(that, `specsInfo`, data);
- that.$set(that, `buy_num`, 1);
- if (data.num <= 0) that.$set(that, `is_zero`, true)
- else that.$set(that, `is_zero`, false)
- },
- // 关闭弹框
- dialogClose() {
- const that = this;
- that.$set(that, `dialog`, {
- show: false,
- type: '1'
- })
- }
- }
- }
- </script>
- <style lang="scss">
- .main {
- display: flex;
- flex-direction: column;
- width: 100vw;
- height: 100vh;
- .one {
- position: relative;
- flex-grow: 1;
- .one_1 {
- border-bottom: 0.5vw solid var(--f9Color);
- swiper {
- height: 44vh !important;
- }
- .list {
- border-radius: 5px;
- .image {
- width: 100%;
- height: 100%;
- border-radius: 5px;
- background-color: #fff;
- }
- }
- .goodsColect {
- position: fixed;
- top: 2vw;
- right: 3vw;
- z-index: 99;
- background-color: #858585;
- border-radius: 90px;
- text {
- font-size: 30px;
- }
- }
- .acttags {
- position: absolute;
- top: 1vw;
- left: 1vw;
- width: 97%;
- text {
- display: inline-block;
- background-color: #ff0000;
- color: #fff;
- border-radius: 1vw;
- padding: 0.5vw;
- font-size: 12px;
- margin: 0 1vw 0 0;
- }
- }
- }
- .one_2 {
- border-bottom: 0.5vw solid var(--f9Color);
- padding: 2vw;
- .money {
- font-size: 20px;
- padding: 0 1vw 0 0;
- color: #ff0000;
- font-weight: bold;
- text {
- font-size: 14px;
- }
- }
- .money:last-child {
- font-size: 16px;
- color: #858585;
- text-decoration: line-through;
- }
- }
- .one_3 {
- border-bottom: 0.5vw solid var(--f9Color);
- padding: 2vw;
- .name {
- font-size: 17px;
- font-weight: bold;
- margin: 0 0 2vw 0;
- }
- .brief {
- font-size: 14px;
- color: #858585;
- margin: 0 0 1vw 0;
- }
- .money {
- font-size: 13px;
- color: #858585;
- text {
- padding: 0 2vw 0 0;
- }
- }
- }
- .one_4 {
- display: flex;
- justify-content: space-between;
- padding: 2vw;
- border-bottom: 0.5vw solid var(--f9Color);
- font-size: 14px;
- }
- .one_5 {
- display: flex;
- justify-content: space-between;
- padding: 2vw;
- border-bottom: 0.5vw solid var(--f9Color);
- font-size: 14px;
- }
- .one_6 {
- padding: 2vw;
- border-bottom: 0.5vw solid var(--f9Color);
- .one_6_1 {
- margin: 0 0 1vw 0;
- display: flex;
- .shop_1 {
- width: 15vw;
- height: 15vw;
- border: 1px solid #f1f1f1;
- .image {
- width: 100%;
- height: 100%;
- }
- }
- .shop_2 {
- width: 78vw;
- padding: 0 0 0 2vw;
- .name {
- font-size: 14px;
- margin: 0 0 1vw 0;
- }
- .num {
- font-size: 12px;
- color: #858585;
- text:last-child {
- color: #000;
- }
- }
- }
- }
- .one_6_2 {
- margin: 0 0 2vw 0;
- display: flex;
- justify-content: space-between;
- padding: 2vw 0;
- .score_1 {
- width: 33vw;
- text-align: center;
- font-size: 14px;
- color: #858585;
- text:nth-child(2) {
- color: #ff0000;
- }
- text:nth-child(3) {
- float: right;
- }
- }
- }
- .one_6_3 {
- display: flex;
- justify-content: space-around;
- .btn {
- width: 40vw;
- button {
- width: 100%;
- font-size: 15px;
- }
- }
- }
- }
- .one_7 {
- padding: 2vw;
- .rich-img {
- width: 100% !important;
- display: block;
- }
- }
- }
- .two {
- width: 100vw;
- height: 8vh;
- overflow: hidden;
- }
- }
- .scroll-view {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- .list-scroll-view {
- display: flex;
- flex-direction: column;
- }
- }
- .bar_1 {
- position: fixed;
- right: 2vw;
- bottom: 20vw;
- text {
- background-color: #858585;
- border-radius: 90px;
- font-size: 30px;
- }
- }
- .bar_2 {
- position: fixed;
- right: 2vw;
- bottom: 28vw;
- width: 27vw;
- background: #ffffff;
- padding: 0 2vw;
- box-shadow: 0 0 5px #858585;
- .list {
- display: flex;
- border-bottom: 1px solid #f1f1f1;
- padding: 1vw 0;
- .image {
- width: 8vw;
- height: 8vw;
- }
- .name {
- font-size: 14px;
- position: relative;
- top: 2vw;
- left: 2vw;
- }
- }
- .list:last-child {
- border-bottom: none;
- }
- }
- .uni-popup {
- z-index: 9999 !important;
- }
- .popup {
- display: flex;
- flex-direction: column;
- width: 100vw;
- height: 60vh;
- .close {
- text-align: right;
- padding: 2vw;
- }
- .info_1 {
- position: relative;
- display: flex;
- flex-direction: column;
- height: 54vh;
- .info_1 {
- position: relative;
- flex-grow: 1;
- .one {
- padding: 2vw;
- .one_1 {
- display: flex;
- margin: 0 0 2vw 0;
- padding: 0 0 2vw 0;
- border-bottom: 0.5vw solid var(--f9Color);
- .l {
- width: 25vw;
- height: 25vw;
- .image {
- width: 100%;
- height: 100%;
- border-radius: 5px;
- }
- }
- .r {
- width: 70vw;
- padding: 0 0 0 2vw;
- .money {
- margin: 0 0 2vw 0;
- .money_1 {
- font-size: 20px;
- color: #ff0000;
- padding: 0 2vw 0 0;
- text {
- font-size: 14px;
- }
- }
- .money_1:last-child {
- font-size: 16px;
- color: #858585;
- text-decoration: line-through;
- }
- }
- .other_1 {
- font-size: 15px;
- color: #858585;
- text:last-child {
- color: #000000;
- }
- }
- }
- }
- .one_2 {
- margin: 0 0 2vw 0;
- border-bottom: 0.5vw solid var(--f9Color);
- .one_2_1 {
- font-size: 14px;
- margin: 0 0 2vw 0;
- }
- .one_2_2 {
- display: flex;
- flex-wrap: wrap;
- .list {
- background-color: #F5F5F5;
- margin: 0 2vw 2vw 0;
- padding: 0.5vw 1vw;
- border-radius: 5px;
- text {
- font-size: 14px;
- color: #000;
- }
- }
- .huilist {
- background-color: #DCDCDC;
- text {
- color: #858585;
- }
- }
- .redlist {
- background-color: #ff0000;
- text {
- color: #ffffff;
- }
- }
- .huiilist {
- background-color: #808080;
- text {
- color: #cccccc;
- }
- }
- }
- }
- .one_3 {
- display: flex;
- .one_3_1 {
- margin: 0 2vw 0 0;
- text {
- font-size: 14px;
- color: #858585;
- }
- }
- }
- }
- }
- .info_2 {
- display: flex;
- text-align: center;
- justify-content: space-between;
- .btns {
- width: 50vw;
- }
- .btn {
- width: 100vw;
- }
- button {
- width: 100%;
- border-radius: 0;
- background-color: var(--fFB1Color);
- color: #fff;
- border: 1px solid #f1f1f1;
- }
- .btncolor {
- background: #f1f1f1;
- color: #858585;
- }
- }
- }
- }
- .dialog {
- position: fixed;
- width: 100vw;
- height: 100vh;
- background-color: #000000;
- z-index: 99999;
- display: flex;
- flex-direction: column;
- justify-content: center;
- swiper {
- height: 60vh;
- }
- .list {
- .list_1 {
- padding: 2vw;
- margin: 0 0 5vw 0;
- .image {
- width: 100%;
- height: 40vh;
- }
- }
- .name {
- text-align: center;
- margin: 0 10vw;
- background-color: #6666669f;
- border-radius: 25px;
- padding: 2vw;
- text {
- color: #fff;
- font-size: 15px;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 2;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- }
- }
- }
- </style>
|