21 Commits

Author SHA1 Message Date
Jason
b7e010b634 Merge tag 'wjx202209160658' into develop
no message
2022-09-16 18:59:59 +08:00
Jason
8167380abe Merge branch 'hotfix/wjx202209160658' 2022-09-16 18:59:59 +08:00
Jason
c69c104cd6 打包 2022-09-16 18:59:46 +08:00
Jason
370cde09c4 Merge tag 'wjx202209160657' into develop
no message
2022-09-16 18:58:25 +08:00
Jason
5ae19337d9 Merge branch 'hotfix/wjx202209160657' 2022-09-16 18:58:25 +08:00
Jason
387b38a009 删除h5打包 2022-09-16 18:58:10 +08:00
Jason
8ee7d03ce2 Merge tag 'wjx202209160652' into develop
no message

# Conflicts:
#	h5/assets/account.304e4c09.js
#	h5/assets/index.5ddae38f.js
#	h5/assets/news-card.cacc1bdf.js
#	h5/assets/pages-bind_mobile-bind_mobile.1e39d2a7.js
#	h5/assets/pages-change_password-change_password.5516de7d.js
#	h5/assets/pages-collection-collection.5d101da7.js
#	h5/assets/pages-customer_service-customer_service.35e5d1d2.js
#	h5/assets/pages-forget_pwd-forget_pwd.0cebded6.js
#	h5/assets/pages-index-index.e7cbfcb8.js
#	h5/assets/pages-login-login.3d278588.js
#	h5/assets/pages-news-news.e71c4738.js
#	h5/assets/pages-news_detail-news_detail.32038bef.js
#	h5/assets/pages-register-register.07ea7f19.js
#	h5/assets/pages-search-search.fb4812e5.js
#	h5/assets/pages-user-user.97ccd207.js
#	h5/assets/pages-user_data-user_data.1a85e802.js
#	h5/assets/pages-user_set-user_set.a86f2f01.js
#	h5/assets/pages-webview-webview.320ac922.js
#	h5/assets/tabbar.3ac4b4ec.js
#	h5/assets/u-avatar.aaafa077.js
#	h5/assets/u-button.f89bd070.js
#	h5/assets/u-checkbox.e15726da.js
#	h5/assets/u-form-item.f2bc17f6.js
#	h5/assets/u-form.e908a5a2.js
#	h5/assets/u-icon.947d1557.js
#	h5/assets/u-image.f03d2bad.js
#	h5/assets/u-parse.466924cc.js
#	h5/assets/u-popup.c389a818.js
#	h5/assets/u-search.939c3f7f.js
#	h5/assets/u-verification-code.8f91217a.js
#	h5/assets/uni.fb5f5659.css
#	h5/assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.e582869e.js
#	h5/assets/z-paging.34848bf3.js
#	h5/index.html
2022-09-16 18:55:34 +08:00
Jason
915b989e7b Merge branch 'hotfix/wjx202209160652' 2022-09-16 18:54:43 +08:00
Jason
a2e1541538 h5-打包 2022-09-16 18:54:32 +08:00
TinyAnts
849335def9 Merge branch 'master' of https://gitee.com/likeadmin/likeadmin_java 2022-09-16 18:49:39 +08:00
Jason
9be1caf811 Merge tag 'wjx202209160644' into develop
no message

# Conflicts:
#	h5/assets/account.461df912.js
#	h5/assets/index.4cc19f69.js
#	h5/assets/news-card.f9659a05.js
#	h5/assets/news.7d996083.js
#	h5/assets/pages-as_us-as_us.8bc9b466.js
#	h5/assets/pages-bind_mobile-bind_mobile.34dd4d4a.js
#	h5/assets/pages-change_password-change_password.16c95aef.js
#	h5/assets/pages-collection-collection.7f1501b9.js
#	h5/assets/pages-customer_service-customer_service.bd6a8b1f.js
#	h5/assets/pages-forget_pwd-forget_pwd.ed85d829.js
#	h5/assets/pages-index-index.19c7f55a.js
#	h5/assets/pages-login-login.432b5d68.js
#	h5/assets/pages-news-news.b7c7c850.js
#	h5/assets/pages-register-register.b6b6ae54.js
#	h5/assets/pages-search-search.26e01199.js
#	h5/assets/pages-user-user.3fd280ce.js
#	h5/assets/pages-user_data-user_data.6cd74f38.js
#	h5/assets/pages-user_set-user_set.5b8235ee.js
#	h5/assets/pages-webview-webview.d074f33b.js
#	h5/assets/tabbar.32c15533.js
#	h5/assets/u-avatar.40df6bc2.js
#	h5/assets/u-button.eb2fc020.js
#	h5/assets/u-checkbox.a3de132d.js
#	h5/assets/u-form-item.80dd7f49.js
#	h5/assets/u-form.9f54964a.js
#	h5/assets/u-icon.adf02ff2.js
#	h5/assets/u-image.554b827f.js
#	h5/assets/u-parse.a2aa510a.js
#	h5/assets/u-popup.2aaf05d4.js
#	h5/assets/u-search.18076790.js
#	h5/assets/u-verification-code.a41295d0.js
#	h5/assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.8be1cad8.js
#	h5/assets/z-paging.ae4248a3.js
#	h5/index.html
2022-09-16 18:48:08 +08:00
Jason
2f8194e93b Merge branch 'hotfix/wjx202209160644' 2022-09-16 18:46:33 +08:00
Jason
c6dd43762f 打包 2022-09-16 18:46:22 +08:00
Jason
53071be070 Merge tag 'wjx202209160640' into develop
no message

# Conflicts:
#	h5/assets/account.304e4c09.js
#	h5/assets/account.9ecc88ea.js
#	h5/assets/account.e236fd55.js
#	h5/assets/index.24de5888.js
#	h5/assets/index.5ddae38f.js
#	h5/assets/index.9d01590f.js
#	h5/assets/news-card.0f53c999.js
#	h5/assets/news-card.c91540ca.js
#	h5/assets/news-card.cacc1bdf.js
#	h5/assets/news.5c5bd132.js
#	h5/assets/news.7d996083.js
#	h5/assets/news.eb80f754.js
#	h5/assets/pages-as_us-as_us.27714390.js
#	h5/assets/pages-as_us-as_us.8bc9b466.js
#	h5/assets/pages-as_us-as_us.a75e6bf4.js
#	h5/assets/pages-bind_mobile-bind_mobile.1e39d2a7.js
#	h5/assets/pages-bind_mobile-bind_mobile.3d1ff6fd.js
#	h5/assets/pages-bind_mobile-bind_mobile.b0b2132a.js
#	h5/assets/pages-change_password-change_password.3e609524.js
#	h5/assets/pages-change_password-change_password.5516de7d.js
#	h5/assets/pages-change_password-change_password.7fcdae1a.js
#	h5/assets/pages-collection-collection.14907c26.js
#	h5/assets/pages-collection-collection.53abd56e.js
#	h5/assets/pages-collection-collection.5d101da7.js
#	h5/assets/pages-customer_service-customer_service.0e4773a4.js
#	h5/assets/pages-customer_service-customer_service.35e5d1d2.js
#	h5/assets/pages-customer_service-customer_service.c942a0bb.js
#	h5/assets/pages-forget_pwd-forget_pwd.0c22cfa7.js
#	h5/assets/pages-forget_pwd-forget_pwd.0cebded6.js
#	h5/assets/pages-forget_pwd-forget_pwd.41860f0c.js
#	h5/assets/pages-index-index.21b55a1c.js
#	h5/assets/pages-index-index.697592e8.js
#	h5/assets/pages-index-index.e7cbfcb8.js
#	h5/assets/pages-login-login.3d278588.js
#	h5/assets/pages-login-login.583742c3.js
#	h5/assets/pages-login-login.cc17b6ae.js
#	h5/assets/pages-news-news.6e6dfc74.js
#	h5/assets/pages-news-news.e71c4738.js
#	h5/assets/pages-news-news.f27837dc.js
#	h5/assets/pages-register-register.07ea7f19.js
#	h5/assets/pages-register-register.127a8342.js
#	h5/assets/pages-register-register.707197f6.js
#	h5/assets/pages-search-search.5bd1eb0e.js
#	h5/assets/pages-search-search.c9a4fc47.js
#	h5/assets/pages-search-search.fb4812e5.js
#	h5/assets/pages-user-user.29445b03.js
#	h5/assets/pages-user-user.97ccd207.js
#	h5/assets/pages-user-user.e6fd2164.js
#	h5/assets/pages-user_data-user_data.1a85e802.js
#	h5/assets/pages-user_data-user_data.2a0211b5.js
#	h5/assets/pages-user_data-user_data.65619aff.js
#	h5/assets/pages-user_set-user_set.9387105d.js
#	h5/assets/pages-user_set-user_set.a86f2f01.js
#	h5/assets/pages-user_set-user_set.d71e173b.js
#	h5/assets/pages-webview-webview.183e0d8c.js
#	h5/assets/pages-webview-webview.320ac922.js
#	h5/assets/pages-webview-webview.c3fa2ff9.js
#	h5/assets/shop.067e3a04.js
#	h5/assets/tabbar.1370a2f3.js
#	h5/assets/tabbar.3ac4b4ec.js
#	h5/assets/tabbar.5a261344.js
#	h5/assets/u-avatar.0975a40c.js
#	h5/assets/u-avatar.665749d0.js
#	h5/assets/u-avatar.aaafa077.js
#	h5/assets/u-button.4291cf3a.js
#	h5/assets/u-button.6324a944.js
#	h5/assets/u-button.f89bd070.js
#	h5/assets/u-checkbox.4a48075d.js
#	h5/assets/u-checkbox.a9e5c7b5.js
#	h5/assets/u-checkbox.e15726da.js
#	h5/assets/u-form-item.8b18cdc2.js
#	h5/assets/u-form-item.e8316076.js
#	h5/assets/u-form-item.f2bc17f6.js
#	h5/assets/u-form.718bda0a.js
#	h5/assets/u-form.9d11b0a8.js
#	h5/assets/u-form.e908a5a2.js
#	h5/assets/u-icon.947d1557.js
#	h5/assets/u-icon.b22654a8.js
#	h5/assets/u-icon.b511ef4e.js
#	h5/assets/u-image.2abefbca.js
#	h5/assets/u-image.dcffbc78.js
#	h5/assets/u-image.f03d2bad.js
#	h5/assets/u-parse.2b02a1d4.js
#	h5/assets/u-parse.466924cc.js
#	h5/assets/u-parse.cd76eaa8.js
#	h5/assets/u-popup.0657d28e.js
#	h5/assets/u-popup.6fa83f64.js
#	h5/assets/u-popup.c389a818.js
#	h5/assets/u-search.939c3f7f.js
#	h5/assets/u-search.9f49742b.js
#	h5/assets/u-search.dad6632d.js
#	h5/assets/u-verification-code.419886b4.js
#	h5/assets/u-verification-code.8f91217a.js
#	h5/assets/u-verification-code.9a7d2ff4.js
#	h5/assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.75f62b2e.js
#	h5/assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.859f9abd.js
#	h5/assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.e582869e.js
#	h5/assets/util.7b793930.js
#	h5/assets/z-paging.34848bf3.js
#	h5/assets/z-paging.51f9fb6d.js
#	h5/assets/z-paging.9a4d68b6.js
#	h5/index.html
2022-09-16 18:43:18 +08:00
TinyAnts
7a0b4259c2 Merge branch 'hotfix/default' 2022-09-16 18:39:48 +08:00
TinyAnts
769c1c0ff6 Merge branch 'master' into develop 2022-09-16 18:39:48 +08:00
TinyAnts
43da5265ff 调整获取微信手机号接口 2022-09-16 18:39:16 +08:00
TinyAnts
7cfb55124c 调整默认头像 2022-09-16 18:39:02 +08:00
TinyAnts
b660028a6c Merge branch 'develop' of https://gitee.com/likeadmin/likeadmin_java into develop 2022-09-16 18:33:51 +08:00
TinyAnts
4ee067a1f7 Merge tag '1.3.0' into develop 2022-09-16 18:25:36 +08:00
Jason
3f699d3c7c 打包 2022-09-16 18:23:03 +08:00
10 changed files with 18 additions and 16 deletions

View File

@@ -18,5 +18,5 @@ onLaunch(async () => {
})
</script>
<style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */
//
</style>

View File

@@ -50,6 +50,7 @@ const handleCollect = async (index: number): Promise<void> => {
try {
const articleId: number = collectData.value[index].articleId
await cancelCollect({ articleId })
uni.$u.toast('已取消收藏')
paging.value.reload()
} catch (err) {
//TODO handle the exception

View File

@@ -31,8 +31,8 @@
<view class="panel-btn flex items-center px-[34rpx]" @click="handleAddCollect(newsData.id)">
<u-icon
:name="newsData.collect ? 'star-fill' : 'star'"
size="34"
:color="newsData.collect ? '#4173ff' : '#333'"
size="40"
:color="newsData.collect ? '#F7BA47' : '#333'"
></u-icon>
<text class="ml-[10rpx]">收藏</text>
</view>
@@ -55,7 +55,7 @@ const handleAddCollect = async (articleId: number) => {
try {
if (newsData.value.collect) {
await cancelCollect({ articleId })
uni.$u.toast('取消收藏成功')
uni.$u.toast('取消收藏')
} else {
await addCollect({ articleId })
uni.$u.toast('收藏成功')

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="/assets/uni.fb5f5659.css">
<link rel="stylesheet" href="/assets/uni.a9022e9f.css">
<meta charset="UTF-8" />
<script>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -113,8 +113,8 @@ public class UserController {
@PostMapping("/mnpMobile")
public Object mnpMobile(@RequestBody Map<String, String> params) {
Assert.notNull(params.get("code"), "code参数缺失");
Map<String, Object> map = iUserService.mnpMobile(params.get("code").trim());
return AjaxResult.success(map);
iUserService.mnpMobile(params.get("code").trim());
return AjaxResult.success();
}
}

View File

@@ -61,8 +61,7 @@ public interface IUserService {
*
* @author fzr
* @param code 获取手机号的Code
* @return Map<String, Object>
*/
Map<String, Object> mnpMobile(String code);
void mnpMobile(String code);
}

View File

@@ -17,6 +17,7 @@ import com.mdd.common.mapper.system.SystemConfigMapper;
import com.mdd.common.mapper.user.UserAuthMapper;
import com.mdd.common.mapper.user.UserMapper;
import com.mdd.common.utils.*;
import com.mdd.front.LikeFrontThreadLocal;
import com.mdd.front.service.IUserService;
import com.mdd.front.vo.user.UserCenterVo;
import com.mdd.front.vo.user.UserInfoVo;
@@ -243,10 +244,9 @@ public class UserServiceImpl implements IUserService {
*
* @author fzr
* @param code 获取手机号的Code
* @return Map<String, Object>
*/
@Override
public Map<String, Object> mnpMobile(String code) {
public void mnpMobile(String code) {
Map<String, String> config = ConfigUtil.get("mp_channel");
WxMaService wxMaService = new WxMaServiceImpl();
WxMaDefaultConfigImpl wxConfig = new WxMaDefaultConfigImpl();
@@ -257,10 +257,12 @@ public class UserServiceImpl implements IUserService {
try {
WxMaPhoneNumberInfo wxMaPhoneNumberInfo = wxMaService.getUserService().getNewPhoneNoInfo(code);
Map<String, Object> response = new LinkedHashMap<>();
response.put("countryCode", wxMaPhoneNumberInfo.getCountryCode());
response.put("phoneNumber", wxMaPhoneNumberInfo.getPhoneNumber());
return response;
Integer userId = LikeFrontThreadLocal.getUserId();
User user = new User();
user.setId(userId);
user.setMobile(wxMaPhoneNumberInfo.getPhoneNumber());
user.setCreateTime(System.currentTimeMillis() / 1000);
userMapper.updateById(user);
} catch (WxErrorException e) {
throw new OperateException(e.getError().getErrorCode() + ", " + e.getError().getErrorMsg());
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB