Commit 82b112b0 by 姜雷

修改意见反馈功能

parent ff7a7135
......@@ -20,21 +20,21 @@
"author": "",
"license": "MIT",
"dependencies": {
"@tarojs/async-await": "1.3.4",
"@tarojs/components": "1.3.4",
"@tarojs/redux": "1.3.4",
"@tarojs/redux-h5": "1.3.4",
"@tarojs/router": "1.3.4",
"@tarojs/taro": "1.3.4",
"@tarojs/taro-alipay": "1.3.4",
"@tarojs/taro-h5": "1.3.4",
"@tarojs/taro-swan": "1.3.4",
"@tarojs/taro-tt": "1.3.4",
"@tarojs/taro-weapp": "1.3.4",
"@tarojs/async-await": "1.3.14",
"@tarojs/components": "1.3.14",
"@tarojs/redux": "1.3.14",
"@tarojs/redux-h5": "1.3.14",
"@tarojs/router": "1.3.14",
"@tarojs/taro": "1.3.14",
"@tarojs/taro-alipay": "1.3.14",
"@tarojs/taro-h5": "1.3.14",
"@tarojs/taro-swan": "1.3.14",
"@tarojs/taro-tt": "1.3.14",
"@tarojs/taro-weapp": "1.3.14",
"crypto-js": "^3.1.9-1",
"jsbarcode": "^3.11.0",
"nerv-devtools": "^1.4.3",
"nervjs": "^1.4.3",
"nerv-devtools": "^1.4.4",
"nervjs": "^1.4.4",
"npm": "^6.8.0",
"redux": "^4.0.0",
"redux-logger": "^3.0.6",
......@@ -42,11 +42,11 @@
"wxbarcode": "^1.0.2"
},
"devDependencies": {
"@tarojs/plugin-babel": "1.3.4",
"@tarojs/plugin-csso": "1.3.4",
"@tarojs/plugin-sass": "1.3.4",
"@tarojs/plugin-uglifyjs": "1.3.4",
"@tarojs/webpack-runner": "1.3.4",
"@tarojs/plugin-babel": "1.3.14",
"@tarojs/plugin-csso": "1.3.14",
"@tarojs/plugin-sass": "1.3.14",
"@tarojs/plugin-uglifyjs": "1.3.14",
"@tarojs/webpack-runner": "1.3.14",
"@types/react": "^16.4.8",
"@types/webpack-env": "^1.13.6",
"babel-eslint": "^8.2.3",
......@@ -57,10 +57,10 @@
"babel-preset-env": "^1.6.1",
"cross-env": "^5.2.0",
"eslint": "^4.19.1",
"eslint-config-taro": "1.3.4",
"eslint-config-taro": "1.3.14",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-taro": "1.3.4",
"eslint-plugin-taro": "1.3.14",
"eslint-plugin-typescript": "^0.12.0",
"typescript": "^3.0.1"
}
......
import { customerFetch, ResponseDataEntity } from '.';
type FetchFeedbackListParams = {
pageNum: number;
customerId: number;
pageSize: number;
lastId?: number;
};
type CustomerFeedbackDetailVo = {
feedbackId: number;
replayAt: string;
replayContent: string;
};
export type FeedbackItem = {
content: string;
createDate: string;
id: number;
replayList: CustomerFeedbackDetailVo[];
};
export const fetchFeedbackList = (
params: FetchFeedbackListParams,
): Promise<ResponseDataEntity<FeedbackItem[]>> =>
customerFetch({
url: '/dcxy/customerFeedback/customerFeedback',
data: params,
});
type AddFeedbackParams = {
content: string;
customerId: number; // 会员id
deviceInfo?: string;
state?: number;
};
export const addFeedback = (params: AddFeedbackParams) =>
customerFetch({
url: '/dcxy/customerFeedback/customerFeedback',
method: 'POST',
data: params,
});
import Taro, { useEffect, useState } from '@tarojs/taro';
const useButtonPadding = () => {
const [state, setState] = useState(0);
useEffect(() => {
const res = Taro.getSystemInfoSync();
if (/iPhone X(\w)?/.test(res.model)) {
console.log('is iphone X');
setState(34);
}
}, []);
return state;
};
export default useButtonPadding;
import { useReducer } from '@tarojs/taro';
import Actions from '@/types/Store/Actions';
type Pagination = {
pageNum: number;
pageSize: number;
total: number;
};
const initState: Pagination = {
pageNum: 1,
pageSize: 10,
total: 0,
};
const reducer = (state: Pagination, action: Actions): Pagination => {
switch (action.type) {
case 'updatePagination':
return { ...state, ...action.payload };
default:
return state;
}
};
const usePagination = (
initData?: Pagination,
): [Pagination, (e: Pagination) => void] => {
const [state, dispatch] = useReducer(reducer, { ...initState, ...initData });
const updatePagination = (e: Pagination) => {
dispatch({ type: 'updatePagination', payload: e });
};
return [state, updatePagination];
};
export default usePagination;
.Feedback {
box-sizing: border-box;
position: relative;
flex-direction: column;
height: 100%;
background-color: #eee;
.Feedback-input {
border-top: 1px solid #eee;
background-color: #fff;
background-color: #fff;
padding-bottom: 112px;
.Feedback-Content-wrap {
// box-sizing: border-box;
height: 100%;
overflow-y: auto;
.Feedback-Content {
// height: 100%;
}
}
.Feedback-Footer {
position: fixed;
bottom: 0;
box-sizing: border-box;
padding: 20px;
display: flex;
width: 100%;
height: 468px;
line-height: 50px;
font-size: 28px;
}
.Feedback-btn {
margin: 40px 32px 0;
padding: 0 32px;
height: 112px;
align-items: center;
.input-placeholder {
font-size: 28px;
color: #d4d7fd;
}
.Feedback-Footer-Input {
background-color: #8c95fa;
border-radius: 16px;
flex: 1;
height: 92px;
line-height: 92px;
color: #fff;
padding-left: 40px;
}
.Feedback-Footer-Btn {
width: 128px;
margin-left: 20px;
background-color: #ffab3e;
border-radius: 16px;
font-size: 28px;
height: 92px;
line-height: 92px;
}
}
}
import { ComponentClass } from 'react';
import Taro, { Component, Config } from '@tarojs/taro';
import { View, Textarea, Button } from '@tarojs/components';
import { fetchFeedback } from '../../api/customer';
import { connect } from '@tarojs/redux';
import Taro, {
useState,
useEffect,
useShareAppMessage,
clientRectElement,
} from '@tarojs/taro';
import { View, Button, Input, ScrollView } from '@tarojs/components';
import { useSelector } from '@tarojs/redux';
import './Feedback.scss';
import { shareHandle } from '@/common/shareMethod';
import useInputValue from '@/hooks/useInputValue';
import { Customer } from '@/types/Customer/Customer';
import useFeedbackList from './useFeedbackList';
import { addFeedback } from '@/api/feedback';
import useButtonPadding from '@/hooks/useButtonPadding';
import FeedbackItem from './components/FeedbackItem/FeedbackItem';
import { formatDate } from '@/utils/time';
type PageProps = {
areaId: number;
areaName: string;
customerId: number;
customerName: string;
customerPhone: string;
};
type PageState = {
feedbackContent: string;
};
interface Feedback {
props: PageProps;
state: PageState;
}
@connect(({ userinfo }) => ({
areaId: userinfo.areaId,
areaName: userinfo.areaName,
customerId: userinfo.customerId,
customerName: userinfo.customerName,
customerPhone: userinfo.customerPhone,
}))
class Feedback extends Component<PageProps, PageState> {
config: Config = {
navigationBarTitleText: '意见反馈',
};
constructor(props) {
super(props);
this.state = {
feedbackContent: '',
};
}
onShareAppMessage = shareHandle;
feedbackHandle() {
function Feedback() {
useShareAppMessage(shareHandle);
const { value, onChange } = useInputValue('');
const userInfo = useSelector((state: any): Customer => state.userinfo);
const { list, fetchListHandle, pushNewMsg } = useFeedbackList(
userInfo.customerId,
);
const bottomHeight = useButtonPadding();
const [showKeyboard, setShowKeyboard] = useState(false);
const addFeedbackHandle = () => {
Taro.showLoading();
const { feedbackContent } = this.state;
if (feedbackContent && feedbackContent.length >= 5) {
const {
areaId,
areaName,
customerId,
customerName,
customerPhone,
} = this.props;
fetchFeedback({
areaId,
areaName,
customerId,
customerName,
customerPhone,
feedbackContent,
if (value) {
addFeedback({
content: value,
customerId: userInfo.customerId,
})
.then(res => {
Taro.hideLoading();
console.log(res);
Taro.showToast({
title: '反馈成功',
icon: 'success',
onChange({
type: '',
detail: { value: '', cursor: 0, keyCode: 0 },
timeStamp: 0,
target: this,
currentTarget: this,
preventDefault: () => {},
stopPropagation: () => {},
});
pushNewMsg({
id: 0,
content: value,
createDate: formatDate(new Date()),
replayList: [],
});
setTimeout(() => {
Taro.navigateBack();
}, 2000);
})
.catch(err => {
Taro.hideLoading();
......@@ -85,29 +66,80 @@ class Feedback extends Component<PageProps, PageState> {
icon: 'none',
});
}
}
render() {
return (
<View className='Feedback'>
<Textarea
className='Feedback-input'
value={this.state.feedbackContent}
};
const [scrollTop, setScrollTop] = useState(0);
useEffect(() => {
wx.onKeyboardHeightChange(res => {
console.log(res.height);
if (res.height) {
setShowKeyboard(true);
} else {
setShowKeyboard(false);
}
});
}, []);
useEffect(() => {
Taro.createSelectorQuery()
.select('.Feedback-Content')
.boundingClientRect((rect: clientRectElement) => {
console.log(rect);
if (rect) setScrollTop(rect.height);
})
.exec();
}, [list.length]);
const scrollToUpperHandle = () => {
if (list.length) {
fetchListHandle(list[0].id);
}
};
return (
<View
className='Feedback'
style={`padding-bottom: ${Taro.pxTransform(112 + bottomHeight)}`}>
<ScrollView
className='Feedback-Content-wrap'
scrollY
scrollWithAnimation
upperThreshold={-40}
onScrollToUpper={scrollToUpperHandle}
scrollTop={scrollTop}>
<View className='Feedback-Content'>
{list.map(item => (
<FeedbackItem
key={item.id}
msgData={item}
userData={{
customerHead: userInfo.customerHead,
customerSex: userInfo.customerSex,
}}
/>
))}
</View>
</ScrollView>
<View
className='Feedback-Footer'
style={`bottom: ${Taro.pxTransform(bottomHeight)}`}>
<Input
className='Feedback-Footer-Input'
value={value}
onInput={onChange}
placeholder='反馈问题不超过50字'
maxlength={50}
onInput={({ detail: { value } }) => {
this.setState({
feedbackContent: value.trim(),
});
return value.trim();
}}
maxLength={50}
confirmType='send'
onConfirm={addFeedbackHandle}
/>
<Button className='Feedback-btn' onClick={this.feedbackHandle}>
提交
</Button>
{!showKeyboard && (
<Button className='Feedback-Footer-Btn' onClick={addFeedbackHandle}>
发送
</Button>
)}
</View>
);
}
</View>
);
}
export default Feedback as ComponentClass<PageProps, PageState>;
Feedback.config = {
navigationBarTitleText: '意见反馈',
};
export default Feedback;
import { View } from '@tarojs/components';
import Message, { MessageType } from '../Message/Message';
import { FeedbackItem } from '@/api/feedback';
const FeedbackItem = ({
msgData,
userData,
}: {
msgData: FeedbackItem;
userData: {
customerHead: null | string;
customerSex: string;
};
}) => {
return (
<View className='FeedbackItem'>
{msgData && (
<Message
type={MessageType.user}
content={msgData.content}
time={msgData.createDate}
userData={userData}
/>
)}
{msgData &&
msgData.replayList.map(replay => (
<Message
key={replay.feedbackId}
type={MessageType.replay}
content={replay.replayContent}
time={replay.replayAt}
userData={userData}
/>
))}
</View>
);
};
export default FeedbackItem;
.Message {
display: flex;
margin: 10px 32px;
&.user {
justify-content: flex-end;
.Message-Content {
background-color: #8c95fa;
border-radius: 20px 0 20px 20px;
color: #fff;
}
.Message-Content-time {
text-align: right;
}
}
&.replay {
.Message-Content {
background-color: #f7f7f7;
border-radius: 0 20px 20px 20px;
color: #333;
}
}
.Message-UserHeader {
width: 80px;
height: 80px;
.Message-UserHeader-img {
width: 100%;
height: 100%;
}
}
.Message-Content {
box-sizing: border-box;
width: 486px;
margin: 40px 20px 0;
padding: 20px;
font-size: 28px;
.Message-Content-time {
margin-top: 12px;
font-size: 24px;
}
}
}
import { View, Image } from '@tarojs/components';
import BoyIcon from '../../../../images/home/bg_touxiang_boy@2x.png';
import GirlIcon from '../../../../images/home/bg_touxiang_girl@2x.png';
import ReplayIcon from '../../../../images/home/ic_fankui_kefu@2x.png';
import './Message.scss';
import { CustomerSex } from '@/types/Customer/Customer';
export enum MessageType {
user = 'user',
replay = 'replay',
}
const Message = ({
type,
content,
time,
userData,
}: {
type: MessageType;
content: string;
time: string;
userData: {
customerHead: null | string;
customerSex: string;
};
}) => {
return (
<View
className={`Message ${type === MessageType.user ? 'user' : 'replay'}`}>
{type === MessageType.replay && (
<View className='Message-UserHeader'>
<Image className='Message-UserHeader-img' src={ReplayIcon} />
</View>
)}
<View className='Message-Content'>
<View className='Message-Content-msg'>{content}</View>
<View className='Message-Content-time'>{time}</View>
</View>
{type === MessageType.user && (
<View className='Message-UserHeader'>
{userData.customerHead ? (
<Image
className='Message-UserHeader-img'
src={userData.customerHead}
/>
) : userData.customerSex === CustomerSex.boy ? (
<Image className='Message-UserHeader-img' src={BoyIcon} />
) : (
<Image className='Message-UserHeader-img' src={GirlIcon} />
)}
</View>
)}
</View>
);
};
export default Message;
import Taro, { useEffect, useState, useReducer } from '@tarojs/taro';
import { fetchFeedbackList, FeedbackItem } from '@/api/feedback';
import usePagination from '@/hooks/usePagination';
import Actions from '@/types/Store/Actions';
const reducer = (state: FeedbackItem[], action: Actions): FeedbackItem[] => {
switch (action.type) {
case 'getMoreList':
return [...action.payload, ...state];
case 'refreshList':
return action.payload;
case 'addNewMessage':
return [...state, action.payload];
default:
return state;
}
};
const initState: FeedbackItem[] = [];
const useFeedbackList = (customerId: number) => {
const [lastId, setLastId] = useState(0);
const [pagination, setPaination] = usePagination();
const fetchListHandle = (lastId: number) => setLastId(lastId);
const [feedbackList, dispatch] = useReducer(reducer, initState);
useEffect(() => {
Taro.showLoading();
fetchFeedbackList(
lastId
? {
pageNum: pagination.pageNum + 1,
pageSize: pagination.pageSize,
customerId,
lastId,
}
: {
pageNum: 1,
pageSize: pagination.pageSize,
customerId,
},
)
.then(res => {
console.log(res);
if (res.data.length) {
if (lastId) {
dispatch({
type: 'getMoreList',
payload: res.data,
});
setPaination({ ...pagination, pageNum: pagination.pageNum + 1 });
} else {
dispatch({
type: 'refreshList',
payload: res.data,
});
}
}
Taro.hideLoading();
})
.catch(err => {
Taro.hideLoading();
Taro.showToast({
title: err.msg || '请求失败',
icon: 'none',
});
});
}, [lastId]);
const pushNewMsg = (msgData: FeedbackItem) =>
dispatch({
type: 'addNewMessage',
payload: msgData,
});
return { list: feedbackList, fetchListHandle, pushNewMsg };
};
export default useFeedbackList;
export enum CustomerSex {
boy = '1',
girl = '0',
}
export type Customer = {
areaId: number;
areaName: string;
......@@ -8,7 +12,7 @@ export type Customer = {
customerId: number;
customerName: string;
customerPhone: string;
customerSex: string;
customerSex: CustomerSex;
customerType: string;
email: string;
entranceDate: string;
......
export const formatDate = (date: Date, fmt = 'yyyy-MM-dd hh:mm:ss'): string => {
if (!date) {
return '无';
}
if (typeof date === 'string') {
date = new Date(date);
// date = new Date(date.replace('-', '/'));
}
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(
RegExp.$1,
(date.getFullYear() + '').substr(4 - RegExp.$1.length),
);
}
let o = {
'M+': date.getMonth() + 1,
'd+': date.getDate(),
'h+': date.getHours(),
'm+': date.getMinutes(),
's+': date.getSeconds(),
};
for (let k in o) {
if (new RegExp(`(${k})`).test(fmt)) {
let str = o[k] + '';
fmt = fmt.replace(
RegExp.$1,
RegExp.$1.length === 1 ? str : ('00' + str).substr(str.length),
);
}
}
return fmt;
};
......@@ -78,16 +78,18 @@
lodash "^4.2.0"
to-fast-properties "^2.0.0"
"@tarojs/async-await@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/async-await/-/async-await-1.3.4.tgz#82dc0453c2288e248feced32f81352d2ac778b68"
"@tarojs/async-await@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/async-await/-/async-await-1.3.14.tgz#64b440c965848eed87d038cd601fd94681928cc1"
integrity sha512-ZKsuky6PWm7UUxHUM4Hgfj4kJV5lunXLZYr2oBn6OWc3IHKifpyI+0MV+eedjHWVjR0xYLPzUgkxjM0+ya7/6w==
dependencies:
promise-polyfill "^7.1.2"
regenerator-runtime "^0.11.1"
"@tarojs/components@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/components/-/components-1.3.4.tgz#fd29268d5425c44d69b8ae906bb8f4a126396f94"
"@tarojs/components@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/components/-/components-1.3.14.tgz#4f79a8979c2df96eb38a323124709ccc2cb64886"
integrity sha512-CN2GSw2mg1XRd5/PtuylCkGEPHS48WORy3klctPcfLlHFWrMRLrCROc+0MiVIeq37hTXsJULN4UcSgpkuuaAdA==
dependencies:
better-scroll "^1.14.1"
classnames "^2.2.5"
......@@ -96,70 +98,79 @@
swiper "^4.4.2"
weui "^1.1.2"
"@tarojs/plugin-babel@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-babel/-/plugin-babel-1.3.4.tgz#59924f54a93f6f5bf3a2fd8f4183f34093ae5392"
"@tarojs/plugin-babel@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-babel/-/plugin-babel-1.3.14.tgz#04b8b0a5f9e210418f19f7ca75f9543f1a9a6cbe"
integrity sha512-y5WI1H0KZW8d+sUYPn0zFaeSnCcwaAsHmGiDdel7RpbId0Yi0Sh92iv5HEvVbZL7FG0swExXMWtGL9AFXItWBw==
dependencies:
babel-core "^6.26.0"
"@tarojs/plugin-csso@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-csso/-/plugin-csso-1.3.4.tgz#14d54e834fe83b1f0de5fe42d783a1fabd9171e1"
"@tarojs/plugin-csso@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-csso/-/plugin-csso-1.3.14.tgz#73d534ae0ad6c42597faa2ffde8886bab9578bab"
integrity sha512-b58b2rlareN8v8pYgdiHg/pnp8DRtDQcZWYJzCD7r74rg9se8GA9/+26ko946ZgPHXA7i+BPikXBWayqOyOuiQ==
dependencies:
csso "^3.5.0"
"@tarojs/plugin-sass@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-sass/-/plugin-sass-1.3.4.tgz#3c750a1c3b43ba1fe9f0aee7e01e4cd9f176eeec"
"@tarojs/plugin-sass@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-sass/-/plugin-sass-1.3.14.tgz#7cf0350e71dd78790c01f97d48082bdec3599b08"
integrity sha512-yVpulnAt3qriSy8/PAnbgIosNH91yvLWCTsHihvmSyh2Gme8IeNNtEkm+zdmgT9q0/9dKlwYyBtPkJ/Plt6Lvg==
dependencies:
node-sass "^4.12.0"
scss-bundle "^2.5.1"
"@tarojs/plugin-uglifyjs@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-uglifyjs/-/plugin-uglifyjs-1.3.4.tgz#fc3c6fb3ae4729aadd305effadab9c3e1d90240a"
"@tarojs/plugin-uglifyjs@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/plugin-uglifyjs/-/plugin-uglifyjs-1.3.14.tgz#8c11157e724b7433c804f06422f3d4a8d74d81f0"
integrity sha512-rN4IjahEwDRvNB4v+96anoog2Xx/SMUfJgbHhaU5IByaHGyW/fWQb31v4xQ7DqbB/bINnTNmnhhGJUINYW9XSg==
dependencies:
uglify-js "^3.3.24"
"@tarojs/redux-h5@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/redux-h5/-/redux-h5-1.3.4.tgz#8f73e8e7a4f9f0f0721f6a7738bc0ba5c936630d"
"@tarojs/redux-h5@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/redux-h5/-/redux-h5-1.3.14.tgz#cff2695df886d78a27dd0499bc71127d066e911a"
integrity sha512-JShfbU/bmXtXrieGgKtjJQW7+fTlNw3zE+jPVMAtkJ/IgTTY2cjJO+qj7R72IwyLksovjA15lDURHIHj0oEgmA==
dependencies:
hoist-non-react-statics "^2.5.0"
invariant "^2.2.4"
loose-envify "^1.1.0"
prop-types "^15.6.1"
"@tarojs/redux@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/redux/-/redux-1.3.4.tgz#e122685603c8271e23a4196df4b0bcb5b7b83e9d"
"@tarojs/redux@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/redux/-/redux-1.3.14.tgz#b4a502f2d09e0f06de3bd761cc555540436fc048"
integrity sha512-8+bkwhv/SEhCJ/YKt5s+qpRtCNR1IE0apjKa/Z9pDt5bKNk7Vez2oJhnLK8nXZ5GHfckPwh8XkI2EWJEbLskoA==
dependencies:
"@tarojs/taro" "1.3.4"
"@tarojs/utils" "1.3.4"
"@tarojs/taro" "1.3.14"
"@tarojs/utils" "1.3.14"
"@tarojs/router@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/router/-/router-1.3.4.tgz#5a7cadc1e88c65bc6730fe27ae5f895810e718f2"
"@tarojs/router@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/router/-/router-1.3.14.tgz#d90c053f7cd3ac9c135ac5360d0e900e958433f2"
integrity sha512-UEdWS/lcu5t4Ll9HJ464zJMKadVOPU10zcQZkbK0lCrYoxvwSAOIhd1Sm8Mt3NF2mEfZMSk/uNDvPZRDwzJZ4g==
dependencies:
invariant "2.2.4"
lodash "4.17.11"
lodash "4.17.13"
resolve-pathname "2.2.0"
rollup-plugin-alias "1.4.0"
value-equal "0.4.0"
warning "4.0.2"
"@tarojs/taro-alipay@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro-alipay/-/taro-alipay-1.3.4.tgz#67e3cd1fd5ae4d644cc626c0d95d0c605b96bd22"
"@tarojs/taro-alipay@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro-alipay/-/taro-alipay-1.3.14.tgz#2fc339f378160cec92fc5ad0cde9aef390a39536"
integrity sha512-IGaCygmhKngPf485s7ZxV11Zkm/ZJHGq++3jZP/JME1qqht4KzajLSMbvHbrxn0gjQip4XNYQDX9XQ39wYq8jQ==
dependencies:
"@tarojs/taro" "1.3.4"
"@tarojs/utils" "1.3.4"
"@tarojs/taro" "1.3.14"
"@tarojs/utils" "1.3.14"
lodash "^4.17.10"
prop-types "^15.6.1"
"@tarojs/taro-h5@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro-h5/-/taro-h5-1.3.4.tgz#7c7751f5ccea928b4994df002ab8ae5cf3144a50"
"@tarojs/taro-h5@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro-h5/-/taro-h5-1.3.14.tgz#1f7966d106edc85b5b397fa197c978625f2cf7f8"
integrity sha512-Y8VA3merzwiZLW3umjxT5Pj2gwVEvsWNMV+iOP7RLoHrP31cwtFBvGe3gYXiiLquBVDgA2TrS7NqbjOG7DS91w==
dependencies:
base64-js "^1.3.0"
jsonp-retry "^1.0.3"
......@@ -167,52 +178,60 @@
raf "^3.4.1"
whatwg-fetch "^2.0.4"
"@tarojs/taro-swan@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro-swan/-/taro-swan-1.3.4.tgz#4c802166622881e59783e7070478e707e6dff573"
"@tarojs/taro-swan@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro-swan/-/taro-swan-1.3.14.tgz#4655e03cb1fbe0ab43f9eceb053256406b65d7e6"
integrity sha512-6N/KyYubCPdGRHmwH5qxUTxQcRZFT079dUc33EptPNeIo7NcCsR3ozTby4DwTZkyhW4jjTFq7GWEyjXvkGFJFQ==
dependencies:
"@tarojs/taro" "1.3.4"
"@tarojs/utils" "1.3.4"
"@tarojs/taro" "1.3.14"
"@tarojs/utils" "1.3.14"
lodash "^4.17.10"
prop-types "^15.6.1"
"@tarojs/taro-tt@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro-tt/-/taro-tt-1.3.4.tgz#9a5406fe399249454c29cb3fef9babe6425598a7"
"@tarojs/taro-tt@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro-tt/-/taro-tt-1.3.14.tgz#48e41ec38d440e68666c31a0a09d0fa71450b1ae"
integrity sha512-vE1PnOSsRlXOc5xoeByyFnbArL7BRyz7bTEbd6hLJf2XLhg01O/JuWZAEBy0LHK02J7dJDWa1Z7SIwqtHsoM7w==
dependencies:
"@tarojs/taro" "1.3.4"
"@tarojs/utils" "1.3.4"
"@tarojs/taro" "1.3.14"
"@tarojs/utils" "1.3.14"
lodash "^4.17.10"
prop-types "^15.6.1"
"@tarojs/taro-weapp@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro-weapp/-/taro-weapp-1.3.4.tgz#8a1d258cbc3d01364086c61fbd77497907411deb"
"@tarojs/taro-weapp@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro-weapp/-/taro-weapp-1.3.14.tgz#7edd8e75b80e3481734c2f09f6f8ef28047dadb1"
integrity sha512-qCmW8NsjLpwcPKFHCIWpbu2ewGsIaP9Ez5APemARTPapKTfP45UaYVEtMe0V5zLejiNRCxeSvGBCgAxh7UryJw==
dependencies:
"@tarojs/taro" "1.3.4"
"@tarojs/utils" "1.3.4"
"@tarojs/taro" "1.3.14"
"@tarojs/utils" "1.3.14"
lodash "^4.17.10"
prop-types "^15.6.1"
"@tarojs/taro@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/taro/-/taro-1.3.4.tgz#a4fb58306ad8d1649243ff7a7f3853b756037d80"
"@tarojs/taro@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/taro/-/taro-1.3.14.tgz#ed54fa30d9114624c11cd20d6302a83a9861cb6a"
integrity sha512-PhFf7+J3fzYqtS2Uz433U6DFa9Hdl8M+QcWLLDvtCt8z1Hiwxro+X9RxwgoJ/FEhJfzKtdXsTjY8w+XM14zaHw==
dependencies:
"@tarojs/utils" "1.3.14"
"@tarojs/utils@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/utils/-/utils-1.3.4.tgz#8e1a4cf6c90f3d3ad41d7b3fac8e07027b3c9928"
"@tarojs/utils@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/utils/-/utils-1.3.14.tgz#b3574a8b0010d45164cf79eb4457fcc310a01b24"
integrity sha512-WchKu3qm0ef6jiAieqUxCjds5uRBcPZvXKUFjceT53y1UJjcxikx7I4EAcxJXKWEqPrgecPGsuMTYw831c28nA==
"@tarojs/webpack-runner@1.3.4":
version "1.3.4"
resolved "https://registry.yarnpkg.com/@tarojs/webpack-runner/-/webpack-runner-1.3.4.tgz#a190065d0dc344a93ce915482a7c0d728a4c40cd"
"@tarojs/webpack-runner@1.3.14":
version "1.3.14"
resolved "https://registry.yarnpkg.com/@tarojs/webpack-runner/-/webpack-runner-1.3.14.tgz#ef8a65470d7661d22092a51911cb50a67893f1ea"
integrity sha512-Qvb3/ECF9T6TBEwN0x1dGRCvbDxyMHcQ8gRNl6nFGKiTqD0vSaVw/afhtNKhhbvztaY+nYUR4lj37kSU6qe+Hg==
dependencies:
"@tarojs/taro-h5" "1.3.4"
"@tarojs/taro-h5" "1.3.14"
autoprefixer "8.6.4"
babel-core "6.26.0"
babel-loader "7.1.4"
babel-plugin-syntax-dynamic-import "6.18.0"
babel-plugin-transform-react-jsx "6.24.1"
babel-plugin-transform-taroapi "1.3.4"
babel-plugin-transform-taroapi "1.3.14"
babel-types "6.26.0"
chalk "2.4.2"
copy-webpack-plugin "^5.0.3"
......@@ -224,13 +243,13 @@
html-webpack-plugin "3.2.0"
less "3.0.4"
less-loader "4.1.0"
lodash "4.17.11"
lodash "4.17.13"
mini-css-extract-plugin "0.4.1"
opn "5.3.0"
ora "2.1.0"
postcss-loader "2.1.6"
postcss-plugin-constparse "1.3.4"
postcss-pxtransform "1.3.4"
postcss-plugin-constparse "1.3.14"
postcss-pxtransform "1.3.14"
resolve "1.8.1"
resolve-url-loader "2.3.0"
sass-loader "7.1.0"
......@@ -1202,9 +1221,10 @@ babel-plugin-transform-strict-mode@^6.24.1:
babel-runtime "^6.22.0"
babel-types "^6.24.1"
babel-plugin-transform-taroapi@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-taroapi/-/babel-plugin-transform-taroapi-1.3.4.tgz#82cf9ff923794cd37d5b60dabb22a554aa9d7321"
babel-plugin-transform-taroapi@1.3.14:
version "1.3.14"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-taroapi/-/babel-plugin-transform-taroapi-1.3.14.tgz#8aeb71e6d69bb357fbf1e69ca544d3ccb9331235"
integrity sha512-hNrD5T4VqMHUMeQxeBF2V7fc+7GI8suMzfrQp3mtePoz2Rxqs3O8D+MN1AbU/qktfuhCtIaenHjmZVuxP8RMhQ==
babel-preset-env@^1.6.1:
version "1.7.0"
......@@ -2676,11 +2696,12 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
eslint-config-taro@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/eslint-config-taro/-/eslint-config-taro-1.3.4.tgz#86f3227b54aef59fc159c50cdac8b2f8ad41b8f8"
eslint-config-taro@1.3.14:
version "1.3.14"
resolved "https://registry.yarnpkg.com/eslint-config-taro/-/eslint-config-taro-1.3.14.tgz#f9202c00ac108e3bbc856cf1221c9827f45133a6"
integrity sha512-DsdrRDH3m8u9sb03YrR6P7/k06d6Vu0LN/0HibhRmOzoWl2ofTS/Ftpa48y7YFRj/b0iBE9xXpExv9EDKAb6GA==
dependencies:
eslint-plugin-taro "1.3.4"
eslint-plugin-taro "1.3.14"
eslint-import-resolver-node@^0.3.2:
version "0.3.2"
......@@ -2723,9 +2744,10 @@ eslint-plugin-react@^7.8.2:
prop-types "^15.6.2"
resolve "^1.9.0"
eslint-plugin-taro@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/eslint-plugin-taro/-/eslint-plugin-taro-1.3.4.tgz#4451fdfa0e82d4ee6365ea40e7e7b5b2807d3068"
eslint-plugin-taro@1.3.14:
version "1.3.14"
resolved "https://registry.yarnpkg.com/eslint-plugin-taro/-/eslint-plugin-taro-1.3.14.tgz#f5a060de82caaaac77bb1f5e9088f52ccdfe6d84"
integrity sha512-3bVgc4ETDKjSm9/ShBAq6XS4+KSSi+2TJOa5jNqO8xBK/VNyDnQFBQ+tlNQhuq+qy2KAo1wWr06E0hvtR894jw==
dependencies:
has "^1.0.1"
......@@ -4558,7 +4580,12 @@ lodash.without@~4.4.0:
version "4.4.0"
resolved "http://registry.npm.taobao.org/lodash.without/download/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac"
lodash@4.17.11, lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0, lodash@~4.17.10:
lodash@4.17.13:
version "4.17.13"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.13.tgz#0bdc3a6adc873d2f4e0c4bac285df91b64fc7b93"
integrity sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA==
lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0, lodash@~4.17.10:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
......@@ -4956,13 +4983,14 @@ neo-async@^2.5.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.0.tgz#b9d15e4d71c6762908654b5183ed38b753340835"
nerv-devtools@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/nerv-devtools/-/nerv-devtools-1.4.3.tgz#b05cf54a9d9313c0831b10cf9db04254d60d9c3b"
nerv-devtools@^1.4.4:
version "1.4.4"
resolved "https://registry.yarnpkg.com/nerv-devtools/-/nerv-devtools-1.4.4.tgz#e558dd7b8049ae2292da437d25d8e8f570b784fb"
integrity sha512-76moXLtzneBe4FN7TOkNVeZzf/HRCRZ/ur8nqdJEhwywPWU190jmQrBwLPfGLf+vdb4qwe1j33+BWzAI+7Bc5w==
dependencies:
nerv-shared "1.4.0"
nerv-utils "1.4.3"
nervjs "1.4.3"
nervjs "1.4.4"
nerv-shared@1.4.0:
version "1.4.0"
......@@ -4972,9 +5000,10 @@ nerv-utils@1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/nerv-utils/-/nerv-utils-1.4.3.tgz#5a23d109147f56f478beed24794ff942fe4e4927"
nervjs@1.4.3, nervjs@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/nervjs/-/nervjs-1.4.3.tgz#8ef7d610f6400fb81e7ca41f880612a62416a20b"
nervjs@1.4.4, nervjs@^1.4.4:
version "1.4.4"
resolved "https://registry.yarnpkg.com/nervjs/-/nervjs-1.4.4.tgz#a843f0a5b846707021a44490c361c8440e99027f"
integrity sha512-NlBOF3hxD5y4wY2tM8CSM6zfVCabxlKQ/ExI7k+AZquxNLita21icqaVEpr0CaDu1ZXbe/0uhvkY3E0hFmUW5w==
dependencies:
nerv-shared "1.4.0"
nerv-utils "1.4.3"
......@@ -5845,9 +5874,10 @@ postcss-modules-values@^1.3.0:
icss-replace-symbols "^1.1.0"
postcss "^6.0.1"
postcss-plugin-constparse@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/postcss-plugin-constparse/-/postcss-plugin-constparse-1.3.4.tgz#50a2e48eadd582f3b13f846da8fd3a99d9f7d208"
postcss-plugin-constparse@1.3.14:
version "1.3.14"
resolved "https://registry.yarnpkg.com/postcss-plugin-constparse/-/postcss-plugin-constparse-1.3.14.tgz#d175a54c1abbc8817dc22ea6c6f9fd6974b63524"
integrity sha512-LS6KI/Sc2qFXqZ6//idro1xaQsCLHcZwfkqOuz9SdYsBjC+vduvvEl9eZMa91a45LeTWd2gguQaeqNib6kCX6A==
dependencies:
postcss "^6.0.22"
......@@ -5858,9 +5888,10 @@ postcss-pxtorem@^4.0.1:
object-assign "^4.1.0"
postcss "^5.2.10"
postcss-pxtransform@1.3.4:
version "1.3.4"
resolved "https://registry.yarnpkg.com/postcss-pxtransform/-/postcss-pxtransform-1.3.4.tgz#caeb62008078f3e227f8fb8229725aad8abfec34"
postcss-pxtransform@1.3.14:
version "1.3.14"
resolved "https://registry.yarnpkg.com/postcss-pxtransform/-/postcss-pxtransform-1.3.14.tgz#1abc31ad95e2f2995ef0a6e38e3accde19e8f2de"
integrity sha512-9EvA5J7vCjqv28uJbGhc6eWfpi/eoy6Er7Wkt8pA9GcjI+8ITFBlO/UrT6Fud2ASfBXo1KrKoEhyItwQ6TVAmQ==
dependencies:
postcss "^6.0.16"
postcss-pxtorem "^4.0.1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment