diff --git a/.gitignore b/.gitignore
index 7f32e4b..f93f19d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.vscode
-node_modules
\ No newline at end of file
+/node_modules/*
+unpackage
\ No newline at end of file
diff --git a/README.md b/README.md
index 446974f..d7273e7 100644
--- a/README.md
+++ b/README.md
@@ -42,11 +42,11 @@
unescapeHTML(temp){}
/**
-* php时间戳转为格式化日期
-* @param { String } timestamp 必填 php 返回的时间戳
-* @param { String } spacer 可选 日期间隔符,默认 '-'
-* @param { String } end 可选 年月日时分秒截止位置,默认 day,可传 second
-* @return { String } 格式化日期
+* 上传文件(只能单文件上传)
+* @param { String } url 服务器 url
+* @param { String } filePath 要上传文件资源的路径
+* @param { String } type 上传文件验证类型 默认: img 可选: video
+* @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
-timestampToDate({timestamp, spacer = '-', end = 'day'} = {}) {}
+uploadFile({ url, filePath, type = 'img' } = {}) {}
```
\ No newline at end of file
diff --git a/common/api/shop.js b/common/api/shop.js
index e465a2f..6d025d9 100644
--- a/common/api/shop.js
+++ b/common/api/shop.js
@@ -103,6 +103,14 @@ export default {
cart_id: cart_id,
});
},
+ // 选择地区计算运费
+ getFreight({ freight_hash, city_id, area_id }) {
+ return vm.$u.post('Buy/change_addr', {
+ freight_hash: freight_hash,
+ city_id: city_id,
+ area_id: area_id,
+ });
+ },
// 商品详情
getGoodsDetails({ id }) {
return vm.$u.post('Goods/goodDetails', {
@@ -114,6 +122,16 @@ export default {
id: id,
page:page
});
+ },
+ getStoreImgVideoList({id}){
+ return vm.$u.post('Store/getStoreImgVideoList', {
+ id: id
+ });
+ },
+ goodsInfo({id}){
+ return vm.$u.post('goods/goodsInfo', {
+ goods_id: id
+ });
}
}
}
diff --git a/common/api/user.js b/common/api/user.js
index d6516b2..48b4f37 100644
--- a/common/api/user.js
+++ b/common/api/user.js
@@ -195,7 +195,7 @@ export default {
},
// 修改绑定手机号
changeMemberPhone({ old_mobile, old_code, new_mobile, new_code }) {
- return vm.$u.post('Member/changeMemberInfo', {
+ return vm.$u.post('Member/memberChangeMobile', {
old_mobile: old_mobile,
old_code: old_code,
new_mobile: new_mobile,
@@ -211,16 +211,57 @@ export default {
return vm.$u.post('Setting/CertificateInfo');
},
// 用户浏览记录
- getBrowseList() {
- return vm.$u.post('Member/BrowseList');
+ getBrowseList({ page }) {
+ return vm.$u.post('Member/BrowseList', {
+ page: page,
+ });
+ },
+ // 意见反馈列表
+ getFeedbackList({ page }) {
+ return vm.$u.post('Member/feedbackList', {
+ page: page,
+ });
+ },
+ // 意见反馈-写意见
+ writeFeedback({ fb_content, fb_images }) {
+ return vm.$u.post('Member/writeFeedback', {
+ fb_content: fb_content,
+ fb_images: fb_images,
+ });
},
// 订单列表
- getOrderList({ page }) {
- return vm.$u.post('Goods/orderList', { page });
+ getOrderList({ page, type }) {
+ let params = { page: page };
+ if(type >= 0) Object.assign(params, {state_type: type})
+ return vm.$u.post('Goods/orderList', params);
},
// 订单详情
getOrderInfo({ order_id }) {
- return vm.$u.post('Goods/orderInfo', { order_id });
+ return vm.$u.post('Goods/orderInfo', { order_id: order_id });
+ },
+ // 查询订单的评价信息
+ getOrderEvaluateInfo({ id }) {
+ return vm.$u.post('Order/getOrderEvaluateInfo', { id: id });
+ },
+ // 订单评价/修改评价
+ updateOrderEvaluate({ id, content, scores_one, scores_two, scores_three, file }) {
+ return vm.$u.post('Order/orderEvaluate', {
+ id: id,
+ content: content,
+ scores_one: scores_one,
+ scores_two: scores_two,
+ scores_three: scores_three,
+ file: file,
+ });
+ },
+ // 上传图片视频
+ uploadfile({ file }) {
+ const params = {
+ file: file
+ }
+ console.log(params);
+
+ return vm.$u.post('Upload/uploadfile', params);
},
// 信息模块
messageIndex({ }) {
diff --git a/components/mine/address-active/index.vue b/components/mine/address-active/index.vue
index e4e9c26..bcd9000 100644
--- a/components/mine/address-active/index.vue
+++ b/components/mine/address-active/index.vue
@@ -118,16 +118,19 @@ export default {
// latitude,
}).then((res)=>{
if (res.errCode == 0) {
- this.$refs.uToast.show({
- title: res.message,
- type: 'success',
- // url: '/pageE/more/Address',
- callback() {
- uni.redirectTo({
- url: '/pageE/more/Address'
- });
- }
- })
+ uni.redirectTo({
+ url: '/pageE/more/Address'
+ });
+ // this.$refs.uToast.show({
+ // title: res.message,
+ // type: 'success',
+ // // url: '/pageE/more/Address',
+ // callback() {
+ // uni.redirectTo({
+ // url: '/pageE/more/Address'
+ // });
+ // }
+ // })
} else {
this.showToast(res.message, 'warning');
}
@@ -148,16 +151,19 @@ export default {
// latitude,
}).then((res)=>{
if (res.errCode == 0) {
- this.$refs.uToast.show({
- title: res.message,
- type: 'success',
- // url: '/pageE/more/Address',
- callback() {
- uni.redirectTo({
- url: '/pageE/more/Address'
- });
- }
- })
+ uni.redirectTo({
+ url: '/pageE/more/Address'
+ });
+ // this.$refs.uToast.show({
+ // title: res.message,
+ // type: 'success',
+ // // url: '/pageE/more/Address',
+ // callback() {
+ // uni.redirectTo({
+ // url: '/pageE/more/Address'
+ // });
+ // }
+ // })
} else {
this.showToast(res.message, 'warning');
}
diff --git a/components/mine/coupon/index.vue b/components/mine/coupon/index.vue
new file mode 100644
index 0000000..3448072
--- /dev/null
+++ b/components/mine/coupon/index.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+ {{ couponInfo.index&1 ? '店铺优惠券' : '平台优惠券' }}
+
+
+
+ ¥10
+ 满100使用
+
+ 仅限 nike官方旗舰店 鞋子商品使用
+ 兑换积分:200积分
+ 有效期2018.09.06-2018.10.06
+
+
+ 立即兑换
+ 立即使用
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/mine/order-item/index.vue b/components/mine/order-item/index.vue
index a3a144d..cc7cb64 100644
--- a/components/mine/order-item/index.vue
+++ b/components/mine/order-item/index.vue
@@ -2,30 +2,32 @@
-
- 胖胖的店
+
+ {{ order.extend_store.store_name }}
- 交易成功
+ {{ order.order_state | viewState }}
-
-
-
- 木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子
- XL;红色条纹XL;红色条纹XL;红色条纹
- 距离结束:23:23:38
- 总价:¥99.00,实付款¥99
-
-
- 2020.05.17
+
+
+
+
+ {{ goods.goods_name }}
+ XL;红色条纹XL;红色条纹XL;红色条纹
+ 距离结束:23:23:38
+ 总价:¥99.00,实付款¥99
+
+
+ 2020.05.17
+
-
- 查看物流
-
- 立即支付
- 联系官方客服
- 提交官方审核
+
+ 查看物流
+
+ 立即支付
+ 联系官方客服
+ 提交官方审核
@@ -35,12 +37,40 @@ export default {
return {}
},
props: {
- current: Number
+ order: Object
+ },
+ filters: {
+ viewState(value) {
+ let state;
+ switch (value) {
+ case 10:
+ state = '待支付';
+ break;
+ case 0:
+ state = '已取消';
+ break;
+ case 30:
+ state = '待收货';
+ break;
+ case -1:
+ state = '试穿试送';
+ break;
+ case 20:
+ state = '待评价';
+ break;
+ case 40:
+ state = '售后';
+ break;
+ default:
+ break;
+ }
+ return state;
+ },
},
methods: {
toDetailsPage() {
uni.navigateTo({
- url: '/pageE/order/Details?current=' + this.current
+ url: '/pageE/order/Details?order.order_state=' + this.order.order_state
});
},
toLogistics() {
@@ -87,49 +117,51 @@ export default {
}
}
.goods-info {
- display: flex;
- margin-bottom: 28rpx;
- > image {
- flex-shrink: 0;
- width: 180rpx;
- height: 160rpx;
- border-radius: 10rpx;
- margin-right: 30rpx;
- }
- .goods-text {
+ .goods-item {
display: flex;
- flex-direction: column;
- justify-content: space-between;
- .goods-name {
- font-size: 28rpx;
- color: rgba(51,51,51,1);
- line-height: 38rpx;
+ margin-bottom: 28rpx;
+ > image {
+ flex-shrink: 0;
+ width: 180rpx;
+ height: 160rpx;
+ border-radius: 10rpx;
+ margin-right: 30rpx;
}
- .goods-sku {
- max-width: 230rpx;
- background: rgba(236,236,236,1);
- border-radius: 6rpx;
- padding: 10rpx 15rpx;
- font-size: 24rpx;
- color: rgba(153,153,153,1);
- }
- .goods-time {
- font-size: 24rpx;
- color: rgba(255,49,49,1);
- }
- .goods-price {
- font-size: 24rpx;
- color: rgba(253,211,96,1);
- }
- .goods-date {
+ .goods-text {
display: flex;
- align-items: center;
- font-size: 24rpx;
- color: rgba(153,153,153,1);
- > image {
- width: 24rpx;
- height: 24rpx;
- margin-right: 21rpx;
+ flex-direction: column;
+ justify-content: space-between;
+ .goods-name {
+ font-size: 28rpx;
+ color: rgba(51,51,51,1);
+ line-height: 38rpx;
+ }
+ .goods-sku {
+ max-width: 230rpx;
+ background: rgba(236,236,236,1);
+ border-radius: 6rpx;
+ padding: 10rpx 15rpx;
+ font-size: 24rpx;
+ color: rgba(153,153,153,1);
+ }
+ .goods-time {
+ font-size: 24rpx;
+ color: rgba(255,49,49,1);
+ }
+ .goods-price {
+ font-size: 24rpx;
+ color: rgba(253,211,96,1);
+ }
+ .goods-date {
+ display: flex;
+ align-items: center;
+ font-size: 24rpx;
+ color: rgba(153,153,153,1);
+ > image {
+ width: 24rpx;
+ height: 24rpx;
+ margin-right: 21rpx;
+ }
}
}
}
diff --git a/components/uni-swipe-action-item/bindingx.js b/components/uni-swipe-action-item/bindingx.js
deleted file mode 100644
index 59c592e..0000000
--- a/components/uni-swipe-action-item/bindingx.js
+++ /dev/null
@@ -1,245 +0,0 @@
-const BindingX = uni.requireNativePlugin('bindingx');
-const dom = uni.requireNativePlugin('dom');
-const animation = uni.requireNativePlugin('animation');
-
-export default {
- data() {
- return {
- right: 0,
- button: [],
- preventGesture: false
- }
- },
-
- watch: {
- show(newVal) {
- if (!this.position || JSON.stringify(this.position) === '{}') return;
- if (this.autoClose) return
- if (this.isInAnimation) return
- if (newVal) {
- this.open()
- } else {
- this.close()
- }
- },
- },
- created() {
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- mounted() {
- this.boxSelector = this.getEl(this.$refs['selector-box-hock']);
- this.selector = this.getEl(this.$refs['selector-content-hock']);
- this.buttonSelector = this.getEl(this.$refs['selector-button-hock']);
- this.position = {}
- this.x = 0
- setTimeout(() => {
- this.getSelectorQuery()
- }, 200)
- },
- beforeDestroy() {
- if (this.timing) {
- BindingX.unbind({
- token: this.timing.token,
- eventType: 'timing'
- })
- }
- if (this.eventpan) {
- BindingX.unbind({
- token: this.eventpan.token,
- eventType: 'pan'
- })
- }
- this.swipeaction.children.forEach((item, index) => {
- if (item === this) {
- this.swipeaction.children.splice(index, 1)
- }
- })
- },
- methods: {
- onClick(index, item) {
- this.$emit('click', {
- content: item,
- index
- })
- },
- touchstart(e) {
- if (this.isInAnimation) return
- if (this.stop) return
- this.stop = true
- if (this.autoClose) {
- this.swipeaction.closeOther(this)
- }
- let endWidth = this.right
- let boxStep = `(x+${this.x})`
- let pageX = `${boxStep}> ${-endWidth} && ${boxStep} < 0?${boxStep}:(x+${this.x} < 0? ${-endWidth}:0)`
-
- let props = [{
- element: this.selector,
- property: 'transform.translateX',
- expression: pageX
- }]
-
- let left = 0
- for (let i = 0; i < this.options.length; i++) {
- let buttonSelectors = this.getEl(this.$refs['button-hock'][i]);
- if (this.button.length === 0 || !this.button[i] || !this.button[i].width) return
- let moveMix = endWidth - left
- left += this.button[i].width
- let step = `(${this.x}+x)/${endWidth}`
- let moveX = `(${step}) * ${moveMix}`
- let pageButtonX = `${moveX}&& (x+${this.x} > ${-endWidth})?${moveX}:${-moveMix}`
- props.push({
- element: buttonSelectors,
- property: 'transform.translateX',
- expression: pageButtonX
- })
- }
-
- this.eventpan = this._bind(this.boxSelector, props, 'pan', (e) => {
- if (e.state === 'end') {
- this.x = e.deltaX + this.x;
- if (this.x < -endWidth) {
- this.x = -endWidth
- }
- if (this.x > 0) {
- this.x = 0
- }
- this.stop = false
- this.bindTiming();
- }
- })
- },
- touchend(e) {
- this.$nextTick(() => {
- if (this.isopen && !this.isDrag && !this.isInAnimation) {
- this.close()
- }
- })
- },
- bindTiming() {
- if (this.isopen) {
- this.move(this.x, -this.right)
- } else {
- this.move(this.x, -40)
- }
- },
- move(left, value) {
- if (left >= value) {
- this.close()
- } else {
- this.open()
- }
- },
- /**
- * 开启swipe
- */
- open() {
- this.animation(true)
- },
- /**
- * 关闭swipe
- */
- close() {
- this.animation(false)
- },
- /**
- * 开启关闭动画
- * @param {Object} type
- */
- animation(type) {
- this.isDrag = true
- let endWidth = this.right
- let time = 200
- this.isInAnimation = true;
-
- let exit = `t>${time}`;
- let translate_x_expression = `easeOutExpo(t,${this.x},${type?(-endWidth-this.x):(-this.x)},${time})`
- let props = [{
- element: this.selector,
- property: 'transform.translateX',
- expression: translate_x_expression
- }]
-
- let left = 0
- for (let i = 0; i < this.options.length; i++) {
- let buttonSelectors = this.getEl(this.$refs['button-hock'][i]);
- if (this.button.length === 0 || !this.button[i] || !this.button[i].width) return
- let moveMix = endWidth - left
- left += this.button[i].width
- let step = `${this.x}/${endWidth}`
- let moveX = `(${step}) * ${moveMix}`
- let pageButtonX = `easeOutExpo(t,${moveX},${type ? -moveMix + '-' + moveX: 0 + '-' + moveX},${time})`
- props.push({
- element: buttonSelectors,
- property: 'transform.translateX',
- expression: pageButtonX
- })
- }
-
- this.timing = BindingX.bind({
- eventType: 'timing',
- exitExpression: exit,
- props: props
- }, (e) => {
- if (e.state === 'end' || e.state === 'exit') {
- this.x = type ? -endWidth : 0
- this.isInAnimation = false;
-
- this.isopen = this.isopen || false
- if (this.isopen !== type) {
- this.$emit('change', type)
- }
- this.isopen = type
- this.isDrag = false
- }
- });
- },
- /**
- * 绑定 BindingX
- * @param {Object} anchor
- * @param {Object} props
- * @param {Object} fn
- */
- _bind(anchor, props, eventType, fn) {
- return BindingX.bind({
- anchor,
- eventType,
- props
- }, (e) => {
- typeof(fn) === 'function' && fn(e)
- });
- },
- /**
- * 获取ref
- * @param {Object} el
- */
- getEl(el) {
- return el.ref
- },
- /**
- * 获取节点信息
- */
- getSelectorQuery() {
- dom.getComponentRect(this.$refs['selector-content-hock'], (data) => {
- if (this.position.content) return
- this.position.content = data.size
- })
- for (let i = 0; i < this.options.length; i++) {
- dom.getComponentRect(this.$refs['button-hock'][i], (data) => {
- if (!this.button) {
- this.button = []
- }
- if (this.options.length === this.button.length) return
- this.button.push(data.size)
- this.right += data.size.width
- if (this.autoClose) return
- if (this.show) {
- this.open()
- }
- })
- }
- }
- }
-}
diff --git a/components/uni-swipe-action-item/index.wxs b/components/uni-swipe-action-item/index.wxs
deleted file mode 100644
index 79c6f9e..0000000
--- a/components/uni-swipe-action-item/index.wxs
+++ /dev/null
@@ -1,204 +0,0 @@
-/**
- * 监听页面内值的变化,主要用于动态开关swipe-action
- * @param {Object} newValue
- * @param {Object} oldValue
- * @param {Object} ownerInstance
- * @param {Object} instance
- */
-function sizeReady(newValue, oldValue, ownerInstance, instance) {
- var state = instance.getState()
- state.position = JSON.parse(newValue)
- if (!state.position || state.position.length === 0) return
- var show = state.position[0].show
- state.left = state.left || state.position[0].left;
- // 通过用户变量,开启或关闭
- if (show) {
- openState(true, instance, ownerInstance)
- } else {
- openState(false, instance, ownerInstance)
- }
-}
-
-/**
- * 开始触摸操作
- * @param {Object} e
- * @param {Object} ins
- */
-function touchstart(e, ins) {
- var instance = e.instance;
- var state = instance.getState();
- var pageX = e.touches[0].pageX;
- // 开始触摸时移除动画类
- instance.removeClass('ani');
- var owner = ins.selectAllComponents('.button-hock')
- for (var i = 0; i < owner.length; i++) {
- owner[i].removeClass('ani');
- }
- // state.position = JSON.parse(instance.getDataset().position);
- state.left = state.left || state.position[0].left;
- // 获取最终按钮组的宽度
- state.width = pageX - state.left;
- ins.callMethod('closeSwipe')
-}
-
-/**
- * 开始滑动操作
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchmove(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
- // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
-
- if (disabled) return
- var pageX = e.touches[0].pageX;
- move(pageX - state.width, instance, ownerInstance)
-}
-
-/**
- * 结束触摸操作
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchend(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
-
- // fix by mehaotian, TODO 兼容 app-vue 获取dataset为字符串 , h5 获取 为 undefined 的问题,待框架修复
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
-
- if (disabled) return
- // 滑动过程中触摸结束,通过阙值判断是开启还是关闭
- // fixed by mehaotian 定时器解决点击按钮,touchend 触发比 click 事件时机早的问题 ,主要是 ios13
- moveDirection(state.left, -40, instance, ownerInstance)
-}
-
-/**
- * 设置移动距离
- * @param {Object} value
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
-function move(value, instance, ownerInstance) {
- var state = instance.getState()
- // 获取可滑动范围
- var x = Math.max(-state.position[1].width, Math.min((value), 0));
- state.left = x;
- instance.setStyle({
- transform: 'translateX(' + x + 'px)',
- '-webkit-transform': 'translateX(' + x + 'px)'
- })
- // 折叠按钮动画
- buttonFold(x, instance, ownerInstance)
-}
-
-/**
- * 移动方向判断
- * @param {Object} left
- * @param {Object} value
- * @param {Object} ownerInstance
- * @param {Object} ins
- */
-function moveDirection(left, value, ins, ownerInstance) {
- var state = ins.getState()
- var position = state.position
- var isopen = state.isopen
- if (!position[1].width) {
- openState(false, ins, ownerInstance)
- return
- }
- // 如果已经是打开状态,进行判断是否关闭,还是保留打开状态
- if (isopen) {
- if (-left <= position[1].width) {
- openState(false, ins, ownerInstance)
- } else {
- openState(true, ins, ownerInstance)
- }
- return
- }
- // 如果是关闭状态,进行判断是否打开,还是保留关闭状态
- if (left <= value) {
- openState(true, ins, ownerInstance)
- } else {
- openState(false, ins, ownerInstance)
- }
-}
-
-/**
- * 设置按钮移动距离
- * @param {Object} value
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
-function buttonFold(value, instance, ownerInstance) {
- var ins = ownerInstance.selectAllComponents('.button-hock');
- var state = instance.getState();
- var position = state.position;
- var arr = [];
- var w = 0;
- for (var i = 0; i < ins.length; i++) {
- if (!ins[i].getDataset().button) return
- var btnData = JSON.parse(ins[i].getDataset().button)
-
- // fix by mehaotian TODO 在 app-vue 中,字符串转对象,需要转两次,这里先这么兼容
- if (typeof(btnData) === 'string') {
- btnData = JSON.parse(btnData)
- }
-
- var button = btnData[i] && btnData[i].width || 0
- w += button
- arr.push(-w)
- // 动态计算按钮组每个按钮的折叠动画移动距离
- var distance = arr[i - 1] + value * (arr[i - 1] / position[1].width)
- if (i != 0) {
- ins[i].setStyle({
- transform: 'translateX(' + distance + 'px)',
- })
- }
- }
-}
-
-/**
- * 开启状态
- * @param {Boolean} type
- * @param {Object} ins
- * @param {Object} ownerInstance
- */
-function openState(type, ins, ownerInstance) {
- var state = ins.getState()
- var position = state.position
- if (state.isopen === undefined) {
- state.isopen = false
- }
- // 只有状态有改变才会通知页面改变状态
- if (state.isopen !== type) {
- // 通知页面,已经打开
- ownerInstance.callMethod('change', {
- open: type
- })
- }
- // 设置打开和移动状态
- state.isopen = type
-
-
- // 添加动画类
- ins.addClass('ani');
- var owner = ownerInstance.selectAllComponents('.button-hock')
- for (var i = 0; i < owner.length; i++) {
- owner[i].addClass('ani');
- }
- // 设置最终移动位置
- move(type ? -position[1].width : 0, ins, ownerInstance)
-
-}
-
-module.exports = {
- sizeReady: sizeReady,
- touchstart: touchstart,
- touchmove: touchmove,
- touchend: touchend
-}
diff --git a/components/uni-swipe-action-item/mpalipay.js b/components/uni-swipe-action-item/mpalipay.js
deleted file mode 100644
index 8537b24..0000000
--- a/components/uni-swipe-action-item/mpalipay.js
+++ /dev/null
@@ -1,160 +0,0 @@
-export default {
- data() {
- return {
- isshow: false,
- viewWidth: 0,
- buttonWidth: 0,
- disabledView: false,
- x: 0,
- transition: false
- }
- },
- watch: {
- show(newVal) {
- if (this.autoClose) return
- if (newVal) {
- this.open()
- } else {
- this.close()
- }
- },
- },
- created() {
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- beforeDestroy() {
- this.swipeaction.children.forEach((item, index) => {
- if (item === this) {
- this.swipeaction.children.splice(index, 1)
- }
- })
- },
- mounted() {
- this.isopen = false
- this.transition = true
- setTimeout(() => {
- this.getQuerySelect()
- }, 50)
-
- },
- methods: {
- onClick(index, item) {
- this.$emit('click', {
- content: item,
- index
- })
- },
- touchstart(e) {
- let {
- pageX,
- pageY
- } = e.changedTouches[0]
- this.transition = false
- this.startX = pageX
- if (this.autoClose) {
- this.swipeaction.closeOther(this)
- }
- },
- touchmove(e) {
- let {
- pageX,
- } = e.changedTouches[0]
- this.slide = this.getSlide(pageX)
- if (this.slide === 0) {
- this.disabledView = false
- }
-
- },
- touchend(e) {
- this.stop = false
- this.transition = true
- if (this.isopen) {
- if (this.moveX === -this.buttonWidth) {
- this.close()
- return
- }
- this.move()
- } else {
- if (this.moveX === 0) {
- this.close()
- return
- }
- this.move()
- }
- },
- open() {
- this.x = this.moveX
- this.$nextTick(() => {
- this.x = -this.buttonWidth
- this.moveX = this.x
-
- if(!this.isopen){
- this.isopen = true
- this.$emit('change', true)
- }
- })
- },
- close() {
- this.x = this.moveX
- this.$nextTick(() => {
- this.x = 0
- this.moveX = this.x
- if(this.isopen){
- this.isopen = false
- this.$emit('change', false)
- }
- })
- },
- move() {
- if (this.slide === 0) {
- this.open()
- } else {
- this.close()
- }
- },
- onChange(e) {
- let x = e.detail.x
- this.moveX = x
- if (x >= this.buttonWidth) {
- this.disabledView = true
- this.$nextTick(() => {
- this.x = this.buttonWidth
- })
- }
- },
- getSlide(x) {
- if (x >= this.startX) {
- this.startX = x
- return 1
- } else {
- this.startX = x
- return 0
- }
-
- },
- getQuerySelect() {
- const query = uni.createSelectorQuery().in(this);
- query.selectAll('.viewWidth-hook').boundingClientRect(data => {
-
- this.viewWidth = data[0].width
- this.buttonWidth = data[1].width
- this.transition = false
- this.$nextTick(() => {
- this.transition = true
- })
-
- if (!this.buttonWidth) {
- this.disabledView = true
- }
-
- if (this.autoClose) return
- if (this.show) {
- this.open()
- }
- }).exec();
-
- }
- }
-}
diff --git a/components/uni-swipe-action-item/mpother.js b/components/uni-swipe-action-item/mpother.js
deleted file mode 100644
index ae97ba6..0000000
--- a/components/uni-swipe-action-item/mpother.js
+++ /dev/null
@@ -1,158 +0,0 @@
-// #ifdef APP-NVUE
-const dom = weex.requireModule('dom');
-// #endif
-export default {
- data() {
- return {
- uniShow: false,
- left: 0
- }
- },
- computed: {
- moveLeft() {
- return `translateX(${this.left}px)`
- }
- },
- watch: {
- show(newVal) {
- if (!this.position || JSON.stringify(this.position) === '{}') return;
- if (this.autoClose) return
- if (newVal) {
- this.$emit('change', true)
- this.open()
- } else {
- this.$emit('change', false)
- this.close()
- }
- }
- },
- mounted() {
- this.position = {}
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- setTimeout(() => {
- this.getSelectorQuery()
- }, 100)
- },
- beforeDestoy() {
- this.swipeaction.children.forEach((item, index) => {
- if (item === this) {
- this.swipeaction.children.splice(index, 1)
- }
- })
- },
- methods: {
- onClick(index, item) {
- this.$emit('click', {
- content: item,
- index
- })
- this.close()
- },
- touchstart(e) {
- const {
- pageX
- } = e.touches[0]
- if (this.disabled) return
- const left = this.position.content.left
- if (this.autoClose) {
- this.swipeaction.closeOther(this)
- }
- this.width = pageX - left
- if (this.isopen) return
- if (this.uniShow) {
- this.uniShow = false
- this.isopen = true
- this.openleft = this.left + this.position.button.width
- }
- },
- touchmove(e, index) {
- if (this.disabled) return
- const {
- pageX
- } = e.touches[0]
- this.setPosition(pageX)
- },
- touchend() {
- if (this.disabled) return
- if (this.isopen) {
- this.move(this.openleft, 0)
- return
- }
- this.move(this.left, -40)
- },
- setPosition(x, y) {
- if (!this.position.button.width) {
- return
- }
- // this.left = x - this.width
- this.setValue(x - this.width)
- },
- setValue(value) {
- // 设置最大最小值
- this.left = Math.max(-this.position.button.width, Math.min(parseInt(value), 0))
- this.position.content.left = this.left
- if (this.isopen) {
- this.openleft = this.left + this.position.button.width
- }
- },
- move(left, value) {
- if (left >= value) {
- this.$emit('change', false)
- this.close()
- } else {
- this.$emit('change', true)
- this.open()
- }
- },
- open() {
- this.uniShow = true
- this.left = -this.position.button.width
- this.setValue(-this.position.button.width)
- },
- close() {
- this.uniShow = true
- this.setValue(0)
- setTimeout(() => {
- this.uniShow = false
- this.isopen = false
- }, 300)
- },
- getSelectorQuery() {
- // #ifndef APP-NVUE
- const views = uni.createSelectorQuery()
- .in(this)
- views
- .selectAll('.selector-query-hock')
- .boundingClientRect(data => {
- this.position.content = data[1]
- this.position.button = data[0]
- if (this.autoClose) return
- if (this.show) {
- this.open()
- } else {
- this.close()
- }
- })
- .exec()
- // #endif
- // #ifdef APP-NVUE
- dom.getComponentRect(this.$refs['selector-content-hock'], (data) => {
- if (this.position.content) return
- this.position.content = data.size
- })
- dom.getComponentRect(this.$refs['selector-button-hock'], (data) => {
- if (this.position.button) return
- this.position.button = data.size
- if (this.autoClose) return
- if (this.show) {
- this.open()
- } else {
- this.close()
- }
- })
- // #endif
- }
- }
-}
diff --git a/components/uni-swipe-action-item/mpwxs.js b/components/uni-swipe-action-item/mpwxs.js
deleted file mode 100644
index 3073ff8..0000000
--- a/components/uni-swipe-action-item/mpwxs.js
+++ /dev/null
@@ -1,97 +0,0 @@
-export default {
- data() {
- return {
- position: [],
- button: []
- }
- },
- computed: {
- pos() {
- return JSON.stringify(this.position)
- },
- btn() {
- return JSON.stringify(this.button)
- }
- },
- watch: {
- show(newVal) {
- if (this.autoClose) return
- let valueObj = this.position[0]
- if (!valueObj) {
- this.init()
- return
- }
- valueObj.show = newVal
- this.$set(this.position, 0, valueObj)
- }
- },
- created() {
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- mounted() {
- this.init()
-
- },
- beforeDestroy() {
- this.swipeaction.children.forEach((item, index) => {
- if (item === this) {
- this.swipeaction.children.splice(index, 1)
- }
- })
- },
- methods: {
- init() {
-
- setTimeout(() => {
- this.getSize()
- this.getButtonSize()
- }, 50)
- },
- closeSwipe(e) {
- if (!this.autoClose) return
- this.swipeaction.closeOther(this)
- },
-
- change(e) {
- this.$emit('change', e.open)
- let valueObj = this.position[0]
- if (valueObj.show !== e.open) {
- valueObj.show = e.open
- this.$set(this.position, 0, valueObj)
- }
- },
- onClick(index, item) {
- this.$emit('click', {
- content: item,
- index
- })
- },
- appTouchStart(){},
- appTouchEnd(){},
- getSize() {
- const views = uni.createSelectorQuery().in(this)
- views
- .selectAll('.selector-query-hock')
- .boundingClientRect(data => {
- if (this.autoClose) {
- data[0].show = false
- } else {
- data[0].show = this.show
- }
- this.position = data
- })
- .exec()
- },
- getButtonSize() {
- const views = uni.createSelectorQuery().in(this)
- views
- .selectAll('.button-hock')
- .boundingClientRect(data => {
- this.button = data
- })
- .exec()
- }
- }
-}
diff --git a/components/uni-swipe-action-item/uni-swipe-action-item.vue b/components/uni-swipe-action-item/uni-swipe-action-item.vue
deleted file mode 100644
index 9a0f8f2..0000000
--- a/components/uni-swipe-action-item/uni-swipe-action-item.vue
+++ /dev/null
@@ -1,270 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.text }}
-
-
-
-
-
-
-
-
diff --git a/components/uni-swipe-action/uni-swipe-action.vue b/components/uni-swipe-action/uni-swipe-action.vue
deleted file mode 100644
index 9ad5c5e..0000000
--- a/components/uni-swipe-action/uni-swipe-action.vue
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/pageB/components/sdetails/guige.vue b/pageB/components/sdetails/guige.vue
new file mode 100644
index 0000000..d37f122
--- /dev/null
+++ b/pageB/components/sdetails/guige.vue
@@ -0,0 +1,64 @@
+
+
+
+ {{title}}
+
+
+
+ {{i}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageB/components/sdetails/tloos.vue b/pageB/components/sdetails/tloos.vue
index 8c4cd7e..354cfe0 100644
--- a/pageB/components/sdetails/tloos.vue
+++ b/pageB/components/sdetails/tloos.vue
@@ -1,36 +1,109 @@
-
-
-
- 店铺
+
+
+
+
+ 店铺
+
+
+
+ 客服
+
+ 试穿试送
+ 加入购物车
+ 立即购买
+
-
-
- 客服
-
- 试穿试送
- 加入购物车
- 立即购买
-
+
+
+
+
\ No newline at end of file
diff --git a/pageB/sdetails/index.vue b/pageB/sdetails/index.vue
index 2d036fa..296bd8a 100644
--- a/pageB/sdetails/index.vue
+++ b/pageB/sdetails/index.vue
@@ -23,18 +23,22 @@
-
+
+
diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue
index 5785bb9..3a47718 100644
--- a/pageC/cart/ConfirmOrder.vue
+++ b/pageC/cart/ConfirmOrder.vue
@@ -4,10 +4,10 @@
- 胖胖
- 18220171014
+ {{ addressInfo.address_realname }}
+ {{ addressInfo.address_mob_phone }}
- 山东省泰安市泰山区东岳大街与克山路交汇口银山店四楼橙天影视南邻山东省泰安市泰山区东岳大街与克山路交汇口银山店四楼橙天影视南邻
+ {{ addressInfo.area_info + addressInfo.address_detail }}
@@ -75,6 +75,8 @@ export default {
return {
orderInfo: {},
totalPrice: '0.00',
+ addressInfo: {},
+ freight: '',
}
},
filters: {
@@ -92,36 +94,24 @@ export default {
onLoad(option) {
console.log(JSON.parse(option.info));
this.orderInfo = JSON.parse(option.info);
- // this.orderListInit();
+ this.addressInfo = this.orderInfo.address_info;
this.showTotalPrice();
+ this.getFreight();
},
methods: {
- // orderListInit() {
- // this.orderList = this.orderInfo.store_list;
- // for (const key in this.orderList) {
- // if (this.orderList.hasOwnProperty(key)) {
- // const element = this.orderList[key];
- // let tempArray = Object.entries(this.orderInfo.store_cart_list);
- // tempArray.forEach(item => {
- // if (item[0])
- // })
- // let temp = this.orderInfo.store_cart_list.filters(store => {
- // return store.store_id == item.store_id
- // })
- // element
- // }
- // }
- // this.orderList.forEach(item => {
- // let temp = this.orderInfo.store_cart_list.filters(store => {
- // return store.store_id == item.store_id
- // })
- // Object.assign(item, { goods_list: temp });
- // })
- // console.log(this.orderList);
-
- // },
showTotalPrice() {
+ },
+ getFreight() {
+ this.$u.api.getFreight({
+ freight_hash: this.orderInfo.freight_hash,
+ city_id: this.addressInfo.city_id,
+ area_id: this.addressInfo.area_id,
+ }).then(res => {
+ if(res.errCode == 0) {
+ // this.freight = res.
+ }
+ })
},
settlement() {
uni.navigateTo({
@@ -177,6 +167,7 @@ export default {
}
}
.main {
+ margin-bottom: 100rpx;
> view {
.goods-info {
background-color: #ffffff;
@@ -220,6 +211,7 @@ export default {
flex-shrink: 0;
}
.info {
+ flex: 1;
// width: 418rpx;
height: 160rpx;
display: flex;
diff --git a/pageC/cart/index.vue b/pageC/cart/index.vue
index 6808320..096bffa 100644
--- a/pageC/cart/index.vue
+++ b/pageC/cart/index.vue
@@ -85,6 +85,7 @@ export default {
},
// 结算
settlementOrder() {
+ // 拼接后端需要的数据形式
let id = [], temp = '';
this.checkedGoods.forEach(item => {
temp = item.cart_id + '|' + item.goods_num;
@@ -147,16 +148,14 @@ export default {
this.cartUpdateNumber(e.index, e.value);
},
async cartUpdateNumber(id, number) {
- try {
- await this.$u.api.cartUpdateNumber({
- cart_id: id,
- quantity: number,
- }).then(res => {
- this.getCartList();
- })
- } catch (error) {
+ await this.$u.api.cartUpdateNumber({
+ cart_id: id,
+ quantity: number,
+ }).then(res => {
this.getCartList();
- }
+ }).catch(() => {
+ this.geCartList();
+ })
},
totalChange(e) {
// 切换所有商品的状态
@@ -193,16 +192,7 @@ export default {
}
},
onNavigationBarButtonTap(btn) {
- console.log(btn);
- // this.status = btn.text;
- // #ifdef H5
- if(this.status == '编辑'){
- this.status = "完成";
- } else {
- this.status = "编辑";
- }
- console.log(this.status);
- // #endif
+ // console.log(btn);
if(btn.index == 0){
let pages = getCurrentPages();
let page = pages[pages.length - 1];
diff --git a/pageC/components/merchant/image-top.vue b/pageC/components/merchant/image-top.vue
new file mode 100644
index 0000000..a061379
--- /dev/null
+++ b/pageC/components/merchant/image-top.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageC/components/merchant/list-item.vue b/pageC/components/merchant/list-item.vue
new file mode 100644
index 0000000..2a057d9
--- /dev/null
+++ b/pageC/components/merchant/list-item.vue
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageC/components/merchant/video-top.vue b/pageC/components/merchant/video-top.vue
new file mode 100644
index 0000000..eb60ca8
--- /dev/null
+++ b/pageC/components/merchant/video-top.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageC/merchant/index.vue b/pageC/merchant/index.vue
index a55536e..e63dffb 100644
--- a/pageC/merchant/index.vue
+++ b/pageC/merchant/index.vue
@@ -38,7 +38,14 @@
- 111
+
+
+
+
+
+
+
+
@@ -67,16 +74,25 @@
@@ -155,7 +176,7 @@ export default {
background-color: #ffffff;
width: 100%;
margin-bottom: 20rpx;
- height: 140rpx;
+ // height: 140rpx;
display: flex;
align-items: center;
padding: 20rpx 30rpx;
diff --git a/pageE/mine/EditUserInfo.vue b/pageE/mine/EditUserInfo.vue
index 70a1098..91fc9c1 100644
--- a/pageE/mine/EditUserInfo.vue
+++ b/pageE/mine/EditUserInfo.vue
@@ -1,8 +1,9 @@
-
-
+
+
+ 更换头像
昵称
@@ -26,7 +27,7 @@
- 注意:修改手机号需要原手机号获取验证码,无原手机验证码,请联系后台
+ 注意:修改手机号需要原手机号获取验证码,无原手机验证码,请联系客服
完成
@@ -55,7 +56,7 @@ export default {
minute: false,
second: false
},
- nickname: '胖胖',
+ nickname: '',
gender: '', // 1男 2女
birthday: '',
phoneNumber: '',
@@ -65,15 +66,37 @@ export default {
onLoad() {
this.getUserInfo();
},
+ onNavigationBarButtonTap(e) {
+ if( e.index == 0 ) uni.navigateBack();
+ },
methods: {
+ changeAvatar() {
+ const url = this.$u.http.config.baseUrl + '/Upload/uploadfile';
+ uni.chooseImage({
+ count: 1,
+ sizeType: ['original', 'compressed'],
+ sourceType: ['album'],
+ success: (res) => {
+ this.avatar = res.tempFilePaths[0];
+ common.uploadFile({
+ url: url,
+ filePath: res.tempFilePaths[0]
+ }).then(result => {
+ this.avatar = result;
+ }, error => {
+ this.$u.toast(error);
+ })
+ }
+ });
+ },
getUserInfo() {
this.$u.api.getMemberInfo().then(res => {
if (res.errCode == 0) {
let userInfo = res.data.MemberArray;
[this.nickname, this.phoneNumber, this.birthday, this.gender, this.avatar] = [
userInfo.member_nickname,
- userInfo.member_mobile,
- common.timestampToDate({timestamp: userInfo.member_birthday}),
+ userInfo.member_mobile,
+ userInfo.member_birthday,
userInfo.member_sex,
userInfo.member_avatar,
];
@@ -115,15 +138,16 @@ export default {
padding-top: 1rpx;
.user-info {
.info-avatar {
- text-align: center;
- height: 160rpx;
+ height: 202rpx;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
background: rgba(255,255,255,1);
- > image {
- flex-shrink: 0;
- width: 120rpx;
- height: 120rpx;
- border-radius: 50%;
- margin-top: 20rpx;
+ .avatar-text {
+ margin-top: 12rpx;
+ font-size: 24rpx;
+ color: rgba(255,120,15,1);
}
}
.info-item {
diff --git a/pageE/mine/Integral.vue b/pageE/mine/Integral.vue
index 4e0b6c3..17d828d 100644
--- a/pageE/mine/Integral.vue
+++ b/pageE/mine/Integral.vue
@@ -3,37 +3,58 @@
总积分
- 999
+ {{ memberInfo.member_points }}
经验值
- 999
+ {{ memberInfo.member_exppoints }}
-
+
预计进度
- 999
+
+
+
+
-
+
@@ -61,13 +82,19 @@ export default {
font-size: 48rpx;
font-weight: 500;
color: rgba(255,255,255,1);
+ > image {
+ width: 52rpx;
+ height: 35rpx;
+ }
}
}
}
.integral-botom {
+ box-sizing: border-box;
+ padding: 30rpx;
position: absolute;
- width: 750rpx;
- height: calc(100vh - 251rpx);
+ width: 100%;
+ // height: calc(100vh - 251rpx);
background: rgba(255,255,255,1);
border-radius: 20rpx 20rpx 0rpx 0rpx;
top: 251rpx;
diff --git a/pageE/mine/MemberServe.vue b/pageE/mine/MemberServe.vue
index 7169298..575dfa1 100644
--- a/pageE/mine/MemberServe.vue
+++ b/pageE/mine/MemberServe.vue
@@ -1,11 +1,11 @@
-
+
-
-
+
+
-
+
总积分
@@ -15,31 +15,20 @@
经验值
{{ memberInfo.member_exppoints }}
-
+
预计进度
- 999
+ {{ memberInfo.next_grade_exppoints_diff }}
-
+
-
-
+
+
-
-
-
-
- 萌店十元优惠券
-
-
- 2020.05.17-2020.06.17
-
- 299积分
-
- 兑换
-
-
+
+
+
@@ -52,12 +41,15 @@
{{ item.pl_addtime > 0 ? item.pl_addtime : '+' + 10.00 }}
+
@@ -111,18 +122,20 @@ export default {
background-color: #ECECEC;
display: flex;
flex-direction: column;
- > uni-swiper {
- flex: 1;
- }
+ // > uni-swiper {
+ // flex: 1;
+ // height: calc()
+ // }
.swiper-item {
padding-top: 10rpx;
.integral {
height: 100%;
position: relative;
+ overflow: hidden;
.integral-top {
padding: 79rpx 88rpx;
width: 750rpx;
- height: 271rpx;
+ height: 270rpx;
background: linear-gradient(0deg,rgba(246,211,119,1) 1%,rgba(240,154,105,1) 100%);
display: flex;
justify-content: space-between;
@@ -142,66 +155,18 @@ export default {
}
}
.integral-botom {
+ box-sizing: border-box;
+ padding: 30rpx;
position: absolute;
- width: 750rpx;
- // height: 856rpx;
+ width: 100%;
background: rgba(255,255,255,1);
border-radius: 20rpx 20rpx 0rpx 0rpx;
- top: 251rpx;
+ top: 250rpx;
z-index: 9;
}
}
.coupon {
height: 100%;
- .coupon-item {
- padding: 30rpx;
- background-color: #ffffff;
- display: flex;
- align-items: flex-end;
- margin-bottom: 2rpx;
- > img {
- width: 180rpx;
- height: 160rpx;
- border-radius: 10rpx;
- margin-right: 30rpx;
- }
- .coupon-main {
- .coupon-title {
- font-size: 30rpx;
- color: rgba(51,51,51,1);
- }
- .coupon-date {
- display: flex;
- align-items: center;
- margin: 29rpx 0 20rpx;
- > img {
- width: 24rpx;
- height: 24rpx;
- margin-right: 15rpx;
- }
- > view {
- font-size: 24rpx;
- color: rgba(153,153,153,1);
- }
- }
- .coupon-integral {
- font-size: 30rpx;
- font-weight: 500;
- color: rgba(255,120,15,1);
- }
- }
- .coupon-btn {
- margin-left: auto;
- width: 85rpx;
- // height: 42rpx;
- border: 2rpx solid rgba(255,120,15,1);
- border-radius: 10rpx;
- font-size: 26rpx;
- color: rgba(255,120,15,1);
- line-height: 42rpx;
- text-align: center;
- }
- }
}
.details {
height: 100%;
diff --git a/pageE/mine/MemberServeCoupon.vue b/pageE/mine/MemberServeCoupon.vue
new file mode 100644
index 0000000..796aad4
--- /dev/null
+++ b/pageE/mine/MemberServeCoupon.vue
@@ -0,0 +1,161 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageE/mine/MineInfo.vue b/pageE/mine/MineInfo.vue
index f57a396..a5ee6f0 100644
--- a/pageE/mine/MineInfo.vue
+++ b/pageE/mine/MineInfo.vue
@@ -1,7 +1,7 @@
-
+
昵称
@@ -13,7 +13,7 @@
生日
- {{ userInfo.member_birthday | dateFormat }}
+ {{ userInfo.member_birthday }}
手机号
@@ -21,7 +21,7 @@
等级
- {{ userInfo.level }}
+ {{ userInfo.member_level }}
积分数
@@ -41,17 +41,12 @@ export default {
userInfo: {}
}
},
- onLoad() {
+ onShow() {
this.getUserInfo();
},
onNavigationBarButtonTap() {
this.toEditPage();
},
- filters: {
- dateFormat(value) {
- return common.timestampToDate({ timestamp: value });
- }
- },
methods: {
getUserInfo() {
this.$u.api.getMemberInfo().then(res => {
@@ -74,16 +69,11 @@ export default {
background-color: #ECECEC;
padding-top: 1rpx;
.info-avatar {
- text-align: center;
+ display: flex;
+ align-items: center;
+ justify-content: center;
height: 160rpx;
background: rgba(255,255,255,1);
- > image {
- flex-shrink: 0;
- width: 120rpx;
- height: 120rpx;
- border-radius: 50%;
- margin-top: 20rpx;
- }
}
.info-item {
display: flex;
diff --git a/pageE/mine/MineProgress.vue b/pageE/mine/MineProgress.vue
new file mode 100644
index 0000000..fa87ee8
--- /dev/null
+++ b/pageE/mine/MineProgress.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+ 等级定义
+
+
+
+ lv{{ rank.level }}
+ 经验值:{{ rank.max == '--' ? rank.min + '及以上' : rank.min + '~' + rank.max }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageE/mine/UpdatePhone.vue b/pageE/mine/UpdatePhone.vue
index cbf6e4d..8794d91 100644
--- a/pageE/mine/UpdatePhone.vue
+++ b/pageE/mine/UpdatePhone.vue
@@ -4,7 +4,7 @@
原手机号
-
+
验证码
@@ -16,7 +16,7 @@
新手机号
-
+
验证码
@@ -24,54 +24,59 @@
{{ btnText[1] }}
-
- 注意:修改手机号需要原手机号获取验证码,无原手机验证码,请联系后台
- 保存
+ 注意:修改手机号需要原手机号获取验证码,无原手机验证码,请联系客服
+ 保存
+
diff --git a/pageE/more/Complaints.vue b/pageE/more/Complaints.vue
index efab732..7c99502 100644
--- a/pageE/more/Complaints.vue
+++ b/pageE/more/Complaints.vue
@@ -1,19 +1,19 @@
-
+
- 您的满意是对我们最大的支持,茫茫德铭阳光之中能够遇到亲也是我们的荣幸
+ {{ item.fb_content }}
-
+
后台回复:
- 您的满意是对我们最大的支持,茫茫德铭阳光之中能够遇到亲也是我们的荣幸,您的评价是对我们付出最好的认可,我们会不断前行,不忘初衷,给亲们提供更好的服务和产品!我把对您的谢意写在纸上,被风吹走了;我把对您的谢意写在沙滩上,被海浪卷走了;我只好把对您的谢意写在解释里,这样才会永驻心间!感谢您对的支持!加油!加油!, 祝您生活愉快,工作顺利,期待我们下次合作愉快! ! !
+ {{ item.reply_content }}
- 2020-05-14
+ {{ reply_time }}
@@ -27,7 +27,9 @@ export default {
require('../static/mine/23.png'),
require('../static/mine/23.png'),
require('../static/mine/23.png')
- ]
+ ],
+ feedbackList: [],
+ page: 1, // 默认1
}
},
onNavigationBarButtonTap() {
@@ -35,6 +37,18 @@ export default {
url: '/pageE/more/WriteComments'
});
},
+ onShow() {
+ this.getFeedbackList();
+ },
+ methods: {
+ getFeedbackList() {
+ this.$u.api.getFeedbackList({ page: this.page }).then(res => {
+ if(res.errCode == 0) {
+ this.feedbackList = res.data.feedbackList;
+ }
+ })
+ },
+ },
}
\ No newline at end of file
diff --git a/pageE/tool/MineHistory.vue b/pageE/tool/MineHistory.vue
index 5a02ad1..82df193 100644
--- a/pageE/tool/MineHistory.vue
+++ b/pageE/tool/MineHistory.vue
@@ -1,21 +1,20 @@
-
-
-
-
- 小米店铺
-
-
-
-
- {{ item }}
-
+
+
+
+
+
+ {{ item.store_name }}
+
+
+
+ {{ item.goods_name }}
+
-
+
+
@@ -24,18 +23,138 @@
export default {
data() {
return {
- historyList: [1, 2, 3, 6]
+ historyList: [
+ {
+ "goods_id": 13,
+ "goodsbrowse_time": "2020-06-28 15:45:56",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121142556524.jpg",//商品主图
+ "goods_name": "变频风冷无霜 独立双循环 LED显示 对开门冰箱(白色)",//商品名称
+ "store_id": 1,//店铺id
+ "store_name": "官方自营店铺",//店铺名
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"//店铺头像
+ },
+ {
+ "goods_id": 13,
+ "goodsbrowse_time": "2020-06-28 15:45:56",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121142556524.jpg",//商品主图
+ "goods_name": "变频风冷无霜 独立双循环 LED显示 对开门冰箱(白色)",//商品名称
+ "store_id": 1,//店铺id
+ "store_name": "官方自营店铺",//店铺名
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"//店铺头像
+ },
+ {
+ "goods_id": 13,
+ "goodsbrowse_time": "2020-06-28 15:45:56",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121142556524.jpg",//商品主图
+ "goods_name": "变频风冷无霜 独立双循环 LED显示 对开门冰箱(白色)",//商品名称
+ "store_id": 1,//店铺id
+ "store_name": "官方自营店铺",//店铺名
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"//店铺头像
+ },
+ {
+ "goods_id": 13,
+ "goodsbrowse_time": "2020-06-28 15:45:56",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121142556524.jpg",//商品主图
+ "goods_name": "变频风冷无霜 独立双循环 LED显示 对开门冰箱(白色)",//商品名称
+ "store_id": 1,//店铺id
+ "store_name": "官方自营店铺",//店铺名
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"//店铺头像
+ },
+ {
+ "goods_id": 13,
+ "goodsbrowse_time": "2020-06-28 15:45:56",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121142556524.jpg",//商品主图
+ "goods_name": "变频风冷无霜 独立双循环 LED显示 对开门冰箱(白色)",//商品名称
+ "store_id": 1,//店铺id
+ "store_name": "官方自营店铺",//店铺名
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"//店铺头像
+ },
+ {
+ "goods_id": 12,
+ "goodsbrowse_time": "2020-06-28 15:44:41",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092121050988491.jpg",
+ "goods_name": "扬子(YAIR) 小2匹 冷暖 自动清洗 定频空调柜机",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ },
+ {
+ "goods_id": 11,
+ "goodsbrowse_time": "2020-06-28 15:38:11",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092120564717575.jpg",
+ "goods_name": "1.5匹 变频 智能 二级能效极速侠 空调挂机",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ },
+ {
+ "goods_id": 9,
+ "goodsbrowse_time": "2020-06-28 15:36:27",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092120480147477.jpg",
+ "goods_name": "长虹(CHANGHONG)39M1 39英寸 窄边高清液晶电视(黑色)",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ },
+ {
+ "goods_id": 8,
+ "goodsbrowse_time": "2020-06-28 15:36:06",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092120445748551.jpg",
+ "goods_name": "先锋(Pioneer)LED-39B700S 39英寸 高清 网络 智能 液晶电视",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ },
+ {
+ "goods_id": 10,
+ "goodsbrowse_time": "2020-06-24 16:14:29",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092120493430154.jpg",
+ "goods_name": "39英寸64位24核安卓智能平板液晶电视(黑色)",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ },
+ {
+ "goods_id": 28,
+ "goodsbrowse_time": "2020-06-23 17:07:45",
+ "goods_image": "http://deming.test/uploads/home/store/goods/1/1_2017092202022516767.jpg",
+ "goods_name": "南极人(NanJiren)纯棉床单四件套全棉床上用品婚庆被套4件套",
+ "store_id": 1,
+ "store_name": "官方自营店铺",
+ "store_avatar": "http://deming.test/uploads/home/store/1/1_2020062410413137159.png"
+ }
+ ],
+ page: 1, // 默认1
+ loadStatus: 'loadmore',
+ timer: true,
};
},
onLoad() {
this.getBrowseList();
},
methods: {
- getBrowseList () {
- this.$u.api.getBrowseList().then(res => {
- if(res.errCode == 0) {
- this.historyList = res.data.storeInfo;
+ async getBrowseList () {
+ const res = await this.$u.api.getBrowseList({ page: this.page });
+ this.timer = false;
+ if(res.errCode == 0) {
+ this.historyList = res.data.storeInfo;
+ }
+ return res.data.storeInfo.length;
+ },
+ reachBottom() {
+ if(!this.timer) return false;
+ this.loadStatus = "loading";
+ this.page++;
+ this.getBrowseList({page: this.page}).then(length => {
+ if(length == 0) {
+ this.page--;
+ this.status = 'nomore';
+ } else {
+ this.status = 'loading';
}
+ }).catch(() => {
+ this.loadStatus = "nomore";
+ this.page--;
})
}
}
@@ -46,50 +165,56 @@ export default {
min-height: calc(100vh - var(--window-top));
background: #ECECEC;
.history-box {
+ height: calc(100vh - var(--window-top));
padding: 20rpx 30rpx 0;
- display: flex;
- flex-wrap: wrap;
- .history-item {
- width: 220rpx;
- height: 290rpx;
- background: rgba(255,255,255,1);
- border-radius: 10rpx;
- padding: 20rpx 20rpx 22rpx;
- margin: 0 10rpx 20rpx 0;
- .item-title {
- display: flex;
- align-items: center;
- > image {
- width: 50rpx;
- height: 50rpx;
- border-radius: 50%;
- margin-right: 19rpx;
- }
- > view {
- font-size: 24rpx;
- color: rgba(51,51,51,1);
- }
- }
- .item-image {
- margin: 20rpx 0 17rpx;
- width: 180rpx;
- height: 140rpx;
+ .item-box {
+ display: flex;
+ flex-wrap: wrap;
+ .history-item {
+ width: 220rpx;
+ height: 290rpx;
+ background: rgba(255,255,255,1);
border-radius: 10rpx;
- }
- .item-info {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .info-name {
- font-size: 22rpx;
- color: rgba(51,51,51,1);
+ padding: 20rpx 20rpx 22rpx;
+ margin: 0 10rpx 20rpx 0;
+ .item-title {
+ display: flex;
+ align-items: center;
+ > image {
+ width: 50rpx;
+ height: 50rpx;
+ border-radius: 50%;
+ margin-right: 19rpx;
+ }
+ > view {
+ font-size: 24rpx;
+ color: rgba(51,51,51,1);
+ }
}
- > image {
- width: 37rpx;
- height: 8rpx;
+ .item-image {
+ margin: 20rpx 0 17rpx;
+ width: 180rpx;
+ height: 140rpx;
+ border-radius: 10rpx;
+ }
+ .item-info {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ .info-name {
+ margin-right: 10rpx;
+ flex: 1;
+ font-size: 22rpx;
+ color: rgba(51,51,51,1);
+ }
+ > image {
+ width: 37rpx;
+ height: 8rpx;
+ }
}
}
}
+
}
}
diff --git a/pages.json b/pages.json
index 76cc149..d7ac6c5 100644
--- a/pages.json
+++ b/pages.json
@@ -329,6 +329,19 @@
}
}
},
+ {
+ "path": "tool/MineCoupon",
+ "style": {
+ "navigationBarTitleText": "优惠券",
+ "app-plus": {
+ "titleSize": "36px",
+ "titleNView": {
+ "titleColor": "#333333",
+ "backgroundColor": "#FFFFFF"
+ }
+ }
+ }
+ },
{
"path": "more/MineHelp",
"style": {
@@ -474,6 +487,19 @@
}
}
},
+ {
+ "path": "mine/MineProgress",
+ "style": {
+ "navigationBarTitleText": "预计进度",
+ "app-plus": {
+ "titleSize": "36px",
+ "titleNView": {
+ "titleColor": "#333333",
+ "backgroundColor": "#FFFFFF"
+ }
+ }
+ }
+ },
{
"path": "tool/Manicure",
"style": {
@@ -619,9 +645,16 @@
"app-plus": {
"titleSize": "36px",
"titleNView": {
+ "autoBackButton": false,
"backgroundColor": "#FFFFFF",
"titleColor": "#333333",
"buttons": [
+ {
+ "type":"none",
+ "text":"取消",
+ "float":"left",
+ "fontSize":"14"
+ },
{
"type":"none",
"text":"\ue62d",
@@ -629,11 +662,7 @@
"fontSrc": "/static/fonts/customer.ttf",
"fontSize":"20"
}
- ],
- "autoBackButton": true,
- "backButton": {
- "badgeText": "取消"
- }
+ ]
}
}
}
@@ -645,6 +674,7 @@
"app-plus": {
"titleSize": "36px",
"titleNView": {
+ "autoBackButton": false,
"backgroundColor": "#FFFFFF",
"titleColor": "#333333",
"buttons": [
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index b8a8721..d870fd4 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -2,7 +2,7 @@
-
+
{{ userInfo.member_nickname }}
@@ -13,14 +13,14 @@
{{ userInfo.member_mobile | phoneFormat }}
- 等级:{{ userInfo.level }}级
+ 等级:{{ userInfo.member_level }}级
会员服务
- {{ userInfo.member_fav_goods_num }}
+ {{ userInfo.member_fav_goods_num || 0 }}
商品收藏
@@ -32,7 +32,7 @@
图文收藏
- {{ userInfo.member_points }}
+ {{ userInfo ? userInfo.member_points : 0 }}
积分数
@@ -92,6 +92,10 @@
足迹
+
+
+ 优惠券
+
@@ -131,7 +135,7 @@ export default {
return value ? value.replace(/^(\d{3})\d*(\d{4})$/, '$1****$2') : '';
}
},
- onLoad() {
+ onShow() {
this.getUserInfo();
},
onNavigationBarButtonTap() {
@@ -166,15 +170,8 @@ export default {
display: flex;
align-items: center;
margin-bottom: 40rpx;
- .avatar {
- width: 110rpx;
- height: 110rpx;
- border-radius: 50%;
- border: 2rpx solid rgba(251,251,251,1);
- margin-right: 30rpx;
- flex-shrink: 0;
- }
.user-info {
+ margin-left: 30rpx;
display: flex;
.info-left {
margin-right: 15rpx;
diff --git a/static/image/emoji/1.gif b/static/image/emoji/1.gif
deleted file mode 100644
index 9c625da..0000000
Binary files a/static/image/emoji/1.gif and /dev/null differ
diff --git a/static/image/emoji/10.gif b/static/image/emoji/10.gif
deleted file mode 100644
index 2df85f1..0000000
Binary files a/static/image/emoji/10.gif and /dev/null differ
diff --git a/static/image/emoji/11.gif b/static/image/emoji/11.gif
deleted file mode 100644
index 79fc76b..0000000
Binary files a/static/image/emoji/11.gif and /dev/null differ
diff --git a/static/image/emoji/12.gif b/static/image/emoji/12.gif
deleted file mode 100644
index dba37f7..0000000
Binary files a/static/image/emoji/12.gif and /dev/null differ
diff --git a/static/image/emoji/13.gif b/static/image/emoji/13.gif
deleted file mode 100644
index b296ca0..0000000
Binary files a/static/image/emoji/13.gif and /dev/null differ
diff --git a/static/image/emoji/14.gif b/static/image/emoji/14.gif
deleted file mode 100644
index ce5f92f..0000000
Binary files a/static/image/emoji/14.gif and /dev/null differ
diff --git a/static/image/emoji/15.gif b/static/image/emoji/15.gif
deleted file mode 100644
index 99479b5..0000000
Binary files a/static/image/emoji/15.gif and /dev/null differ
diff --git a/static/image/emoji/16.gif b/static/image/emoji/16.gif
deleted file mode 100644
index cf4e566..0000000
Binary files a/static/image/emoji/16.gif and /dev/null differ
diff --git a/static/image/emoji/17.gif b/static/image/emoji/17.gif
deleted file mode 100644
index 0a8d641..0000000
Binary files a/static/image/emoji/17.gif and /dev/null differ
diff --git a/static/image/emoji/18.gif b/static/image/emoji/18.gif
deleted file mode 100644
index a83d6ea..0000000
Binary files a/static/image/emoji/18.gif and /dev/null differ
diff --git a/static/image/emoji/19.gif b/static/image/emoji/19.gif
deleted file mode 100644
index 82b4c1c..0000000
Binary files a/static/image/emoji/19.gif and /dev/null differ
diff --git a/static/image/emoji/2.gif b/static/image/emoji/2.gif
deleted file mode 100644
index 8c9c9c3..0000000
Binary files a/static/image/emoji/2.gif and /dev/null differ
diff --git a/static/image/emoji/20.gif b/static/image/emoji/20.gif
deleted file mode 100644
index d1d66ba..0000000
Binary files a/static/image/emoji/20.gif and /dev/null differ
diff --git a/static/image/emoji/21.gif b/static/image/emoji/21.gif
deleted file mode 100644
index 9f52cc4..0000000
Binary files a/static/image/emoji/21.gif and /dev/null differ
diff --git a/static/image/emoji/22.gif b/static/image/emoji/22.gif
deleted file mode 100644
index 7c97425..0000000
Binary files a/static/image/emoji/22.gif and /dev/null differ
diff --git a/static/image/emoji/23.gif b/static/image/emoji/23.gif
deleted file mode 100644
index 371b9ab..0000000
Binary files a/static/image/emoji/23.gif and /dev/null differ
diff --git a/static/image/emoji/24.gif b/static/image/emoji/24.gif
deleted file mode 100644
index 408e218..0000000
Binary files a/static/image/emoji/24.gif and /dev/null differ
diff --git a/static/image/emoji/25.gif b/static/image/emoji/25.gif
deleted file mode 100644
index 40fc2d2..0000000
Binary files a/static/image/emoji/25.gif and /dev/null differ
diff --git a/static/image/emoji/26.gif b/static/image/emoji/26.gif
deleted file mode 100644
index a608f1a..0000000
Binary files a/static/image/emoji/26.gif and /dev/null differ
diff --git a/static/image/emoji/27.gif b/static/image/emoji/27.gif
deleted file mode 100644
index 0a51354..0000000
Binary files a/static/image/emoji/27.gif and /dev/null differ
diff --git a/static/image/emoji/28.gif b/static/image/emoji/28.gif
deleted file mode 100644
index a74ba88..0000000
Binary files a/static/image/emoji/28.gif and /dev/null differ
diff --git a/static/image/emoji/29.gif b/static/image/emoji/29.gif
deleted file mode 100644
index f545408..0000000
Binary files a/static/image/emoji/29.gif and /dev/null differ
diff --git a/static/image/emoji/3.gif b/static/image/emoji/3.gif
deleted file mode 100644
index cf53b42..0000000
Binary files a/static/image/emoji/3.gif and /dev/null differ
diff --git a/static/image/emoji/30.gif b/static/image/emoji/30.gif
deleted file mode 100644
index 1b97bd5..0000000
Binary files a/static/image/emoji/30.gif and /dev/null differ
diff --git a/static/image/emoji/31.gif b/static/image/emoji/31.gif
deleted file mode 100644
index 27a59bf..0000000
Binary files a/static/image/emoji/31.gif and /dev/null differ
diff --git a/static/image/emoji/32.gif b/static/image/emoji/32.gif
deleted file mode 100644
index aa8f5b5..0000000
Binary files a/static/image/emoji/32.gif and /dev/null differ
diff --git a/static/image/emoji/33.gif b/static/image/emoji/33.gif
deleted file mode 100644
index 1f6eb7f..0000000
Binary files a/static/image/emoji/33.gif and /dev/null differ
diff --git a/static/image/emoji/34.gif b/static/image/emoji/34.gif
deleted file mode 100644
index e0c53df..0000000
Binary files a/static/image/emoji/34.gif and /dev/null differ
diff --git a/static/image/emoji/35.gif b/static/image/emoji/35.gif
deleted file mode 100644
index dd5bc89..0000000
Binary files a/static/image/emoji/35.gif and /dev/null differ
diff --git a/static/image/emoji/36.gif b/static/image/emoji/36.gif
deleted file mode 100644
index 033b990..0000000
Binary files a/static/image/emoji/36.gif and /dev/null differ
diff --git a/static/image/emoji/37.gif b/static/image/emoji/37.gif
deleted file mode 100644
index d0ec237..0000000
Binary files a/static/image/emoji/37.gif and /dev/null differ
diff --git a/static/image/emoji/38.gif b/static/image/emoji/38.gif
deleted file mode 100644
index 3be9b18..0000000
Binary files a/static/image/emoji/38.gif and /dev/null differ
diff --git a/static/image/emoji/39.gif b/static/image/emoji/39.gif
deleted file mode 100644
index da0d802..0000000
Binary files a/static/image/emoji/39.gif and /dev/null differ
diff --git a/static/image/emoji/4.gif b/static/image/emoji/4.gif
deleted file mode 100644
index b6fca63..0000000
Binary files a/static/image/emoji/4.gif and /dev/null differ
diff --git a/static/image/emoji/40.gif b/static/image/emoji/40.gif
deleted file mode 100644
index e7a46e8..0000000
Binary files a/static/image/emoji/40.gif and /dev/null differ
diff --git a/static/image/emoji/41.gif b/static/image/emoji/41.gif
deleted file mode 100644
index bf50050..0000000
Binary files a/static/image/emoji/41.gif and /dev/null differ
diff --git a/static/image/emoji/42.gif b/static/image/emoji/42.gif
deleted file mode 100644
index 5686f32..0000000
Binary files a/static/image/emoji/42.gif and /dev/null differ
diff --git a/static/image/emoji/43.gif b/static/image/emoji/43.gif
deleted file mode 100644
index db41073..0000000
Binary files a/static/image/emoji/43.gif and /dev/null differ
diff --git a/static/image/emoji/44.gif b/static/image/emoji/44.gif
deleted file mode 100644
index 4551b50..0000000
Binary files a/static/image/emoji/44.gif and /dev/null differ
diff --git a/static/image/emoji/45.gif b/static/image/emoji/45.gif
deleted file mode 100644
index 22ac5dd..0000000
Binary files a/static/image/emoji/45.gif and /dev/null differ
diff --git a/static/image/emoji/46.gif b/static/image/emoji/46.gif
deleted file mode 100644
index 4d820a5..0000000
Binary files a/static/image/emoji/46.gif and /dev/null differ
diff --git a/static/image/emoji/47.gif b/static/image/emoji/47.gif
deleted file mode 100644
index ae49176..0000000
Binary files a/static/image/emoji/47.gif and /dev/null differ
diff --git a/static/image/emoji/48.gif b/static/image/emoji/48.gif
deleted file mode 100644
index 2190ece..0000000
Binary files a/static/image/emoji/48.gif and /dev/null differ
diff --git a/static/image/emoji/49.gif b/static/image/emoji/49.gif
deleted file mode 100644
index 35f5dfb..0000000
Binary files a/static/image/emoji/49.gif and /dev/null differ
diff --git a/static/image/emoji/5.gif b/static/image/emoji/5.gif
deleted file mode 100644
index 885852a..0000000
Binary files a/static/image/emoji/5.gif and /dev/null differ
diff --git a/static/image/emoji/50.gif b/static/image/emoji/50.gif
deleted file mode 100644
index b0d6eda..0000000
Binary files a/static/image/emoji/50.gif and /dev/null differ
diff --git a/static/image/emoji/51.gif b/static/image/emoji/51.gif
deleted file mode 100644
index d0d7674..0000000
Binary files a/static/image/emoji/51.gif and /dev/null differ
diff --git a/static/image/emoji/52.gif b/static/image/emoji/52.gif
deleted file mode 100644
index 73dbc81..0000000
Binary files a/static/image/emoji/52.gif and /dev/null differ
diff --git a/static/image/emoji/53.gif b/static/image/emoji/53.gif
deleted file mode 100644
index a58aceb..0000000
Binary files a/static/image/emoji/53.gif and /dev/null differ
diff --git a/static/image/emoji/54.gif b/static/image/emoji/54.gif
deleted file mode 100644
index c3517bf..0000000
Binary files a/static/image/emoji/54.gif and /dev/null differ
diff --git a/static/image/emoji/55.gif b/static/image/emoji/55.gif
deleted file mode 100644
index 82d0a67..0000000
Binary files a/static/image/emoji/55.gif and /dev/null differ
diff --git a/static/image/emoji/56.gif b/static/image/emoji/56.gif
deleted file mode 100644
index f1c71b7..0000000
Binary files a/static/image/emoji/56.gif and /dev/null differ
diff --git a/static/image/emoji/57.gif b/static/image/emoji/57.gif
deleted file mode 100644
index 9a8c49d..0000000
Binary files a/static/image/emoji/57.gif and /dev/null differ
diff --git a/static/image/emoji/58.gif b/static/image/emoji/58.gif
deleted file mode 100644
index 3ff9763..0000000
Binary files a/static/image/emoji/58.gif and /dev/null differ
diff --git a/static/image/emoji/59.gif b/static/image/emoji/59.gif
deleted file mode 100644
index 13d4c9a..0000000
Binary files a/static/image/emoji/59.gif and /dev/null differ
diff --git a/static/image/emoji/6.gif b/static/image/emoji/6.gif
deleted file mode 100644
index 9f91c02..0000000
Binary files a/static/image/emoji/6.gif and /dev/null differ
diff --git a/static/image/emoji/60.gif b/static/image/emoji/60.gif
deleted file mode 100644
index 0b70bc2..0000000
Binary files a/static/image/emoji/60.gif and /dev/null differ
diff --git a/static/image/emoji/61.gif b/static/image/emoji/61.gif
deleted file mode 100644
index 034933e..0000000
Binary files a/static/image/emoji/61.gif and /dev/null differ
diff --git a/static/image/emoji/62.gif b/static/image/emoji/62.gif
deleted file mode 100644
index 310ec65..0000000
Binary files a/static/image/emoji/62.gif and /dev/null differ
diff --git a/static/image/emoji/63.gif b/static/image/emoji/63.gif
deleted file mode 100644
index 3ac29d6..0000000
Binary files a/static/image/emoji/63.gif and /dev/null differ
diff --git a/static/image/emoji/64.gif b/static/image/emoji/64.gif
deleted file mode 100644
index 3d58417..0000000
Binary files a/static/image/emoji/64.gif and /dev/null differ
diff --git a/static/image/emoji/65.gif b/static/image/emoji/65.gif
deleted file mode 100644
index 15eac19..0000000
Binary files a/static/image/emoji/65.gif and /dev/null differ
diff --git a/static/image/emoji/66.gif b/static/image/emoji/66.gif
deleted file mode 100644
index 7f789f0..0000000
Binary files a/static/image/emoji/66.gif and /dev/null differ
diff --git a/static/image/emoji/67.gif b/static/image/emoji/67.gif
deleted file mode 100644
index 405f08c..0000000
Binary files a/static/image/emoji/67.gif and /dev/null differ
diff --git a/static/image/emoji/68.gif b/static/image/emoji/68.gif
deleted file mode 100644
index c954d8e..0000000
Binary files a/static/image/emoji/68.gif and /dev/null differ
diff --git a/static/image/emoji/69.gif b/static/image/emoji/69.gif
deleted file mode 100644
index 59d586a..0000000
Binary files a/static/image/emoji/69.gif and /dev/null differ
diff --git a/static/image/emoji/7.gif b/static/image/emoji/7.gif
deleted file mode 100644
index a2b7bec..0000000
Binary files a/static/image/emoji/7.gif and /dev/null differ
diff --git a/static/image/emoji/70.gif b/static/image/emoji/70.gif
deleted file mode 100644
index 4387731..0000000
Binary files a/static/image/emoji/70.gif and /dev/null differ
diff --git a/static/image/emoji/71.gif b/static/image/emoji/71.gif
deleted file mode 100644
index 126f0ea..0000000
Binary files a/static/image/emoji/71.gif and /dev/null differ
diff --git a/static/image/emoji/72.gif b/static/image/emoji/72.gif
deleted file mode 100644
index cb6432e..0000000
Binary files a/static/image/emoji/72.gif and /dev/null differ
diff --git a/static/image/emoji/73.gif b/static/image/emoji/73.gif
deleted file mode 100644
index eb19fd2..0000000
Binary files a/static/image/emoji/73.gif and /dev/null differ
diff --git a/static/image/emoji/74.gif b/static/image/emoji/74.gif
deleted file mode 100644
index d92535b..0000000
Binary files a/static/image/emoji/74.gif and /dev/null differ
diff --git a/static/image/emoji/75.gif b/static/image/emoji/75.gif
deleted file mode 100644
index 608d0ad..0000000
Binary files a/static/image/emoji/75.gif and /dev/null differ
diff --git a/static/image/emoji/76.gif b/static/image/emoji/76.gif
deleted file mode 100644
index 4052abc..0000000
Binary files a/static/image/emoji/76.gif and /dev/null differ
diff --git a/static/image/emoji/77.gif b/static/image/emoji/77.gif
deleted file mode 100644
index 3619e6c..0000000
Binary files a/static/image/emoji/77.gif and /dev/null differ
diff --git a/static/image/emoji/78.gif b/static/image/emoji/78.gif
deleted file mode 100644
index 26c8429..0000000
Binary files a/static/image/emoji/78.gif and /dev/null differ
diff --git a/static/image/emoji/79.gif b/static/image/emoji/79.gif
deleted file mode 100644
index 095e259..0000000
Binary files a/static/image/emoji/79.gif and /dev/null differ
diff --git a/static/image/emoji/8.gif b/static/image/emoji/8.gif
deleted file mode 100644
index f8e6cea..0000000
Binary files a/static/image/emoji/8.gif and /dev/null differ
diff --git a/static/image/emoji/80.gif b/static/image/emoji/80.gif
deleted file mode 100644
index 85d967a..0000000
Binary files a/static/image/emoji/80.gif and /dev/null differ
diff --git a/static/image/emoji/81.gif b/static/image/emoji/81.gif
deleted file mode 100644
index c41e52e..0000000
Binary files a/static/image/emoji/81.gif and /dev/null differ
diff --git a/static/image/emoji/82.gif b/static/image/emoji/82.gif
deleted file mode 100644
index 8d39fab..0000000
Binary files a/static/image/emoji/82.gif and /dev/null differ
diff --git a/static/image/emoji/9.gif b/static/image/emoji/9.gif
deleted file mode 100644
index a4f349f..0000000
Binary files a/static/image/emoji/9.gif and /dev/null differ
diff --git a/static/image/mine/25.png b/static/image/mine/25.png
new file mode 100644
index 0000000..4702a8e
Binary files /dev/null and b/static/image/mine/25.png differ
diff --git a/static/image/mine/26.png b/static/image/mine/26.png
new file mode 100644
index 0000000..31a6de6
Binary files /dev/null and b/static/image/mine/26.png differ
diff --git a/static/image/mine/27.png b/static/image/mine/27.png
new file mode 100644
index 0000000..22bde9b
Binary files /dev/null and b/static/image/mine/27.png differ
diff --git a/static/image/mine/28.png b/static/image/mine/28.png
new file mode 100644
index 0000000..ba0b54d
Binary files /dev/null and b/static/image/mine/28.png differ
diff --git a/static/image/mine/29.png b/static/image/mine/29.png
new file mode 100644
index 0000000..45c080e
Binary files /dev/null and b/static/image/mine/29.png differ
diff --git a/static/image/mine/30.png b/static/image/mine/30.png
new file mode 100644
index 0000000..4cd589b
Binary files /dev/null and b/static/image/mine/30.png differ
diff --git a/static/image/mine/31.png b/static/image/mine/31.png
new file mode 100644
index 0000000..1d00a85
Binary files /dev/null and b/static/image/mine/31.png differ
diff --git a/static/image/mine/32.png b/static/image/mine/32.png
new file mode 100644
index 0000000..25cf25c
Binary files /dev/null and b/static/image/mine/32.png differ
diff --git a/static/image/mine/33.png b/static/image/mine/33.png
new file mode 100644
index 0000000..8581d03
Binary files /dev/null and b/static/image/mine/33.png differ
diff --git a/static/image/mine/34.png b/static/image/mine/34.png
new file mode 100644
index 0000000..d87fd41
Binary files /dev/null and b/static/image/mine/34.png differ
diff --git a/static/js/common.js b/static/js/common.js
index cde9abc..dc9b353 100644
--- a/static/js/common.js
+++ b/static/js/common.js
@@ -10,25 +10,35 @@ const common = {
return temp.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&").replace(/"/g, '"').replace(/'/g, "'");
},
/**
- * php时间戳转为格式化日期
- * @param { String } timestamp 必填 php返回的时间戳
- * @param { String } spacer 可选 日期间隔符,默认 '-'
- * @param { String } end 可选 年月日时分秒截止位置,默认 day,可传 second
- * @return { String } 格式化日期
+ * 上传文件(只能单文件上传)
+ * @param { String } url 服务器 url
+ * @param { String } filePath 要上传文件资源的路径
+ * @param { String } type 上传文件验证类型 默认: img 可选: video
+ * @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
- timestampToDate({timestamp, spacer = '-', end = 'day'} = {}) {
- if(!timestamp) return '';
- const newDate = new Date(parseInt(timestamp) * 1000);
- // const year = newDate.getUTCFullYear();
- const year = newDate.getFullYear();
- const month = newDate.getMonth() + 1;
- const nowday = newDate.getDate();
- const hours = newDate.getHours();
- const minutes = newDate.getMinutes();
- const seconds = newDate.getSeconds();
- return end == 'day'
- ? year + spacer + month + spacer + nowday
- : year + spacer + month + spacer + nowday + spacer + hours + spacer + minutes + spacer + seconds;
- }
+ uploadFile({ url, filePath, type = 'img' } = {}) {
+ const token = uni.getStorageSync('token');
+ const promise = new Promise((resolve, reject) => {
+ uni.uploadFile({
+ url: url,
+ header: { "authorization": 'Bearer' + " " + token },
+ filePath: filePath,
+ name: 'file',
+ formData: { type: type },
+ success: uploadFileRes => {
+ const data = JSON.parse(uploadFileRes.data);
+ if(data.errCode == 0) {
+ resolve(data.data.url);
+ } else {
+ reject(data.message);
+ }
+ },
+ fail(){
+ reject('上传失败');
+ }
+ })
+ });
+ return promise;
+ },
}
export default common
\ No newline at end of file
diff --git a/unpackage/dist/build/app-plus/__uniappchooselocation.js b/unpackage/dist/build/app-plus/__uniappchooselocation.js
deleted file mode 100644
index 9bbff37..0000000
--- a/unpackage/dist/build/app-plus/__uniappchooselocation.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(e){var t={};function A(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,A),i.l=!0,i.exports}A.m=e,A.c=t,A.d=function(e,t,a){A.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},A.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},A.t=function(e,t){if(1&t&&(e=A(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(A.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)A.d(a,i,function(t){return e[t]}.bind(null,i));return a},A.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return A.d(t,"a",t),t},A.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},A.p="",A(A.s=40)}([function(e,t){e.exports={}},function(e,t,A){"use strict";function a(e,t,A,a,i,n,o,s){var r,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=A,c._compiled=!0),a&&(c.functional=!0),n&&(c._scopeId="data-v-"+n),o?(r=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=r):i&&(r=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),r)if(c.functional){c._injectStyles=r;var l=c.render;c.render=function(e,t){return r.call(t),l(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,r):[r]}return{exports:e,options:c}}A.d(t,"a",function(){return a})},function(e,t,A){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.weexPlus=t.default=void 0,a="function"==typeof getUni?getUni:function(){var e=function(e){return"function"==typeof e},t=/^\$|^on|^create|Sync$|Manager$|^pause/,A=["os","getCurrentSubNVue","getSubNVueById","stopRecord","stopVoice","stopBackgroundAudio","stopPullDownRefresh","hideKeyboard","hideToast","hideLoading","showNavigationBarLoading","hideNavigationBarLoading","canIUse","navigateBack","closeSocket","pageScrollTo","drawCanvas"],a=function(e){return!(t.test(e)&&"createBLEConnection"!==e||~A.indexOf(e))},n=function(t){return function(){for(var A=arguments.length,a=Array(A>1?A-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return e(n.success)||e(n.fail)||e(n.complete)?t.apply(void 0,[n].concat(a)):new Promise(function(e,A){t.apply(void 0,[Object.assign({},n,{success:e,fail:A})].concat(a)),Promise.prototype.finally=function(e){var t=this.constructor;return this.then(function(A){return t.resolve(e()).then(function(){return A})},function(A){return t.resolve(e()).then(function(){throw A})})}}).then(function(e){return[null,e]}).catch(function(e){return[e]})}},o=[],s=void 0;function r(e){o.forEach(function(t){return t({origin:s,data:e})})}var c=i.webview.currentWebview().id,l=new BroadcastChannel("UNI-APP-SUBNVUE");function d(e){e.$processed=!0;var t=i.webview.currentWebview().id===e.id,A="uniNView"===e.__uniapp_origin_type&&e.__uniapp_origin_id,a=e.id;if(e.postMessage=function(e){A?l.postMessage({data:e,to:t?A:a}):m({type:"UniAppSubNVue",data:e})},e.onMessage=function(e){o.push(e)},e.__uniapp_mask_id){s=e.__uniapp_host;var n=e.__uniapp_mask,r=i.webview.getWebviewById(e.__uniapp_mask_id);r=r.parent()||r;var c=e.show,d=e.hide,u=e.close,g=function(){r.setStyle({mask:"none"})};e.show=function(){r.setStyle({mask:n});for(var t=arguments.length,A=Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:Q,A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/x-www-form-urlencoded";return"object"===(void 0===e?"undefined":T(e))?"POST"===t.toUpperCase()&&"application/json"===A.toLowerCase()?JSON.stringify(e):Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&"):e},G=weex.requireModule("plusstorage"),U="__TYPE",R=weex.requireModule("clipboard"),V=function(){if("function"==typeof getUniEmitter)return getUniEmitter;var e={$on:function(){console.warn("uni.$on failed")},$off:function(){console.warn("uni.$off failed")},$once:function(){console.warn("uni.$once failed")},$emit:function(){console.warn("uni.$emit failed")}};return function(){return e}}();function F(e,t,A){return e[t].apply(e,A)}var Y=Object.freeze({loadFontFace:function(t){var A=t.family,a=t.source,i=(t.desc,t.success),n=(t.fail,t.complete);P.addRule("fontFace",{fontFamily:A,src:a.replace(/"/g,"'")});var o={errMsg:"loadFontFace:ok",status:"loaded"};e(i)&&i(o),e(n)&&n(o)},ready:O,request:function(t){var A=t.url,a=t.data,i=t.header,n=t.method,o=void 0===n?"GET":n,s=t.dataType,r=void 0===s?"json":s,c=(t.responseType,t.success),l=t.fail,d=t.complete,u=!1,g=!1,f={};if(i)for(var p in i)g||"content-type"!==p.toLowerCase()?f[p]=i[p]:(g=!0,f["Content-Type"]=i[p]);return o===Q&&a&&(A=A+(~A.indexOf("?")?"&"===A.substr(-1)||"?"===A.substr(-1)?"":"&":"?")+D(a)),N.fetch({url:A,method:o,headers:f,type:"json"===r?"json":"text",body:o!==Q?D(a,o,f["Content-Type"]):""},function(t){var A=t.status,a=(t.ok,t.statusText,t.data),i=t.headers,n={};!A||-1===A||u?(n.errMsg="request:fail",e(l)&&l(n)):(n.data=a,n.statusCode=A,n.header=i,e(c)&&c(n)),e(d)&&d(n)}),{abort:function(){u=!0}}},getStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.getItem(A+U,function(t){if("success"===t.result){var o=t.data;G.getItem(A,function(t){if("success"===t.result){var A=t.data;o&&A?("String"!==o&&(A=JSON.parse(A)),e(a)&&a({errMsg:"getStorage:ok",data:A})):(t.errMsg="setStorage:fail",e(i)&&i(t))}else t.errMsg="setStorage:fail",e(i)&&i(t);e(n)&&n(t)})}else t.errMsg="setStorage:fail",e(i)&&i(t),e(n)&&n(t)})},setStorage:function(t){var A=t.key,a=t.data,i=t.success,n=t.fail,o=t.complete,s="String";"object"===(void 0===a?"undefined":T(a))&&(s="Object",a=JSON.stringify(a)),G.setItem(A,a,function(t){"success"===t.result?G.setItem(A+U,s,function(t){"success"===t.result?e(i)&&i({errMsg:"setStorage:ok"}):(t.errMsg="setStorage:fail",e(n)&&n(t))}):(t.errMsg="setStorage:fail",e(n)&&n(t)),e(o)&&o(t)})},removeStorage:function(t){var A=t.key,a=(t.data,t.success),i=t.fail,n=t.complete;G.removeItem(A,function(t){"success"===t.result?e(a)&&a({errMsg:"removeStorage:ok"}):(t.errMsg="removeStorage:fail",e(i)&&i(t)),e(n)&&n(t)}),G.removeItem(A+U)},clearStorage:function(e){e.key,e.data,e.success,e.fail,e.complete},getClipboardData:function(t){var A=t.success,a=(t.fail,t.complete);R.getString(function(t){var i={errMsg:"getClipboardData:ok",data:t.data};e(A)&&A(i),e(a)&&a(i)})},setClipboardData:function(t){var A=t.data,a=t.success,i=(t.fail,t.complete),n={errMsg:"setClipboardData:ok"};R.setString(A),e(a)&&a(n),e(i)&&i(n)},onSubNVueMessage:r,getSubNVueById:u,getCurrentSubNVue:function(){return u(i.webview.currentWebview().id)},$on:function(){return F(V(),"$on",[].concat(Array.prototype.slice.call(arguments)))},$off:function(){return F(V(),"$off",[].concat(Array.prototype.slice.call(arguments)))},$once:function(){return F(V(),"$once",[].concat(Array.prototype.slice.call(arguments)))},$emit:function(){return F(V(),"$emit",[].concat(Array.prototype.slice.call(arguments)))}}),H={os:{nvue:!0}},Z={};return"undefined"!=typeof Proxy?Z=new Proxy({},{get:function(e,t){if("os"===t)return{nvue:!0};if("postMessage"===t)return m;if("requireNativePlugin"===t)return k;if("onNavigationBarButtonTap"===t)return C;if("onNavigationBarSearchInputChanged"===t)return L;if("onNavigationBarSearchInputConfirmed"===t)return I;if("onNavigationBarSearchInputClicked"===t)return E;var A=Y[t];return A||(A=b(t)),a(t)?n(A):A}}):(Object.keys(H).forEach(function(e){Z[e]=H[e]}),Z.postMessage=m,Z.requireNativePlugin=k,Z.onNavigationBarButtonTap=C,Z.onNavigationBarSearchInputChanged=L,Z.onNavigationBarSearchInputConfirmed=I,Z.onNavigationBarSearchInputClicked=E,Object.keys({uploadFile:!0,downloadFile:!0,chooseImage:!0,previewImage:!0,getImageInfo:!0,saveImageToPhotosAlbum:!0,chooseVideo:!0,saveVideoToPhotosAlbum:!0,saveFile:!0,getSavedFileList:!0,getSavedFileInfo:!0,removeSavedFile:!0,openDocument:!0,setStorage:!0,getStorage:!0,getStorageInfo:!0,removeStorage:!0,clearStorage:!0,getLocation:!0,chooseLocation:!0,openLocation:!0,getSystemInfo:!0,getNetworkType:!0,makePhoneCall:!0,scanCode:!0,setScreenBrightness:!0,getScreenBrightness:!0,setKeepScreenOn:!0,vibrateLong:!0,vibrateShort:!0,addPhoneContact:!0,showToast:!0,showLoading:!0,hideToast:!0,hideLoading:!0,showModal:!0,showActionSheet:!0,setNavigationBarTitle:!0,setNavigationBarColor:!0,navigateTo:!0,redirectTo:!0,reLaunch:!0,switchTab:!0,navigateBack:!0,getProvider:!0,login:!0,getUserInfo:!0,share:!0,requestPayment:!0,subscribePush:!0,unsubscribePush:!0,onPush:!0,offPush:!0}).forEach(function(e){var t=Y[e];t||(t=b(e)),a(e)?Z[e]=n(t):Z[e]=t})),Z};var i=new WeexPlus(weex);t.weexPlus=i;var n=a(weex,i,BroadcastChannel);t.default=n},function(e,t,A){Vue.prototype.__$appStyle__={},Vue.prototype.__merge_style&&Vue.prototype.__merge_style(A(4).default,Vue.prototype.__$appStyle__)},function(e,t,A){"use strict";A.r(t);var a=A(0),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,function(){return a[e]})}(n);t.default=i.a},function(e,t,A){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var A={onLoad:function(){var t=this,A=e.webview.currentWebview().extras||{},a=A.from,i=(A.callback,A.runtime),n=A.data,o=void 0===n?{}:n,s=A.useGlobalEvent;this.__from=a,this.__runtime=i,this.__page=e.webview.currentWebview().id,this.__useGlobalEvent=s,this.data=JSON.parse(JSON.stringify(o)),e.key.addEventListener("backbutton",function(){"function"==typeof t.onClose?t.onClose():e.webview.currentWebview().close("auto")});var r=this,c=function(e){var t=e.data&&e.data.__message;t&&r.__onMessageCallback&&r.__onMessageCallback(t.data)};this.__useGlobalEvent?weex.requireModule("globalEvent").addEventListener("plusMessage",c):new BroadcastChannel(this.__page).onmessage=c},methods:{postMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},A=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a={__message:{__page:this.__page,data:t,keep:A}},i=this.__from;if("v8"===this.__runtime){if(this.__useGlobalEvent)e.webview.postMessageToUniNView(a,i);else new BroadcastChannel(i).postMessage(a)}else{var n=e.webview.getWebviewById(i);n&&n.evalJS("__plusMessage&&__plusMessage(".concat(JSON.stringify({data:a}),")"))}},onMessage:function(e){this.__onMessageCallback=e}}};t.default=A}).call(this,A(2).weexPlus)},function(e,t,A){"use strict";var a=A(29),i=A(11),n=A(1);var o=Object(n.a)(i.default,a.a,a.b,!1,null,null,"8d0eedfe");(function(){this.options.style||(this.options.style={}),Vue.prototype.__merge_style&&Vue.prototype.__$appStyle__&&Vue.prototype.__merge_style(Vue.prototype.__$appStyle__,this.options.style),Vue.prototype.__merge_style?Vue.prototype.__merge_style(A(35).default,this.options.style):Object.assign(this.options.style,A(35).default)}).call(o),t.default=o.exports},,,,,function(e,t,A){"use strict";var a=A(12),i=A.n(a);t.default=i.a},function(e,t,A){"use strict";(function(e,a){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,n=(i=A(5))&&i.__esModule?i:{default:i};weex.requireModule("dom").addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7DL//wAAAAAAAAAAAAEACgAKAAoACgAAAAQAAwACAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEAAAAAAAAAABAAA5goAAOYKAAAABAAA5hwAAOYcAAAAAwAA5lEAAOZRAAAAAgAA7DIAAOwyAAAAAQAAAAAAAAB+AKAA0gESAAQAAP+gA+ADYAAAAAkAMQBZAAABIx4BMjY0JiIGBSMuASc1NCYiBh0BDgEHIyIGFBY7AR4BFxUUFjI2PQE+ATczMjY0JgE1NCYiBh0BLgEnMzI2NCYrAT4BNxUUFjI2PQEeARcjIgYUFjsBDgECAFABLUQtLUQtAg8iD9OcEhwSnNMPIg4SEg4iD9OcEhwSnNMPIg4SEv5SEhwSga8OPg4SEg4+Dq+BEhwSga8OPg4SEg4+Dq8BgCItLUQtLQKc0w8iDhISDiIP05wSHBKc0w8iDhISDiIP05wSHBL+gj4OEhIOPg6vgRIcEoGvDj4OEhIOPg6vgRIcEoGvAAEAAAAAA4ECgQAQAAABPgEeAQcBDgEvASY0NhYfAQM2DCIbAgz+TA0kDfcMGiIN1wJyDQIZIg3+IQ4BDf4NIhoBDd0AAQAAAAADAgKCAB0AAAE3PgEuAgYPAScmIgYUHwEHBhQWMj8BFxYyNjQnAjy4CAYGEBcWCLe3DSIaDLi4DBkjDbe3DSMZDAGAtwgWFxAGBgi4uAwaIg23tw0jGQy4uAwZIw0AAAIAAP/fA6EDHgAVACYAACUnPgE3LgEnDgEHHgEXMjY3FxYyNjQlBiIuAjQ+AjIeAhQOAQOX2CcsAQTCkpLCAwPCkj5uLdkJGRH+ijV0Z08rK09ndGdPLCxPE9MtckGSwgQEwpKSwgMoJdQIEhi3FixOaHNnTywsT2dzaE4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQARABUAAQAAAAAAAgAHACYAAQAAAAAAAwARAC0AAQAAAAAABAARAD4AAQAAAAAABQALAE8AAQAAAAAABgARAFoAAQAAAAAACgArAGsAAQAAAAAACwATAJYAAwABBAkAAAAqAKkAAwABBAkAAQAiANMAAwABBAkAAgAOAPUAAwABBAkAAwAiAQMAAwABBAkABAAiASUAAwABBAkABQAWAUcAAwABBAkABgAiAV0AAwABBAkACgBWAX8AAwABBAkACwAmAdUKQ3JlYXRlZCBieSBpY29uZm9udAp1bmljaG9vc2Vsb2NhdGlvblJlZ3VsYXJ1bmljaG9vc2Vsb2NhdGlvbnVuaWNob29zZWxvY2F0aW9uVmVyc2lvbiAxLjB1bmljaG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var o={en:{ok:"OK",cancel:"Cancel",search_tips:"Search for a place",no_found:"No results found"},cn:{ok:"完成",cancel:"取消",search_tips:"搜索地点",no_found:"对不起,没有搜索到相关数据"}},s=weex.requireModule("mapSearch"),r={mixins:[n.default],data:function(){return{resource:{},userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:"data:image/png;base64,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",width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1}},computed:{disableOK:function(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0}},onLoad:function(){this.resource=e.os.language.toLowerCase().indexOf("zh")>=0?o.cn:o.en,this.statusBarHeight=e.navigator.getStatusbarHeight(),this.mapHeight=e.screen.resolutionHeight/2;var t=this.data;this.userKeyword=t.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady:function(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload:function(){this.clearSearchTimer()},methods:{cancelClick:function(){this.postMessage({event:"cancel"})},doneClick:function(){if(!this.disableOK){var e=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:e.name,address:e.address,latitude:e.location.latitude,longitude:e.location.longitude};this.postMessage({event:"selected",detail:t})}},getUserLocation:function(){var t=this;e.geolocation.getCurrentPosition(function(e){var A=e.coordsType,a=e.coords;"wgs84"===A.toLowerCase()?t.wgs84togcjo2(a,function(e){t.getUserLocationSuccess(e)}):t.getUserLocationSuccess(a)},function(e){t._hasUserLocation=!0,console.log(a("Gelocation Error: code - "+e.code+"; message - "+e.message," at template\\__uniappchooselocation.nvue:235"))},{geocode:!1})},getUserLocationSuccess:function(e){this._userLatitude=e.latitude,this._userLongitude=e.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:e.latitude,longitude:e.longitude})},searchclick:function(t){this.showSearch=t,!1===t&&e.key.hideSoftKeybord()},showSearchView:function(){this.searchList=[],this.showSearch=!0},hideSearchView:function(){this.showSearch=!1,e.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1},onregionchange:function(e){var t=this,A=e.detail,a=A.type||e.type;"drag"===(A.causedBy||e.causedBy)&&"end"===a&&this.mapContext.getCenterLocation(function(e){t.moveToCenter({latitude:e.latitude,longitude:e.longitude})})},onItemClick:function(e,t){t.stopPropagation(),this.nearSelectedIndex!==e&&(this.nearSelectedIndex=e),this.updateMarker(this.nearList[e].location)},moveToCenter:function(e){this.latitude===e.latitude&&this.longitude===e.longitude||(this.latitude=e.latitude,this.longitude=e.longitude,this.updateCenter(e),this.isUserLocation=this._userLatitude===e.latitude&&this._userLongitude===e.longitude)},updateCenter:function(e){this.nearSelectedIndex=-1,this.nearList=[],this.updateMarker(e),this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(e),this.searchNearByPoint(e))},searchNear:function(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint:function(e){var t=this;this.noNearData=!1,this.nearLoading=!0,s.poiSearchNearBy({point:{latitude:e.latitude,longitude:e.longitude},key:this.userKeyword,index:this._nearPageIndex,radius:1e3},function(e){t.nearLoading=!1,t._nearPageIndex=e.pageIndex+1,t.nearLoadingEnd=e.pageIndex===e.pageNumber,e.poiList&&e.poiList.length?(t.replaceEscape(e.poiList),t.nearList=t.nearList.concat(e.poiList)):t.noNearData=0===t.nearList.length})},updateMarker:function(e){this.mapContext.translateMarker({markerId:"location",destination:{latitude:e.latitude,longitude:e.longitude},duration:0},function(e){})},reverseGeocode:function(e){var t=this;s.reverseGeocode({point:e},function(A){"success"===A.type&&t._nearPageIndex<=2&&t.nearList.splice(0,0,{code:A.code,location:e,name:"地图位置",address:A.address||""})})},onsearchinput:function(e){var t=this,A=e.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout(function(){clearTimeout(t._searchInputTimer),t._searchPageIndex=1,t.searchEnd=!1,t._searchKeyword=A,t.searchList=[],t.search()},300)},clearSearchTimer:function(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search:function(){var e=this;0===this._searchKeyword.length||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,s.poiSearchNearBy({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,index:this._searchPageIndex,radius:5e4},function(t){e.searchLoading=!1,e._searchPageIndex=t.pageIndex+1,e.searchEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(e.replaceEscape(t.poiList),e.searchList=e.searchList.concat(t.poiList)):e.noSearchData=0===e.searchList.length}))},onSearchListTouchStart:function(){e.key.hideSoftKeybord()},onSearchItemClick:function(e,t){t.stopPropagation(),this.searchSelectedIndex!==e&&(this.searchSelectedIndex=e)},replaceEscape:function(e){for(var t=0;t1){var n=a.pop();i=a.join("---COMMA---"),0===n.indexOf(" at ")?i+=n:i+="---COMMA---"+n}else i=a[0];return i}},function(e,t,A){"use strict";var a=function(){var e=this,t=e.$createElement,A=e._self._c||t;return A("scroll-view",{staticStyle:{flexDirection:"column"},attrs:{scrollY:!0,enableBackToTop:!0,bubble:"true"}},[A("view",{staticClass:["page","flex-c"]},[A("view",{staticClass:["flex-r","map-view"]},[A("map",{ref:"map1",staticClass:["map","flex-fill"],style:"height:"+e.mapHeight+"px",attrs:{showLocation:e.showLocation,longitude:e.longitude,latitude:e.latitude,markers:e.markers},on:{regionchange:e.onregionchange}}),A("view",{staticClass:["map-location","flex-c","a-i-c","j-c-c"],on:{click:function(t){e.getUserLocation()}}},[A("u-text",{staticClass:["unichooselocation-icons","map-location-text"],class:{"map-location-text-active":e.isUserLocation}},[e._v("")])]),A("view",{staticClass:["nav-cover"]},[A("view",{staticClass:["statusbar"],style:"height:"+e.statusBarHeight+"px"}),A("view",{staticClass:["title-view","flex-r"]},[A("view",{staticClass:["btn-cancel"],on:{click:e.cancelClick}},[A("u-text",{staticClass:["unichooselocation-icons","btn-cancel-text"]},[e._v("")])]),A("view",{staticClass:["flex-fill"]}),A("view",{staticClass:["btn-done","flex-r","a-i-c","j-c-c"],class:{"btn-done-disabled":e.disableOK},on:{click:e.doneClick}},[A("u-text",{staticClass:["text-done"],class:{"text-done-disabled":e.disableOK}},[e._v(e._s(e.resource.ok))])])])])],1),A("view",{staticClass:["flex-c","result-area"],class:{"searching-area":e.showSearch}},[A("view",{staticClass:["search-bar"]},[A("view",{staticClass:["search-area","flex-r","a-i-c"],on:{click:e.showSearchView}},[A("u-text",{staticClass:["search-icon","unichooselocation-icons"]},[e._v("")]),A("u-text",{staticClass:["search-text"]},[e._v(e._s(e.resource.search_tips))])])]),e.noNearData?e._e():A("list",{staticClass:["flex-fill","list-view"],attrs:{loadmoreoffset:"5",scrollY:!0},on:{loadmore:function(t){e.searchNear()}}},[e._l(e.nearList,function(t,a){return A("cell",{key:t.uid,appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["list-item"],on:{click:function(t){e.onItemClick(a,t)}}},[A("view",{staticClass:["flex-r"]},[A("view",{staticClass:["list-text-area","flex-fill","flex-c"]},[A("u-text",{staticClass:["list-name"]},[e._v(e._s(t.name))]),t.distance?A("u-text",{staticClass:["list-address"]},[e._v(e._s(t.distance<100?"100m 内":t.distance+"m")+" | "+e._s(t.address))]):e._e(),t.distance?e._e():A("u-text",{staticClass:["list-address"]},[e._v(e._s(t.address))])]),a===e.nearSelectedIndex?A("view",{staticClass:["list-icon-area","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["unichooselocation-icons","list-selected-icon"]},[e._v("")])]):e._e()]),A("view",{staticClass:["list-line"]})])])}),e.nearLoading?A("cell",{appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["loading-view","flex-c","a-i-c","j-c-c"]},[A("loading-indicator",{staticClass:["loading-icon"],attrs:{animating:!0,arrow:"false"}})])]):e._e()],2),e.noNearData?A("view",{staticClass:["flex-fill","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["no-data"]},[e._v(e._s(e.resource.no_found))])]):e._e(),e.showSearch?A("view",{staticClass:["search-view","flex-c"]},[A("view",{staticClass:["search-bar","flex-r","a-i-c"]},[A("view",{staticClass:["search-area","flex-fill","flex-r"]},[A("u-input",{staticClass:["search-input","flex-fill"],attrs:{focus:!0,placeholder:e.resource.search_tips},on:{input:e.onsearchinput}})],1),A("u-text",{staticClass:["search-cancel"],on:{click:e.hideSearchView}},[e._v(e._s(e.resource.cancel))])]),e.noSearchData?e._e():A("list",{staticClass:["flex-fill","list-view"],attrs:{enableBackToTop:!0,scrollY:!0},on:{loadmore:function(t){e.search()},touchstart:e.onSearchListTouchStart}},[e._l(e.searchList,function(t,a){return A("cell",{key:t.uid,appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["list-item"],on:{click:function(t){e.onSearchItemClick(a,t)}}},[A("view",{staticClass:["flex-r"]},[A("view",{staticClass:["list-text-area","flex-fill","flex-c"]},[A("u-text",{staticClass:["list-name"]},[e._v(e._s(t.name))]),t.distance?A("u-text",{staticClass:["list-address"]},[e._v(e._s(t.distance<100?"100m 内":t.distance+"m")+" | "+e._s(t.address))]):e._e(),t.distance?e._e():A("u-text",{staticClass:["list-address"]},[e._v(e._s(t.address))])]),a===e.searchSelectedIndex?A("view",{staticClass:["list-icon-area","flex-r","a-i-c","j-c-c"]},[A("u-text",{staticClass:["unichooselocation-icons","list-selected-icon"]},[e._v("")])]):e._e()]),A("view",{staticClass:["list-line"]})])])}),e.searchLoading?A("cell",{appendAsTree:!0,attrs:{append:"tree"}},[A("view",{staticClass:["loading-view","flex-c","a-i-c","j-c-c"]},[A("loading-indicator",{staticClass:["loading-icon"],attrs:{animating:!0}})])]):e._e()],2),e.noSearchData?A("view",{staticClass:["flex-fill","flex-r","j-c-c"]},[A("u-text",{staticClass:["no-data","no-data-search"]},[e._v(e._s(e.resource.no_found))])]):e._e()]):e._e()])])])},i=[];A.d(t,"a",function(){return a}),A.d(t,"b",function(){return i})},,,,,,function(e,t,A){"use strict";A.r(t);var a=A(13),i=A.n(a);for(var n in a)"default"!==n&&function(e){A.d(t,e,function(){return a[e]})}(n);t.default=i.a},,,,,function(e,t,A){"use strict";A.r(t);A(3);var a=A(6);a.default.mpType="page",a.default.route="template/__uniappchooselocation",a.default.el="#root",new Vue(a.default)}]);
\ No newline at end of file
diff --git a/unpackage/dist/build/app-plus/__uniappes6.js b/unpackage/dist/build/app-plus/__uniappes6.js
deleted file mode 100644
index d4018e8..0000000
--- a/unpackage/dist/build/app-plus/__uniappes6.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(t){"use strict";!function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=0)}([function(t,r,n){n(1),n(54),n(61),n(66),n(68),n(69),n(70),n(71),n(73),n(74),n(76),n(84),n(85),n(86),n(95),n(96),n(98),n(99),n(100),n(102),n(103),n(104),n(105),n(106),n(107),n(109),n(110),n(111),n(112),n(121),n(124),n(125),n(127),n(129),n(130),n(131),n(132),n(133),n(135),n(137),n(140),n(141),n(143),n(145),n(146),n(147),n(148),n(150),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(170),n(171),n(172),n(174),n(178),n(179),n(180),n(181),n(187),n(189),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(201),n(202),n(203),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),t.exports=n(217)},function(r,n,e){var o=e(2),i=e(6),u=e(45),c=e(14),a=e(46),f=e(39),s=e(47),l=e(48),p=e(51),g=e(49),v=e(52),h=g("isConcatSpreadable"),d=v>=51||!i(function(){var t=[];return t[h]=!1,t.concat()[0]!==t}),x=p("concat"),y=function(r){if(!c(r))return!1;var n=r[h];return n!==t?!!n:u(r)};o({target:"Array",proto:!0,forced:!d||!x},{concat:function(t){var r,n,e,o,i,u=a(this),c=l(u,0),p=0;for(r=-1,e=arguments.length;r9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(c,p++,i)}return c.length=p,c}})},function(r,n,e){var o=e(3),i=e(4).f,u=e(18),c=e(21),a=e(25),f=e(32),s=e(44);r.exports=function(r,n){var e,l,p,g,v,h=r.target,d=r.global,x=r.stat;if(e=d?o:x?o[h]||a(h,{}):(o[h]||{}).prototype)for(l in n){if(g=n[l],p=r.noTargetGet?(v=i(e,l))&&v.value:e[l],!s(d?l:h+(x?".":"#")+l,r.forced)&&p!==t){if(typeof g==typeof p)continue;f(g,p)}(r.sham||p&&p.sham)&&u(g,"sham",!0),c(e,l,g,r)}}},function(t,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(t,r,n){var e=n(5),o=n(7),i=n(8),u=n(9),c=n(13),a=n(15),f=n(16),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){var e=n(6);t.exports=!e(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(10),o=n(12);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(6),o=n(11),i="".split;t.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(r,n){r.exports=function(r){if(r==t)throw TypeError("Can't call method on "+r);return r}},function(t,r,n){var e=n(14);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(5),o=n(6),i=n(17);t.exports=!e&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,r,n){var e=n(3),o=n(14),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(5),o=n(19),i=n(8);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){var e=n(5),o=n(16),i=n(20),u=n(13),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){var e=n(14);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(3),o=n(22),i=n(18),u=n(15),c=n(25),a=n(26),f=n(27),s=f.get,l=f.enforce,p=String(a).split("toString");o("inspectSource",function(t){return a.call(t)}),(t.exports=function(t,r,n,o){var a=!!o&&!!o.unsafe,f=!!o&&!!o.enumerable,s=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof r||u(n,"name")||i(n,"name",r),l(n).source=p.join("string"==typeof r?r:"")),t!==e?(a?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=n:i(t,r,n)):f?t[r]=n:c(r,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&s(this).source||a.call(this)})},function(r,n,e){var o=e(23),i=e(24);(r.exports=function(r,n){return i[r]||(i[r]=n!==t?n:{})})("versions",[]).push({version:"3.3.6",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,r){t.exports=!1},function(t,r,n){var e=n(3),o=n(25),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(3),o=n(18);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(22);t.exports=e("native-function-to-string",Function.toString)},function(t,r,n){var e,o,i,u=n(28),c=n(3),a=n(14),f=n(18),s=n(15),l=n(29),p=n(31),g=c.WeakMap;if(u){var v=new g,h=v.get,d=v.has,x=v.set;e=function(t,r){return x.call(v,t,r),r},o=function(t){return h.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var y=l("state");p[y]=!0,e=function(t,r){return f(t,y,r),r},o=function(t){return s(t,y)?t[y]:{}},i=function(t){return s(t,y)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r,n){var e=n(3),o=n(26),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o.call(i))},function(t,r,n){var e=n(22),o=n(30),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(r,n){var e=0,o=Math.random();r.exports=function(r){return"Symbol("+String(r===t?"":r)+")_"+(++e+o).toString(36)}},function(t,r){t.exports={}},function(t,r,n){var e=n(15),o=n(33),i=n(4),u=n(19);t.exports=function(t,r){for(var n=o(r),c=u.f,a=i.f,f=0;fa;)e(c,n=r[a++])&&(~i(f,n)||f.push(n));return f}},function(t,r,n){var e=n(9),o=n(39),i=n(41),u=function(t){return function(r,n,u){var c,a=e(r),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r,n){var e=n(40),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(40),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(6),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(11);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(12);t.exports=function(t){return Object(e(t))}},function(t,r,n){var e=n(13),o=n(19),i=n(8);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(r,n,e){var o=e(14),i=e(45),u=e(49)("species");r.exports=function(r,n){var e;return i(r)&&("function"!=typeof(e=r.constructor)||e!==Array&&!i(e.prototype)?o(e)&&null===(e=e[u])&&(e=t):e=t),new(e===t?Array:e)(0===n?0:n)}},function(t,r,n){var e=n(3),o=n(22),i=n(30),u=n(50),c=e.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=u&&c[t]||(u?c:i)("Symbol."+t))}},function(t,r,n){var e=n(6);t.exports=!!Object.getOwnPropertySymbols&&!e(function(){return!String(Symbol())})},function(t,r,n){var e=n(6),o=n(49),i=n(52),u=o("species");t.exports=function(t){return i>=51||!e(function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo})}},function(t,r,n){var e,o,i=n(3),u=n(53),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,r,n){var e=n(34);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(2),o=n(55),i=n(56);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(r,n,e){var o=e(46),i=e(41),u=e(39),c=Math.min;r.exports=[].copyWithin||function(r,n){var e=o(this),a=u(e.length),f=i(r,a),s=i(n,a),l=arguments.length>2?arguments[2]:t,p=c((l===t?a:i(l,a))-s,a-f),g=1;for(s0;)s in e?e[f]=e[s]:delete e[f],f+=g,s+=g;return e}},function(r,n,e){var o=e(49),i=e(57),u=e(18),c=o("unscopables"),a=Array.prototype;a[c]==t&&u(a,c,i(null)),r.exports=function(t){a[c][t]=!0}},function(r,n,e){var o=e(20),i=e(58),u=e(42),c=e(31),a=e(60),f=e(17),s=e(29)("IE_PROTO"),l=function(){},p=function(){var t,r=f("iframe"),n=u.length;for(r.style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write("
- View
-
-
-
-
-
-
-
-
-
-
-