You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
40 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?f3de","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?d2dd","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?78c9","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?bf2e","uni-app:///pages/life/addGoods/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?c2e3","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/addGoods/index.vue?a13c"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,qG;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACnCA;AAAA;AAAA;AAAA;AAAizB,CAAgB,i0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2Kr0B;AACA,yD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,MADA,EAEA,cAFA,EAGA,aAHA,EAIA,SAJA,EAIA;AACA,sBALA,EAKA;AACA,qBANA,EAMA;AACA,eAPA,EAOA;AACA,kBARA,EASA;AACA,QACA,OADA,EACA;AACA,iBAFA,EAEA;AACA,oBAHA,EAGA;AACA,iBAJA,EAIA;AACA,kBALA,EAKA;AACA,kBANA,CAMA;AANA,OADA,CATA,EAmBA,SAnBA,EAoBA,WApBA,EAqBA,QArBA,EAsBA,QAtBA,EAuBA,eAvBA,EAwBA,uBAxBA,EAyBA,eAzBA,EA0BA,aA1BA,EA2BA,eA3BA,EA4BA,YA5BA,GA8BA,CAhCA,EAiCA,MAjCA,oBAiCA,kBACA,sCACA,cACA,4BACA,aADA,IAGA,iEACA,oBACA,uCACA,mCACA,iCACA,qCACA,mCACA,yBACA,CARA,EASA,CAbA,MAaA,CACA,kBACA,CACA,CAnDA,EAoDA,WACA,UADA,wBACA,mBACA,0CACA,+BACA,CAFA,EAGA,CALA,EAMA,SANA,qBAMA,GANA,EAMA,mBACA,wCACA,+BACA,2CACA,CAFA,MAEA,CACA,8BACA,CACA,CANA,EAOA,CAdA,EAeA,YAfA,wBAeA,GAfA,EAeA,mBACA,wCACA,6CACA,CAFA,EAGA,CAnBA,EAoBA,cApBA,4BAoBA,CACA,iBACA,kFADA,IAGA,CAxBA,EAyBA,UAzBA,wBAyBA,CACA,iBACA,iCADA,IAGA,CA7BA,EA8BA;AACA,WA/BA,qBA+BA,CACA,UACA,YADA,EAEA,iBAFA,GAIA,cACA,sBANA,CAMA;AACA,2BACA,6BACA,CAxCA,EAyCA;AACA,YA1CA,oBA0CA,CA1CA,EA0CA,CACA,4BACA,qBAFA,CAEA;AACA,2BACA,6BACA,CA/CA,EAgDA,OAhDA,mBAgDA,CAhDA,EAgDA,CACA,0BAEA,gCACA,CApDA,EAqDA,SArDA,uBAqDA,CACA,+BACA,CAvDA,EAwDA,SAxDA,qBAwDA,CAxDA,EAwDA,CACA,mCACA,CA1DA,EA2DA;AACA,iBA5DA,2BA4DA,CACA,+BACA,uBACA,iBADA,EAEA,YAFA,IAIA,CACA,KACA,8BACA,kCACA,iBACA,kBACA,CACA,CAJA,EAKA,CAPA,CAOA,WACA,gBACA,QADA,EAEA,YAFA,IAIA,aACA,CACA,qBACA,6BACA,CACA,0BACA,+CACA,cACA,2BACA,+BACA,YACA,CALA,EAMA,wBACA,gCAEA,8BACA,sBAnCA,CAoCA;AACA,KAjGA,EAkGA;AACA,gBAnGA,wBAmGA,GAnGA,EAmGA,CACA,kBACA,oBACA,+BACA,CAGA,kCACA,gCACA,oBACA,iCACA,kBACA,OADA,EACA;AACA,mBAFA,EAEA;AACA,sBAHA,EAGA;AACA,mBAJA,EAIA;AACA,oBALA,EAKA;AACA,oBANA,CAMA;AANA,WAQA,CATA,EAUA,2BAEA,mBACA,kBADA,EAEA,gBAFA,EAGA,uBAHA,GAKA,4BACA,CA/HA,EAgIA;AACA,WAjIA,mBAiIA,OAjIA,EAiIA,CACA,aACA,wBACA,iCACA,CAJA,CAKA;AACA,qCACA,+DACA,aACA,wBACA,wBACA,wBACA,CAFA,EAGA,CAJA,EAKA;AACA,SARA,EAQA,IARA;AASA;AACA;AACA;AACA,KApJA;AAqJA;AACA,eAtJA,uBAsJA,CAtJA,EAsJA;AACA;AACA;AACA;AACA,OAFA;AAGA;AACA;AACA,KA7JA;AA8JA,eA9JA,uBA8JA,CA9JA,EA8JA;AACA;AACA;AACA;AACA,OAFA;AAGA;AACA,KApKA;AAqKA;AACA,UAtKA,oBAsKA;AACA;AACA,eADA,EACA;AACA,iBAFA,EAEA;AACA,oBAHA,EAGA;AACA,iBAJA,EAIA;AACA,kBALA,EAKA;AACA,kBANA,CAMA;AANA;AAQA;AACA;AACA,yBADA;;AAGA,KAnLA;AAoLA,UApLA,kBAoLA,GApLA,EAoLA;AACA;AACA,KAtLA;AAuLA;AACA,eAxLA,uBAwLA,CAxLA,EAwLA;AACA;AACA;AACA,KA3LA;;AA6LA,eA7LA,uBA6LA,CA7LA,EA6LA;AACA;AACA,KA/LA;AAgMA,UAhMA,oBAgMA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA,mCADA;AAEA,iCAFA;AAGA,mCAHA,EAGA;AACA,uCAJA,EAIA;AACA,qCALA,EAKA;AACA,iBANA,EAMA;AACA,uBAPA;AAQA,yBARA;AASA,yBATA;AAUA,8CAVA,CAUA;AAVA;AAYA;AACA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,MAGA;AACA;AACA;AACA;AACA,OARA;AASA;AACA;AACA;AACA;AACA;AACA,4BADA;AAEA,4BAFA;;AAIA;AACA;AACA,mDADA;;AAGA,aAJA,EAIA,IAJA;AAKA,WAVA,MAUA;AACA;AACA,4BADA;AAEA,0BAFA;;AAIA;AACA,SAjBA;AAkBA,OApBA,MAoBA;AACA;AACA;AACA;AACA,4BADA;AAEA,4BAFA;;AAIA;AACA;AACA,mDADA;;AAGA,aAJA,EAIA,IAJA;AAKA,WAVA,MAUA;AACA;AACA,4BADA;AAEA,0BAFA;;AAIA;AACA,SAjBA;AAkBA;;AAEA;AACA,KArRA;AAsRA,gBAtRA,wBAsRA,GAtRA,EAsRA;AACA;AACA,kBADA;AAEA,oBAFA;;AAIA,KA3RA,EApDA,E;;;;;;;;;;;;;AC7KA;AAAA;AAAA;AAAA;AAAi+C,CAAgB,y7CAAG,EAAC,C;;;;;;;;;;;ACAr/C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/life/addGoods/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/life/addGoods/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=29697c82&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/life/addGoods/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=29697c82&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.batchData.titleStr\n ? _vm.__map(_vm.batchData.attrArr, function(i, idx) {\n var $orig = _vm.__get_orig(i)\n\n var g0 = i.join(\"/\")\n return {\n $orig: $orig,\n g0: g0\n }\n })\n : null\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.maskShow = false\n _vm.addOptionsDialog = false\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"index-box\">\r\n\t\t<view class=\"add-goodsimg-box\">\r\n\t\t\t<view class=\"img-box acea-row\">\r\n\t\t\t\t<view class=\"upload-box\" @click=\"uploadImgs\">\r\n\t\t\t\t\t<image src=\"../../../static/images/upload.png\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"upload-box\" @click=\"uploadImg(0)\">\r\n\t\t\t\t\t<image src=\"../../../static/images/addimg.png\" v-if=\"!slider_image[0] || slider_image[0] == ''\"></image>\r\n\t\t\t\t\t<image :src=\"slider_image[0]\" mode=\"aspectFill\" v-else></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"upload-box\" @click=\"uploadImg(1)\">\r\n\t\t\t\t\t<image src=\"../../../static/images/addimg.png\" v-if=\"!slider_image[1] || slider_image[1] == ''\"></image>\r\n\t\t\t\t\t<image :src=\"slider_image[1]\" mode=\"aspectFill\" v-else></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"upload-box\" @click=\"uploadImg(2)\">\r\n\t\t\t\t\t<image src=\"../../../static/images/addimg.png\" v-if=\"!slider_image[2] || slider_image[2] == ''\"></image>\r\n\t\t\t\t\t<image :src=\"slider_image[2]\" mode=\"aspectFill\" v-else></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"tips acea-row row-middle\">\r\n\t\t\t\t<image src=\"../../../static/images/tips-icon.png\"></image>\r\n\t\t\t\t<text>最少上传一张,最多只能上传三张图片哦!</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"goodsInfo-box\">\r\n\t\t\t<view class=\"goodsInfo-item\">\r\n\t\t\t\t<text>商品名称<text class=\"colR\">*</text></text>\r\n\t\t\t\t<input type=\"text\" v-model=\"store_name\" placeholder=\"输入商品名称\" />\r\n\t\t\t</view>\r\n\t\t\t<view class=\"goodsInfo-item\">\r\n\t\t\t\t<text>商品单位<text class=\"colR\">*</text></text>\r\n\t\t\t\t<input type=\"text\" v-model=\"unit_name\" placeholder=\"输入商品单位\" />\r\n\t\t\t</view>\r\n\t\t\t<view class=\"goodsInfo-item\">\r\n\t\t\t\t<text>商品详情<text class=\"colR\">*</text></text>\r\n\t\t\t\t<view class=\"toEdit acea-row row-middle\" @click=\"toGoodsDetails\">\r\n\t\t\t\t\t<text>{{description == '' ? '去编辑' : '已编辑'}}</text>\r\n\t\t\t\t\t<image src=\"../../../static/images/arror-r-s.png\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- <view class=\"title2\" @click=\"addSku\">添加规格</view> -->\r\n\t\t<!-- <view class=\"add-sku-box\">\r\n\t\t\t<view class=\"sku-item\" v-for=\"(item,index) in attrs\" :key=\"index\">\r\n\t\t\t\t<view class=\"close-btn\" @click=\"delSku(index)\">×</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>图片</text>\r\n\t\t\t\t\t<image src=\"../../../static/images/upload.png\" v-if=\"item.pic == ''\" @tap=\"uploadSkuImg(index)\"></image>\r\n\t\t\t\t\t<image :src=\"item.pic\" v-else @tap=\"uploadSkuImg(index)\" mode=\"aspectFill\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>价格<text class=\"colR\">*</text></text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"item.price\" placeholder=\"请输入售价(元)\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>市场价格</text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"item.ot_orice\" placeholder=\"请输入市场价格(元)\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>库存<text class=\"colR\">*</text></text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"item.stock\" placeholder=\"请输入库存\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>重量</text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"item.weight\" placeholder=\"请输入重量kg\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>体积</text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"item.volume\" placeholder=\"请输入体积m³\" />\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view> -->\r\n\t\t<!-- //规格属性 -->\r\n\t\t<view class=\"set-title\">规格设置</view>\r\n\t\t<view class=\"setattr-box\">\r\n\t\t\t<view class=\"attr-item colB\" @click=\"addAttr\">添加属性</view>\r\n\t\t\t<view class=\"attr-item acea-row row-between row-middle\" \r\n\t\t\t\tv-for=\"(item,index) in attrArr\" \r\n\t\t\t\t:key=\"index\"\r\n\t\t\t\t@click=\"editAttr(index)\"\r\n\t\t\t>\r\n\t\t\t\t<view class=\"attr-item-l\">{{item.attrName}}({{item.attrOptions.length}})</view>\r\n\t\t\t\t<image src=\"../../../static/images/arror-r-s.png\"></image>\r\n\t\t\t\t\r\n\t\t\t\t<view class=\"del-attr\" @tap.stop=\"delAttr(index)\">×</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 规格设置 -->\r\n\t\t<view class=\"add-sku-box\">\r\n\t\t\t<view class=\"sku-item\">\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>价格<text class=\"colR\">*</text></text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"attrs[0].price\" @input=\"changePrice\" placeholder=\"请输入售价(元)\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sku img-sku acea-row row-middle row-between\">\r\n\t\t\t\t\t<text>库存<text class=\"colR\">*</text></text>\r\n\t\t\t\t\t<input type=\"number\" v-model=\"attrs[0].stock\" @input=\"changeStock\" placeholder=\"请输入库存\" />\r\n\t\t\t\t\t<!-- <view class=\"acea-row row-middle\">\r\n\t\t\t\t\t\t<switch :checked=\"!infinite\" @change=\"stockChange\" style=\"transform: scale(0.8);\" />\r\n\t\t\t\t\t\t<view>{{infinite ? '不限' : '有限'}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"colB\">批量设置</view> -->\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 批量操作 -->\r\n\t\t<view class=\"batch-set-box\" v-if=\"batchData.titleStr\">\r\n\t\t\t<view class=\"box-top acea-row row-between-wrapper\">\r\n\t\t\t\t<view class=\"name\">{{batchData.titleStr}}</view>\r\n\t\t\t\t<view class=\"attr-name w15\">库存</view>\r\n\t\t\t\t<view class=\"attr-name w15\">价格</view>\r\n\t\t\t</view>\r\n\t\t\t<block v-for=\"(i,idx) in batchData.attrArr\" :key=\"idx\">\r\n\t\t\t\t<view class=\"box-b acea-row row-between-wrapper\">\r\n\t\t\t\t\t<view class=\"name line1\">{{i.join('/')}}</view>\r\n\t\t\t\t\t<view class=\"inp-box w15\"><input type=\"number\" placeholder=\"0\" v-model=\"batchData.priceArr[idx].stock\"></view>\r\n\t\t\t\t\t<view class=\"inp-box w15\"><input type=\"number\" placeholder=\"0\" v-model=\"batchData.priceArr[idx].price\"></view>\r\n\t\t\t\t</view>\r\n\t\t\t</block>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"temp-box acea-row row-between-wrapper\" @click=\"toTempList\">\r\n\t\t\t<text>运费模板</text>\r\n\t\t\t<view class=\"acea-row row-middle\">\r\n\t\t\t\t<text>{{temp}}</text>\r\n\t\t\t\t<image src=\"../../../static/images/arror-r-s.png\"></image>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"temp-box goods-state acea-row row-between-wrapper\">\r\n\t\t\t<text>商品状态</text>\r\n\t\t\t<view class=\"acea-row row-middle\">\r\n\t\t\t\t<radio-group @change=\"radioChange\">\r\n\t\t\t\t\t<label>\r\n\t\t\t\t\t\t<radio :value=\"0\" :checked=\"state == 0\" /><text>上架</text>\r\n\t\t\t\t\t</label>\r\n\t\t\t\t\t<label>\r\n\t\t\t\t\t\t<radio :value=\"1\" :checked=\"state == 1\" /><text>下架</text>\r\n\t\t\t\t\t</label>\r\n\t\t\t\t</radio-group>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"btn-box\">\r\n\t\t\t<view class=\"btn\" @tap=\"submit\">提交</view>\r\n\t\t</view>\r\n\t\t<!-- //添加规格弹框 -->\r\n\t\t<view class=\"mask-box\" v-if=\"maskShow == true\">\r\n\t\t\t<view class=\"addattr-dialog\" v-if=\"addOptionsDialog == true\">\r\n\t\t\t\t<view class=\"dialog-top acea-row row-between row-middle\">\r\n\t\t\t\t\t<text>规格属性</text>\r\n\t\t\t\t\t<view class=\"close\" @click=\"maskShow = false; addOptionsDialog = false\">×</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<view class=\"a-name\"><input type=\"text\" v-model=\"attr.attrName\" placeholder=\"输入属性名称,如:颜色\"></view>\r\n\t\t\t\t\t<view class=\"o-name-box\">\r\n\t\t\t\t\t\t<block v-for=\"(o,i) in attr.attrOptions\" :key=\"i\">\r\n\t\t\t\t\t\t\t<view class=\"o-item-box acea-row row-between row-middle\">\r\n\t\t\t\t\t\t\t\t<input type=\"text\" v-model=\"attr.attrOptions[i]\" maxlength=\"10\" placeholder=\"输入选项,如:红色,10个字以内\">\r\n\t\t\t\t\t\t\t\t<text class=\"close\" @click=\"delOption(i)\">×</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t<view class=\"add-option-btn\" @click=\"addOption\">+选项</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"s-btn\" @click=\"submitAddAttr\">确定</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\n</template>\n\n<script>\r\n\timport { chooseImage, chooseImages } from \"@/utils\"\r\n\timport { addProduct, getProductInfo, editProduct } from '@/api/store'\r\n\texport default{\r\n\t\tdata(){\r\n\t\t\treturn {\r\n\t\t\t\tid: '',\r\n\t\t\t\tstore_name: '',\r\n\t\t\t\tunit_name: '',\r\n\t\t\t\timage:'', //主图\r\n\t\t\t\tslider_image: [] ,// 轮播图\r\n\t\t\t\tdescription: '', //商品详情富文本\r\n\t\t\t\ttempId: 1, //运费方案\r\n\t\t\t\ttemp: '全国包邮',\r\n\t\t\t\tattrs: [ // 单规格一个,多规格多个\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpic: '', //\"规格图片 --可选\",\r\n\t\t\t\t\t\tprice: '', //\"价格 元\", \r\n\t\t\t\t\t\tot_orice: '', //\"市场价格 --可选\",\r\n\t\t\t\t\t\tstock: '', //\"库存\", \r\n\t\t\t\t\t\tweight: '', //\"重量 --可选\",\r\n\t\t\t\t\t\tvolume: '', //\"体积 --可选\"\r\n\t\t\t\t\t}\r\n\t\t\t\t],\r\n\t\t\t\titems: [],\r\n\t\t\t\tattrArr:[],\r\n\t\t\t\tattr:{},\r\n\t\t\t\tstate: 0,\r\n\t\t\t\tmaskShow: false,\r\n\t\t\t\taddOptionsDialog: false,\r\n\t\t\t\tinfinite: false,\r\n\t\t\t\tbatchData: {},\r\n\t\t\t\teditattr: false,\r\n\t\t\t\tpriceArr: [],\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.id = this.$yroute.query.id || ''\r\n\t\t\tif(this.id){\r\n\t\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\t title:'修改商品'\r\n\t\t\t\t})\r\n\t\t\t\tgetProductInfo({id: this.id}).then((res)=>{\r\n\t\t\t\t\tlet info = res.data\r\n\t\t\t\t\tthis.slider_image = info.slider_image\r\n\t\t\t\t\tthis.image = info.slider_image[0]\r\n\t\t\t\t\tthis.unit_name = info.unit_name\r\n\t\t\t\t\tthis.description = info.description\r\n\t\t\t\t\tthis.store_name = info.store_name\r\n\t\t\t\t\tthis.attrs = info.attrs\r\n\t\t\t\t})\r\n\t\t\t} else{\r\n\t\t\t\tconsole.log('新增')\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tuploadImgs(){\r\n\t\t\t\tchooseImages((imgs)=>{\r\n\t\t\t\t\tthis.slider_image.push(imgs)\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tuploadImg(idx){\r\n\t\t\t\tchooseImage((img)=>{\r\n\t\t\t\t\tif(this.slider_image[idx]){\r\n\t\t\t\t\t\tthis.$set(this.slider_image,idx,img)\r\n\t\t\t\t\t} else{\r\n\t\t\t\t\t\tthis.slider_image.push(img)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tuploadSkuImg(idx){\r\n\t\t\t\tchooseImage((img)=>{\r\n\t\t\t\t\tthis.$set(this.attrs,idx,{pic: img})\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\ttoGoodsDetails(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t url: '/pages/life/goodsDetails/index?desc='+encodeURIComponent(this.description)\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\ttoTempList(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pages/life/tempList/index'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//添加属性按钮\r\n\t\t\taddAttr(){\r\n\t\t\t\tlet j = {\r\n\t\t\t\t\tattrName: '',\r\n\t\t\t\t\tattrOptions:['']\r\n\t\t\t\t}\r\n\t\t\t\tthis.attr = j\r\n\t\t\t\tthis.editattr = false; //添加新属性时是否编辑attr切换成FALSE\r\n\t\t\t\tthis.maskShow = true;\r\n\t\t\t\tthis.addOptionsDialog = true\r\n\t\t\t},\r\n\t\t\t//修改属性\r\n\t\t\teditAttr(i){\r\n\t\t\t\tthis.attr = this.attrArr[i]\r\n\t\t\t\tthis.editattr = true; //修改属性时是否编辑attr切换成true\r\n\t\t\t\tthis.maskShow = true;\r\n\t\t\t\tthis.addOptionsDialog = true\r\n\t\t\t},\r\n\t\t\tdelAttr(i){\r\n\t\t\t\tthis.attrArr.splice(i,1)\r\n\t\t\t\t\r\n\t\t\t\tthis.setBatchData(this.attrArr)\r\n\t\t\t},\r\n\t\t\taddOption(){\r\n\t\t\t\tthis.attr.attrOptions.push('')\r\n\t\t\t},\r\n\t\t\tdelOption(i){\r\n\t\t\t\tthis.attr.attrOptions.splice(i,1)\r\n\t\t\t},\r\n\t\t\t///添加属性提交\r\n\t\t\tsubmitAddAttr(){\r\n\t\t\t\tif(this.attr.attrName == ''){\r\n\t\t\t\t\treturn uni.showToast({\r\n\t\t\t\t\t\ttitle: '请填写属性名称!',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\ttry{\r\n\t\t\t\t\tvar o = this.attr.attrOptions;\r\n\t\t\t\t o.forEach(function(item,index) {\r\n\t\t\t\t if(item == \"\"){\r\n\t\t\t\t throw \"属性规格不能为空!\";\r\n\t\t\t\t }\r\n\t\t\t\t });\r\n\t\t\t\t}catch(e){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: e,\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn false\r\n\t\t\t\t}\r\n\t\t\t\tif(!this.editattr){\r\n\t\t\t\t\tthis.attrArr.push(this.attr)\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(this.attrArr)\r\n\t\t\t\tthis.items = this.attrArr.map((item)=>{\r\n\t\t\t\t\t var rObj = {};\r\n\t\t\t\t\t\trObj.value = item.attrName;\r\n\t\t\t\t\t\trObj.detail = item.attrOptions;\r\n\t\t\t\t\t\treturn rObj;\r\n\t\t\t\t})\r\n\t\t\t\tconsole.log(this.items)\r\n\t\t\t\tthis.setBatchData(this.attrArr)\r\n\t\t\t\t\r\n\t\t\t\tthis.addOptionsDialog = false\r\n\t\t\t\tthis.maskShow = false\r\n\t\t\t\t// console.log(this.setData(this.attrArr),'attrArr')\r\n\t\t\t},\r\n\t\t\t//批量设置数据\r\n\t\t\tsetBatchData(arr){\r\n\t\t\t\tvar titleArr = []\r\n\t\t\t\tfor (var i in arr) {\r\n\t\t\t\t titleArr.push(arr[i].attrName)\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tvar titleStr = titleArr.join('/')\r\n\t\t\t\tvar attrArr = this.setData(arr)\r\n\t\t\t\tvar branchList = []\r\n\t\t\t\tattrArr.forEach((item)=>{\r\n\t\t\t\t\tbranchList.push({\r\n\t\t\t\t\t\tpic: '', //\"规格图片 --可选\",\r\n\t\t\t\t\t\tprice: '', //\"价格 元\", \r\n\t\t\t\t\t\tot_orice: '', //\"市场价格 --可选\",\r\n\t\t\t\t\t\tstock: '', //\"库存\", \r\n\t\t\t\t\t\tweight: '', //\"重量 --可选\",\r\n\t\t\t\t\t\tvolume: '', //\"体积 --可选\"\r\n\t\t\t\t\t})\r\n\t\t\t\t})\r\n\t\t\t\tthis.priceArr = branchList\r\n\t\t\t\t\r\n\t\t\t\tthis.batchData = {\r\n\t\t\t\t\ttitleStr: titleStr,\r\n\t\t\t\t\tattrArr: attrArr,\r\n\t\t\t\t\tpriceArr: this.priceArr\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(this.batchData)\r\n\t\t\t},\r\n\t\t\t//数组整合\r\n\t\t\tsetData(attrArr){\r\n\t\t\t\tvar tmp = []\r\n\t\t\t\tfor (var i in attrArr) {\r\n\t\t\t\t tmp.push(attrArr[i].attrOptions)\r\n\t\t\t\t}\r\n\t\t\t\t// console.log(tmp)\r\n\t\t\t\tfunction cartesianProductOf() {\r\n\t\t\t\t return Array.prototype.reduce.call(arguments, function (a, b) {\r\n\t\t\t\t var ret = [];\r\n\t\t\t\t a.forEach(function (a) {\r\n\t\t\t\t b.forEach(function (b) {\r\n\t\t\t\t ret.push(a.concat([b]));\r\n\t\t\t\t });\r\n\t\t\t\t });\r\n\t\t\t\t return ret;\r\n\t\t\t\t }, [[]]);\r\n\t\t\t\t}\r\n\t\t\t\tlet allArr = cartesianProductOf(...tmp)\r\n\t\t\t\treturn allArr\r\n\t\t\t},\r\n\t\t\t// 批量设置价格库存\r\n\t\t\tchangePrice(e){\r\n\t\t\t\tconst price = e.detail.value\r\n\t\t\t\tthis.batchData.priceArr.forEach((item,i)=>{\r\n\t\t\t\t\titem.price = price\r\n\t\t\t\t})\r\n\t\t\t\tthis.attrs[0].price = price\r\n\t\t\t\tconsole.log(this.batchData.priceArr,'this.batchData.priceArr')\r\n\t\t\t},\r\n\t\t\tchangeStock(e){\r\n\t\t\t\tconst stock = e.detail.value\r\n\t\t\t\tthis.batchData.priceArr.forEach((item,i)=>{\r\n\t\t\t\t\titem.stock = stock\r\n\t\t\t\t})\r\n\t\t\t\tthis.attrs[0].stock = stock\r\n\t\t\t},\r\n\t\t\t//单规格\r\n\t\t\taddSku(){\r\n\t\t\t\tlet item = {\r\n\t\t\t\t\tpic: '', //\"规格图片 --可选\",\r\n\t\t\t\t\tprice: '', //\"价格 元\", \r\n\t\t\t\t\tot_orice: '', //\"市场价格 --可选\",\r\n\t\t\t\t\tstock: '', //\"库存\", \r\n\t\t\t\t\tweight: '', //\"重量 --可选\",\r\n\t\t\t\t\tvolume: '', //\"体积 --可选\"\r\n\t\t\t\t}\r\n\t\t\t\tthis.attrs.push(item)\r\n\t\t\t\tuni.pageScrollTo({\r\n\t\t\t\t\tscrollTop: 999999\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tdelSku(idx){\r\n\t\t\t\tthis.attrs.splice(idx,1)\r\n\t\t\t},\r\n\t\t\t//库存有限无限切换\r\n\t\t\tstockChange(e){\r\n\t\t\t\t// console.log(e)\r\n\t\t\t\tthis.infinite = !e.detail.value\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\tradioChange(e){\r\n\t\t\t\tthis.state = e.detail.value\r\n\t\t\t},\r\n\t\t\tsubmit(){\r\n\t\t\t\tconsole.log(this.batchData)\r\n\t\t\t\tvar arrtsArr = []\r\n\t\t\t\tif(this.batchData.priceArr && this.batchData.priceArr[0].price != ''){\r\n\t\t\t\t\tarrtsArr = this.batchData.priceArr\r\n\t\t\t\t} else{\r\n\t\t\t\t\tarrtsArr = this.attrs\r\n\t\t\t\t}\r\n\t\t\t\tlet form = {\r\n\t\t\t\t\tstore_name: this.store_name,\r\n\t\t\t\t\tunit_name: this.unit_name,\r\n\t\t\t\t\timage: this.slider_image[0], //主图\r\n\t\t\t\t\tslider_image: this.slider_image , // 轮播图\r\n\t\t\t\t\tdescription: this.description, //商品详情富文本\r\n\t\t\t\t\ttempId: 1, //运费方案\r\n\t\t\t\t\tattrs: arrtsArr,\r\n\t\t\t\t\tstate: this.state,\r\n\t\t\t\t\titems: this.items,\r\n\t\t\t\t\tspec_type: arrtsArr.length > 1 ? 1 : 0 //单规格,多规格\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(form)\r\n\t\t\t\tif(form.store_name == ''){\r\n\t\t\t\t\tthis.alertMessage('请填写商品名称')\r\n\t\t\t\t\treturn \r\n\t\t\t\t} else if(form.slider_image[0] == ''){\r\n\t\t\t\t\tthis.alertMessage('请至少上传一张商品图片')\r\n\t\t\t\t\treturn\r\n\t\t\t\t} else if(form.description == ''){\r\n\t\t\t\t\tthis.alertMessage('请填写商品详情')\r\n\t\t\t\t\treturn\r\n\t\t\t\t} else if(form.description == ''){\r\n\t\t\t\t\tthis.alertMessage('请填写商品详情')\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tform.attrs.forEach((item,index)=>{\r\n\t\t\t\t\tif(item.price == ''){\r\n\t\t\t\t\t\tthis.alertMessage('请商品规格价格')\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t} else if(item.stock == ''){\r\n\t\t\t\t\t\tthis.alertMessage('请商品规格库存')\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tif(this.id != ''){\r\n\t\t\t\t\tform.id = this.id\r\n\t\t\t\t\teditProduct(form).then((res)=>{\r\n\t\t\t\t\t\tif(res.success){\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: res.msg,\r\n\t\t\t\t\t\t\t\tduration: 1500\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tsetTimeout((res)=>{\r\n\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\turl: 'pages/user/goodsManage/index'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t},1500)\r\n\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: res.msg,\r\n\t\t\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t} else{\r\n\t\t\t\t\taddProduct(form).then((res)=>{\r\n\t\t\t\t\t\tif(res.success){\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: res.msg,\r\n\t\t\t\t\t\t\t\tduration: 1500\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tsetTimeout((res)=>{\r\n\t\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\t\turl: 'pages/user/goodsManage/index'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t},1500)\r\n\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: res.msg,\r\n\t\t\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconsole.log(form,'form')\r\n\t\t\t},\r\n\t\t\talertMessage(msg){\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: msg,\r\n\t\t\t\t\ticon: 'none'\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\n</script>\n\n<style lang=\"less\">\r\n\t.index-box{\r\n\t\twidth: 100%;\r\n\t\tmin-height: 100vh;\r\n\t\tbackground: #F5F6F7;\r\n\t\tpadding: 20rpx 40rpx 110rpx;\r\n\t\tposition: relative;\r\n\t\t.add-goodsimg-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: 24rpx;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\t.upload-box{\r\n\t\t\t\twidth: 140rpx;\r\n\t\t\t\theight: 140rpx;\r\n\t\t\t\tmargin-right: 20rpx;\r\n\t\t\t\t&:nth-last-child(1){\r\n\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t}\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 100%;\r\n\t\t\t\t\tborder-radius: 8rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.tips{\r\n\t\t\t\tcolor: #FF0707;\r\n\t\t\t\tfont-size: 20rpx;\r\n\t\t\t\tmargin-top: 16rpx;\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 18rpx;\r\n\t\t\t\t\theight: 18rpx;\r\n\t\t\t\t\tmargin-right: 8rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t.goodsInfo-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tmargin-top: 40rpx;\r\n\t\t\t.goodsInfo-item{\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 82rpx;\r\n\t\t\t\tpadding: 0 32rpx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\tborder-bottom: 2rpx solid #EEEEEE;\r\n\t\t\t\t&:nth-last-child(1){\r\n\t\t\t\t\tborder: none;\r\n\t\t\t\t}\r\n\t\t\t\tinput{\r\n\t\t\t\t\ttext-align: right;\r\n\t\t\t\t}\r\n\t\t\t\t.toEdit{\r\n\t\t\t\t\timage{\r\n\t\t\t\t\t\twidth: 24rpx;\r\n\t\t\t\t\t\theight: 24rpx;\r\n\t\t\t\t\t\tmargin-left: 6rpx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t.title2{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 76rpx;\r\n\t\t\tline-height: 76rpx;\r\n\t\t\tborder: 2rpx solid #B8B8B8;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\tmargin: 24rpx auto; \r\n\t\t}\r\n\t\t.add-sku-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tmargin-top: 24rpx;\r\n\t\t\timage{\r\n\t\t\t\twidth: 110rpx;\r\n\t\t\t\theight: 110rpx;\r\n\t\t\t}\r\n\t\t\t.sku-item{\r\n\t\t\t\tpadding: 32rpx 0;\r\n\t\t\t\tbackground: #fff;\r\n\t\t\t\tmargin-bottom: 12rpx;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\t.close-btn{\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t\tfont-size: 38rpx;\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tright: -16rpx;\r\n\t\t\t\t\ttop: -22rpx;\r\n\t\t\t\t\tborder-radius: 50%;\r\n\t\t\t\t\tline-height: 40rpx;\r\n\t\t\t\t\twidth: 46rpx;\r\n\t\t\t\t\theight: 46rpx;\r\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tbackground: #FF5E16;\n\t\t\t\t\tborder-radius: 50%;\r\n\t\t\t\t}\r\n\t\t\t\t.sku{\r\n\t\t\t\t\tpadding: 0 32rpx;\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tmin-height: 86rpx;\r\n\t\t\t\t\tborder-bottom: 2rpx solid #EEEEEE;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tinput{\r\n\t\t\t\t\ttext-align: right;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t.temp-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tpadding: 32rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\timage{\r\n\t\t\t\twidth: 24rpx;\r\n\t\t\t\theight: 24rpx;\r\n\t\t\t\tmargin-left: 6rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlabel{\r\n\t\t\tmargin-left: 16rpx;\r\n\t\t}\r\n\t\t.btn-box{\r\n\t\t\t.btn{\r\n\t\t\t\twidth: 230rpx;\r\n\t\t\t\theight: 80rpx;\r\n\t\t\t\tbackground: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 80rpx;\r\n\t\t\t\tfont-size: 38rpx;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tborder-radius: 40rpx;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tmargin: 32rpx auto;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.colR{\r\n\t\t\tcolor: #FF0000;\r\n\t\t}\r\n\t\t.set-title{\r\n\t\t\tfont-size: 32rpx;\r\n\t\t\tcolor: #343434;\r\n\t\t\tmargin: 34rpx 0 24rpx;\r\n\t\t}\r\n\t\t.setattr-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground: #fff;\r\n\t\t\t\r\n\t\t\t.attr-item{\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tpadding: 20rpx 50rpx 20rpx 32rpx;\r\n\t\t\t\tborder-bottom: 2rpx solid #eee;\r\n\t\t\t\tfont-size: 28rpx;\r\n\t\t\t\tposition: relative;\r\n\t\t\t\t.del-attr{\r\n\t\t\t\t\tfont-size: 40rpx;\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tright: 10rpx;\r\n\t\t\t\t\ttop: 20rpx;\r\n\t\t\t\t\twidth: 36rpx;\r\n\t\t\t\t\theight: 36rpx;\r\n\t\t\t\t\t// background: #FFA079;\r\n\t\t\t\t\tline-height: 32rpx;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tborder-radius: 50%;\r\n\t\t\t\t\tcolor: #FFA079;\r\n\t\t\t\t}\r\n\t\t\t\timage{\r\n\t\t\t\t\twidth: 24rpx;\r\n\t\t\t\t\theight: 24rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// 批量设置库存\r\n\t\t.batch-set-box{\r\n\t\t\twidth: 100%;\r\n\t\t\tbackground: #fff;\r\n\t\t\tpadding: 24rpx;\r\n\t\t\tcolor: #343434;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tmargin: 12rpx 0;\r\n\t\t\t.box-top{\r\n\t\t\t\tpadding: 0 0 12rpx;\r\n\t\t\t\tborder-bottom: 2rpx solid #EEEEEE;\r\n\t\t\t\tcolor: #ABABAB;\r\n\t\t\t\t.name{\r\n\t\t\t\t\twidth: 60%;\r\n\t\t\t\t}\r\n\t\t\t\t.w15{\r\n\t\t\t\t\twidth: 19%;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t.box-b{\r\n\t\t\t\tmargin-top: 6rpx;\r\n\t\t\t\t.name{\r\n\t\t\t\t\twidth: 60%;\r\n\t\t\t\t}\r\n\t\t\t\t.w15{\r\n\t\t\t\t\twidth: 19%;\r\n\t\t\t\t}\r\n\t\t\t\t.inp-box{\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\theight: 44rpx;\r\n\t\t\t\t\tborder-radius: 12rpx;\r\n\t\t\t\t\tbackground: #DCDCDC;\r\n\t\t\t\t\tinput{\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\theight: 100%;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//弹出层\r\n\t\t.mask-box{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tbackground: rgba(0,0,0,.7);\r\n\t\t\tposition: fixed;\r\n\t\t\ttop: 0;\r\n\t\t\tleft: 0;\r\n\t\t\tz-index: 99;\r\n\t\t\t.addattr-dialog{\r\n\t\t\t\twidth: 680rpx;\r\n\t\t\t\tmin-height: 590rpx;\r\n\t\t\t\tbackground: #FFFFFF;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\ttop: 50%;\r\n\t\t\t\tleft: 50%;\r\n\t\t\t\ttransform: translate(-50%,-50%);\r\n\t\t\t\tborder-radius: 40rpx;\r\n\t\t\t\tpadding: 80rpx 64rpx;\r\n\t\t\t\t.dialog-top{\r\n\t\t\t\t\tmargin-bottom: 26rpx;\r\n\t\t\t\t}\r\n\t\t\t\t.close{\r\n\t\t\t\t\tfont-size: 46rpx;\r\n\t\t\t\t}\r\n\t\t\t\t.a-name{\r\n\t\t\t\t\twidth: 560rpx;\r\n\t\t\t\t\theight: 104rpx;\r\n\t\t\t\t\tbackground: #F7F7F7;\r\n\t\t\t\t\tborder-radius: 12rpx;\r\n\t\t\t\t\tpadding: 30rpx;\r\n\t\t\t\t}\r\n\t\t\t\t.o-name-box{\r\n\t\t\t\t\tbackground: #f7f7f7;\r\n\t\t\t\t\tpadding: 36rpx 42rpx 0;\r\n\t\t\t\t\tmargin: 28rpx 0 0;\r\n\t\t\t\t\tborder-radius: 12rpx;\r\n\t\t\t\t\tfont-size: 26rpx;\r\n\t\t\t\t\tinput{\r\n\t\t\t\t\t\twidth: 80%;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t.o-item-box{\r\n\t\t\t\t\t\theight: 56rpx;\r\n\t\t\t\t\t\tpadding-bottom: 10rpx;\r\n\t\t\t\t\t\tmargin-bottom: 10rpx;\r\n\t\t\t\t\t\tborder-bottom: 2rpx solid #ececec;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t.add-option-btn{\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tpadding: 20rpx 0;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tcolor: #BFBFBF;\r\n\t\t\t\t\tbackground: #f7f7f7;\r\n\t\t\t\t\t// border-top: 2rpx solid #ececec;\r\n\t\t\t\t\tfont-size: 26rpx;\r\n\t\t\t\t}\r\n\t\t\t\t.s-btn{\r\n\t\t\t\t\twidth: 230rpx;\r\n\t\t\t\t\theight: 80rpx;\r\n\t\t\t\t\tbackground: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\r\n\t\t\t\t\tborder-radius: 40rpx;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tline-height: 80rpx;\r\n\t\t\t\t\tcolor: #fff;\r\n\t\t\t\t\tfont-size: 26rpx;\r\n\t\t\t\t\tmargin: 70rpx auto 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t.colB{\r\n\t\t\tcolor: #0932FF;\r\n\t\t}\r\n\t}\n</style>\n","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635767012341\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}