| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628 |
- <template>
- <div>
- <div class="navBarTOP">
- <!-- 顶部条 -->
- <van-nav-bar class="navBar" title="客户详情" left-arrow @click-left="onClickLeft">
- <template #right>
- <span
- style="color: #0057ba"
- v-if="list.updatable && list.validFlag == 2"
- @click="placeOrderFn"
- >去下单</span
- >
- <span
- style="color: #0057ba"
- v-if="list.updatable && list.validFlag != 2 && type != 'address'"
- @click="editorFn"
- >编辑</span
- >
- </template>
- </van-nav-bar>
- </div>
- <!--主体内容-->
- <div style="margin-top: 44px" v-if="pageShow">
- <van-dialog title="门店位置">
- <mapmarker :info="list"></mapmarker>
- </van-dialog>
- <van-tabs class="myTab" v-model="tabVal" color="#0057ba" @change="tabChange">
- <van-tab title="基础信息" name="insidePlan" ref="dispsps">
- <van-field readonly v-model="list.storeCode" label="编号" />
- <van-field readonly v-if="DIYshow" v-model="list.attribute1" label="DIY编号" />
- <van-field readonly v-model="list.storeName" :label="storeName" />
- <van-field readonly v-model="list.storeCategoryName" label="类型" />
- <van-field
- readonly
- v-if="type != 'address'"
- rows="1"
- autosize
- type="textarea"
- v-model="list.addressLine"
- :label="address" />
- <van-field
- v-if="type == 'address'"
- rows="1"
- autosize
- type="textarea"
- v-model="list.addressLine"
- :label="address">
- <template #button>
- <van-button size="small" type="info" @click="fns"
- ><van-icon name="location-o" />地图</van-button
- >
- </template>
- </van-field>
- <van-field v-model="list.lat" readonly label="经度" placeholder="经度" />
- <van-field readonly v-model="list.lon" label="维度" />
- <van-field readonly v-model="list.orgName" label="销售部" />
- <van-field readonly v-model="list.provinceName" label="省(州)" @click="provinceFN">
- <template #button>
- <van-icon name="arrow" v-if="type == 'address'" />
- </template>
- </van-field>
- <van-field readonly v-model="list.cityName" label="城市" @click="cityFN">
- <template #button>
- <van-icon name="arrow" v-if="type == 'address'" />
- </template>
- </van-field>
- <van-field readonly v-model="list.districtName" label="区(县)" @click="districtFN">
- <template #button>
- <van-icon name="arrow" v-if="type == 'address'" />
- </template>
- </van-field>
- <van-field readonly v-model="list.townName" label="街道" @click="towntFN">
- <template #button>
- <van-icon name="arrow" v-if="type == 'address'" />
- </template>
- </van-field>
- <van-field readonly v-model="list.cityLevel" label="城市等级" />
- <van-field
- readonly
- v-if="list.ifJzStoreType != 1 && list.storeCategory != 'C917'"
- v-model="list.contactName"
- label="联系人" />
- <van-field
- readonly
- v-if="list.ifJzStoreType == 1 && list.storeCategory != 'C917'"
- v-model="list.contactName"
- label="老板" />
- <van-field
- readonly
- v-model="list.telephone"
- label="联系电话"
- v-if="list.storeCategory != 'C917'" />
- <van-field
- readonly
- v-model="list.chainCode"
- label="经销商编号"
- v-if="list.storeCategory != 'C917'" />
- <van-field
- readonly
- v-model="list.chainName"
- label="经销商名称"
- v-if="list.storeCategory != 'C917'" />
- <van-field readonly v-model="list.salesmanName" label="销售员" />
- <div v-if="list.storeCategory != 'C917'">
- <van-field
- readonly
- v-model="list.area"
- v-if="list.ifJzStoreType != 1"
- label="面积(m²)" />
- <van-field
- readonly
- v-model="list.area"
- v-if="list.ifJzStoreType == 1"
- label="家装展厅面积(m²)" />
- </div>
- <van-field
- readonly
- v-if="GZAttributeFormShow"
- label="潜在客户类型"
- v-model="list.potentialCustomerType" />
- <van-field readonly v-if="list.carShop" label="是否车铺开店">
- <template #input>
- <span v-if="list.carShop == 1">是</span>
- <span v-if="list.carShop == 0">否</span>
- </template>
- </van-field>
- <div v-if="list.carShopImgList != null && list.carShop == 1">
- <p style="padding: 0 16px">车铺照片(店招及车铺产品拍在一张照片里)</p>
- <viewUploadImg :imgs="list.carShopImgList"></viewUploadImg>
- </div>
- <template v-if="list.img != null && list.storeCategory != 'C917'">
- <van-row gutter="20" style="padding: 16px">
- <van-col span="12">
- <div v-if="storeTypePOP">
- <van-image
- width="100%"
- height="160"
- :src="list.img"
- @click="deleteImgs(list.img)" />
- <p style="text-align: center">
- {{ list.ifJzStoreType != 1 ? '门店照' : '家装前台照片' }}
- </p>
- </div>
- <div v-else>
- <van-image
- width="100%"
- height="160"
- :src="list.img"
- @click="deleteImgs(list.img)" />
- <p style="text-align: center">
- {{ list.storeCategory == 'C912' ? '工地铭牌照片' : '公司照片' }}
- </p>
- </div>
- </van-col>
- <van-col span="12" v-if="list.ifJzStoreType != 1">
- <div v-if="storeTypePOP">
- <van-image
- width="100%"
- height="160"
- :src="list.imgSed"
- @click="deleteImgs(list.imgSed)" />
- <p style="text-align: center">
- {{ list.ifJzStoreType != 1 ? '陈列照' : '立邦展厅照片' }}
- </p>
- </div>
- </van-col>
- </van-row>
- </template>
- <van-row gutter="20" style="padding: 16px">
- <van-col span="12" v-if="list.newStoreSignPhoto">
- <div v-if="storeTypePOP">
- <van-image
- width="100%"
- height="160"
- :src="list.newStoreSignPhoto"
- @click="deleteImgs(list.newStoreSignPhoto)" />
- <p style="text-align: center">店招照</p>
- </div>
- </van-col>
- </van-row>
- <van-row gutter="20" style="padding: 16px" v-if="type == 'address'">
- <van-col
- span="12"
- v-if="
- list.storeCategory == '35' ||
- list.storeCategory == '36' ||
- list.storeCategory == '37' ||
- list.storeCategory == '38' ||
- list.storeCategory == '91'
- ">
- <upload-img
- :uploadid="uploadid2"
- :imgArr="img"
- @newimgarr="newimgarr1"
- imgText="店招照片"
- :type="1"></upload-img>
- </van-col>
- </van-row>
- </van-tab>
- <van-tab title="属性信息" name="outsidePlan">
- <van-field readonly label="属性" v-if="dictTypeFormShow" v-model="list.tcfxName" />
- </van-tab>
- </van-tabs>
- <!--省、市、区、街道-->
- <van-popup v-model="provinceShow" position="bottom">
- <van-picker
- show-toolbar
- title="省(州)"
- :columns="provinceList"
- @confirm="onProvinceConfirm"
- @cancel="provinceShow = false" />
- </van-popup>
- <van-popup v-model="cityShow" position="bottom">
- <van-picker
- show-toolbar
- title="城市"
- :columns="cityList"
- @confirm="onCityConfirm"
- @cancel="cityShow = false" />
- </van-popup>
- <van-popup v-model="districtShow" position="bottom">
- <van-picker
- show-toolbar
- title="县区"
- :columns="districtList"
- @confirm="onDistrictConfirm"
- @cancel="districtShow = false" />
- </van-popup>
- <van-popup v-model="towntShow" position="bottom">
- <van-picker
- show-toolbar
- title="街道"
- :columns="townList"
- @confirm="onTownConfirm"
- @cancel="towntShow = false" />
- </van-popup>
- <br />
- <br />
- <br />
- <br />
- <br />
- <br />
- <div
- style="
- position: fixed;
- bottom: 0;
- width: 100%;
- padding: 14px;
- background-color: white;
- border-top: 1px solid #eee;
- "
- v-if="type">
- <van-row gutter="20">
- <van-col
- span="12"
- v-if="
- list.storeCategory != '35' &&
- list.storeCategory != '36' &&
- list.storeCategory != '37' &&
- list.storeCategory != '38' &&
- list.storeCategory != '91'
- "
- ><van-button round type="default" style="width: 100%" @click="valid"
- >无效关店</van-button
- ></van-col
- >
- <van-col
- span="12"
- v-if="
- list.storeCategory != '35' &&
- list.storeCategory != '36' &&
- list.storeCategory != '37' &&
- list.storeCategory != '38' &&
- list.storeCategory != '91'
- "
- ><van-button
- round
- type="info"
- style="width: 100%; background-color: #0057ba"
- @click="updateStoreAddress"
- >提交</van-button
- ></van-col
- >
- <van-col
- span="24"
- v-if="
- list.storeCategory == '35' ||
- list.storeCategory == '36' ||
- list.storeCategory == '37' ||
- list.storeCategory == '38' ||
- list.storeCategory == '91'
- "
- ><van-button
- round
- type="info"
- style="width: 100%; background-color: #0057ba"
- @click="updateStoreAddress"
- >提交</van-button
- ></van-col
- >
- </van-row>
- </div>
- <van-dialog
- v-model="showDialog"
- title="系统提示"
- show-cancel-button
- :show-confirm-button="false">
- <p v-if="!Array.isArray(msgList)" style="padding: 10px 14px; margin: 0">
- {{ msgList }}
- </p>
- <div style="max-height: 400px; overflow-y: auto" v-if="Array.isArray(msgList)">
- <p
- style="border-bottom: 1px solid #f5f5f5; padding: 10px 14px; margin: 0"
- v-for="(item, index) in msgList"
- :key="index">
- {{ item }}
- </p>
- </div>
- </van-dialog>
- <div style="position: fixed; top: 0; height: 100%; z-index: 3000; width: 100%" v-if="showmap">
- <div id="allmap1" style="height: 100%; width: 100%"></div>
- <div
- style="position: fixed; z-index: 99999; top: 0; width: 100%; background-color: white"
- v-if="showmap">
- <form action="/">
- <van-search
- v-model="searchValue"
- left-icon="search"
- @input="searchFn"
- placeholder="请输入搜索关键词">
- <!-- <template #action>
- <div @click="searchFn">搜索</div>
- </template> -->
- </van-search>
- </form>
- <div style="height: 200px; overflow: hidden" v-if="searchSHow">
- <div style="height: 100px; min-height: 200px; overflow-y: scroll; padding: 12px">
- <div
- v-for="(itme, index) in mapsearchlist"
- style="border-bottom: 1px solid #eee"
- @click="addressFn(itme)">
- <p>{{ itme.title }}</p>
- <p>{{ itme.address }}</p>
- </div>
- </div>
- </div>
- </div>
- <div class="mapaddress" v-if="showmap">
- <div class="title">
- <span @click="showmap = false" style="float: left"
- ><van-icon name="cross" size="16"
- /></span>
- <p class="titleText">附近地址信息</p>
- <span style="float: right" @click="confirmMap">确定</span>
- </div>
- <div class="listBox">
- <van-radio-group v-model="addresssb" @change="mapselect" v-if="shows">
- <van-radio :name="index" v-for="(item, index) in maplist" :key="index"
- ><p style="margin: 4px 0; font-weight: bold">
- {{ item.title }}
- </p>
- <p style="margin: 4px 0">{{ item.address }}</p></van-radio
- >
- </van-radio-group>
- <br />
- <br />
- <br />
- <br />
- </div>
- </div>
- </div>
- </div>
- <div class="helpPageMask" v-if="helpPageFlag">
- <helpPage @btnClick="btnClick"></helpPage>
- </div>
- </div>
- </template>
- <script>
- import { ImagePreview } from 'vant';
- import {
- getById,
- getStoreTypeList,
- updateStore,
- getStoreyslTypeList,
- getTCFXList,
- addStore,
- checkVisit,
- getSJSList,
- getQGJZist,
- getCustomerInfoList,
- getCustomerNatureList,
- getMainProjectList,
- getMainRelationList,
- getManagementModelList,
- getpotentialCustomerTypeList,
- streetQuery,
- } from '@/api/index';
- import mapmarker from '@/components/mapMarker';
- import viewUploadImg from '@/components/viewUploadImg';
- import txmapimg1 from '@/assets/txmap1.svg';
- import txmapimg2 from '@/assets/txmap2.svg';
- import txmapimg3 from '@/assets/marker_blue.png';
- import axios from 'axios';
- import { jsonp } from 'vue-jsonp';
- import { updateStoreAddress, valid } from '@/api/visitstore';
- import uploadImg from '@/components/viewaddreddUploadImg.vue';
- import helpPage from './helpPage.vue';
- export default {
- components: { uploadImg, mapmarker, viewUploadImg, helpPage },
- data() {
- return {
- addresssb: '',
- searchSHow: false,
- uploadid2: 'uploadid2',
- shows: true,
- searchValue: '',
- tabVal: 'insidePlan',
- showDialog: false,
- msgList: '',
- list: [],
- provinceList: [],
- txmapimg1: txmapimg1,
- txmapimg2: txmapimg2,
- txmapimg3: txmapimg3,
- cityList: [],
- districtList: [],
- maplist: [],
- townList: [],
- storeId: '',
- vaue: '',
- show: false,
- storeTypeList: [],
- ManagementModelList: [],
- MainRelationList: [],
- MainProjectList: [],
- CustomerNatureList: [],
- CustomerInfoList: [],
- potentialCustomerTypeList: [],
- typeABshow: false,
- dictTypeFormShow: false,
- detilId: '',
- DIYshow: false,
- visitListList: [],
- TCFXList: [],
- QGJZist: [],
- SJSList: [],
- storeName: '名称',
- address: '地址',
- storeTypePOP: false,
- GZAttributeFormShow: false,
- type: '',
- towntShow: false,
- districtShow: false,
- cityShow: false,
- provinceShow: false,
- showmap: false,
- markers: undefined,
- markers1: undefined,
- marker: undefined,
- pageShow: false,
- mapsearchlist: [],
- map: '',
- img: '',
- lat: '',
- lon: '',
- poiAddress: '',
- myLat: '',
- poiLat: '',
- poiLon: '',
- poiId: '',
- myLon: '',
- pLat: '',
- pLot: '',
- poiName: '',
- helpPageFlag: false, //提交修改 不通过 点击帮助弹出框
- };
- },
- created() {
- this.detilId = this.$route.query.detilId;
- this.type = this.$route.query.type;
- this.getTCFXList();
- this.getSJSList();
- this.getQGJZist();
- this.getCustomerInfoList();
- this.getManagementModelList();
- this.getMainRelationList();
- this.getMainProjectList();
- this.getCustomerNatureList();
- this.getpotentialCustomerTypeList();
- },
- activated() {
- this.showmap = false;
- this.img = '';
- this.detilId = this.$route.query.detilId;
- this.type = this.$route.query.type;
- this.getCustomerInfoList();
- this.getManagementModelList();
- this.getMainRelationList();
- this.getMainProjectList();
- this.getCustomerNatureList();
- this.getTCFXList();
- this.getSJSList();
- this.getQGJZist();
- this.getStoreTypeList();
- this.getpotentialCustomerTypeList();
- this.visitListList = [];
- this.getStreetQuery('');
- window.scrollTo(0, 0);
- this.poiAddress = '';
- this.myLat = '';
- this.poiLat = '';
- this.poiLon = '';
- this.poiId = '';
- this.myLon = '';
- this.poiName = '';
- },
- methods: {
- newimgarr1(val) {
- this.img = val.fileUrl;
- },
- addressFn(val) {
- var that = this;
- setTimeout(() => {
- that.searchSHow = false;
- that.map.setCenter(new TMap.LatLng(val.location.lat, val.location.lng));
- that.markers1.updateGeometries([
- {
- id: 'marker',
- styleId: 'marker',
- position: new TMap.LatLng(val.location.lat, val.location.lng),
- },
- ]);
- that.maplist = [];
- jsonp(
- 'https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(' +
- val.location.lat +
- ',' +
- val.location.lng +
- ',500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
- ).then((res) => {
- console.log(res);
- that.maplist = res.data;
- that.marker.setGeometries([]);
- setTimeout(() => {
- for (let p = 0; p < res.data.length; p++) {
- that.marker.updateGeometries([
- {
- id: res.data[p].id,
- position: new TMap.LatLng(res.data[p].location.lat, res.data[p].location.lng),
- },
- ]);
- }
- });
- });
- that.addresssb = -1;
- });
- },
- searchFn() {
- this.searchSHow = false;
- console.log(this.searchValue);
- // 关键词
- let keyword = this.searchValue ? '&keyword=' + encodeURI(this.searchValue) : '';
- // 地点搜索
- let searchApi =
- 'https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(' +
- this.pLat +
- ',' +
- this.pLot +
- ',500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6';
- // 关键词搜索
- let suggestionApi =
- 'https://apis.map.qq.com/ws/place/v1/suggestion?location=' +
- this.pLat +
- ',' +
- this.pLot +
- '&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6&page_size=10®ion_fix=1';
- jsonp(suggestionApi + keyword).then((res) => {
- console.log(searchApi + keyword);
- console.log(suggestionApi + keyword);
- console.log(res);
- // 不显示下拉选择
- if (!res.data.length && !this.search) {
- this.searchSHow = false;
- } else {
- this.searchSHow = true;
- }
- // 联想下拉选
- this.mapsearchlist = res.data;
- // // 赋值底部列表数据
- // this.maplist = res.data;
- });
- },
- mapselect(val) {
- this.searchSHow = false;
- if (val > -1) {
- this.markers.updateGeometries([
- {
- id: 'markers1',
- styleId: 'abc',
- position: new TMap.LatLng(
- this.maplist[val].location.lat,
- this.maplist[val].location.lng
- ),
- },
- ]);
- }
- },
- confirmMap() {
- console.log(this.maplist);
- console.log(this.addresssb);
- if (this.addresssb > -1) {
- this.list.addressLine = this.maplist[this.addresssb].address;
- // this.lat=this.maplist[this.addresssb].location.lat
- // this.lon=this.maplist[this.addresssb].location.lng
- this.lon = this.myLat;
- this.lat = this.myLon;
- this.poiAddress = this.maplist[this.addresssb].address;
- this.poiLat = this.maplist[this.addresssb].location.lat;
- this.poiLon = this.maplist[this.addresssb].location.lng;
- this.poiId = this.maplist[this.addresssb].id;
- this.poiName = this.maplist[this.addresssb].title;
- }
- this.showmap = false;
- },
- fns() {
- this.searchValue = '';
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '定位中...',
- forbidClick: true,
- });
- let url = window.location.href;
- // let url = encodeURIComponent("https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]).replaceAll("%3A", ":")
- let that = this;
- let qiyeData;
- const instance = axios.create();
- instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
- instance
- .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
- params: {
- url: url,
- },
- })
- .then((response) => {
- if (response.status == 200) {
- this.cont = 6;
- var flat = true;
- var times = setInterval(() => {
- this.cont--;
- if (this.cont == '0') {
- if (flat) {
- loading1.clear();
- clearInterval(times);
- that.$dialog.alert({
- message: '定位失败,请开启企微定位权限',
- });
- } else {
- clearInterval(times);
- }
- }
- }, 1000);
- qiyeData = response.data.data;
- that.wx.config({
- beta: true,
- debug: false,
- appId: qiyeData.appId,
- timestamp: qiyeData.timestamp,
- nonceStr: qiyeData.nonceStr,
- signature: qiyeData.signature,
- jsApiList: ['ready', 'getLocation'],
- });
- that.wx.ready(function () {
- that.wx.getLocation({
- type: 'gcj02',
- success: function (res) {
- flat = false;
- loading1.clear();
- var location = that.CJ02BD(res.latitude, res.longitude);
- that.lat = location.lat;
- that.lon = location.lon;
- if (that.list.lon == '') {
- that.list.lon = location.lon;
- that.list.lat = res.latitude;
- }
- that.pLat = res.latitude;
- that.pLot = res.longitude;
- that.myLat = location.lat;
- that.myLon = location.lon;
- that.showmap = true;
- jsonp(
- 'https://apis.map.qq.com/ws/place/v1/search?boundary=nearby(' +
- res.latitude +
- ',' +
- res.longitude +
- ',500,0)&page_size=10&page_index=1&orderby=_distance&output=jsonp&key=WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6'
- ).then((res) => {
- console.log(res);
- that.maplist = res.data;
- setTimeout(() => {
- that.addVisits1('1');
- });
- });
- },
- fail: function () {
- loading1.clear();
- that.$dialog.alert({
- title: '系统提示',
- message: 'GPS未开启',
- });
- },
- });
- });
- that.wx.error(function (res) {
- this.$toast.fail('定位失败');
- });
- } else {
- this.$toast.fail('接口异常');
- }
- });
- },
- addVisits1(val) {
- var that = this;
- var latlng = {
- lat: this.pLat,
- lon: this.pLot,
- };
- var map = new TMap.Map('allmap1', {
- zoom: 15,
- center: new TMap.LatLng(latlng.lat, latlng.lon),
- });
- var markers = new TMap.MultiMarker({
- id: 'markers',
- map: map,
- geometries: [],
- styles: {
- marker: new TMap.MarkerStyle({
- width: 32,
- height: 40,
- anchor: { x: 16, y: 32 },
- src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker-pink.png',
- }),
- },
- });
- markers.setGeometries([]);
- var location = new TMap.LatLng(latlng.lat, latlng.lon);
- map.setCenter(location);
- markers.updateGeometries([
- {
- id: 'marker',
- styleId: 'marker',
- position: location,
- },
- ]);
- var marker = new TMap.MultiMarker({
- map: map,
- styles: {
- default: new TMap.MarkerStyle({
- width: 32,
- height: 40,
- anchor: {
- x: 17,
- y: 21,
- },
- src: 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/marker_blue.png',
- }),
- },
- geometries: [],
- });
- for (let p = 0; p < this.maplist.length; p++) {
- marker.updateGeometries([
- {
- id: this.maplist[p].id,
- position: new TMap.LatLng(this.maplist[p].location.lat, this.maplist[p].location.lng),
- },
- ]);
- }
- var markers1 = new TMap.MultiMarker({
- map: map,
- mapgeometries: [{ id: 'markers1', position: new TMap.LatLng(0, 0) }],
- styles: {
- abc: new TMap.MarkerStyle({
- width: 32,
- height: 40,
- anchor: { x: 16, y: 32 },
- src: txmapimg3,
- }),
- },
- });
- markers1.setGeometries([]);
- this.map = map;
- this.markers = markers1;
- this.markers1 = markers;
- this.marker = marker;
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.SCALE);
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ROTATION);
- map.removeControl(TMap.constants.DEFAULT_CONTROL_ID.ZOOM);
- },
- updateStoreAddress() {
- if (this.list.province == '') {
- this.$toast('省(州)不能为空');
- return;
- }
- if (this.list.city == '') {
- this.$toast('城市不能为空');
- return;
- }
- if (this.list.district == '') {
- this.$toast('县区不能为空');
- return;
- }
- if (this.list.townName == '') {
- this.$toast('街道不能为空');
- return;
- }
- if (this.list.addressLine == '') {
- this.$toast('地址不能为空');
- return;
- }
- if (
- this.lat == '' &&
- (this.list.storeCategory == '35' ||
- this.list.storeCategory == '36' ||
- this.list.storeCategory == '37' ||
- this.list.storeCategory == '38' ||
- this.list.storeCategory == '91')
- ) {
- this.$toast('未定位,请重新定位或地图选择地点');
- return;
- }
- if (
- this.img == '' &&
- (this.list.storeCategory == '35' ||
- this.list.storeCategory == '36' ||
- this.list.storeCategory == '37' ||
- this.list.storeCategory == '38' ||
- this.list.storeCategory == '91')
- ) {
- this.$toast('店招照片不能为空');
- return;
- }
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '加载中...',
- forbidClick: true,
- });
- let params = {
- storeAddressId: this.$route.query.storeAddressId,
- storeCode: this.list.storeCode,
- storeName: this.list.storeName,
- addressLine: this.list.addressLine,
- storeId: this.list.storeId,
- province: this.list.province,
- lon: this.lon,
- lat: this.lat,
- myLon: this.myLon,
- myLat: this.myLat,
- poiId: this.poiId,
- poiLon: this.poiLon,
- poiLat: this.poiLat,
- poiAddress: this.poiAddress,
- city: this.list.city,
- district: this.list.district,
- townName: this.list.townName,
- shopSignUrl: this.img,
- poiName: this.poiName, //地图选择POI名称
- };
- console.log(JSON.stringify(params));
- console.log(params);
- updateStoreAddress(params).then((res) => {
- loading1.clear();
- if (res.code == 200) {
- this.$dialog
- .alert({
- message: res.msg,
- messageAlign: 'left',
- })
- .then(() => {
- this.$router.go(-1);
- });
- } else {
- this.$dialog
- .alert({
- className: 'helpAlert',
- confirmButtonColor: '#0057ba',
- message: res.msg,
- messageAlign: 'left',
- showCancelButton: true,
- cancelButtonText: '帮助',
- cancelButtonColor: '#f79200',
- })
- .then(() => {})
- .catch(() => {
- // 帮助 弹出框
- this.helpPageFlag = true;
- });
- }
- });
- },
- towntFN() {
- if (this.type == 'address') {
- this.towntShow = true;
- }
- },
- districtFN() {
- if (this.type == 'address') {
- this.districtShow = true;
- }
- },
- cityFN() {
- if (this.type == 'address') {
- this.cityShow = true;
- }
- },
- provinceFN() {
- if (this.type == 'address') {
- this.provinceShow = true;
- }
- },
- onProvinceConfirm(value) {
- this.list.provinceName = value.text;
- this.list.province = value.provinceCode;
- this.list.cityName = '';
- this.list.city = '';
- this.list.districtName = '';
- this.list.countyCode = '';
- this.list.townName = '';
- this.list.townCode = '';
- this.getStreetQuery('1');
- this.provinceShow = false;
- },
- onCityConfirm(value) {
- this.list.cityName = value.text;
- this.list.city = value.cityCode;
- this.list.districtName = '';
- this.list.district = '';
- this.list.townName = '';
- this.list.townCode = '';
- this.cityCode = value.cityCode;
- this.getStreetQuery('2');
- this.cityShow = false;
- },
- onDistrictConfirm(value) {
- this.list.districtName = value.text;
- this.list.district = value.countyCode;
- this.list.townName = '';
- this.list.townCode = '';
- this.list.cityLevel = value.countyLevel;
- this.getStreetQuery('3');
- this.districtShow = false;
- },
- onTownConfirm(value) {
- this.list.townName = value.text;
- this.list.townCode = value.townCode;
- this.towntShow = false;
- },
- getStreetQuery(type) {
- var provinceCode = this.list.province;
- var cityCode = this.list.city;
- var countyCode = this.list.district;
- if (type == '1') {
- cityCode = '';
- countyCode = '';
- } else if (type == '2') {
- countyCode = '';
- } else if (type == '3') {
- } else {
- provinceCode = '';
- cityCode = '';
- countyCode = '';
- }
- streetQuery({
- provinceCode: provinceCode,
- cityCode: cityCode,
- countyCode: countyCode,
- }).then((res) => {
- if (res.code == 200) {
- var provinceList = [];
- var cityList = [];
- var districtList = [];
- var townList = [];
- if (type == '1') {
- for (var z1 = 0; z1 < res.data.length; z1++) {
- cityList.push({
- cityCode: res.data[z1].cityCode,
- text: res.data[z1].cityName,
- });
- }
- this.cityList = cityList;
- } else if (type == '2') {
- for (var z2 = 0; z2 < res.data.length; z2++) {
- districtList.push({
- countyCode: res.data[z2].countyCode,
- text: res.data[z2].countyName,
- countyLevel: res.data[z2].countyLevel,
- });
- }
- this.districtList = districtList;
- } else if (type == '3') {
- for (var z3 = 0; z3 < res.data.length; z3++) {
- townList.push({
- townCode: res.data[z3].townCode,
- text: res.data[z3].townName,
- });
- }
- this.townList = townList;
- } else {
- for (var z = 0; z < res.data.length; z++) {
- provinceList.push({
- provinceCode: res.data[z].provinceCode,
- text: res.data[z].provinceName,
- });
- }
- this.provinceList = provinceList;
- }
- } else {
- this.$toast.fail('请求超时');
- }
- });
- },
- getCustomerInfoList() {
- getCustomerInfoList().then((res) => {
- var CustomerInfoList = [];
- for (var t = 0; t < res.data.length; t++) {
- CustomerInfoList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.CustomerInfoList = CustomerInfoList;
- });
- },
- getCustomerNatureList() {
- getCustomerNatureList().then((res) => {
- var CustomerNatureList = [];
- for (var t = 0; t < res.data.length; t++) {
- CustomerNatureList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.CustomerNatureList = CustomerNatureList;
- });
- },
- getpotentialCustomerTypeList() {
- getpotentialCustomerTypeList().then((res) => {
- var potentialCustomerTypeList = [];
- for (var t = 0; t < res.data.length; t++) {
- potentialCustomerTypeList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.potentialCustomerTypeList = potentialCustomerTypeList;
- });
- },
- getMainProjectList() {
- getMainProjectList().then((res) => {
- var MainProjectList = [];
- for (var t = 0; t < res.data.length; t++) {
- MainProjectList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.MainProjectList = MainProjectList;
- });
- },
- getMainRelationList() {
- getMainRelationList().then((res) => {
- var MainRelationList = [];
- for (var t = 0; t < res.data.length; t++) {
- MainRelationList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.MainRelationList = MainRelationList;
- });
- },
- getManagementModelList() {
- getManagementModelList().then((res) => {
- var ManagementModelList = [];
- for (var t = 0; t < res.data.length; t++) {
- ManagementModelList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.ManagementModelList = ManagementModelList;
- });
- },
- getSJSList() {
- getSJSList({}).then((res) => {
- var SJSList = [];
- for (var t = 0; t < res.data.length; t++) {
- SJSList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.SJSList = SJSList;
- });
- },
- getQGJZist() {
- getQGJZist({}).then((res) => {
- var QGJZist = [];
- for (var t = 0; t < res.data.length; t++) {
- QGJZist.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictValue,
- });
- }
- this.QGJZist = QGJZist;
- });
- },
- getTCFXList() {
- getTCFXList({}).then((res) => {
- var TCFXList = [];
- for (var t = 0; t < res.data.length; t++) {
- TCFXList.push({
- text: res.data[t].dictLabel,
- dictCode: res.data[t].dictCode,
- });
- }
- this.TCFXList = TCFXList;
- });
- },
- visitsFn(row) {
- this.$router.push({
- path: '/historicalDetails',
- query: {
- visitId: row.id,
- storeCode: row.storeCode,
- storeId: row.storeId,
- },
- });
- },
- valid() {
- var that = this;
- this.$dialog
- .confirm({
- title: '系统提示',
- message: '是否确认无效关店?',
- })
- .then(() => {
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '加载中...',
- forbidClick: true,
- });
- valid({ storeId: that.list.storeId }).then((res) => {
- loading1.clear();
- if (res.code == 200) {
- window.location.replace(window.location.origin + '/mobile/storeAddress');
- }
- });
- });
- },
- deleteImgs(val) {
- ImagePreview([val]);
- },
- getStoreTypeList() {
- if (localStorage.getItem('storeType') == '2') {
- this.DIYshow = true;
- getStoreyslTypeList({}).then((res) => {
- this.storeTypeList = res.data;
- this.getDetail();
- });
- } else {
- this.DIYshow = false;
- getStoreTypeList({}).then((res) => {
- this.storeTypeList = res.data;
- this.getDetail();
- });
- }
- },
- getDetail() {
- this.pageShow = false;
- this.lat = '';
- this.lon = '';
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '加载中...',
- forbidClick: true,
- });
- getById({ storeId: this.$route.query.id }).then((res) => {
- loading1.clear();
- this.pageShow = true;
- localStorage.setItem('locationRemark', res.data.addressLine);
- localStorage.setItem('orgName', res.data.orgName);
- localStorage.setItem('chainName', res.data.storeName);
- if (res.code == 200) {
- if (res.data.lat != null) {
- this.lat = res.data.lat;
- this.lon = res.data.lon;
- }
- this.list = res.data;
- if (
- res.data.province != null &&
- res.data.province != undefined &&
- res.data.province != ''
- ) {
- this.getStreetQuery('1');
- }
- if (res.data.city != null && res.data.city != undefined && res.data.city != '') {
- this.getStreetQuery('2');
- }
- if (
- res.data.district != null &&
- res.data.district != undefined &&
- res.data.district != ''
- ) {
- this.getStreetQuery('3');
- }
- if (this.list.carShopImgList != null) {
- } else {
- this.list.carShopImgList = [];
- }
- if (this.list.storeCategory == '10131' || this.list.storeCategory == '129081') {
- this.typeABshow = true;
- } else {
- this.typeABshow = false;
- }
- if (this.list.storeCategory == 'C917') {
- this.GZAttributeFormShow = true;
- this.dictTypeSJSFormShow = false;
- this.dictTypeQGJZFormShow = false;
- this.dictTypeFormShow = false;
- this.dictTypeAFormShow = false;
- this.typeABshow = false;
- for (let k = 0; k < this.potentialCustomerTypeList.length; k++) {
- if (this.potentialCustomerTypeList[k].dictCode == this.list.potentialCustomerType) {
- this.list.potentialCustomerType = this.potentialCustomerTypeList[k].text;
- }
- }
- } else {
- this.GZAttributeFormShow = false;
- }
- if (this.list.storeCategory == '129081') {
- this.dictTypeFormShow = true;
- if (this.list.attribute3 != '0' && this.list.attribute3 != null) {
- this.list.tcfxName = this.list.attribute3;
- } else {
- this.list.tcfxName = this.list.attribute5;
- }
- }
- if (this.list.storeCategory == '10131') {
- this.dictTypeFormShow = true;
- for (var k = 0; k < this.TCFXList.length; k++) {
- if (this.TCFXList[k].dictCode == this.list.tcfxName) {
- this.list.tcfxName = this.TCFXList[k].text;
- }
- }
- }
- if (this.list.storeCategory == 'sjs61') {
- this.dictTypeFormShow = true;
- for (var k = 0; k < this.SJSList.length; k++) {
- if (this.SJSList[k].dictCode == this.list.tcfxName) {
- this.list.tcfxName = this.SJSList[k].text;
- }
- }
- }
- if (this.list.storeCategory == 'zyjz63') {
- this.dictTypeFormShow = true;
- for (var k = 0; k < this.QGJZist.length; k++) {
- if (this.QGJZist[k].dictCode == this.list.tcfxName) {
- this.list.tcfxName = this.QGJZist[k].text;
- }
- }
- }
- if (this.list.storeCategory == 'C912') {
- this.storeTypePOP = false;
- this.storeName = '铭牌上项目名称';
- this.address = '地址';
- } else if (this.list.storeCategory == 'C917') {
- this.storeTypePOP = false;
- this.storeName = '名称';
- this.address = '地址';
- } else {
- this.storeTypePOP = true;
- this.storeName = '名称';
- this.address = '地址';
- }
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '定位中...',
- forbidClick: true,
- });
- let url = window.location.href;
- // let url = "https://ssbsfatest.nipponpaint.com.cn/mobile" + window.location.href.split("/mobile")[1]
- let that = this;
- let qiyeData;
- const instance = axios.create();
- instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
- instance
- .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
- params: {
- url: url,
- },
- })
- .then((response) => {
- if (response.status == 200) {
- this.cont = 6;
- var flat = true;
- var times = setInterval(() => {
- this.cont--;
- if (this.cont == '0') {
- if (flat) {
- loading1.clear();
- clearInterval(times);
- that.$dialog
- .alert({
- message: '定位失败,请开启企微定位权限',
- })
- .then(() => {
- this.$router.go(-1);
- });
- } else {
- clearInterval(times);
- }
- }
- }, 1000);
- qiyeData = response.data.data;
- that.wx.config({
- beta: true,
- debug: false,
- appId: qiyeData.appId,
- timestamp: qiyeData.timestamp,
- nonceStr: qiyeData.nonceStr,
- signature: qiyeData.signature,
- jsApiList: ['ready', 'getLocation'],
- });
- that.wx.ready(function () {
- that.wx.getLocation({
- type: 'gcj02',
- success: function (res) {
- flat = false;
- loading1.clear();
- var location = that.CJ02BD(res.latitude, res.longitude);
- that.lat = location.lat;
- that.lon = location.lon;
- that.myLat = location.lat;
- that.myLon = location.lon;
- that.list.lon = location.lon;
- that.list.lat = location.lat;
- },
- fail: function () {
- loading1.clear();
- that.$dialog.alert({
- title: '系统提示',
- message: 'GPS未开启',
- });
- },
- });
- });
- that.wx.error(function (res) {
- this.$toast.fail('定位失败');
- });
- } else {
- this.$toast.fail('接口异常');
- }
- });
- } else {
- this.$toast.fail(res.msg);
- }
- });
- },
- positionFn() {
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '定位中...',
- forbidClick: true,
- });
- let url = window.location.href;
- let that = this;
- let qiyeData;
- const instance = axios.create();
- instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
- instance
- .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
- params: {
- url: url,
- },
- })
- .then((response) => {
- if (response.status == 200) {
- this.cont = 6;
- var flat = true;
- var times = setInterval(() => {
- this.cont--;
- if (this.cont == '0') {
- if (flat) {
- loading1.clear();
- clearInterval(times);
- that.$dialog
- .alert({
- message: '定位失败,请开启企微定位权限',
- })
- .then(() => {
- this.$router.go(-1);
- });
- } else {
- clearInterval(times);
- }
- }
- }, 1000);
- qiyeData = response.data.data;
- that.wx.config({
- beta: true,
- debug: false,
- appId: qiyeData.appId,
- timestamp: qiyeData.timestamp,
- nonceStr: qiyeData.nonceStr,
- signature: qiyeData.signature,
- jsApiList: ['ready', 'getLocation'],
- });
- that.wx.ready(function () {
- that.wx.getLocation({
- type: 'gcj02',
- success: function (res) {
- flat = false;
- loading1.clear();
- var location = that.CJ02BD(res.latitude, res.longitude);
- that.lat = location.lat;
- that.lon = location.lon;
- that.myLat = location.lat;
- that.myLon = location.lon;
- that.list.lon = location.lon;
- that.list.lat = location.lon;
- },
- fail: function () {
- loading1.clear();
- that.$dialog.alert({
- title: '系统提示',
- message: 'GPS未开启',
- });
- },
- });
- });
- that.wx.error(function (res) {
- this.$toast.fail('定位失败');
- });
- } else {
- this.$toast.fail('接口异常');
- }
- });
- },
- editorFn() {
- this.$router.push({
- path: '/storeEdit',
- query: { id: this.$route.query.id, validFlag: this.list.validFlag },
- });
- },
- formLink() {
- this.$router.push('/storeVisit/questions');
- },
- onClickLeft() {
- this.$router.go(-1);
- },
- tabChange(name, title) {
- console.log(name, title);
- },
- placeOrderFn() {
- var that = this;
- let loading1 = this.$toast.loading({
- duration: 0,
- message: '加载中...',
- forbidClick: true,
- });
- addStore(this.list).then((res) => {
- loading1.clear();
- if (res.code == 200) {
- if (res.data.serverCode) {
- if (
- res.data.orderUrl != null &&
- (res.data.orderUrl != '') & (res.data.orderUrl != undefined)
- ) {
- window.location.replace(res.data.orderUrl);
- } else {
- checkVisit({ storeId: res.data.sfaStore.storeId }).then((response) => {
- localStorage.setItem('startTime', new Date());
- localStorage.setItem('ORGName', this.list.deptName);
- localStorage.setItem('chainNameR', this.list.storeName);
- if (response.code == 200) {
- that.$dialog
- .confirm({
- title: '系统提示',
- message: '建店成功,是否立即拜访?',
- confirmButtonText: '立即拜访',
- cancelButtonText: '返回上一页',
- })
- .then(() => {
- localStorage.setItem('startTime', new Date());
- localStorage.setItem('ORGName', res.data.sfaStore.deptName);
- localStorage.setItem('chainNameR', res.data.sfaStore.storeName);
- window.location.replace(
- window.location.origin +
- '/mobile/suishenbangOutstoreVisit?PointSum=0&visitModel=1&tabVal=1&hisTime=null&pageType=out&visitId=null&rdId=null&storeId=' +
- res.data.sfaStore.storeId +
- '&lat=' +
- that.list.lat +
- '&lon=' +
- that.list.lon +
- '&addressLine=' +
- that.list.addressLine +
- '&storeCategory=' +
- res.data.sfaStore.storeCategory +
- '&storeName=' +
- that.list.storeName +
- '&contactName=' +
- that.list.contactName +
- '&storeCode=' +
- res.data.sfaStore.storeCode +
- '&latNew=' +
- that.list.lat +
- '&lonNew=' +
- that.list.lon
- );
- })
- .catch(() => {
- that.$router.go(-2);
- });
- } else {
- that.$dialog
- .alert({
- title: '系统提示',
- message: response.msg,
- })
- .then((res) => {});
- }
- });
- }
- } else {
- this.list.storeCode = res.data.sfaStore.storeCode;
- this.list.storeId = res.data.sfaStore.storeId;
- this.$dialog.alert({
- title: '系统提示',
- message: res.data.serverMsg,
- });
- }
- } else {
- this.msgList = res.msg;
- this.showDialog = true;
- }
- });
- },
- btnClick() {
- this.helpPageFlag = false;
- },
- },
- };
- </script>
- <style scoped lang="scss">
- .container {
- padding-bottom: 50px;
- }
- .myTab .van-tabs__nav--card {
- margin: 0 !important;
- border-left: 0;
- border-right: 0;
- }
- .myTab .van-tabs__wrap,
- .van-tabs__nav--card {
- height: 40px;
- }
- .myTab .van-tab {
- line-height: 40px;
- }
- .helpPageMask {
- width: 100%;
- height: 100%;
- background: rgba($color: #747474, $alpha: 0.8);
- position: fixed;
- z-index: 100000;
- top: 0;
- right: 0;
- left: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- </style>
- <style lang="scss">
- .searchDiv {
- .van-search {
- // background: #fff;
- }
- .van-search__action {
- font-size: 14px;
- color: #0057ba;
- font-weight: bold;
- background: #f1f1f1;
- border-bottom-right-radius: 60px;
- border-top-right-radius: 60px;
- border: 1px solid #ccc;
- padding: 0 20px;
- }
- .van-search--show-action {
- padding-right: 12px;
- }
- .van-search__content {
- border: 1px solid #ccc;
- border-bottom-left-radius: 60px;
- border-top-left-radius: 60px;
- background: #f1f1f1;
- border-right: 0;
- }
- }
- .helpAlert {
- .van-dialog__cancel {
- .van-button__text {
- &::before {
- content: '?';
- background: #f79200;
- width: 20px;
- display: inline-block;
- border-radius: 50%;
- color: #fff;
- }
- }
- }
- }
- </style>
|