123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947 |
- <template>
- <u-popup
- :maskCloseAble="maskCloseAble"
- mode="bottom"
- :popup="false"
- v-model="popupValue"
- length="auto"
- :safeAreaInsetBottom="safeAreaInsetBottom"
- @close="close"
- :z-index="uZIndex"
- :blur="blur"
- >
- <view class="u-datetime-picker">
- <view class="u-picker-header" @touchmove.stop.prevent="stop">
- <view
- class="u-btn-picker u-btn-picker--tips"
- :style="{ color: cancelColor }"
- hover-class="u-opacity"
- :hover-stay-time="150"
- @click="getResult('cancel')"
- >
- {{ cancelText }}
- </view>
- <view class="u-picker__title">{{ title }}</view>
- <view
- class="u-btn-picker u-btn-picker--primary"
- :style="{ color: moving ? cancelColor : confirmColor }"
- hover-class="u-opacity"
- :hover-stay-time="150"
- @touchmove.stop="stop"
- @click.stop="getResult('confirm')"
- >
- {{ confirmText }}
- </view>
- </view>
- <view class="u-picker-body">
- <picker-view
- v-if="mode == 'region'"
- :value="valueArr"
- @change="change"
- class="u-picker-view"
- @pickstart="pickstart"
- @pickend="pickend"
- >
- <picker-view-column v-if="showColumnCom && params && params.province">
- <view class="u-column-item" v-for="(item, index) in provinces" :key="index">
- <view class="u-line-1">{{ item.name }}</view>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.city">
- <view class="u-column-item" v-for="(item, index) in citys" :key="index">
- <view class="u-line-1">{{ item.name }}</view>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.area">
- <view class="u-column-item" v-for="(item, index) in areas" :key="index">
- <view class="u-line-1">{{ item.name }}</view>
- </view>
- </picker-view-column>
- </picker-view>
- <picker-view
- v-else-if="mode == 'time'"
- :value="valueArr"
- @change="change"
- class="u-picker-view"
- @pickstart="pickstart"
- @pickend="pickend"
- >
- <picker-view-column v-if="showColumnCom && params && params.year">
- <view class="u-column-item" v-for="(item, index) in years" :key="index">
- {{ item }}
- <text class="u-text" v-if="showTimeTag">年</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.month">
- <view class="u-column-item" v-for="(item, index) in months" :key="index">
- {{ formatNumber(item) }}
- <text class="u-text" v-if="showTimeTag">月</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.day">
- <view class="u-column-item" v-for="(item, index) in days" :key="index">
- {{ formatNumber(item) }}
- <text class="u-text" v-if="showTimeTag">日</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.hour">
- <view class="u-column-item" v-for="(item, index) in hours" :key="index">
- {{ formatNumber(item) }}
- <text class="u-text" v-if="showTimeTag">时</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.minute">
- <view class="u-column-item" v-for="(item, index) in minutes" :key="index">
- {{ formatNumber(item) }}
- <text class="u-text" v-if="showTimeTag">分</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="showColumnCom && params && params.second">
- <view class="u-column-item" v-for="(item, index) in seconds" :key="index">
- {{ formatNumber(item) }}
- <text class="u-text" v-if="showTimeTag">秒</text>
- </view>
- </picker-view-column>
- </picker-view>
- <picker-view
- v-else-if="mode == 'selector'"
- :value="valueArr"
- @change="change"
- class="u-picker-view"
- @pickstart="pickstart"
- @pickend="pickend"
- >
- <picker-view-column v-if="showColumnCom">
- <view class="u-column-item" v-for="(item, index) in range" :key="index">
- <view class="u-line-1">{{ getItemValue(item, "selector") }}</view>
- </view>
- </picker-view-column>
- </picker-view>
- <picker-view
- v-else-if="mode == 'multiSelector'"
- :value="valueArr"
- @change="change"
- class="u-picker-view"
- @pickstart="pickstart"
- @pickend="pickend"
- >
- <picker-view-column v-if="showColumnCom" v-for="(item, index) in range" :key="index">
- <view class="u-column-item" v-for="(item1, index1) in item" :key="index1">
- <view class="u-line-1">{{ getItemValue(item1, "multiSelector") }}</view>
- </view>
- </picker-view-column>
- </picker-view>
- </view>
- </view>
- </u-popup>
- </template>
- <script>
- import provinces from "../../libs/address/provinces.json";
- import citys from "../../libs/address/citys.json";
- import areas from "../../libs/address/areas.json";
- import timeFormat from '../../libs/function/timeFormat.js';
- export default {
- name: "u-picker",
- emits: ["update:modelValue", "input", "confirm", "cancel", "columnchange"],
- props: {
-
- value: {
- type: Boolean,
- default: false
- },
- modelValue: {
- type: Boolean,
- default: false
- },
-
- params: {
- type: [Object, null],
- default() {
- return {
- year: true,
- month: true,
- day: true,
- hour: false,
- minute: false,
- second: false,
- province: true,
- city: true,
- area: true,
- timestamp: true
- };
- }
- },
-
- range: {
- type: Array,
- default() {
- return [];
- }
- },
-
- defaultSelector: {
- type: Array,
- default() {
- return [0];
- }
- },
-
- rangeKey: {
- type: String,
- default: ""
- },
-
- mode: {
- type: String,
- default: "time"
- },
-
- startYear: {
- type: [String, Number],
- default: 1950
- },
-
- endYear: {
- type: [String, Number],
- default: 2050
- },
-
- cancelColor: {
- type: String,
- default: "#606266"
- },
-
- confirmColor: {
- type: String,
- default: "#2979ff"
- },
-
- defaultTime: {
- type: [String, null],
- default: ""
- },
-
- defaultRegion: {
- type: [Array, null],
- default() {
- return [];
- }
- },
-
- showTimeTag: {
- type: Boolean,
- default: true
- },
-
- areaCode: {
- type: [Array, null],
- default() {
- return [];
- }
- },
- safeAreaInsetBottom: {
- type: Boolean,
- default: false
- },
-
- maskCloseAble: {
- type: Boolean,
- default: true
- },
-
- zIndex: {
- type: [String, Number],
- default: 0
- },
-
- title: {
- type: String,
- default: ""
- },
-
- cancelText: {
- type: String,
- default: "取消"
- },
-
- confirmText: {
- type: String,
- default: "确认"
- },
-
- blur: {
- type: [String, Number],
- default: 0
- }
- },
- data() {
- return {
- popupValue: false,
- years: [],
- months: [],
- days: [],
- hours: [],
- minutes: [],
- seconds: [],
- year: 0,
- month: 0,
- day: 0,
- hour: 0,
- minute: 0,
- second: 0,
- reset: false,
- startDate: "",
- endDate: "",
- valueArr: [],
- provinces: provinces,
- citys: citys[0],
- areas: areas[0][0],
- province: 0,
- city: 0,
- area: 0,
- moving: false
- };
- },
- mounted() {
- this.init();
- },
- computed: {
- valueCom() {
-
- return this.value;
-
-
- return this.modelValue;
-
- },
- propsChange() {
-
- let { mode, defaultTime, startYear, endYear, defaultRegion, areaCode, defaultSelector } = this;
- return JSON.stringify({ mode, defaultTime, startYear, endYear, defaultRegion, areaCode, defaultSelector });
- },
- regionChange() {
-
- return `${this.province}-${this.city}`;
- },
- yearAndMonth() {
- return `${this.year}-${this.month}`;
- },
- uZIndex() {
-
- return this.zIndex ? this.zIndex : this.$u.zIndex.popup;
- },
-
- showColumnCom(){
-
- return !this.reset;
-
-
- return true;
-
- }
- },
- watch: {
- propsChange() {
- this.reset = true;
- setTimeout(() => this.init(), 10);
- },
-
- regionChange(val) {
- this.citys = citys[this.province];
- this.areas = areas[this.province][this.city];
- },
-
-
- yearAndMonth(val) {
- if (this.params && this.params.year) this.setDays();
- },
-
- valueCom:{
- immediate: true,
- handler(n){
- if (n) {
- this.reset = true;
- setTimeout(() => this.init(), 10);
- }
- this.popupValue = n;
- }
- }
- },
- methods: {
-
- pickstart() {
-
- this.moving = true;
-
- },
-
- pickend() {
-
- this.moving = false;
-
- },
-
- getItemValue(item, mode) {
-
-
- if (this.mode == mode) {
- return typeof item == "object" ? item[this.rangeKey] : item;
- }
- },
-
- formatNumber(num) {
- return +num < 10 ? "0" + num : String(num);
- },
-
- generateArray: function(start, end) {
-
- start = Number(start);
- end = Number(end);
- end = end > start ? end : start;
-
- return [...Array(end + 1).keys()].slice(start);
- },
- getIndex: function(arr, val) {
- let index = arr.indexOf(val);
-
- return ~index ? index : 0;
- },
-
- initTimeValue() {
-
- let fdate;
-
- if (!this.defaultTime) {
- fdate = timeFormat(Date.now(), "yyyy/mm/dd hh:MM:ss");
- } else {
- fdate = this.defaultTime.replace(/\-/g, "/");
- }
- fdate = fdate && fdate.indexOf("/") == -1 ? `2020/01/01 ${fdate}` : fdate;
-
-
- let arr1 = fdate.split(" ");
- let arr1_1 = arr1[0] || "";
- let arr1_2 = arr1[1] || "";
- let arr2;
- if (arr1_1.indexOf("-") > -1) {
- arr2 = arr1_1.split("-");
- } else {
- arr2 = arr1_1.split("/");
- }
- let arr3 = arr1_2.split(":");
- let dateObj = {
- year: Number(arr2[0]),
- month: Number(arr2[1]) || 1,
- day: Number(arr2[2]) || 1,
- hour: Number(arr3[0]) || 0,
- minute: Number(arr3[1]) || 0,
- second: Number(arr3[2]) || 0,
- };
- for (let key in dateObj) {
- if (dateObj[key] >= 0 && dateObj[key] < 10) dateObj[key] = `0${dateObj[key]}`;
- }
- fdate = `${dateObj.year}/${dateObj.month}/${dateObj.day} ${dateObj.hour}:${dateObj.minute}:${dateObj.second}`;
-
- let time = null;
- if (fdate) time = new Date(fdate);
- else time = new Date();
-
- this.year = time.getFullYear();
- this.month = Number(time.getMonth()) + 1;
- this.day = time.getDate();
- this.hour = time.getHours();
- this.minute = time.getMinutes();
- this.second = time.getSeconds();
- },
- init() {
- this.valueArr = [];
- this.reset = false;
- let params = this.params || {};
- if (this.mode == "time") {
- this.initTimeValue();
- if (params.year) {
- this.valueArr.push(0);
- this.setYears();
- }
- if (params.month) {
- this.valueArr.push(0);
- this.setMonths();
- }
- if (params.day) {
- this.valueArr.push(0);
- this.setDays();
- }
- if (params.hour) {
- this.valueArr.push(0);
- this.setHours();
- }
- if (params.minute) {
- this.valueArr.push(0);
- this.setMinutes();
- }
- if (params.second) {
- this.valueArr.push(0);
- this.setSeconds();
- }
- } else if (this.mode == "region") {
- if (params.province) {
- this.valueArr.push(0);
- this.setProvinces();
- }
- if (params.city) {
- this.valueArr.push(0);
- this.setCitys();
- }
- if (params.area) {
- this.valueArr.push(0);
- this.setAreas();
- }
- } else if (this.mode == "selector") {
- this.valueArr = this.defaultSelector;
- } else if (this.mode == "multiSelector") {
- this.valueArr = this.defaultSelector;
- this.multiSelectorValue = this.defaultSelector;
- }
- this.$forceUpdate();
- },
-
- setYears() {
-
- this.years = this.generateArray(this.startYear, this.endYear);
-
- this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.years, this.year));
- },
- setMonths() {
- this.months = this.generateArray(1, 12);
- this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.months, this.month));
- },
- setDays() {
- let params = this.params || {};
- let totalDays = new Date(this.year, this.month, 0).getDate();
- this.days = this.generateArray(1, totalDays);
- let index = 0;
-
-
- if (params.year && params.month) index = 2;
- else if (params.month) index = 1;
- else if (params.year) index = 1;
- else index = 0;
-
-
- if (this.day > this.days.length) this.day = this.days.length;
- this.valueArr.splice(index, 1, this.getIndex(this.days, this.day));
- },
- setHours() {
- this.hours = this.generateArray(0, 23);
- this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.hours, this.hour));
- },
- setMinutes() {
- this.minutes = this.generateArray(0, 59);
- this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.minutes, this.minute));
- },
- setSeconds() {
- this.seconds = this.generateArray(0, 59);
- this.valueArr.splice(this.valueArr.length - 1, 1, this.getIndex(this.seconds, this.second));
- },
- setProvinces() {
- let params = this.params || {};
-
- if (!params.province) return;
- let tmp = "";
- let useCode = false;
-
- if (this.areaCode && this.areaCode.length) {
- tmp = this.areaCode[0];
- useCode = true;
- } else if (this.defaultRegion && this.defaultRegion.length) tmp = this.defaultRegion[0];
- else tmp = 0;
-
- provinces.map((v, k) => {
- if (useCode ? v.code == tmp : v.name == tmp) {
- tmp = k;
- }
- });
- this.province = tmp;
- this.provinces = provinces;
-
- this.valueArr.splice(0, 1, this.province);
- },
- setCitys() {
- let params = this.params || {};
- if (!params.city) return;
- let tmp = "";
- let useCode = false;
- if (this.areaCode && this.areaCode.length) {
- tmp = this.areaCode[1];
- useCode = true;
- } else if (this.defaultRegion && this.defaultRegion.length) tmp = this.defaultRegion[1];
- else tmp = 0;
- citys[this.province].map((v, k) => {
- if (useCode ? v.code == tmp : v.name == tmp) {
- tmp = k;
- }
- });
- this.city = tmp;
- this.citys = citys[this.province];
- this.valueArr.splice(1, 1, this.city);
- },
- setAreas() {
- let params = this.params || {};
- if (!params.area) return;
- let tmp = "";
- let useCode = false;
- if (this.areaCode && this.areaCode.length) {
- tmp = this.areaCode[2];
- useCode = true;
- } else if (this.defaultRegion && this.defaultRegion.length) tmp = this.defaultRegion[2];
- else tmp = 0;
- areas[this.province][this.city].map((v, k) => {
- if (useCode ? v.code == tmp : v.name == tmp) {
- tmp = k;
- }
- });
- this.area = tmp;
- this.areas = areas[this.province][this.city];
- this.valueArr.splice(2, 1, this.area);
- },
- close() {
- this.$emit("input", false);
- this.$emit("update:modelValue", false);
- },
-
- change(e) {
- let params = this.params || {};
- let oldValueArr = JSON.parse(JSON.stringify(this.valueArr || []));
- this.valueArr = e.detail.value;
- let i = 0;
- if (this.mode == "time") {
-
-
- if (params.year) this.year = this.years[this.valueArr[i++]];
- if (params.month) this.month = this.months[this.valueArr[i++]];
- if (params.day) this.day = this.days[this.valueArr[i++]];
- if (params.hour) this.hour = this.hours[this.valueArr[i++]];
- if (params.minute) this.minute = this.minutes[this.valueArr[i++]];
- if (params.second) this.second = this.seconds[this.valueArr[i++]];
- } else if (this.mode == "region") {
- if (params.province) this.province = this.valueArr[i++];
- if (params.city) this.city = this.valueArr[i++];
- if (params.area) this.area = this.valueArr[i++];
- } else if (this.mode == "multiSelector") {
- let index = null;
-
- oldValueArr.map((val, idx) => {
- if (val !== e.detail.value[idx]) index = idx;
- });
-
- if (index !== null) {
- this.$emit("columnchange", {
- column: index,
- index: e.detail.value[index]
- });
- }
- }
- },
-
- getResult(event = null) {
- let params = this.params || {};
-
- if (this.moving) return;
-
- let result = {};
-
- if (this.mode == "time") {
- if (params.year) result.year = this.formatNumber(this.year || 0);
- if (params.month) result.month = this.formatNumber(this.month || 0);
- if (params.day) result.day = this.formatNumber(this.day || 0);
- if (params.hour) result.hour = this.formatNumber(this.hour || 0);
- if (params.minute) result.minute = this.formatNumber(this.minute || 0);
- if (params.second) result.second = this.formatNumber(this.second || 0);
- if (params.timestamp) result.timestamp = this.getTimestamp();
- } else if (this.mode == "region") {
- if (params.province) result.province = provinces[this.province];
- if (params.city) result.city = citys[this.province][this.city];
- if (params.area) result.area = areas[this.province][this.city][this.area];
- } else if (this.mode == "selector") {
- result = this.valueArr;
- } else if (this.mode == "multiSelector") {
- result = this.valueArr;
- }
- if (event) this.$emit(event, result);
- this.close();
- },
-
- getTimestamp() {
-
- let time =
- this.year +
- "/" +
- this.month +
- "/" +
- this.day +
- " " +
- this.hour +
- ":" +
- this.minute +
- ":" +
- this.second;
- return new Date(time).getTime() / 1000;
- },
-
- getDateSource() {
- return {
- provinces,
- citys,
- areas
- };
- },
-
- regionDiscern(addressText){
-
- let address = "";
-
- let province = {};
-
- let city = {};
-
- let area = {};
- if (!addressText) return { code: -1, msg: "地址文本不能为空" };
- addressText.trim();
-
-
- let firstTwoKey = addressText.substring(0, 2);
-
- let provinceIndex = -1;
- for (let i = 0; i < provinces.length; i++) {
- let { code, name } = provinces[i];
- if (name.indexOf(firstTwoKey) == 0) {
- province = { code, name };
- provinceIndex = i;
- break;
- }
- }
- if (provinceIndex == -1) return { code: -1, msg: `省份【${firstTwoKey}】没有找到,请输入正确的地址` };
-
- let citysArr = citys[provinceIndex];
-
- let cityIndex = -1;
- for (let i = 0; i < citysArr.length; i++) {
- let { name, code } = citysArr[i];
-
- let cityName = name.substr(0, name.length - 1);
-
- if (addressText.indexOf(cityName) > -1) {
- city = { code, name };
- cityIndex = i;
- break;
- }
- }
- if (cityIndex == -1) return { code: -1, msg: `地级市没有找到,请输入正确的地址` };
-
- let areasArr = areas[provinceIndex][cityIndex];
-
- let areaIndex = -1;
- for (let i = 0; i < areasArr.length; i++) {
- let { code, name } = areasArr[i];
-
-
- let reg = name;
- if (name.length > 2) reg += `|${name.substr(0, name.length - 1)}`;
-
- let areaRegExp = new RegExp(reg);
- if (addressText.search(areaRegExp) > -1) {
- area = { code, name };
-
- address = addressText.replace(new RegExp(reg), "{{~}}").split("{{~}}")[1];
- areaIndex = i;
- break;
- }
- }
- if (areaIndex == -1) return { code: -1, msg: "县级市没有找到,请输入正确的地址" };
- let formatted_address = `${province.name}${city.name}${area.name}${address}`;
- let res = {
- code: 0,
- msg: "ok",
- data: {
- province,
- city,
- area,
- address,
- formatted_address,
- }
- };
- return res;
- },
-
- addressDiscern(text) {
-
- let name = "";
-
- let mobile = "";
-
- let address = "";
-
- let province = {};
-
- let city = {};
-
- let area = {};
- if (!text) return { code: -1, msg: "地址文本不能为空" };
-
- let textArr = text.split(/[^\u4e00-\u9fa5a-zA-Z0-9+-()()]+/g).filter(v => v.length);
- if (textArr.length != 3) return { code: -1, msg: "地址格式不正确,请按姓名 手机号 收货地址格式。" };
-
- let temp;
- let addressText;
- for (let [k, v] of textArr.entries()) {
- if (/^1[3,4,5,6,7,8,9][0-9]{9}$/.test(v)) {
- mobile = v;
- continue;
- }
-
- if (!temp) {
- temp = v;
- continue;
- }
-
- temp.length > v.length? ((addressText = temp), (name = v)): ((addressText = v), (name = temp));
- }
- let positionRes = this.regionDiscern(addressText);
- if (positionRes.code !== 0) return positionRes;
- let res = {
- code: 0,
- msg: "ok",
- data: {
- name,
- mobile,
- position: positionRes.data,
- }
- };
- return res;
- },
- stop(){
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .u-datetime-picker {
- position: relative;
- z-index: 999;
- }
- .u-picker-view {
- height: 100%;
- box-sizing: border-box;
- }
- .u-picker-header {
- width: 100%;
- height: 90rpx;
- padding: 0 40rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-sizing: border-box;
- font-size: 30rpx;
- background: #fff;
- position: relative;
- }
- .u-picker-header::after {
- content: "";
- position: absolute;
- border-bottom: 1rpx solid #eaeef1;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- bottom: 0;
- right: 0;
- left: 0;
- }
- .u-picker__title {
- color: $u-content-color;
- }
- .u-picker-body {
- width: 100%;
- height: 500rpx;
- overflow: hidden;
- background-color: #fff;
- }
- .u-column-item {
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 32rpx;
- color: $u-main-color;
- padding: 0 8rpx;
- }
- .u-text {
- font-size: 24rpx;
- padding-left: 8rpx;
- }
- .u-btn-picker {
- padding: 16rpx;
- box-sizing: border-box;
- text-align: center;
- text-decoration: none;
- }
- .u-opacity {
- opacity: 0.5;
- }
- .u-btn-picker--primary {
- color: $u-type-primary;
- }
- .u-btn-picker--tips {
- color: $u-tips-color;
- }
- </style>
|