| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952 |
- <?php
- use common\helpers\ComponentHelper;
- ComponentHelper::loadComponentView('components/com-goods-detail', \Yii::$app->controller->module->viewPath);
- ?>
- <meta name="referrer" content="no-referrer">
- <div id="app" v-cloak>
- <el-card shadow="never" style="border:0;" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
- <div slot="header">
- <div>
- <span>选品库</span>
- </div>
- </div>
- <div class="table-body">
- <el-form
- :inline="true"
- :model="searchData"
- size="small"
- >
- <el-row>
- <el-form-item label="供应链">
- <el-select v-model="searchData.supply_id" @change="searchSupply">
- <el-option v-for="(item, index) in supplyList" :key="index" :label="item.app_name" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="一级分类">
- <el-select v-model="category_1_id" @change="searchCategory(1)">
- <el-option v-for="(item, index) in category_1" :key="index" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="二级分类">
- <el-select v-model="category_2_id" @change="searchCategory(2)">
- <el-option v-for="(item, index) in category_2" :key="index" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="三级分类">
- <el-select v-model="category_3_id" @change="searchCategory(3)">
- <el-option v-for="(item, index) in category_3" :key="index" :label="item.name" :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- </el-row>
- <el-row>
- <el-form-item label="商品名称">
- <el-input placeholder="商品名称" v-model="searchData.search_words" clearable @clear="search"></el-input>
- </el-form-item>
- <el-form-item label="是否导入">
- <el-select v-model="searchData.is_import">
- <el-option key="-1" label="全部" value="-1"></el-option>
- <el-option key="1" label="已导入" value="1"></el-option>
- <el-option key="0" label="未导入" value="0"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="商品状态">
- <el-select v-model="searchData.is_display">
- <el-option label="全部" value="-1"></el-option>
- <el-option label="已下架" value="0"></el-option>
- <el-option label="销售中" value="1"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="渠道类型">
- <el-select v-model="searchData.source_id">
- <el-option :key="-1" label="全部" value="-1"></el-option>
- <el-option v-for="(item, index) in chain_map" :key="index" :label="item" :value="index"></el-option>
- </el-select>
- </el-form-item>
- </el-row>
- <el-row>
- <el-button type="primary" size="small" @click="search">查询</el-button>
- <el-button size="small" @click="resetForm">重置</el-button>
- </el-row>
- </el-form>
- </div>
- <div class="table-body">
- <el-row>
- <el-button size="mini" type="success" @click="batchCheck">下架检测</el-button>
- <el-button size="mini" type="primary" @click="batchRemove">批量移除</el-button>
- <el-button size="mini" type="primary" @click="batchImport">批量导入</el-button>
- </el-row>
- <!--商品信息-->
- <template>
- <el-table class="table-info" ref="multipleTable" @selection-change="handleSelectionChange" stripe :data="goods_list" style="width: 100%" v-loading="listLoading">
- <!-- 空数据 -->
- <template slot="empty">
- <el-empty description="暂无选品"></el-empty>
- </template>
- <el-table-column type="selection">
- </el-table-column>
- <el-table-column prop="goods_id" align="center" label="商品ID">
- <template slot-scope="scope">
- <span v-if="scope.row.goods_id">{{scope.row.goods_id}}</span>
- <span v-else>{{scope.row.id}}</span>
- </template>
- </el-table-column>
- <el-table-column prop="middle_goods_id" align="center" label="供应链商品ID">
- <template slot-scope="scope">
- {{scope.row.middle_goods_id}}
- </template>
- </el-table-column>
- <el-table-column prop="title" align="center" label="商品标题">
- <template slot-scope="scope">
- <div class="ellipsis" style="clear:both;">{{scope.row.title}}</div>
- </template>
- </el-table-column>
- <el-table-column prop="title" align="center" label="商品图片">
- <template slot-scope="scope">
- <div class="goods-image">
- <com-image mode="aspectFill" :src="scope.row.image_url"></com-image>
- </div>
- </template>
- </el-table-column>
- <el-table-column prop="category_text" align="center" label="分类">
- </el-table-column>
- <!-- <el-table-column prop="source" label="来源" align="center">
- <template slot-scope="scope">
- {{scope.row.source}}
- </template>
- </el-table-column> -->
- <el-table-column prop="is_display" label="商品状态" align="center">
- <template slot-scope="scope">
- {{scope.row.is_display === 0 ? '下架' : '正常'}}
- </template>
- </el-table-column>
- <el-table-column prop="guide_price" label="指导价" align="center">
- <template slot-scope="scope">
- {{scope.row.guide_price|addZero}}
- </template>
- </el-table-column>
- <el-table-column prop="agreement_price" label="协议价" align="center">
- <template slot-scope="scope">
- {{scope.row.agreement_price|addZero}}
- </template>
- </el-table-column>
- <el-table-column prop="activity_price" label="营销价" align="center">
- <template slot-scope="scope">
- {{scope.row.activity_price|addZero}}
- </template>
- </el-table-column>
- <el-table-column prop="cost_price" label="成本价" align="center">
- <template slot-scope="scope">
- {{scope.row.cost_price|addZero}}
- </template>
- </el-table-column>
- <el-table-column label="添加时间" align="center">
- <template slot-scope="scope">
- {{scope.row.created_at|dateTimeFormat('Y-m-d H:i:s')}}
- </template>
- </el-table-column>
- <el-table-column prop="storage" label="是否导入" align="center">
- <template slot-scope="scope">
- <a href="javascript:void(0)" v-if="scope.row.is_import == 2" @click="goodsDetail(scope.row.mall_goods_id)">{{scope.row.mall_goods_id}}</a>
- <span v-else-if="scope.row.is_import == 1" style="color: green">导入中</span>
- <span v-else-if="scope.row.is_import == 0">
- {{ scope.row.import_msg ? '导入失败' : '未导入'}}
- <el-tooltip class="item" effect="dark" :content="scope.row.import_msg" placement="top-end">
- <i class="el-icon-warning" v-if="scope.row.import_msg"></i>
- </el-tooltip>
- </span>
- <span v-else-if="scope.row.is_import == 3">中台已删除商品</span>
- </template>
- </el-table-column>
- <el-table-column prop="storage" label="导入时间" align="center">
- <template slot-scope="scope">
- {{scope.row.import_at|dateTimeFormat('Y-m-d H:i:s')}}
- </template>
- </el-table-column>
- <el-table-column align="center" label="操作">
- <template slot-scope="scope">
- <el-button @click="remove(scope.row)" type="text" size="small">移除</el-button>
- <el-button v-if="scope.row.is_import == 0" @click="oneImport(scope.row)" type="text" size="small">导入</el-button>
- <el-button @click="showGoodsDetail(scope.row.middle_goods_id)" type="text" size="small">详情</el-button>
- </template>
- </el-table-column>
- </el-table>
- </template>
- <!-- 分页 -->
- <el-row type="flex" class="page" justify="end">
- <el-pagination @current-change="pagination" background layout="prev, pager, next" :page-count="pageCount" v-if="goods_list"></el-pagination>
- </el-row>
- </div>
- </el-card>
- <com-goods-detail :goods-id="goodsId"></com-goods-detail>
- </div>
- </el-card>
- </div>
- <script>
- var activity_id = <?php echo 1 ?>;
- const app = new Vue({
- el: '#app',
- filters: {
- addZero: function(data) {
- return data == undefined
- ? '未定义'
- : Math.round((data / 100) * 100) / 100 + '元';
- },
- },
- data() {
- return {
- searchData: {
- search_words: '',
- source: '',
- range_type: '',
- range_from: '',
- range_to: '',
- is_free_shipping: '',
- is_import: '',
- supply_id: '',
- is_display: '',
- source_id: '',
- },
- goods_list: [],
- supplyList: [],
- category_1: [],
- category_2: [],
- category_3: [],
- category_1_id: '',
- category_2_id: '',
- category_3_id: '',
- level: 0,
- parent_id: 0,
- pageCount: 0,
- page: 1,
- member_page: 1,
- currentPage: null,
- listLoading: false,
- btnLoading: false,
- checked: false,
- sort_list: [{
- name: "最新上架",
- key: 'created_time',
- is_active: false,
- sort: '',
- },
- {
- name: "本月销量",
- key: 'real_month_sale',
- is_active: false,
- sort: '',
- },
- {
- name: "协议价",
- key: 'agreement_price',
- is_active: false,
- sort: '',
- },
- {
- name: "指导价",
- key: 'guide_price',
- is_active: false,
- sort: '',
- },
- {
- name: "营销价",
- key: 'activity_price',
- is_active: false,
- sort: '',
- },
- {
- name: "常规利润率",
- key: 'promotion_rate',
- is_active: false,
- sort: '',
- },
- ],
- type: '',
- sort: '',
- source_text: [],
- selectGoods: [],
- goodsId: 0,
- suppliers: [],
- source_list:[],
- chain_map: <?= $chain_map ?>,
- };
- },
- methods: {
- // 平台选择
- searchSupply() {
- this.category_1 = [];
- this.category_2 = [];
- this.category_3 = [];
- this.category_1_id = '';
- this.category_2_id = '';
- this.category_3_id = '';
- this.parent_id = 0;
- this.level = 0;
- this.getCategoryList();
- this.getGoodsList();
- this.getSource();
- },
- getSupply() {
- request({
- params: {
- r: 'qi-juhe/supplys/index',
- },
- method: 'get',
- }).then(e => {
- if (e.data.code === 0) {
- this.supplyList = e.data.data.list
- this.searchData.supply_id = this.supplyList[0].id
- this.getCategoryList();
- this.getGoodsList()
- this.getSource();
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {});
- },
- handleSelectionChange(val) {
- this.selectGoods = val;
- },
- // 移除选品库
- remove(goods) {
- this.selectGoods.push(goods);
- let self = this;
- self.$confirm('是否把该商品从选品库中移除? 如需下架商品请前往商品列表进行下架操作', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- self.removeReq([goods.storage_id])
- }).catch(() => {
- self.$message.info('已取消删除')
- })
- },
- batchRemove() {
- let num = 0;
- let goods_id = new Array();
- this.selectGoods.forEach(function(item, index) {
- num++;
- goods_id.push(item.storage_id);
- })
- if (num <= 0) {
- this.$message.error('请选择商品');
- return false;
- }
- let self = this;
- self.$confirm('是否把该商品从选品库中移除?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.removeReq(goods_id);
- }).catch(() => {
- self.$message.info('已取消删除')
- })
- },
- removeReq(goods_ids) {
- let self = this;
- self.listLoading = true;
- request({
- params: {
- r: 'qi-juhe/storage/remove',
- },
- method: 'post',
- data: {
- ids: goods_ids,
- }
- }).then(e => {
- self.listLoading = false;
- if (e.data.code === 0) {
- this.selectGoods.forEach(function(item, key) {
- index = self.goods_list.indexOf(item)
- if (index >= 0) {
- self.goods_list.splice(index, 1);
- }
- })
- this.selectGoods = [];
- self.$message.success(e.data.msg);
- this.getGoodsList()
- } else {
- self.$message.error(e.data.msg);
- }
- }).
- catch(e => {
- console.log(e);
- })
- },
- // 跳转商品详情
- goodsDetail(goods_id) {
- navigateTo({
- r: 'mall/goods/edit',
- id: goods_id,
- }, true);
- },
- // 重新加载商品
- oneReload(goods) {
- this.reloadGoods([goods.storage.goods_id])
- },
- // 重新加载商品
- reloadGoods(goods_ids) {
- var self = this
- request({
- params: {
- r: 'juhe-shop/goods/store-reload',
- },
- method: 'post',
- data: {
- goods_ids: goods_ids,
- }
- }).then(e => {
- self.listLoading = false;
- if (e.data.code === 0) {
- self.$message.success(e.data.msg);
- setTimeout(() => {
- self.getGoodsList()
- }, 1500)
- } else {
- self.$message.error(e.data.msg);
- }
- }).
- catch(e => {
- console.log(e);
- })
- },
- // 单个导入
- oneImport(goods) {
- this.selectGoods.push(goods);
- let self = this;
- self.$confirm('是否导入该商品?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- if (typeof goods.juhe_goods_id != 'undefined') {
- self.storageImport([goods.juhe_goods_id])
- } else {
- self.storageImport([goods.id])
- }
- }).catch(() => {
- self.$message.info('已取消导入')
- })
- },
- // 批量导入
- batchImport() {
- let num = 0;
- let goods_id = new Array();
- this.selectGoods.forEach(function(item, index) {
- num++;
- if (typeof item.juhe_goods_id != 'undefined') {
- goods_id.push(item.juhe_goods_id)
- } else {
- goods_id.push(item.id)
- }
- })
- if (num <= 0) {
- this.$message.error('请选择商品');
- return false;
- }
- let self = this;
- self.$confirm('是否批量导入' + num + '个商品?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- this.storageImport(goods_id);
- }).catch(() => {
- self.$message.info('已取消导入')
- })
- },
- // 区间筛选
- rangeChange() {
- if (this.searchData.range_type == '') {
- this.$message.error('请选择区间类型');
- return false;
- }
- let from = parseInt(this.searchData.range_from);
- let to = parseInt(this.searchData.range_to);
- if (from > to) {
- this.$message.error('区间开始不能大于区间结束');
- return false;
- }
- },
- // 排序
- searchSort(event) {
- let el = event.currentTarget;
- this.type = el.dataset.key;
- let index = el.dataset.index;
- let data = this.sort_list[index];
- if (data.sort == '' || data.sort == 'asc') {
- this.sort_list[index].sort = 'desc';
- } else {
- this.sort_list[index].sort = 'asc';
- }
- this.sort_list.forEach(function(item, key) {
- if (key != index) {
- item.sort = '';
- }
- })
- this.sort = this.sort_list[index].sort;
- this.getGoodsList();
- },
- // 平台选择
- searchSource() {
- this.category_1 = [];
- this.category_2 = [];
- this.category_3 = [];
- this.category_1_id = '';
- this.category_2_id = '';
- this.category_3_id = '';
- this.parent_id = 0;
- this.level = 0;
- this.getCategoryList();
- },
- // 分类选择
- searchCategory(level) {
- this.level = level;
- if (level == 1) {
- this.parent_id = this.category_1_id;
- this.category_2 = [];
- this.category_3 = [];
- this.category_2_id = '';
- this.category_3_id = '';
- }
- if (level == 2) {
- this.parent_id = this.category_2_id == 0 ? this.category_1_id : this.category_2_id;
- this.category_3 = [];
- this.category_3_id = '';
- }
- if (level == 3) {
- this.parent_id = this.category_3_id == 0 ? this.category_2_id : this.category_3_id;
- return true;
- }
- console.log('parent_id' + this.parent_id);
- this.getCategoryList()
- },
- //搜索
- search() {
- this.page = 1;
- this.getGoodsList();
- },
- pagination(currentPage) {
- this.page = currentPage;
- this.getGoodsList();
- },
- getGoodsList() {
- this.listLoading = true;
- var param = {
- r: 'qi-juhe/storage/index',
- page: this.page,
- search_words: this.searchData.search_words,
- source: this.searchData.source,
- range_type: this.searchData.range_type,
- range_from: this.searchData.range_from,
- range_to: this.searchData.range_to,
- is_free_shipping: this.searchData.is_free_shipping,
- is_import: this.searchData.is_import,
- supply_id: this.searchData.supply_id,
- source_id: this.searchData.source_id,
- is_display: this.searchData.is_display,
- type: this.type, // 排序
- sort: this.sort,
- category_1_id: this.category_1_id,
- category_2_id: this.category_2_id,
- category_3_id: this.category_3_id,
- limit: 30
- }
- request({
- params: param,
- }).then(e => {
- if (e.data.code === 0) {
- this.goods_list = e.data.data.list;
- this.pageCount = e.data.data.page_count;
- this.currentPage = e.data.data.current_page;
- } else {
- this.$message.error(e.data.msg);
- }
- this.listLoading = false;
- }).catch(e => {
- this.listLoading = false;
- });
- },
- getCategoryList() {
- request({
- params: {
- r: 'qi-juhe/category/list',
- parent_id: this.parent_id,
- level: this.level,
- source: this.searchData.source,
- supply_id: this.searchData.supply_id,
- },
- }).then(e => {
- if (e.data.code === 0) {
- if (this.level == 0) {
- this.category_1 = e.data.data.list;
- } else if (this.level == 1) {
- this.category_2 = e.data.data.list;
- } else {
- this.category_3 = e.data.data.list;
- }
- } else {
- this.$message.error(e.data.msg);
- }
- this.listLoading = false;
- }).catch(e => {
- this.listLoading = false;
- });
- },
- storageImport(goods_id) {
- let self = this;
- this.listLoading = true;
- request({
- method: 'post',
- data: {
- ids: goods_id,
- },
- params: {
- r: 'qi-juhe/storage/import',
- },
- }).then(e => {
- if (e.data.code === 0) {
- this.$message.success(e.data.msg);
- this.goods_list.forEach(function(item, key) {
- index = goods_id.indexOf(item.id)
- if (index >= 0) {
- Vue.set(item.storage, 'is_import', 1)
- }
- })
- this.selectGoods.forEach(function(item, key) {
- index = self.goods_list.indexOf(item)
- if (index >= 0) {
- Vue.set(self.goods_list[index].storage, 'is_import', 1)
- }
- })
- this.selectGoods = [];
- self.$refs.multipleTable.clearSelection();
- this.getGoodsList()
- } else {
- this.$message.error(e.data.msg);
- }
- this.listLoading = false;
- }).catch(e => {
- this.listLoading = false;
- });
- },
- //重置
- resetForm() {
- this.searchData.search_words = '';
- this.searchData.source = '';
- this.searchData.range_type = '';
- this.searchData.range_from = '';
- this.searchData.range_to = '';
- this.searchData.is_free_shipping = '';
- this.searchData.is_import = '';
- this.category_1_id = '';
- this.category_2_id = '';
- this.category_3_id = '';
- this.searchData.supply_id = ''
- this.searchData.source_id = ''
- this.searchData.is_display = ''
- },
- /* scFormTab(sel) {
- if(sel.length == this.form.length){
- this.checkedAll = true;
- }else {
- this.checkedAll = false;
- }
- this.selFormArr = sel;
- }, */
- /**
- * 显示商品供应链端详情
- */
- showGoodsDetail(id) {
- this.goodsId = 0
- setTimeout(() => {
- this.goodsId = id
- }, 50)
- },
- batchCheck () {
- var self = this
- self.$confirm('检测比较耗时,是否检测?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- request({
- method: 'post',
- data: {
- supply_id: this.searchData.supply_id,
- },
- params: {
- r: 'qi-juhe/storage/check-pull',
- },
- }).then(e => {
- if (e.data.code === 0) {
- this.$message.success(e.data.msg);
- } else {
- this.$message.error(e.data.msg);
- }
- this.listLoading = false;
- }).catch(e => {
- this.listLoading = false;
- });
- }).catch(() => {
- self.$message.info('已取消导入')
- })
- },
- getSuppliers () {
- request({
- params: {
- r: 'qi-juhe/supplys/suppliers',
- supply_id: this.searchData.supply_id
- },
- method: 'get',
- }).then(e => {
- if (e.data.code === 0) {
- this.suppliers = e.data.data
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {});
- },
- getSource(){
- request({
- method: 'get',
- params: {
- r: 'qi-juhe/goods/source',
- supply_id: this.searchData.supply_id
- },
- }).then(e => {
- if (e.data.code === 0) {
- this.source_list = e.data.data
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- });
- },
- },
- mounted: function() {
- this.page = getQuery('page') ? getQuery('page') : 1;
- this.getSupply()
- }
- });
- </script>
- <style>
- .table-info .el-button {
- /* padding: 0; */
- border: 0;
- margin: 0 5px;
- }
- .table-body {
- padding: 20px;
- background-color: #fff;
- }
- /* .table-info .el-button {
- padding: 0 !important;
- border: 0;
- margin: 0 5px;
- } */
- .input-item {
- display: inline-block;
- width: 150px;
- margin: 0 0 20px;
- }
- .input-item .el-input__inner {
- border-right: 1px solid #dcdfe6;
- }
- .input-item .el-input__inner:hover {
- border: 1px solid #dcdfe6;
- border-right: 0;
- outline: 0;
- }
- .input-item .el-input__inner:focus {
- border: 1px solid #dcdfe6;
- border-right: 0;
- outline: 0;
- }
- .input-item .el-input-group__append {
- background-color: #fff;
- border-left: 0;
- width: 10%;
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- padding: 0;
- }
- .input-item .el-input-group__append .el-button {
- margin: 0;
- }
- .select {
- float: left;
- width: 100px;
- margin-right: 10px;
- }
- .goods-image {
- display: flex;
- justify-content: center;
- }
- .el-table th>.cell {
- color: #333;
- font-weight: bold;
- font-size: 14px;
- }
- .el-table__footer-wrapper,
- .el-table__header-wrapper {
- border-bottom: 1.4px solid #D6D6D6;
- }
- .search-sort {
- display: inline-block;
- margin: 0px 10px;
- cursor: pointer;
- color: rgb(51, 51, 51);
- }
- .caret-wrapper {
- display: inline-flex;
- flex-direction: column;
- align-items: center;
- height: 25px;
- width: 11px;
- vertical-align: middle;
- cursor: pointer;
- overflow: initial;
- position: relative;
- }
- .caret-top {
- border: 5px solid transparent;
- margin: 1px 0;
- border-bottom-color: rgb(51, 51, 51);
- }
- .caret-bottom {
- border: 5px solid transparent;
- margin: 1px 0;
- border-top-color: rgb(51, 51, 51);
- }
- .active {
- border-top-color: rgb(41, 186, 156);
- }
- .ellipsis {
- height: 40px;
- font-size: 12px;
- color: #333;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .goods-wrapper {
- border: 2px solid #CCCCCC;
- display: inline-block
- }
- .goods-select {
- border: 2px solid #bb730c;
- }
- .goods-price {
- text-align: center;
- }
- .goods-price .number {
- color: red;
- font-weight: 600;
- font-size: .18rem;
- }
- .goods-price .title {
- padding: 5px 0;
- color: #999;
- ;
- font-size: 10px;
- font-weight: 600;
- }
- .bottom-price .title {
- padding: 5px 0;
- color: #8b8888;
- ;
- font-size: .1rem;
- }
- .bottom-price .number {
- color: #ff5100;
- font-size: .1rem;
- }
- .goods-action {
- margin-top: 0.8rem;
- }
- .goods-action .title {
- color: #0634aa;
- }
- .bottom-active {
- border-bottom-color: rgb(186, 41, 92);
- }
- .top-active {
- border-top-color: rgb(186, 41, 92);
- }
- .price {
- white-space: nowrap;
- }
- .page {
- padding: 10px 0;
- }
- </style>
|