-
-
-
-
-
-
-
-
-
diff --git a/pages/user/promotion/CashRecord/index.vue b/pages/user/promotion/CashRecord/index.vue
deleted file mode 100644
index 11d9ea3..0000000
--- a/pages/user/promotion/CashRecord/index.vue
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
-
- 提现记录
-
- ¥
- {{ force2Decimal(commission) }}
-
-
-
-
-
-
-
-
-
-
-
- 提现金额:{{ force2Decimal(item.extractPrice) }}
- 手续费:{{ force2Decimal(item.extractSxf) }}
-
- 失败原因:{{item.failMsg}}
-
- {{item.createTime}}
- {{item.statusText}}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pages/user/promotion/UserPromotion/index.vue b/pages/user/promotion/UserPromotion/index.vue
index fe5116f..2b3b37d 100644
--- a/pages/user/promotion/UserPromotion/index.vue
+++ b/pages/user/promotion/UserPromotion/index.vue
@@ -129,7 +129,7 @@ export default {
this.$yrouter.push("/pages/user/promotion/Poster/index");
},
goCashRecord() {
- this.$yrouter.push("/pages/user/promotion/CashRecord/index");
+ this.$yrouter.push('/pkg_user/views/withdrawalLog');
},
goPromoterList() {
this.$yrouter.push("/pages/user/promotion/PromoterList/index");
diff --git a/pagesInn/inn/innHome.vue b/pagesInn/inn/innHome.vue
index c377f21..0a31fc9 100644
--- a/pagesInn/inn/innHome.vue
+++ b/pagesInn/inn/innHome.vue
@@ -42,16 +42,29 @@
inn.guaranteeValue
}}元
-
-
-
- {{ inn.zan }}
-
-
-
- {{ inn.zan }}
-
+
+
+
+
+
+ {{ inn.zan }}
+
+
+
+ {{ inn.zan }}
+
+
+
+
+
+
+ {{ favoriteCount }}
+
+
+
@@ -221,13 +234,12 @@ import {
import {formatDateTime} from "@/utils";
import {getUrlParam} from "@/utils/common.js";
import imgBox from '@/components/imageTypeSet/imagebox.vue'
-import dragButton from "@/components/drag-button/drag-button.vue";
import cookie from "@/utils/store/cookie";
+import {addStore, removeStore} from "@/api/favorite";
export default {
components: {
- imgBox,
- dragButton
+ imgBox
},
data() {
return {
@@ -249,7 +261,9 @@ export default {
posterUrl: "", // 分享海报
id: null,
partnerId: null,
- isLike: false //点赞
+ isLike: false, //点赞
+ isFavorite: false,
+ favoriteCount: 0
}
},
//必须在页面加 onPageScroll(e){} ,才能滑动显示背景
@@ -537,6 +551,8 @@ export default {
getHotelDetail(that.id).then((res) => {
that.inn = res.data;
that.isLike = res.data.zanVo !== null;
+ that.isFavorite = res.data.hasFavorite
+ that.favoriteCount = res.data.favoriteCount
}).catch((err) => {
}).finally(() => {
@@ -546,6 +562,8 @@ export default {
getHomeHotelDetail(that.id).then((res) => {
that.inn = res.data;
that.isLike = res.data.zanVo !== null;
+ that.isFavorite = res.data.hasFavorite
+ that.favoriteCount = res.data.favoriteCount
}).catch((err) => {
}).finally(() => {
@@ -643,6 +661,21 @@ export default {
} else {
this.$dialog.error('电话为空');
}
+ },
+ async doneFavorite() {
+ if (this.isFavorite) {
+ const res = await removeStore(this.id)
+ if (res.success) {
+ this.isFavorite = false
+ this.favoriteCount = res.data.favoriteCount
+ }
+ } else {
+ const res = await addStore(this.id)
+ if (res.success) {
+ this.isFavorite = true
+ this.favoriteCount = res.data.favoriteCount
+ }
+ }
}
}
}
diff --git a/pkg-video/views/city.vue b/pkg-video/views/city.vue
new file mode 100644
index 0000000..eebc40a
--- /dev/null
+++ b/pkg-video/views/city.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item['name'] }}
+
+
+
+
+
+
+ 当前定位
+
+
+ {{ cityName }}
+
+
+
+
+ 历史访问
+
+ {{ item }}
+
+
+
+
+
+
+
+
+
+ {{ cell['name'] }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg-video/views/lottery-log.vue b/pkg-video/views/lottery-log.vue
new file mode 100644
index 0000000..8efa5db
--- /dev/null
+++ b/pkg-video/views/lottery-log.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+ 日期
+ 抽奖结果
+
+
+
+
+
+ {{ item['drawTime'] }}
+ {{ item['prizeName'] }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg-video/views/lottery.vue b/pkg-video/views/lottery.vue
new file mode 100644
index 0000000..481efaa
--- /dev/null
+++ b/pkg-video/views/lottery.vue
@@ -0,0 +1,341 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 获得{{ diceResult['prizeName'] }}一份
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ lotteryDetail.todayLimit }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg-video/views/watch.vue b/pkg-video/views/watch.vue
new file mode 100644
index 0000000..9fbc589
--- /dev/null
+++ b/pkg-video/views/watch.vue
@@ -0,0 +1,360 @@
+
+
+
+
+ 推荐
+
+ {{ cityName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item['hotelName'] }}
+
+
+
+
+
+
+ {{ item['likeCount'] }}
+
+
+
+
+ {{ item['favoriteCount'] }}
+
+
+
+ {{ item['replyCount'] }}
+
+
+
+
+
+
+
+
+ {{
+ list[current]['replyCount']
+ }}条评论
+
+
+
+
+
+ {{ item['userNickname'] }}
+ {{ item['comment'] }}
+ {{ item['time'] }}
+
+
+
+
+
+ 发布
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg_product/views/giftList.vue b/pkg_product/views/giftList.vue
index c707759..3cc45de 100644
--- a/pkg_product/views/giftList.vue
+++ b/pkg_product/views/giftList.vue
@@ -80,7 +80,10 @@ export default {
noMoreSize: 10, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
auto: true,
empty: {
- tip: '暂无商品' // 提示
+ tip: '', // 提示
+ icon:this.$VUE_APP_RESOURCES_URL+'/20240102232724024787.png',
+ width:381,
+ height:348
}
},
downOption: {
diff --git a/pkg_product/views/healthList.vue b/pkg_product/views/healthList.vue
index 37f401c..dc2024f 100644
--- a/pkg_product/views/healthList.vue
+++ b/pkg_product/views/healthList.vue
@@ -56,9 +56,9 @@
-
-
+
diff --git a/pkg_product/views/landMark.vue b/pkg_product/views/landMark.vue
deleted file mode 100644
index 01ed8e2..0000000
--- a/pkg_product/views/landMark.vue
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pkg_product/views/season-bak.vue b/pkg_product/views/season-bak.vue
deleted file mode 100644
index 88a375b..0000000
--- a/pkg_product/views/season-bak.vue
+++ /dev/null
@@ -1,246 +0,0 @@
-
-
-
-
-
-
-
-
-
- 分享好友
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.storeName }}
-
- 活动价:¥
- {{ item.price }}
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pkg_user/views/bankCardList.vue b/pkg_user/views/bankCardList.vue
index 2de47fd..9c06186 100644
--- a/pkg_user/views/bankCardList.vue
+++ b/pkg_user/views/bankCardList.vue
@@ -65,7 +65,10 @@ export default {
noMoreSize: 10, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
auto: true,
empty: {
- tip: '暂无银行卡' // 提示
+ tip: '', // 提示
+ icon:this.$VUE_APP_RESOURCES_URL+'/20240102232713117485.png',
+ width:458,
+ height:356
// btnText:'点击刷新'
}
},
diff --git a/pkg_user/views/myFavorite.vue b/pkg_user/views/myFavorite.vue
new file mode 100644
index 0000000..ee37e90
--- /dev/null
+++ b/pkg_user/views/myFavorite.vue
@@ -0,0 +1,551 @@
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+ 管理
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item['storeName'] }}
+ 规格:{{ item['sku'] }}
+
+
+ ¥
+ {{ item['price'] }}
+ ¥{{ item['otPrice'] }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item['name'] }}
+ {{ item['time'] === '刚刚' ? '刚刚' : item['time'] + '前收藏' }}
+
+ 进店逛逛
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item['favoriteCount'] }}
+
+
+
+
+
+
+
+
+ 全选({{ selectCount }})
+
+
+ 返回
+ 删除
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg_user/views/personalData.vue b/pkg_user/views/personalData.vue
index f73259a..997aa66 100644
--- a/pkg_user/views/personalData.vue
+++ b/pkg_user/views/personalData.vue
@@ -1,11 +1,11 @@
-
+
-
+ 更换头像{{ userInfo.nickname }}
@@ -62,56 +62,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 退出登录
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pkg_user/views/withdrawal.vue b/pkg_user/views/withdrawal.vue
index ee87cbc..b387f81 100644
--- a/pkg_user/views/withdrawal.vue
+++ b/pkg_user/views/withdrawal.vue
@@ -144,7 +144,7 @@ export default {
return this.$force2Decimal(sxf);
},
goCashRecord() {
- this.$yrouter.push("/pages/user/promotion/CashRecord/index");
+ this.$yrouter.push('/pkg_user/views/withdrawalLog');
},
clearNoNum: function (value) {
diff --git a/pkg_user/views/withdrawalLog.vue b/pkg_user/views/withdrawalLog.vue
new file mode 100644
index 0000000..888dc88
--- /dev/null
+++ b/pkg_user/views/withdrawalLog.vue
@@ -0,0 +1,98 @@
+
+
+
+
+
+ {{ group.month }}
+ 提现¥{{ group.amount }}
+
+
+
+
+
+
+
+
+ 提现
+
+ ({{ item['status'] === -1 ? '提现失败' : item['status'] === 1 ? '已提现' : '提现中' }})
+
+
+ 2023-08-21 16:10:10
+
+
+
+ ¥{{ item['extractPrice'] }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/utils/index.js b/utils/index.js
index a3a3b62..8925a24 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -85,6 +85,47 @@ export function formatDateTime(time, format) {
});
}
+export function timeNow(updateTime) {
+ if (updateTime === null) {
+ return ''
+ }
+ let now = new Date().getTime()
+ let second = Math.floor((now - updateTime) / (1000))
+ let minute = Math.floor(second / 60)
+ let hour = Math.floor(minute / 60)
+ let day = Math.floor(hour / 24)
+ let month = Math.floor(day / 31)
+ let year = Math.floor(month / 12)
+
+ console.log(hour);
+ console.log(minute);
+ if (year > 0) {
+ return year + '年前'
+ } else if (month > 0) {
+ return month + '月前'
+ } else if (day > 0) {
+ let ret = day + '天前'
+ if (day >= 7 && day < 14) {
+ ret = '1周前'
+ } else if (day >= 14 && day < 21) {
+ ret = '2周前'
+ } else if (day >= 21 && day < 28) {
+ ret = '3周前'
+ } else if (day >= 28 && day < 31) {
+ ret = '4周前'
+ }
+ return ret
+ } else if (hour > 0) {
+ return hour + '小时前'
+ } else if (minute > 0) {
+ return minute + '分钟前'
+ } else if (second > 0) {
+ return second + '秒前'
+ } else {
+ return '刚刚'
+ }
+}
+
export function diffDay(start, end) {
var dateBegin = new Date(start.replace(/-/g, "/"));
var dateEnd = new Date(end.replace(/-/g, "/"));
@@ -426,7 +467,7 @@ export const handleGetUserInfo = () => {
}
if (url == '/pages/home/index' || url == '/pages/shop/GoodsClass/index' || url ==
- '/pages/shop/ShoppingCart/index' || url == '/pages/user/User/index') {
+ '/pages/cart' || url == '/pages/user/User/index') {
switchTab({
path: `${url}`,
query
@@ -559,7 +600,7 @@ export const handleLoginStatus = (location, complete, fail, success) => {
})
// if (isAuth) {
// // 有token
- // if (path == '/pages/home/index' || path == '/pages/shop/GoodsClass/index' || path == '/pages/shop/ShoppingCart/index' || path == '/pages/user/User/index') {
+ // if (path == '/pages/home/index' || path == '/pages/shop/GoodsClass/index' || path == '/pages/cart' || path == '/pages/user/User/index') {
// // switchTab({
// // path: parseUrl(location),
// // })
@@ -612,7 +653,7 @@ export async function routerPermissions(url, type) {
login(loginInfo).then(res => {
// 登录成功,跳转到需要跳转的页面
store.commit("updateAuthorizationPage", false);
- if (path == '/pages/shop/ShoppingCart/index' || path == '/pages/user/User/index') {
+ if (path == '/pages/cart' || path == '/pages/user/User/index') {
return
}
if (type == 'reLaunch') {
@@ -646,7 +687,7 @@ export async function routerPermissions(url, type) {
})
} else {
// 跳转到登录页面或者授权页面
- // path == '/pages/shop/ShoppingCart/index' ||
+ // path == '/pages/cart' ||
if ( path == '/pages/user/User/index') {
switchTab({
path,
diff --git a/utils/request.js b/utils/request.js
index 9636122..b46aeb5 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -1,6 +1,6 @@
import Fly from "flyio/dist/npm/wx";
-import { handleLoginFailure } from "@/utils";
-import { VUE_APP_API_URL } from "@/config";
+import {handleLoginFailure} from "@/utils";
+import {VUE_APP_API_URL} from "@/config";
import cookie from "@/utils/store/cookie";
const fly = new Fly()
@@ -17,20 +17,20 @@ fly.interceptors.response.use(
console.log('发送请求失败', error)
console.log('————————')
handleLoginFailure();
- return Promise.reject({ msg: "未登录", toLogin: true });
+ return Promise.reject({msg: "未登录", toLogin: true});
}
if (error.status == 401) {
console.log('————————')
console.log('登录失效 401', error)
console.log('————————')
handleLoginFailure();
- return Promise.reject({ msg: "未登录", toLogin: true });
+ return Promise.reject({msg: "未登录", toLogin: true});
}
return Promise.reject(error);
}
);
-const defaultOpt = { login: true };
+const defaultOpt = {login: true};
function baseRequest(options) {
@@ -45,7 +45,7 @@ function baseRequest(options) {
}
// 结构请求需要的参数
- const { url, params, data, login, ...option } = options
+ const {url, params, data, login, ...option} = options
// 发起请求
return fly.request(url, params || data, {
@@ -53,15 +53,21 @@ function baseRequest(options) {
}).then(res => {
const data = res.data || {};
if (res.status !== 200) {
- return Promise.reject({ msg: "请求失败", res, data });
+ return Promise.reject({msg: "请求失败", res, data});
}
if ([401, 403].indexOf(data.status) !== -1) {
handleLoginFailure();
- return Promise.reject({ msg: res.data.msg, res, data, toLogin: true });
+ return Promise.reject({msg: res.data.msg, res, data, toLogin: true});
} else if (data.status === 200) {
return Promise.resolve(data, res);
} else {
- return Promise.reject({ msg: res.data.msg, res, data });
+ uni.showToast({
+ title: res.data.msg,
+ icon: 'none',
+ success() {
+ }
+ })
+ return Promise.reject({msg: res.data.msg, res, data});
}
});
}
@@ -81,7 +87,7 @@ const request = ["post", "put", "patch"].reduce((request, method) => {
*/
request[method] = (url, data = {}, options = {}) => {
return baseRequest(
- Object.assign({ url, data, method }, defaultOpt, options)
+ Object.assign({url, data, method}, defaultOpt, options)
);
};
return request;
@@ -97,7 +103,7 @@ const request = ["post", "put", "patch"].reduce((request, method) => {
*/
request[method] = (url, params = {}, options = {}) => {
return baseRequest(
- Object.assign({ url, params, method }, defaultOpt, options)
+ Object.assign({url, params, method}, defaultOpt, options)
);
};
});
diff --git a/v4/components/@lucky-canvas/uni/LICENSE b/v4/components/@lucky-canvas/uni/LICENSE
deleted file mode 100644
index 254bc4b..0000000
--- a/v4/components/@lucky-canvas/uni/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [2021] [Li Dong Qi]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/v4/components/@lucky-canvas/uni/README.md b/v4/components/@lucky-canvas/uni/README.md
deleted file mode 100644
index 643a751..0000000
--- a/v4/components/@lucky-canvas/uni/README.md
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/v4/components/@lucky-canvas/uni/utils.js b/v4/components/@lucky-canvas/uni/utils.js
deleted file mode 100644
index 3b11952..0000000
--- a/v4/components/@lucky-canvas/uni/utils.js
+++ /dev/null
@@ -1,82 +0,0 @@
-let windowWidth = uni.getSystemInfoSync().windowWidth
-// uni-app@2.9起, 屏幕最多适配到960, 超出则按375计算
-if (windowWidth > 960) windowWidth = 375
-
-export const rpx2px = (value) => {
- if (typeof value === 'string') value = Number(value.replace(/[a-z]*/g, ''))
- return windowWidth / 750 * value
-}
-
-export const changeUnits = (value) => {
- return Number(value.replace(/^(\-*[0-9.]*)([a-z%]*)$/, (value, num, unit) => {
- switch (unit) {
- case 'px':
- num *= 1
- break
- case 'rpx':
- num = rpx2px(num)
- break
- default:
- num *= 1
- break
- }
- return num
- }))
-}
-
-export const resolveImage = async (img, canvas, srcName = 'src', resolveName = '$resolve') => {
- let imgObj
- // 区分 H5 和小程序
- if (window) {
- imgObj = new Image()
- } else {
- imgObj = canvas.createImage()
- }
- // 成功回调
- imgObj.onload = () => {
- img[resolveName](imgObj)
- }
- // 失败回调
- imgObj.onerror = (err) => {
- console.error(err)
- // img['$reject']()
- }
- // 设置src
- imgObj.src = img[srcName]
-}
-
-// 旧版canvas引入图片的方法
-// export const resolveImage = async (res, img, imgName = 'src', resolveName = '$resolve') => {
-// const src = img[imgName]
-// const $resolve = img[resolveName]
-// // #ifdef MP
-// // 如果是base64就调用base64src()方法把图片写入本地, 然后渲染临时路径
-// if (/^data:image\/([a-z]+);base64,/.test(src)) {
-// const path = await base64src(src)
-// $resolve({ ...res.detail, path })
-// return
-// }
-// // #endif
-// // 如果是本地图片, 直接返回
-// if (src.indexOf('http') !== 0) {
-// $resolve({ ...res.detail, path:src })
-// return
-// }
-// // 如果是网络图片, 则通过getImageInfo()方法获取图片宽高
-// uni.getImageInfo({
-// src: src,
-// success: (imgObj) => $resolve(imgObj),
-// fail: () => console.error('API `uni.getImageInfo` 加载图片失败', src)
-// })
-// }
-
-export function getImage(canvasId, canvas) {
- return new Promise((resolve, reject) => {
- uni.canvasToTempFilePath({
- canvas,
- canvasId,
- success: res => resolve(res),
- fail: err => reject(err)
- }, this)
- })
-}
diff --git a/v4/components/lucky-canvas/LICENSE b/v4/components/lucky-canvas/LICENSE
deleted file mode 100644
index 254bc4b..0000000
--- a/v4/components/lucky-canvas/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [2021] [Li Dong Qi]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/v4/components/lucky-canvas/README.md b/v4/components/lucky-canvas/README.md
deleted file mode 100644
index 368a43d..0000000
--- a/v4/components/lucky-canvas/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-