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
58 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?cee1","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?8c66","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?d2ef","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?3ae2","uni-app:///pages/index/index.vue","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?cc66","webpack:///G:/web/中龙小程序/zhonglmini/pages/index/index.vue?53fc"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","addtip","dragButton","uniNoticeBar","zqsSelect","data","bttext","tip","duration","banner","cardCur","typeList","pcdesc","productList","tjproductList","loadingText","miaosstyle","goodsList","text","backcolor","color","gg_zezhao","gg_model","importUserId","value","options","userInfo","methods","baseinfo","action","key","reinfo","btnClick","console","btnTouchstart","btnTouchend","cardSwiper","toSearch","uni","title","url","topcate","getApp","addcollection","userinfo","type","uid","id","redata","icon","toFavorite","getgoodlist","getdata","item","gettjgoodlist","getbanner","getnotice","getMore","content","showCancel","buttonText","success","getitem","getcpdesc","toGoods","toCategory","todetail","changemiaosstyle","sub","getcartlist","add","inputadd","inputchange","inputnum","inputchangeBz","isbz","inputchangeFudw","is","checkshownum","carid","carbz","carfudw","findarrbyid","findarrbyid_tj","findidfromstor","discard","getColor","base","init","getValue2","dataObj","onShow","onLoad","complete"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,cAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AACqL;AACrL,gBAAgB,0LAAU;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,aAAa,oMAEN;AACP,KAAK;AACL;AACA,aAAa,wLAEN;AACP,KAAK;AACL;AACA,aAAa,8LAEN;AACP,KAAK;AACL;AACA,aAAa,4NAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAA+qB,CAAgB,grBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eC8MnsB;EACAC;IACAC;IACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MAAA;MACAC;QACA;QACA;QACA;QACA;QACA;QACA;MACA;MACAC;MACAC;QACA;QACA;QACA;QACA;MACA;MACAC;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAC;kBACAC;gBACA;cAAA;gBAHAC;gBAIA;kBACA;gBACA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MACAC;IACA;IACAC;MACAD;IACA;IACAE;MACAF;IACA;IACA;IACAG;MACA;IACA;IACA;IACAC;MACAC;QACAC;MACA;MACAD;QACAE;MACA;MACAF;IACA;IACA;IACAG;MAEA;QACA;QACA;QACA;QACA;QACAC;QACAA;QACAA;QACAJ;UACAE;QACA;MACA;IACA;IACAG;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAEA;kBACAC;gBACA;kBACAA;gBACA;gBAAA,KAEAD;kBAAA;kBAAA;gBAAA;gBAAA;gBAAA,OACA;kBACAf;kBACAgB;kBACAC;kBACAC;gBACA;cAAA;gBALAC;gBAMAV;kBACAC;kBACAU;gBACA;gBACA;kBACA;oBACA;kBACA;oBACA;kBACA;gBACA;gBAAA;gBAAA;cAAA;gBAEAX;kBACAE;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;IACA;IACAU;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAP;gBAAA;gBAAA,OACA;kBACAf;kBACAgB;kBACAC;gBACA;cAAA;gBAJAM;gBAKA;kBACAC;kBACAA;kBACAA;kBACA;gBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAV;gBAAA;gBAAA,OACA;kBACAf;kBACAgB;kBACAC;gBACA;cAAA;gBAJAM;gBAKA;kBACAC;kBACAA;kBACAA;kBACA;gBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAE;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACA1B;gBACA;cAAA;gBAFAuB;gBAGA;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAI;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACA3B;gBACA;cAAA;gBAFAuB;gBAGA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IAEA;IACAK;MACAnB;QACAC;QACAmB;QACAC;QACAC;QACAC;UACA,kBAEA;QACA;MACA;IACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAjC;gBACA;cAAA;gBAFAuB;gBAGA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAW;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAlC;gBACA;cAAA;gBAFAuB;gBAGA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA;IACAY;MACA1B;QACAE;MACA;IACA;IACA;IACAyB;MACAvB;MACAA;MACAJ;QACAE;MACA;IACA;IACA;IACA0B;MACA5B;QACAE;MACA;IACA;IACA;IACA2B;MACA;MACAd;MAEA;QACAA;MACA;QACAA;MACA;MACA;IACA;IACA;IACAe;MACA;MACA;MACA;MACA;QACA;UAAA;UACAC;UACA;YACA;YACAA;YACA/B;YACA;UACA;YACA+B;YACA/B;YACA;UACA;QAEA;MACA;;MAEA;IACA;IACA;IACAgC;MACA;MACA;MACA;QACA;QACA;UACA;QACA;UACA;QACA;QACA;QACA;UACAjB;QACA;QACAf;MAEA;QACA;QACA;QACA;UACA;UACA;UACA;YACA+B;UACA;YACAA;UACA;UACA;YACA;cACAA;YACA;UACA;UACA/B;QAEA;UACA;UACA;YACA;cAAA;cACA+B;cACA;gBACA/B;kBACAC;kBACAU;gBACA;gBACA;cACA;gBACAoB;gBACA/B;gBACA;cACA;YACA;UACA;QACA;MACA;;MACA;IACA;IACA;IACAiC;MACA;MACA;MACA;QACA;QACA;UACA;QACA;UACA;QACA;QACA;QACA;UACAlB;UACAA;QACA;QACAf;MAEA;QACA;QACA;QACA;UACA;UACA;UACA;YACA+B;UACA;YACAA;UACA;UACA;YACA;cACAA;cACAA;YACA;UACA;UACA/B;QAEA;UACA;UACA;YACA;cAAA;cACA+B;cACA;gBACA/B;kBACAC;kBACAU;gBACA;gBACA;cACA;gBACAoB;gBACA/B;gBACA;cACA;YACA;UACA;QACA;MACA;;MACA;IACA;IACAkC;MACAC;MACA;MACA;QACA;UACAnC;YACAC;YACAU;UACA;UACA;QACA;QACA;MACA;QACA;UACA;YAAA;YACAoB;YACA/B;YACA;UACA;QACA;;QACA;MACA;IACA;IACAoC;MACAD;MACA;MACA;MACA;QACA;UAAA;UACAJ;UACA/B;UACAqC;UACA;QACA;MACA;;MACA;MACA;QACArC;UAAAC;UAAAU;QAAA;QACA;MACA;IACA;IACA2B;MACAH;MACA;MACA;MACA;QACA;UAAA;UACAJ;UACA/B;UACAuC;UACA;QACA;MACA;;MACA;MACA;QACAvC;UAAAC;UAAAU;QAAA;QACA;MACA;IACA;IACA;IACA6B;MACA;MACA;MAAA;MAAA;MACA;QACAC;QACAC;QACAC;MACA;MACA;QACA;UACA;UACA;UACA;QACA;UACA;UACA;UACA;QACA;MACA;MACA;QACA;UACA;UACA;UACA;QACA;UACA;UACA;UACA;QACA;MACA;IACA;IAEA;IACAC;MACA;MACA;QACA;UACA;UACA;UACA;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;UACA;UACA;UACA;QACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA;UACA;UACA;QACA;MACA;IACA;IACAC;MACA;IAAA,CACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBACAzD;gBACA;cAAA;gBAFAE;gBAGA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAwD;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACA;kBAAA1D;kBAAAC;gBAAA;cAAA;gBAAAF;gBACAU;kBACAC;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAiD;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA,qCACA;QACA;MACA;QACA;QACA,iBACA;UACA;UACA;UACAC;UACApD;UACA;QACA;QACA;MACA;IAEA;EACA;EACAqD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,uBACA;MACA;MACA;MACA;IACA;EACA;EACAC;IACA;IACAtD;MACAuD,+BACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AChxBA;AAAA;AAAA;AAAA;AAA0xC,CAAgB,mtCAAG,EAAC,C;;;;;;;;;;;ACA9yC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=57280228&\"\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=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\软件\\\\HBuilder X\\\\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/index/index.vue\"\nexport default component.exports","export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=57280228&\"","var components\ntry {\n components = {\n zqsSelect: function () {\n return import(\n /* webpackChunkName: \"components/zqs-select/zqs-select\" */ \"@/components/zqs-select/zqs-select.vue\"\n )\n },\n cjlIcon: function () {\n return import(\n /* webpackChunkName: \"components/cjl-icon/cjl-icon\" */ \"@/components/cjl-icon/cjl-icon.vue\"\n )\n },\n hypImage: function () {\n return import(\n /* webpackChunkName: \"components/hyp-image/hyp-image\" */ \"@/components/hyp-image/hyp-image.vue\"\n )\n },\n uniNoticeBar: function () {\n return import(\n /* webpackChunkName: \"components/uni-notice-bar/uni-notice-bar\" */ \"@/components/uni-notice-bar/uni-notice-bar.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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 \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\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>\r\n\t\t<!-- 提示添加小程序 -->\r\n\t\t<addtip :tip=\"tip\" :duration=\"duration\" />\r\n\t\t<!-- 搜索框 -->\r\n\t\t<!-- 拖拽悬浮球 -->\r\n\t\t<view class=\"kf\">\r\n\t\t\t<button class=\"kfbt\" open-type=\"contact\">\r\n\t\t\t\t<image src=\"http://m2.chinause.cn/mini/baixmini/img/kefubt.png\" style=\"width: 100upx;height: 100upx;\" /></button>\r\n\t\t</view>\r\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"main-box\" v-if=\"userInfo.khnum>1\">\r\n\t\t\t <zqs-select\r\n\t\t\t :multiple=\"false\"\r\n\t\t\t :list=\"options\"\r\n\t\t\t :showSearch=\"false\"\r\n\t\t\t label-key=\"label\"\r\n\t\t\t value-key=\"value\"\r\n\t\t\t title=\"选择客户\"\r\n\t\t\t clearable\r\n\t\t\t v-model=\"importUserId\"\r\n\t\t\t\t@input=\"getValue2($event)\"\r\n\t\t\t ></zqs-select>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"input-box\" @click=\"toSearch()\">\r\n\t\t\t\t<input placeholder=\"请输入商品名称\" placeholder-style=\"color:#c0c0c0;\" disabled=\"disabled\" />\r\n\t\t\t\t<cjl-icon>&#xe60b;</cjl-icon>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 轮播图方式一 -->\r\n\t\t<swiper class=\"card-swiper\" :indicator-dots=\"false\" circular autoplay interval=\"3000\" duration=\"500\" previous-margin=\"30px\"\r\n\t\t next-margin=\"30px\" @change=\"cardSwiper\">\r\n\t\t\t<swiper-item v-for=\"(item,index) in banner\" :key=\"index\" :class=\"cardCur==index?'cur':''\">\r\n\t\t\t\t<view class=\"swiper-item\" @click=\"topcate(item.url)\">\r\n\t\t\t\t\t<hyp-image cname=\"image\" :realSrc=\"item.images\"></hyp-image>\r\n\t\t\t\t</view>\r\n\t\t\t</swiper-item>\r\n\t\t</swiper>\r\n\t\t<!-- 轮播图方式二 -->\r\n\t\t<!-- <swiper class=\"swiper\" :indicator-dots=\"true\" circular autoplay interval=\"3000\" duration=\"500\">\r\n\t\t\t<swiper-item @tap=\"onBanner\" v-for=\"(item,index) in banner\" :key=\"index\">\r\n\t\t\t\t<view class=\"swiper-item\">\r\n\t\t\t\t\t<hyp-image cname=\"image\" :realSrc=\"item.images\"></hyp-image>\r\n\t\t\t\t</view>\r\n\t\t\t</swiper-item>\r\n\t\t</swiper> -->\r\n\t\t<!-- 分类列表 -->\r\n\t\t<view class=\"type\">\r\n\t\t\t<view class=\"item\" v-for=\"item in typeList\" :key=\"item.id\" @tap=\"toCategory(item.id)\">\r\n\t\t\t\t<hyp-image cname=\"image\" :realSrc=\"item.images\"></hyp-image>\r\n\t\t\t\t<text class=\"fltext\">{{item.fenlmc}}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 公告区 -->\r\n\t\t<view>\r\n\t\t\t<uni-notice-bar @click=\"getMore\" show-icon=\"true\" speed=\"12\" scrollable=\"true\" single=\"true\" :color=\"color\"\r\n\t\t\t :backgroundColor=\"backcolor\" :text=\"text\">\r\n\t\t\t</uni-notice-bar>\r\n\t\t</view>\r\n\t\t<!-- 广告图\r\n\t\t<view class=\"ad-1\">\r\n\t\t\t<image src=\"http://m2.chinause.cn/mini/baixmini/img/adv.jpg\" mode=\"scaleToFill\"></image>\r\n\t\t</view>-->\r\n\r\n\t\t<!-- 推荐商品 -->\r\n\t\t<view class=\"tjgoodlist\">\r\n\t\t\t<view class=\"title\">\r\n\t\t\t\t<image src=\"../../static/img/loveicon.png\"></image>\r\n\t\t\t\t<text>推荐商品</text>\r\n\t\t\t\t<image src=\"../../static/img/loveicon.png\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"tj_list\" v-for=\"(product,index) in tjproductList\" :key=\"product.id\" @click=\"toGoods(product)\">\r\n\r\n\t\t\t\t<view class=\"tjleft\">\r\n\t\t\t\t\t<image :src=\"product.img\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"tjright\">\r\n\t\t\t\t\t<view style=\"margin-bottom: 20upx;\">{{ product.mc }}&nbsp;{{product.gg}}{{product.dw}}</view>\r\n\t\t\t\t\t<view :class=\"product.miaosstyle\" @tap.stop=\"changemiaosstyle(index)\">\r\n\t\t\t\t\t\t{{product.miaos}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t <view>\r\n\t\t\t\t\t\t<text v-if=\"product.price!=''\">¥{{ product.price }}{{product.dw}}</text>\r\n\t\t\t\t\t\t<!--<text style=\"margin: 0 18upx;\">库存{{ product.kcnum }}</text>-->\r\n\t\t\t\t\t</view> \r\n\t\t\t\t\t<!-- <view>\r\n\t\t\t\t\t\t<text class=\"sdtext\">{{ product.sdtext }}</text>\r\n\t\t\t\t\t\t<text class=\"sellnum\">售量&nbsp;{{ product.sellnum }}</text>\r\n\t\t\t\t\t</view> -->\r\n\t\t\t\t\t<view style=\"padding: 0upx 8upx; color: grey; display: flex;align-items: center;\" @tap.stop v-if=\"product.inputnum\">\r\n\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863;\" type=\"text\" :value=\"product.bz\" @input=\"inputchangeBz($event,product.bz,product.id,product.kcnum,2,index)\" placeholder=\"输入备注\">\r\n\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863;\" type=\"text\" :value=\"product.fudw\" @input=\"inputchangeFudw($event,product.fudw,product.id,product.kcnum,2,index)\" placeholder=\"输入副单位\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"tjroot\">\r\n\t\t\t\t\t\t<view class=\"p-b-btn\" :class=\"{active: product.iscollect}\" @click.stop=\"toFavorite(product.id,index,0)\">\r\n\t\t\t\t\t\t\t<text class=\"yticon icon-shoucang\"></text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<!-- <view class=\"nosell\" v-if=\"product.kcnum==0\"><text>已售空</text></view> -->\r\n\t\t\t\t\t\t<view class=\"number\" v-if=\"product.kcnum\">\r\n\t\t\t\t\t\t\t<view class=\"sub\" @tap.stop=\"sub(product.id)\" >\r\n\t\t\t\t\t\t\t\t<view class=\"jian\">-</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"input\" @tap.stop=\"discard\" >\r\n\t\t\t\t\t\t\t\t<input type=\"digit\" v-model=\"product.inputnum==0?'':product.inputnum\" @input=\"inputchange($event,product.inputnum,product.id,product.kcnum,0)\" />\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"add\" @tap.stop=\"add(product.id,0)\">\r\n\t\t\t\t\t\t\t\t<view class=\"jia\">\r\n\t\t\t\t\t\t\t\t\t<image src=\"../../static/img/addicon.png\"></image>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</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=\"goods-list\" v-if=\"productList!=''\">\r\n\t\t\t<view class=\"title\">\r\n\t\t\t\t<image src=\"../../static/img/loveicon.png\"></image>\r\n\t\t\t\t<text>猜你喜欢</text>\r\n\t\t\t\t<image src=\"../../static/img/loveicon.png\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"product-list\">\r\n\t\t\t\t<view class=\"product\" v-for=\"(product,index) in productList\" :key=\"product.id\" @click=\"toGoods(product)\">\r\n\t\t\t\t\t<image :src=\"product.img\"></image>\r\n\t\t\t\t\t<view class=\"name\">{{ product.mc }}&nbsp;{{product.gg}}{{product.dw}}</view>\r\n\t\t\t\t\t<view :class=\"product.miaosstyle\" @tap.stop=\"changemiaosstyle(index)\">\r\n\t\t\t\t\t\t{{product.miaos}}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- <view style=\"margin-left: 15upx;\">\r\n\t\t\t\t\t\t<text class=\"sdtext\">{{ product.sdtext }}</text>\r\n\t\t\t\t\t\t<text class=\"sellnum\">售量&nbsp;{{ product.sellnum }}</text>\r\n\t\t\t\t\t</view>-->\r\n\t\t\t\t\t<view class=\"info\">\r\n\t\t\t\t\t\t<view class=\"price\" v-if=\"product.price!=''\">¥{{ product.price }}{{product.dw}}</view>\r\n\t\t\t\t\t\t<!--<view class=\"slogan\">库存&nbsp;{{ product.kcnum }}</view>-->\r\n\t\t\t\t\t</view> \r\n\t\t\t\t\t<view style=\"padding: 0upx 8upx;color: grey;\" @tap.stop v-if=\"product.inputnum\">\r\n\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863;\" type=\"text\" :value=\"product.bz\" @input=\"inputchangeBz($event,product.bz,product.id,product.kcnum,2,index)\" placeholder=\"输入备注\">\r\n\t\t\t\t\t\t<input style=\"font-size: 28upx; color: #41A863;\" type=\"text\" :value=\"product.fudw\" @input=\"inputchangeFudw($event,product.fudw,product.id,product.kcnum,2,index)\" placeholder=\"输入副单位\">\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- <view class=\"nosell\" v-if=\"product.kcnum==0\"><text>已售空</text></view> -->\r\n\t\t\t\t\t<view class=\"number\" v-if=\"product.kcnum\">\r\n\t\t\t\t\t\t<view class=\"p-b-btn\" :class=\"{active: product.iscollect}\" @click.stop=\"toFavorite(product.id,index,1)\">\r\n\t\t\t\t\t\t\t<text class=\"yticon icon-shoucang\" style=\"margin-right: 15upx;\"></text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"sub\" @tap.stop=\"sub(product.id)\" >\r\n\t\t\t\t\t\t\t<view class=\"jian\">-</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"input\" @tap.stop=\"discard\" >\r\n\t\t\t\t\t\t\t<input type=\"digit\" v-model=\"product.inputnum==0?'':product.inputnum\" @input=\"inputchange($event,product.inputnum,product.id,product.kcnum,1)\" />\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"add\" @tap.stop=\"add(product.id,1)\">\r\n\t\t\t\t\t\t\t<view class=\"jia\">\r\n\t\t\t\t\t\t\t\t<image src=\"../../static/img/addicon.png\"></image>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\r\n\t\t</view>\r\n\t\t<!-- 介绍 -->\r\n\t\t<!-- <view class=\"task-title\">\r\n\t\t\t<view class=\"top\">\r\n\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t<view></view>\r\n\t\t\t\t\t<text>产品&业务介绍</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t<text>更多</text>\r\n\t\t\t\t\t<hyp-icon color=\"#B0B8C7\">&#xe603;</hyp-icon>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view> -->\r\n\t\t<!-- <view class=\"task-list\">\r\n\t\t\t<view class=\"item\" v-for=\"(item,index) in pcdesc\" :key=\"item.id\" @click=\"todetail(item.id)\">\r\n\t\t\t\t<view class=\"header\">\r\n\t\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t\t<hyp-image cname=\"avatar\" :realSrc=\"'../../static/img/desc_icon.png'\"></hyp-image>\r\n\t\t\t\t\t\t<text>{{item.type}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t\t<view class=\"label\">售 23</view>\r\n\t\t\t\t\t\t<view class=\"label\">¥200</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"body\">\r\n\t\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t\t<view class=\"title\">{{item.title}}</view>\r\n\t\t\t\t\t\t<view class=\"desc\">{{item.contents}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"right\" v-if=\"item.img\">\r\n\t\t\t\t\t\t<image :src=\"item.img\" style=\"border-radius: 15upx;\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view> -->\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport addtip from '@/components/struggler-uniapp-add-tip/struggler-uniapp-add-tip.vue';\r\n\timport dragButton from \"@/components/drag-button/drag-button.vue\";\r\n\timport uniNoticeBar from \"@/components/uni-notice-bar/uni-notice-bar.vue\"\r\n\timport zqsSelect from '@/components/zqs-select/zqs-select.vue'\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\taddtip,\r\n\t\t\tdragButton,\r\n\t\t\tuniNoticeBar,\r\n\t\t\tzqsSelect\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tbttext: '客服',\r\n\t\t\t\ttip: \"点击「添加小程序」,下次访问更便捷\",\r\n\t\t\t\tduration: 5, //提示添加小程序显示时间\r\n\t\t\t\tbanner: [{\r\n\t\t\t\t\t\"id\": 121,\r\n\t\t\t\t\t\"title\": \"母亲节\",\r\n\t\t\t\t\t\"url\": \"\\/pages\\/course\\/activity?id=101&_from=share_prod_4\",\r\n\t\t\t\t\t\"images\": \"http:\\/\\/statictest.pipacode.cn\\/a1a7a201905101726438109.gif\",\r\n\t\t\t\t\t\"up_time\": \"2019-12-14 00:00:00\",\r\n\t\t\t\t\t\"down_time\": \"\"\r\n\t\t\t\t}],\r\n\t\t\t\tcardCur: 0,\r\n\t\t\t\ttypeList: [{\r\n\t\t\t\t\t\"id\": 3,\r\n\t\t\t\t\t\"name\": \"粮油类\",\r\n\t\t\t\t\t\"sort\": 2,\r\n\t\t\t\t\t\"icon\": \"http://m2.chinause.cn:8888/8img/mini/liangyou.png\"\r\n\t\t\t\t}],\r\n\t\t\t\tpcdesc: [],\r\n\t\t\t\t//猜你喜欢列表\r\n\t\t\t\tproductList: [],\r\n\t\t\t\ttjproductList: [],\r\n\t\t\t\tloadingText: '正在加载...',\r\n\t\t\t\tmiaosstyle: 'miaos',\r\n\t\t\t\tgoodsList: [], //购物车商品\r\n\t\t\t\ttext: '欢迎进入中龙小程序商城',\r\n\t\t\t\tbackcolor: '#E8E8E8',\r\n\t\t\t\tcolor: '#F23E05',\r\n\t\t\t\tgg_zezhao: 'none',\r\n\t\t\t\tgg_model: 'none',\r\n\t\t\t\timportUserId:[],\r\n\t\t\t\tvalue:'',\r\n\t\t\t\toptions:[],\r\n\t\t\t\tuserInfo:[]\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tasync baseinfo(key) {\r\n\t\t\t\tlet reinfo = await this.$api.baseinfo({\r\n\t\t\t\t\taction: 'baseinfo',\r\n\t\t\t\t\tkey: key\r\n\t\t\t\t});\r\n\t\t\t\tif (key == 'gscolor') {\r\n\t\t\t\t\tthis.color = reinfo.data.info\r\n\t\t\t\t} else if (key == 'gsbgcolor') {\r\n\t\t\t\t\tthis.backcolor = reinfo.data.info\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//拖拽悬浮球相关事件开始\r\n\t\t\tbtnClick() {\r\n\t\t\t\tconsole.log('btnClick');\r\n\t\t\t},\r\n\t\t\tbtnTouchstart() {\r\n\t\t\t\tconsole.log('btnTouchstart');\r\n\t\t\t},\r\n\t\t\tbtnTouchend() {\r\n\t\t\t\tconsole.log('btnTouchend');\r\n\t\t\t},\r\n\t\t\t//拖拽悬浮球相关事件结束\r\n\t\t\tcardSwiper(e) {\r\n\t\t\t\tthis.cardCur = e.detail.current\r\n\t\t\t},\r\n\t\t\t//搜索跳转\r\n\t\t\ttoSearch() {\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: '加载中...'\r\n\t\t\t\t})\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: `/pages/search/search`\r\n\t\t\t\t})\r\n\t\t\t\tuni.hideLoading()\r\n\t\t\t},\r\n\t\t\t//到分类\r\n\t\t\ttopcate(url) {\r\n\t\t\t\t\r\n\t\t\t\tif (url != '#' && url != undefined) {\r\n\t\t\t\t\tlet tourl = url.split('?');\r\n\t\t\t\t\tlet ids = tourl[1].split('&');\r\n\t\t\t\t\tlet dflid = ids[0];\r\n\t\t\t\t\tlet xflid = ids[1];\r\n\t\t\t\t\tgetApp().globalData.dflid = dflid;\r\n\t\t\t\t\tgetApp().globalData.xflid = xflid;\r\n\t\t\t\t\tgetApp().globalData.tid = 1;\r\n\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\turl: tourl[0]\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync addcollection(id, index, dotype) {\r\n\t\t\t\tlet userinfo = uni.getStorageSync('userinfo');\r\n\t\t\t\tlet type;\r\n\t\t\t\tif (dotype == 0) {\r\n\t\t\t\t\ttype = !this.tjproductList[index].iscollect;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttype = !this.productList[index].iscollect;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (userinfo) {\r\n\t\t\t\t\tlet redata = await this.$api.addcollection({\r\n\t\t\t\t\t\taction: 'addcollection',\r\n\t\t\t\t\t\ttype: type,\r\n\t\t\t\t\t\tuid: userinfo.uid,\r\n\t\t\t\t\t\tid: id\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: redata.msg,\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t\tif (redata.code == 1) {\r\n\t\t\t\t\t\tif (dotype == 0) {\r\n\t\t\t\t\t\t\tthis.tjproductList[index].iscollect = !this.tjproductList[index].iscollect;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.productList[index].iscollect = !this.productList[index].iscollect;\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\tuni.navigateTo({\r\n\t\t\t\t\t\turl: '/pages/user/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//收藏\r\n\t\t\ttoFavorite(id, index, type) {\r\n\t\t\t\tthis.addcollection(id, index, type);\r\n\t\t\t},\r\n\t\t\t//猜你喜欢商品\r\n\t\t\tasync getgoodlist() {\r\n\t\t\t\tlet userinfo = uni.getStorageSync('userinfo');\r\n\t\t\t\tlet getdata = await this.$api.getgoodlist({\r\n\t\t\t\t\taction: 'goodlist2',\r\n\t\t\t\t\ttype: 1,\r\n\t\t\t\t\tuid: userinfo.uid\r\n\t\t\t\t});\r\n\t\t\t\tthis.productList = getdata.data.map((item, index) => {\r\n\t\t\t\t\titem.checked = false\r\n\t\t\t\t\titem.shownum = 0\r\n\t\t\t\t\titem.miaosstyle = 'miaos'\r\n\t\t\t\t\treturn item\r\n\t\t\t\t});\r\n\t\t\t\tthis.checkshownum();\r\n\t\t\t},\r\n\t\t\t//获取推荐商品\r\n\t\t\tasync gettjgoodlist() {\r\n\t\t\t\tlet userinfo = uni.getStorageSync('userinfo');\r\n\t\t\t\tlet getdata = await this.$api.getgoodlist({\r\n\t\t\t\t\taction: 'goodlist2',\r\n\t\t\t\t\ttype: 2,\r\n\t\t\t\t\tuid: userinfo.uid\r\n\t\t\t\t});\r\n\t\t\t\tthis.tjproductList = getdata.data.map((item, index) => {\r\n\t\t\t\t\titem.checked = false\r\n\t\t\t\t\titem.shownum = 0\r\n\t\t\t\t\titem.miaosstyle = 'miaos'\r\n\t\t\t\t\treturn item\r\n\t\t\t\t});\r\n\t\t\t\tthis.checkshownum();\r\n\t\t\t},\r\n\t\t\t//轮播图\r\n\t\t\tasync getbanner() {\r\n\t\t\t\tlet getdata = await this.$api.getbanner({\r\n\t\t\t\t\taction: 'banner'\r\n\t\t\t\t});\r\n\t\t\t\tif(getdata.code!=0){\r\n\t\t\t\t\tthis.banner = getdata.data;\t\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//公告\r\n\t\t\tasync getnotice() {\r\n\t\t\t\tlet getdata = await this.$api.notice({\r\n\t\t\t\t\taction: 'notice'\r\n\t\t\t\t});\r\n\t\t\t\tthis.text = getdata.data[0].info;\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t//点击公告\r\n\t\t\tgetMore(e) {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '',\r\n\t\t\t\t\tcontent: this.text,\r\n\t\t\t\t\tshowCancel: false,\r\n\t\t\t\t\tbuttonText: '确定',\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\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},\r\n\t\t\t//获取分类导航\r\n\t\t\tasync getitem() {\r\n\t\t\t\tlet getdata = await this.$api.getitem({\r\n\t\t\t\t\taction: 'item'\r\n\t\t\t\t});\r\n\t\t\t\tthis.typeList = getdata.data;\r\n\t\t\t},\r\n\t\t\t//获取产品介绍列表\r\n\t\t\tasync getcpdesc() {\r\n\t\t\t\tlet getdata = await this.$api.getcpdesc({\r\n\t\t\t\t\taction: 'cpdesc'\r\n\t\t\t\t});\r\n\t\t\t\tthis.pcdesc = getdata.data;\r\n\t\t\t},\r\n\t\t\t//跳详情页\r\n\t\t\ttoGoods(good) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '../product/detail?gid=' + good.id + \"&price=\" + good.price\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//跳转到产品,改跳分类\r\n\t\t\ttoCategory(e) {\r\n\t\t\t\tgetApp().globalData.dflid = e;\r\n\t\t\t\tgetApp().globalData.xflid = 0;\r\n\t\t\t\tuni.switchTab({\r\n\t\t\t\t\turl: '/pages/category/category'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//文章详细\r\n\t\t\ttodetail(e) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: `/pages/advdetail/advdetail?id=` + e\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//点击改变描述显示\r\n\t\t\tchangemiaosstyle(index) {\r\n\t\t\t\tlet item = this.productList[index]\r\n\t\t\t\titem.checked = !item.checked\r\n\r\n\t\t\t\tif (item.miaosstyle == 'miaos') {\r\n\t\t\t\t\titem.miaosstyle = 'miaosshow';\r\n\t\t\t\t} else {\r\n\t\t\t\t\titem.miaosstyle = 'miaos';\r\n\t\t\t\t}\r\n\t\t\t\tthis.$set(this.productList, index, item)\r\n\t\t\t},\r\n\t\t\t//减操作\r\n\t\t\tsub(id) {\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\tlet isexit = this.findidfromstor(id);\r\n\t\t\t\tlet delid = 0;\r\n\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\tif (isexit.id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\tgetcartlist[i].num--; //数量减\r\n\t\t\t\t\t\tif (getcartlist[i].num <= 0) {\r\n\t\t\t\t\t\t\t//删除当前商品缓存\r\n\t\t\t\t\t\t\tgetcartlist.splice(i, 1);\r\n\t\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tgetcartlist[i].total = parseFloat((getcartlist[i].num * getcartlist[i].price) * 100) / 100\r\n\t\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.checkshownum();\r\n\t\t\t},\r\n\t\t\t// 增加数量,type 0-推荐商品,1-猜你喜欢商品\r\n\t\t\tadd(id, type) {\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\t//首次加购物车\r\n\t\t\t\tif (getcartlist == '') {\r\n\t\t\t\t\tthis.goodsList = [];\r\n\t\t\t\t\tif (type == 1) {\r\n\t\t\t\t\t\tthis.goodsList.push(this.findarrbyid(id));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.goodsList.push(this.findarrbyid_tj(id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//计算每个商品的总价格\r\n\t\t\t\t\tthis.goodsList.map((item, index) => {\r\n\t\t\t\t\t\titem.total = parseFloat((item.price * item.num) * 100) / 100\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.setStorageSync('cartlist', this.goodsList);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//已有商品在购物车\r\n\t\t\t\t\tlet isexit = this.findidfromstor(id);\r\n\t\t\t\t\tif (!isexit) {\r\n\t\t\t\t\t\t//购物车中还没当前商品\r\n\t\t\t\t\t\t//不存在\r\n\t\t\t\t\t\tif (type == 1) {\r\n\t\t\t\t\t\t\tgetcartlist.push(this.findarrbyid(id));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tgetcartlist.push(this.findarrbyid_tj(id));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\t\t\tif (id == getcartlist[i].id) {\r\n\t\t\t\t\t\t\t\tgetcartlist[i].total = parseFloat((getcartlist[i].num * getcartlist[i].price) * 100) / 100\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//存在\r\n\t\t\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\t\t\tif (isexit.id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\t\t\tgetcartlist[i].num++; //数量自增\r\n\t\t\t\t\t\t\t\tif (getcartlist[i].num > getcartlist[i].kcnum) {\r\n\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\ttitle: '库存不足!',\r\n\t\t\t\t\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tgetcartlist[i].total = parseFloat((getcartlist[i].num * getcartlist[i].price) * 100) / 100\r\n\t\t\t\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t\t\t}\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\tthis.checkshownum();\r\n\t\t\t},\r\n\t\t\t// input框直接加入购物车\r\n\t\t\tinputadd(id, type,inputnum) {\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\t//首次加购物车\r\n\t\t\t\tif (getcartlist == '') {\r\n\t\t\t\t\tthis.goodsList = [];\r\n\t\t\t\t\tif (type == 1) {\r\n\t\t\t\t\t\tthis.goodsList.push(this.findarrbyid(id));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.goodsList.push(this.findarrbyid_tj(id));\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//计算每个商品的总价格\r\n\t\t\t\t\tthis.goodsList.map((item, index) => {\r\n\t\t\t\t\t\titem.total = parseFloat((item.price * inputnum) * 100) / 100;\r\n\t\t\t\t\t\titem.num = parseFloat(inputnum);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tuni.setStorageSync('cartlist', this.goodsList);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//已有商品在购物车\r\n\t\t\t\t\tlet isexit = this.findidfromstor(id);\r\n\t\t\t\t\tif (!isexit) {\r\n\t\t\t\t\t\t//购物车中还没当前商品\r\n\t\t\t\t\t\t//不存在\r\n\t\t\t\t\t\tif (type == 1) {\r\n\t\t\t\t\t\t\tgetcartlist.push(this.findarrbyid(id));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tgetcartlist.push(this.findarrbyid_tj(id));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\t\t\tif (id == getcartlist[i].id) {\r\n\t\t\t\t\t\t\t\tgetcartlist[i].total = parseFloat((inputnum * getcartlist[i].price) * 100) / 100;\r\n\t\t\t\t\t\t\t\tgetcartlist[i].num = parseFloat(inputnum);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//存在\r\n\t\t\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\t\t\tif (isexit.id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\t\t\tgetcartlist[i].num=inputnum; //数量自增\r\n\t\t\t\t\t\t\t\tif (getcartlist[i].num > getcartlist[i].kcnum) {\r\n\t\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t\t\ttitle: '库存不足!',\r\n\t\t\t\t\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tgetcartlist[i].total = parseFloat((getcartlist[i].num * getcartlist[i].price) * 100) / 100\r\n\t\t\t\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t\t\t}\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\tthis.checkshownum();\r\n\t\t\t},\r\n\t\t\tinputchange(inputsl,inputnum, id, kcnum,type) {\r\n\t\t\t\tinputnum=parseFloat(inputsl.detail.value);\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\tif (inputnum > 0) {\r\n\t\t\t\t\tif (inputnum > kcnum) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '库存不足',\r\n\t\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.inputadd(id,type,inputnum);//input框直接添加购物车\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\t\tif (id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\t\tgetcartlist[i].num = 0;\r\n\t\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.checkshownum();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tinputchangeBz(inputsl,inputnum, id, kcnum,type,index) {\r\n\t\t\t\tinputnum=inputsl.detail.value;\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\tlet isbz=0;\r\n\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\tif (id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\tgetcartlist[i].bz = inputnum;\r\n\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\tisbz=1;\r\n\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.checkshownum();\r\n\t\t\t\tif(isbz==0){\r\n\t\t\t\t\tuni.showToast({title:'请您输入数量后再填备注',icon:'none'});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tinputchangeFudw(inputsl,inputnum, id, kcnum,type,index) {\r\n\t\t\t\tinputnum=inputsl.detail.value;\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\tlet is=0;\r\n\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\tif (id == getcartlist[i].id) { //找到商品一样的商品\r\n\t\t\t\t\t\tgetcartlist[i].fudw = inputnum;\r\n\t\t\t\t\t\tuni.setStorageSync('cartlist', getcartlist)\r\n\t\t\t\t\t\tis=1;\r\n\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.checkshownum();\r\n\t\t\t\tif(is==0){\r\n\t\t\t\t\tuni.showToast({title:'请您输入数量后再填副单位',icon:'none'});\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//初始化购物车数据\r\n\t\t\tcheckshownum() {\r\n\t\t\t\tlet getcartlist = uni.getStorageSync('cartlist');\r\n\t\t\t\tlet carid = [];let carbz = [];let carfudw = [];\r\n\t\t\t\tfor (let i = 0; i < getcartlist.length; i++) {\r\n\t\t\t\t\tcarid[getcartlist[i]['id']] = getcartlist[i]['num'];\r\n\t\t\t\t\tcarbz[getcartlist[i]['id']] = getcartlist[i]['bz'];\t\r\n\t\t\t\t\tcarfudw[getcartlist[i]['id']] = getcartlist[i]['fudw'];\t\r\n\t\t\t\t}\r\n\t\t\t\tfor (let i = 0; i < this.productList.length; i++) {\r\n\t\t\t\t\tif (carid[this.productList[i]['id']]) {\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'inputnum', carid[this.productList[i]['id']])\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'bz', carbz[this.productList[i]['id']])\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'fudw', carfudw[this.productList[i]['id']])\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'inputnum', 0)\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'bz','')\r\n\t\t\t\t\t\tthis.$set(this.productList[i], 'fudw','')\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor (let i = 0; i < this.tjproductList.length; i++) {\r\n\t\t\t\t\tif (carid[this.tjproductList[i]['id']]) {\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'inputnum', carid[this.tjproductList[i]['id']])\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'bz', carbz[this.tjproductList[i]['id']])\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'fudw', carfudw[this.tjproductList[i]['id']])\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'inputnum', 0)\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'bz', '')\r\n\t\t\t\t\t\tthis.$set(this.tjproductList[i], 'fudw', '')\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\t//根据数组指定key获取当前数组\r\n\t\t\tfindarrbyid(id) {\r\n\t\t\t\tlet arr = this.productList;\r\n\t\t\t\tfor (let i = 0; i < arr.length; i++) {\r\n\t\t\t\t\tif (arr[i]['id'] == id) {\r\n\t\t\t\t\t\t//console.log(arr[i],'要保存的东西')\r\n\t\t\t\t\t\treturn arr[i];\r\n\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//推荐商品\r\n\t\t\tfindarrbyid_tj(id) {\r\n\t\t\t\tlet arr = this.tjproductList;\r\n\t\t\t\tfor (let i = 0; i < arr.length; i++) {\r\n\t\t\t\t\tif (arr[i]['id'] == id) {\r\n\t\t\t\t\t\t//console.log(arr[i],'要保存的东西')\r\n\t\t\t\t\t\treturn arr[i];\r\n\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//从本地存储中根据id获取数组\r\n\t\t\tfindidfromstor(id) {\r\n\t\t\t\tlet arr = uni.getStorageSync('cartlist');\r\n\t\t\t\tfor (let i = 0; i < arr.length; i++) {\r\n\t\t\t\t\tif (arr[i]['id'] == id) {\r\n\t\t\t\t\t\treturn arr[i];\r\n\t\t\t\t\t\tbreak; //跳出循环\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tdiscard() {\r\n\t\t\t\t//丢弃,防止事件冒泡而设\r\n\t\t\t},\r\n\t\t\tasync getColor(){\r\n\t\t\t\tlet reinfo = await this.$api.getitem({\r\n\t\t\t\t\taction: 'baseinfocolor'\r\n\t\t\t\t});\r\n\t\t\t\tthis.color = reinfo.data[0].info\r\n\t\t\t\tthis.backcolor = reinfo.data[1].info\r\n\t\t\t},\r\n\t\t\tasync base(){\r\n\t\t\t\tlet baseinfo=await this.$api.baseset({action:'baseinfo',key:'mininame'});\r\n\t\t\t\tuni.setNavigationBarTitle({\r\n\t\t\t\t title: baseinfo.data.info,\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tinit() {\r\n\t\t\t\tthis.getbanner();\r\n\t\t\t\tthis.getitem();\r\n\t\t\t\t//this.getcpdesc();\r\n\t\t\t\t// this.getgoodlist();\r\n\t\t\t\tthis.gettjgoodlist();\r\n\t\t\t\tthis.getnotice();\r\n\t\t\t\t// this.getColor();\r\n\t\t\t\t// this.baseinfo('gscolor');\r\n\t\t\t\t// this.baseinfo('gsbgcolor');\r\n\t\t\t\tthis.base();\r\n\t\t\t},\r\n\t\t\tgetValue2(e){\r\n\t\t\t\tthis.value = e;\r\n\t\t\t\tif(!this.value || this.value=='')\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.importUserId=this.userInfo.uid;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t\t\tif(getuserinfo)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlet dataObj = getuserinfo;\r\n\t\t\t\t\t\t// 修改特定元素的值\r\n\t\t\t\t\t\tdataObj.uid = this.value;\r\n\t\t\t\t\t\tuni.setStorageSync('userinfo',dataObj);\r\n\t\t\t\t\t\tthis.userInfo=dataObj;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.importUserId=this.value;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t// this.init();\r\n\t\t\tthis.getgoodlist();\r\n\t\t\tthis.gettjgoodlist();\r\n\t\t\tthis.checkshownum();\r\n\t\t\t// this.baseinfo('gscolor');\r\n\t\t\t// this.baseinfo('gsbgcolor');\r\n\t\t\tlet getuserinfo=uni.getStorageSync('userinfo');\r\n\t\t\t//console.log(getuserinfo);\r\n\t\t\tif(getuserinfo!='')\r\n\t\t\t{\r\n\t\t\t\tthis.userInfo=getuserinfo;\r\n\t\t\t\tthis.importUserId=getuserinfo.uid;\r\n\t\t\t\tthis.options=getuserinfo.kharr;\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(e) {\r\n\t\t\tthis.init();\r\n\t\t\tuni.showShareMenu({\r\n\t\t\t\tcomplete() {\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.gg_zz {\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tz-index: 1;\r\n\t\tleft: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tbackground-color: #3c3c3c;\r\n\t\topacity: 0.8;\r\n\t}\r\n\r\n\t.gg_model {\r\n\t\twidth: 80%;\r\n\t\tcolor: #666;\r\n\t\tz-index: 2;\r\n\t\theight: auto;\r\n\t\tborder-radius: 10px;\r\n\t\topacity: 1;\r\n\t\tbackground-color: white;\r\n\t\tposition: fixed;\r\n\t\ttop: 50%;\r\n\t\tleft: 50%;\r\n\t\ttransform: translate(-50%, -50%);\r\n\t\tpadding: 10px;\r\n\t}\r\n\r\n\t.gg_model text {\r\n\t\tmargin-bottom: 15px;\r\n\t\tfont-size: 32rpx;\r\n\t\tline-height: 20px;\r\n\t}\r\n\r\n\t.gg_cennel {\r\n\t\tmargin: auto;\r\n\t\tdisplay: block;\r\n\t\twidth: 55px;\r\n\t\ttext-align: center;\r\n\t\tborder-radius: 5px;\r\n\t\tfont-size: 35rpx;\r\n\t\tcolor: #50BAFE;\r\n\t\tborder: 1rpx solid #50BAFE;\r\n\t\theight: 60rpx;\r\n\t\tline-height: 60rpx;\r\n\t}\r\n\r\n\t.kefubt {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t}\r\n\r\n\t.kf {\r\n\r\n\t\t.kfbt {\r\n\t\t\tdisplay: flex;\r\n\t\t\tposition: fixed;\r\n\t\t\tz-index: 999999;\r\n\t\t\ttop: 76%;\r\n\t\t\tright: 0;\r\n\t\t\tmargin-right: 3rpx;\r\n\t\t\tbackground: none;\r\n\r\n\t\t}\r\n\r\n\t\t.kfbt::after {\r\n\t\t\tborder: 0;\r\n\t\t}\r\n\t}\r\n\r\n\t.logo {\r\n\t\theight: 200rpx;\r\n\t\twidth: 200rpx;\r\n\t\tmargin-top: 200rpx;\r\n\t\tmargin-left: auto;\r\n\t\tmargin-right: auto;\r\n\t\tmargin-bottom: 50rpx;\r\n\t}\r\n\r\n\t.text-area {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t}\r\n\r\n\t// 搜索\r\n\t.top {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\r\n\t\t// position: absolute;\r\n\t\t// top: 35upx;\r\n\t\t// z-index: 111;\r\n\t\t.main-box {\r\n\t\t display: flex;\r\n\t\t margin: 10rpx;\r\n\t\t justify-content: space-between;\r\n\t\t background: #fff;\r\n\t\t width:25%;\r\n\t\t padding: 10rpx;\r\n\t\t margin-top:-3px;\r\n\t\t text-align: left;\r\n\t\t}\r\n\t\t.input-box {\r\n\t\t\twidth: 70%;\r\n\t\t\theight: 60upx;\r\n\t\t\tbackground-color: #f5f5f5;\r\n\t\t\tborder-radius: 30upx;\r\n\t\t\tposition: relative;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tpadding-right: 15upx;\r\n\r\n\t\t\tinput {\r\n\t\t\t\tpadding-left: 30upx;\r\n\t\t\t\theight: 28upx;\r\n\t\t\t\tfont-size: 28upx;\r\n\t\t\t}\r\n\r\n\t\t\tmargin-bottom: 15upx;\r\n\t\t}\r\n\t}\r\n\r\n\t.icon {\r\n\t\tfont-family: 'HMfont-home' !important;\r\n\t\tfont-size: 60upx;\r\n\t\tfont-style: normal;\r\n\t\tcolor: #000000;\r\n\r\n\t\t&.search {\r\n\t\t\t&:before {\r\n\t\t\t\tcontent: '\\e628';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t.card-swiper {\r\n\t\theight: 300upx !important;\r\n\r\n\t\tswiper-item {\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tpadding: 30upx 0upx 20upx;\r\n\t\t\toverflow: initial;\r\n\r\n\t\t\t.swiper-item {\r\n\t\t\t\t@include size(100%);\r\n\t\t\t\tdisplay: block;\r\n\t\t\t\tborder-radius: 30upx;\r\n\t\t\t\ttransform: scale(0.9);\r\n\t\t\t\ttransition: all 0.2s ease-in 0s;\r\n\t\t\t\toverflow: hidden;\r\n\r\n\t\t\t\t.image {\r\n\t\t\t\t\t@include size(100%);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t&.cur {\r\n\t\t\t\t.swiper-item {\r\n\t\t\t\t\ttransform: none;\r\n\t\t\t\t\ttransition: all 0.2s ease-in 0s;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.type {\r\n\t\t@include fr();\r\n\t\tflex-wrap: wrap;\r\n\t\tmargin: 20upx;\r\n\r\n\t\t.item {\r\n\t\t\tflex: 0 0 25%;\r\n\t\t\t@include fc(c, c);\r\n\t\t\tmargin-bottom: 20upx;\r\n\r\n\t\t\t.image {\r\n\t\t\t\t@include size(100upx);\r\n\t\t\t\tmargin-bottom: 10upx;\r\n\t\t\t\tborder-radius: 50%;\r\n\t\t\t}\r\n\r\n\t\t\ttext {\r\n\r\n\t\t\t\t@include font(28upx, #666);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.ad-1 {\r\n\t\twidth: 100%;\r\n\t\theight: 220upx;\r\n\t\tpadding: 10upx 20upx;\r\n\t\tbackground: #fff;\r\n\r\n\t\timage {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tborder-radius: 15upx;\r\n\t\t}\r\n\t}\r\n\r\n\t.sellnum {\r\n\t\tfont-size: 25upx;\r\n\t\tpadding-left: 15upx;\r\n\t\tcolor: #B9B9B9;\r\n\t}\r\n\r\n\t.sdtext {\r\n\t\tpadding: 2upx 8upx;\r\n\t\tborder: 1upx #DBDBDB solid;\r\n\t\tborder-radius: 5upx;\r\n\t\tcolor: #B9B9B9;\r\n\t\tfont-size: 25upx;\r\n\t\tmargin-top: 3upx;\r\n\r\n\t}\r\n\r\n\t// 推荐商品样式\r\n\t.tjgoodlist {\r\n\t\tpadding: 0 30upx;\r\n\r\n\t\t.title {\r\n\t\t\twidth: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\tcolor: #5FCDA2;\r\n\t\t\tfont-size: 30upx;\r\n\t\t\tmargin: 20upx 0;\r\n\r\n\t\t\ttext {\r\n\t\t\t\tmargin: 0 15upx;\r\n\t\t\t}\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 40upx;\r\n\t\t\t\theight: 40upx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.tj_list {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-around;\r\n\t\t\tpadding: 10upx 0;\r\n\t\t\tborder-bottom: 1upx #F0F0F0 solid;\r\n\t\t\theight: 260upx; \r\n\t\t\t\r\n\t\t\t.tjleft {\r\n\t\t\t\twidth: 50%;\r\n\r\n\t\t\t\timage {\r\n\t\t\t\t\twidth: 180upx;\r\n\t\t\t\t\theight: 180upx;\r\n\t\t\t\t\tborder-radius: 20upx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.tjright {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tpadding: 15upx 4%;\r\n\t\t\t\tdisplay: -webkit-box;\r\n\t\t\t\t-webkit-box-orient: vertical;\r\n\t\t\t\t-webkit-line-clamp: 2;\r\n\t\t\t\ttext-align: justify;\r\n\t\t\t\toverflow: hidden;\r\n\t\t\t\tfont-size: 28upx;\r\n\t\t\t\tcolor: #747474;\r\n\r\n\t\t\t\t.tjroot {\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\tjustify-items: center;\r\n\t\t\t\t\tpadding-top: 8upx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.task-title {\r\n\t\tmargin: 30upx;\r\n\r\n\t\t.top {\r\n\t\t\t@include fr(b, c);\r\n\r\n\t\t\t.left {\r\n\t\t\t\t@include fr(s, c);\r\n\r\n\t\t\t\tview {\r\n\t\t\t\t\t@include size(8upx, 36upx);\r\n\t\t\t\t\tborder-radius: 4upx;\r\n\t\t\t\t\tmargin-right: 10upx;\r\n\t\t\t\t\tbackground: #50BAFE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttext {\r\n\t\t\t\t\t@include font(36upx, #3A4E73, bold);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.right {\r\n\t\t\t\t@include fr(s, b);\r\n\r\n\t\t\t\ttext {\r\n\t\t\t\t\t@include font(28upx, #B0B8C7);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.bottom {\r\n\t\t\tmargin-top: 5upx;\r\n\t\t\t@include font(24upx, #B0B8C7);\r\n\t\t}\r\n\t}\r\n\r\n\t.task-list {\r\n\t\tpadding: 0 30upx;\r\n\r\n\t\t.item {\r\n\t\t\t@include fc();\r\n\t\t\t@include line(0, 0, 1, 0);\r\n\t\t\tpadding-top: 20upx;\r\n\r\n\t\t\t&:first-child {\r\n\t\t\t\tpadding-top: 0;\r\n\t\t\t}\r\n\r\n\t\t\t&:last-child {\r\n\t\t\t\t&:after {\r\n\t\t\t\t\tdisplay: none;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.header {\r\n\t\t\t\t@include fr(b, c);\r\n\r\n\t\t\t\t.left {\r\n\t\t\t\t\t@include fr(s, c);\r\n\r\n\t\t\t\t\t.avatar {\r\n\t\t\t\t\t\t@include size(50upx);\r\n\t\t\t\t\t\tmargin-right: 10upx;\r\n\t\t\t\t\t\tborder-radius: 50%;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttext {\r\n\t\t\t\t\t\t@include font(24upx, #333);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.right {\r\n\t\t\t\t\t@include fr(s, c);\r\n\r\n\t\t\t\t\t.label {\r\n\t\t\t\t\t\t@include fr(c, c);\r\n\t\t\t\t\t\t@include font(22upx, #50BAFE);\r\n\t\t\t\t\t\theight: 36upx;\r\n\t\t\t\t\t\tpadding: 0 15upx;\r\n\t\t\t\t\t\tbackground: #EDF8FF;\r\n\t\t\t\t\t\tborder-radius: 100upx;\r\n\t\t\t\t\t\tmargin-right: 10upx;\r\n\r\n\t\t\t\t\t\t&:last-child {\r\n\t\t\t\t\t\t\tmargin-right: 0;\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}\r\n\r\n\t\t\t.body {\r\n\t\t\t\tpadding: 20upx 0;\r\n\t\t\t\tpadding-left: 5upx;\r\n\t\t\t\t@include fr(b, s);\r\n\r\n\t\t\t\t.left {\r\n\t\t\t\t\twidth: 60%;\r\n\t\t\t\t\t@include fc();\r\n\r\n\t\t\t\t\t.title {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t@include ell();\r\n\t\t\t\t\t\t@include font(28upx, #666);\r\n\t\t\t\t\t\tpadding-bottom: 10upx;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t.desc {\r\n\t\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\t\t@include ell(2);\r\n\t\t\t\t\t\t@include font(22upx, #999);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.right {\r\n\t\t\t\t\timage {\r\n\t\t\t\t\t\t@include size(200upx);\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}\r\n\r\n\t// 猜你喜欢列表\r\n\t.goods-list {\r\n\r\n\t\t// background-color: #f4f4f4;\r\n\t\t.title {\r\n\t\t\twidth: 100%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\tcolor: #5FCDA2;\r\n\t\t\tfont-size: 30upx;\r\n\t\t\tmargin: 20upx 0;\r\n\r\n\t\t\ttext {\r\n\t\t\t\tmargin: 0 15upx;\r\n\t\t\t}\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 40upx;\r\n\t\t\t\theight: 40upx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.product-list {\r\n\t\t\twidth: 100%;\r\n\t\t\tpadding: 0 4% 3vw 4%;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tflex-wrap: wrap;\r\n\r\n\t\t\t.product {\r\n\t\t\t\twidth: 48%;\r\n\t\t\t\tborder-radius: 20upx;\r\n\t\t\t\tbackground-color: #fff;\r\n\t\t\t\tmargin: 0 0 15upx 0;\r\n\t\t\t\tbox-shadow: 0upx 5upx 25upx rgba(0, 0, 0, 0.1);\r\n\r\n\t\t\t\timage {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\theight: 300upx;\r\n\t\t\t\t\tborder-radius: 20upx 20upx 0 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.name {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tpadding: 10upx 4%;\r\n\t\t\t\t\tdisplay: -webkit-box;\r\n\t\t\t\t\t-webkit-box-orient: vertical;\r\n\t\t\t\t\t-webkit-line-clamp: 2;\r\n\t\t\t\t\ttext-align: justify;\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\tfont-size: 28upx;\r\n\t\t\t\t\tcolor: #747474;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.miaos {\r\n\t\t\t\t\twidth: 100%;\r\n\t\t\t\t\tmargin: 10upx;\r\n\t\t\t\t\tdisplay: -webkit-box;\r\n\t\t\t\t\t-webkit-box-orient: vertical;\r\n\t\t\t\t\t-webkit-line-clamp: 1;\r\n\t\t\t\t\ttext-align: justify;\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t\tfont-size: 28upx;\r\n\t\t\t\t\tcolor: #747474;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.miaosshow {\r\n\t\t\t\t\tmargin: 10upx;\r\n\t\t\t\t\tfont-size: 28upx;\r\n\t\t\t\t\tcolor: #747474;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.info {\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tjustify-content: space-between;\r\n\t\t\t\t\talign-items: flex-end;\r\n\t\t\t\t\twidth: 92%;\r\n\t\t\t\t\tpadding: 10upx 4% 10upx 4%;\r\n\r\n\t\t\t\t\t.price {\r\n\t\t\t\t\t\tcolor: #e65339;\r\n\t\t\t\t\t\tfont-size: 30upx;\r\n\t\t\t\t\t\tfont-weight: 600;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t.slogan {\r\n\t\t\t\t\t\tcolor: #807c87;\r\n\t\t\t\t\t\tfont-size: 24upx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.add {\r\n\t\t\t\t\timage {\r\n\t\t\t\t\t\twidth: 43upx;\r\n\t\t\t\t\t\theight: 40upx;\r\n\t\t\t\t\t\tpadding: 7upx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.nosell {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\r\n\t\ttext {\r\n\t\t\tposition: relative;\r\n\t\t\tright: 5upx;\r\n\t\t\tpadding: 5upx;\r\n\t\t\tbackground-color: #EAEAEA;\r\n\t\t\tcolor: white;\r\n\t\t\tfont-size: 28upx !important;\r\n\t\t}\r\n\t}\r\n\r\n\t.number {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t\tmargin-right: 30upx;\r\n\t\tmargin-bottom: 10upx;\r\n\r\n\t\t.input {\r\n\t\t\twidth: 70upx;\r\n\t\t\theight: 45upx;\r\n\t\t\tmargin: 0 10upx;\r\n\t\t\t// background-color: #f3f3f3;\r\n\t\t\tborder-bottom: 1upx #ADADAD solid;\r\n\r\n\t\t\tinput {\r\n\t\t\t\twidth: 60upx;\r\n\t\t\t\theight: 60upx;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tfont-size: 26upx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.sub,\r\n\t\t.add {\r\n\t\t\twidth: 45upx;\r\n\t\t\theight: 45upx;\r\n\t\t\tborder-radius: 5upx;\r\n\t\t}\r\n\r\n\t\t.jia {\r\n\t\t\tdisplay: flex;\r\n\t\t\twidth: 45upx;\r\n\t\t\theight: 45upx;\r\n\t\t\tjustify-content: center;\r\n\t\t\tjustify-items: center;\r\n\t\t\talign-items: center;\r\n\t\t\tbackground-color: #41A863;\r\n\t\t\tcolor: #fff;\r\n\t\t\tborder-radius: 50%;\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 40upx;\r\n\t\t\t\theight: 40upx;\r\n\t\t\t\tpadding: 7upx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.jian {\r\n\t\t\tdisplay: flex;\r\n\t\t\twidth: 45upx;\r\n\t\t\theight: 45upx;\r\n\t\t\tjustify-content: center;\r\n\t\t\tjustify-items: center;\r\n\t\t\talign-items: center;\r\n\t\t\tbackground-color: #41A863;\r\n\t\t\tcolor: #fff;\r\n\t\t\tborder-radius: 50%;\r\n\t\t\tpadding-bottom: 10upx;\r\n\t\t}\r\n\t}\r\n\r\n\t//收藏样式\r\n\t.p-b-btn {\r\n\r\n\t\t.yticon {\r\n\t\t\tfont-size: 40upx;\r\n\t\t\tline-height: 48upx;\r\n\t\t\tcolor: $font-color-light;\r\n\t\t}\r\n\r\n\t\t&.active,\r\n\t\t&.active .yticon {\r\n\t\t\tcolor: $uni-color-primary;\r\n\t\t}\r\n\r\n\t\t.icon-fenxiang2 {\r\n\t\t\tfont-size: 42upx;\r\n\t\t\ttransform: translateY(-2upx);\r\n\t\t}\r\n\r\n\t\t.icon-shoucang {\r\n\t\t\tfont-size: 50upx;\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720092621273\n var cssReload = require(\"F:/软件/HBuilder X/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":""}