From ede5f226e09e66ec331cb4ff3c7917504c026750 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=A8=E6=A0=88=E5=B0=8F=E5=AD=A6=E7=94=9F?=
<1518079521@qq.com>
Date: Thu, 31 Oct 2024 15:28:26 +0800
Subject: [PATCH] update uni-app
---
uni-app/src/App.vue | 152 +++++----
.../src/addon/components/diy/group/index.scss | 2 +-
.../src/addon/components/diy/group/index.vue | 6 +-
.../addon/components/diy/group/useDiyGroup.ts | 5 +-
uni-app/src/app/api/auth.ts | 4 +-
uni-app/src/app/api/system.ts | 35 +-
.../app/components/diy/active-cube/index.vue | 68 ++--
.../components/diy/carousel-search/index.vue | 175 ++++++----
.../app/components/diy/member-level/index.vue | 67 +++-
.../src/app/components/diy/notice/index.vue | 27 +-
.../app/components/diy/picture-show/index.vue | 135 ++++++++
uni-app/src/app/pages/auth/agreement.vue | 28 +-
uni-app/src/app/pages/member/account.vue | 2 +-
uni-app/src/app/pages/member/address.vue | 17 +-
uni-app/src/app/pages/member/address_edit.vue | 24 +-
.../src/app/pages/member/apply_cash_out.vue | 3 +-
uni-app/src/app/pages/member/balance.vue | 5 +-
uni-app/src/app/pages/member/cash_out.vue | 1 -
.../src/app/pages/member/cash_out_detail.vue | 15 +-
uni-app/src/app/pages/member/contact.vue | 4 +-
.../src/app/pages/member/detailed_account.vue | 2 +-
uni-app/src/app/pages/member/point_detail.vue | 4 -
uni-app/src/app/pages/member/sign_in.vue | 10 +-
uni-app/src/app/pages/pay/browser.vue | 2 +-
uni-app/src/app/pages/pay/result.vue | 21 +-
uni-app/src/app/pages/verify/record.vue | 4 -
uni-app/src/app/pages/webview/index.vue | 2 +-
.../src/components/nc-contact/nc-contact.vue | 3 +-
.../components/select-date/select-date.vue | 33 +-
.../components/share-poster/share-poster.vue | 2 +-
uni-app/src/components/sms-code/sms-code.vue | 2 +-
uni-app/src/components/tabbar/tabbar.vue | 50 +--
.../src/components/top-tabbar/top-tabbar.vue | 39 +--
.../src/components/x-skeleton/x-skeleton.vue | 4 +-
uni-app/src/hooks/useGoods.ts | 50 +++
uni-app/src/hooks/useLogin.ts | 9 +-
uni-app/src/hooks/useShare.ts | 12 +-
uni-app/src/locale/zh-Hans.json | 98 +++++-
uni-app/src/locale/zh-Hans/common.json | 2 +-
uni-app/src/manifest.json | 20 +-
uni-app/src/pages.json | 3 +
uni-app/src/stores/config.ts | 16 +-
uni-app/src/stores/member.ts | 7 +-
uni-app/src/stores/system.ts | 88 ++++-
uni-app/src/styles/common.scss | 62 +++-
uni-app/src/styles/iconfont.css | 22 +-
.../src/uni_modules/uni-popup/changelog.md | 84 -----
.../components/uni-popup-dialog/keypress.js | 45 ---
.../uni-popup-dialog/uni-popup-dialog.vue | 316 ------------------
.../uni-popup-message/uni-popup-message.vue | 143 --------
.../uni-popup-share/uni-popup-share.vue | 187 -----------
.../components/uni-popup/i18n/en.json | 7 -
.../components/uni-popup/i18n/index.js | 8 -
.../components/uni-popup/i18n/zh-Hans.json | 7 -
.../components/uni-popup/i18n/zh-Hant.json | 7 -
.../uni-popup/components/uni-popup/popup.js | 1 -
.../components/uni-popup/uni-popup.vue | 6 +-
uni-app/src/uni_modules/uni-popup/readme.md | 17 -
uni-app/src/utils/common.ts | 47 ++-
uni-app/src/utils/interceptor.ts | 14 +-
uni-app/src/utils/mixin.ts | 4 +-
uni-app/src/utils/wechat.ts | 4 +-
62 files changed, 1054 insertions(+), 1185 deletions(-)
create mode 100644 uni-app/src/app/components/diy/picture-show/index.vue
create mode 100644 uni-app/src/hooks/useGoods.ts
delete mode 100644 uni-app/src/uni_modules/uni-popup/changelog.md
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/i18n/en.json
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/i18n/index.js
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json
delete mode 100644 uni-app/src/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json
delete mode 100644 uni-app/src/uni_modules/uni-popup/readme.md
diff --git a/uni-app/src/App.vue b/uni-app/src/App.vue
index 013673d67..56362fb9b 100644
--- a/uni-app/src/App.vue
+++ b/uni-app/src/App.vue
@@ -1,14 +1,14 @@
+
\ No newline at end of file
diff --git a/uni-app/src/addon/components/diy/group/useDiyGroup.ts b/uni-app/src/addon/components/diy/group/useDiyGroup.ts
index d3ad816b0..ab06d45a4 100644
--- a/uni-app/src/addon/components/diy/group/useDiyGroup.ts
+++ b/uni-app/src/addon/components/diy/group/useDiyGroup.ts
@@ -1,4 +1,4 @@
-import { ref, reactive, onMounted, nextTick, computed } from 'vue';
+import { ref, onMounted, nextTick, computed } from 'vue';
import Sortable from 'sortablejs';
import { range } from 'lodash-es';
import { onPageScroll, onHide, onShow } from '@dcloudio/uni-app';
@@ -60,13 +60,12 @@ export function useDiyGroup(params: any = {}) {
return false;
}
-
// 监听页面加载完成
const onMountedLifeCycle = () => {
onMounted(() => {
// #ifdef H5
if (diyStore.mode == 'decorate') {
- var el = document.getElementById('componentList');
+ var el: any = document.getElementById('componentList');
const sortable = Sortable.create(el, {
draggable: '.draggable-element',
animation: 200,
diff --git a/uni-app/src/app/api/auth.ts b/uni-app/src/app/api/auth.ts
index f016ff99e..ded313f28 100644
--- a/uni-app/src/app/api/auth.ts
+++ b/uni-app/src/app/api/auth.ts
@@ -17,8 +17,8 @@ export function mobileLogin(data : AnyObject) {
/**
* 获取登录配置
*/
-export function getConfig() {
- return request.get('login/config')
+export function getConfig(params: Record) {
+ return request.get('login/config', params)
}
/**
diff --git a/uni-app/src/app/api/system.ts b/uni-app/src/app/api/system.ts
index 6d9b1ea7b..3e1f3b899 100644
--- a/uni-app/src/app/api/system.ts
+++ b/uni-app/src/app/api/system.ts
@@ -4,56 +4,56 @@ import request from '@/utils/request'
* 获取验证码
*/
export function getCaptcha() {
- return request.get('captcha', {}, {showErrorMessage: true})
+ return request.get('captcha', {}, { showErrorMessage: true })
}
/**
* 获取微信公众号授权码
*/
export function getWechatAuthCode(data: AnyObject) {
- return request.get('wechat/codeurl', data, {showErrorMessage: false })
+ return request.get('wechat/codeurl', data, { showErrorMessage: false })
}
/**
* 同步微信信息
*/
export function wechatSync(data: AnyObject) {
- return request.post('wechat/sync', data, {showErrorMessage: false})
+ return request.post('wechat/sync', data, { showErrorMessage: false })
}
/**
* 获取协议信息
*/
export function getAgreementInfo(key: string) {
- return request.get(`agreement/${key}`)
+ return request.get(`agreement/${ key }`)
}
/**
* 重置密码
*/
export function resetPassword(data: AnyObject) {
- return request.post(`password/reset`, data, {showErrorMessage: true})
+ return request.post(`password/reset`, data, { showErrorMessage: true })
}
/**
* 发送短信验证码
*/
export function sendSms(data: AnyObject) {
- return request.post(`send/mobile/${data.type}`, data, {showErrorMessage: true})
+ return request.post(`send/mobile/${ data.type }`, data, { showErrorMessage: true })
}
/**
* 获取微信jssdk config
*/
-export function getWechatSkdConfig(data: AnyObject) {
- return request.get('wechat/jssdkconfig', data, {showErrorMessage: false})
+export function getWechatSdkConfig(data: AnyObject) {
+ return request.get('wechat/jssdkconfig', data, { showErrorMessage: false })
}
/**
* 上传图片
*/
export function uploadImage(data: AnyObject) {
- return request.upload('file/image', data, {showErrorMessage: true})
+ return request.upload('file/image', data, { showErrorMessage: true })
}
/**
@@ -81,7 +81,7 @@ export function getSiteInfo() {
* 获取微信小程序订阅消息模板id
*/
export function getWeappTemplateId(keys: string) {
- return request.get('weapp/subscribemsg', {keys})
+ return request.get('weapp/subscribemsg', { keys })
}
/**
@@ -89,7 +89,7 @@ export function getWeappTemplateId(keys: string) {
* @param pid
*/
export function getAreaListByPid(pid: number = 0) {
- return request.get(`area/list_by_pid/${pid}`)
+ return request.get(`area/list_by_pid/${ pid }`)
}
/**
@@ -97,7 +97,7 @@ export function getAreaListByPid(pid: number = 0) {
* @param level
*/
export function getAreatree(level: number = 1) {
- return request.get(`area/tree/${level}`)
+ return request.get(`area/tree/${ level }`)
}
/**
@@ -105,7 +105,7 @@ export function getAreatree(level: number = 1) {
* @param code
*/
export function getAreaByCode(code: number | string) {
- return request.get(`area/code/${code}`)
+ return request.get(`area/code/${ code }`)
}
/**
@@ -113,7 +113,7 @@ export function getAreaByCode(code: number | string) {
* @param params
*/
export function getAddressByLatlng(params: Record) {
- return request.get(`area/address_by_latlng`, params, {showErrorMessage: true})
+ return request.get(`area/address_by_latlng`, params, { showErrorMessage: true })
}
/**
@@ -145,3 +145,10 @@ export function getMap() {
export function getMsgJumpPath(params: Record) {
return request.get('weapp/getMsgJumpPath', params)
}
+
+/**
+ * 获取初始化数据信息
+ */
+export function getInitInfo(params: Record) {
+ return request.get('init', params)
+}
\ No newline at end of file
diff --git a/uni-app/src/app/components/diy/active-cube/index.vue b/uni-app/src/app/components/diy/active-cube/index.vue
index ad71d65b5..9eca35d3f 100644
--- a/uni-app/src/app/components/diy/active-cube/index.vue
+++ b/uni-app/src/app/components/diy/active-cube/index.vue
@@ -3,7 +3,7 @@
-
+
{{ diyComponent.text }}
{{ diyComponent.subTitle.text }}
@@ -27,10 +27,17 @@
+
+
+
+
+
+ {{ diyComponent.subTitle.text }}
+
-
+
{{ item.title.text }}
{{ item.subTitle.text }}
@@ -47,12 +54,13 @@
-
+
+
- {{ item.title.text }}
- {{ item.subTitle.text }}
+ {{ item.title.text }}
+ {{ item.subTitle.text }}
- {{ item.moreTitle.text }}
+ {{ item.moreTitle.text }}
@@ -67,7 +75,7 @@
-
+
@@ -83,7 +91,7 @@
-
+
@@ -181,7 +189,6 @@
uni.createSelectorQuery().in(instance).select('#warpStyle4-'+diyComponent.value.id).boundingClientRect((res:any) => {
uni.createSelectorQuery().in(instance).select('#item0'+diyComponent.value.id).boundingClientRect((data:any) => {
itemStyle4.value = `margin-right:${(res.width - data.width*4)/3}px;`
-
}).exec()
}).exec()
// #endif
@@ -189,6 +196,18 @@
itemStyle4.value= 'margin-right:14rpx;'
// #endif
};
+
+ // 公共模块颜色
+ const commonTempCss = (data: any)=>{
+ var style = '';
+ if(data.listFrame.startColor && data.listFrame.endColor){
+ style += `background:linear-gradient(${data.listFrame.startColor},${data.listFrame.endColor});`;
+ }else{
+ style += `background:${data.listFrame.startColor || data.listFrame.endColor};`;
+ }
+ return style;
+ }
+
const btnCss = (item:any) => {
var style = '';
style += `background:linear-gradient(90deg,${item.startColor},${item.endColor});`;
@@ -203,18 +222,25 @@
)
onMounted(() => {
- refresh();
- // 装修模式下刷新
- if (diyStore.mode == 'decorate') {
- watch(
- () => diyComponent.value,
- (newValue, oldValue) => {
- if (newValue && newValue.componentName == 'ActiveCube') {
- refresh();
- }
- }
- )
- }
+ refresh();
+ // 装修模式下刷新
+ if (diyStore.mode == 'decorate') {
+ watch(
+ () => diyComponent.value,
+ (newValue, oldValue) => {
+ if (newValue && newValue.componentName == 'ActiveCube') {
+ refresh();
+ }
+ }
+ )
+ } else {
+ watch(
+ () => diyComponent.value,
+ (newValue, oldValue) => {
+ refresh();
+ }
+ )
+ }
});
const instance = getCurrentInstance();
diff --git a/uni-app/src/app/components/diy/carousel-search/index.vue b/uni-app/src/app/components/diy/carousel-search/index.vue
index 53243d726..0320e10c0 100644
--- a/uni-app/src/app/components/diy/carousel-search/index.vue
+++ b/uni-app/src/app/components/diy/carousel-search/index.vue
@@ -2,8 +2,8 @@
-
-
+
+
@@ -11,53 +11,52 @@
-
- {{isShowSearchPlaceholder ? diyComponent.search.text : ''}}
-
-
+
+ {{isShowSearchPlaceholder ? diyComponent.search.text : ''}}
+
- {{ item.text }}
+ {{ item.text }}
-
-
+
首页
-
+
{{ item.text }}
-
+
-
-
+
+
-
+
-
+
@@ -73,6 +72,7 @@
@@ -119,7 +119,6 @@
const instance = getCurrentInstance();
const props = defineProps(['component', 'index', 'pullDownRefreshCount', 'global', 'scrollBool']);
const diyStore = useDiyStore();
-
const diyComponent = computed(() => {
if (diyStore.mode == 'decorate') {
return diyStore.value[props.index];
@@ -149,22 +148,29 @@
)
const moduleHeight:any = ref('')
-
const setModuleLocation = ()=> {
nextTick(() => {
setTimeout(()=>{
- const query = uni.createSelectorQuery().in(instance);
- query.select('.fixed-wrap').boundingClientRect((data:any) => {
- moduleHeight.value = (data.height || 0) + 'px';
- }).exec();
+ if(diyComponent.value.swiper.swiperStyle != 'style-3'){
+ const query = uni.createSelectorQuery().in(instance);
+ query.select('.fixed-wrap').boundingClientRect((data:any) => {
+ moduleHeight.value = (data.height || 0) + 'px';
+ }).exec();
+ }else{
+ moduleHeight.value = '';
+ }
})
- })
+ })
}
const fixedStyleBg = ref(false);
const fixedStyle = computed(()=>{
- if (diyStore.mode == 'decorate') return '';
- var style = '';
+ var style = '';
+ if(diyComponent.value.swiper.swiperStyle == 'style-3'){
+ style += 'position: absolute;z-index: 10;left: 0;right: 0;';
+ }
+ if (diyStore.mode == 'decorate') return style;
+
// #ifdef H5
if(props.global.topStatusBar.isShow && props.global.topStatusBar.style == 'style-4') {
style += 'top:' + diyStore.topTabarHeight + 'px;';
@@ -172,7 +178,7 @@
// #endif
if(diyComponent.value.positionWay == 'fixed') {
- if (props.scrollBool != -1) {
+ if (props.scrollBool != undefined && props.scrollBool != -1) {
style += 'position: fixed;z-index: 10;left: 0;right: 0;';
}
@@ -198,6 +204,17 @@
}
return style;
})
+
+ // 轮播样式
+ const carouselSwiperStyle = ()=> {
+ let style = "";
+ if(diyComponent.value.swiper.swiperStyle == 'style-3'){
+ // #ifdef MP
+ style = 'padding-top:' + menuButtonInfo.top + 'px;';
+ // #endif
+ }
+ return style;
+ }
const getTabColor = (flag:any)=>{
let color = '';
@@ -244,8 +261,8 @@
});
// 轮播样式二
- const swiperStyle2 = computed(()=>{
- var style = diyComponent.value.swiper.swiperStyle == 'style-2' ? true : false;
+ const swiperStyleBool = computed(()=>{
+ var style = diyComponent.value.swiper.swiperStyle == 'style-2' || diyComponent.value.swiper.swiperStyle == 'style-3' ? true : false;
return style;
})
@@ -293,7 +310,14 @@
const tabAllPopup = ref(false);
let menuButtonInfo: any = {};
const navbarInnerStyle = ref('')
-
+ // 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
+ // #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
+ menuButtonInfo = uni.getMenuButtonBoundingClientRect();
+ // 导航栏内部盒子的样式
+ // 导航栏宽度,如果在小程序下,导航栏宽度为胶囊的左边到屏幕左边的距离
+ // 如果是各家小程序,导航栏内部的宽度需要减少右边胶囊的宽度
+ navbarInnerStyle.value += 'padding-top:' + menuButtonInfo.top + 'px;';
+ // #endif
onMounted(() => {
refresh();
// 装修模式下刷新
@@ -307,18 +331,21 @@
}
)
}
+ // 判断让轮播指示器是否出现
+ // #ifdef H5
+ isShowDots.value = diyComponent.value.swiper.list.length > 1 ? true : false;
+ // #endif
// 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
// #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
if(diyComponent.value.positionWay == 'fixed') {
- menuButtonInfo = uni.getMenuButtonBoundingClientRect();
- // 导航栏内部盒子的样式
- // 导航栏宽度,如果在小程序下,导航栏宽度为胶囊的左边到屏幕左边的距离
- // 如果是各家小程序,导航栏内部的宽度需要减少右边胶囊的宽度
if(props.global.topStatusBar.isShow == false) {
+ navbarInnerStyle.value = ''
let rightButtonWidth = menuButtonInfo.width ? menuButtonInfo.width * 2 + 'rpx' : '70rpx';
navbarInnerStyle.value += 'padding-right:calc(' + rightButtonWidth + ' + 30rpx);';
navbarInnerStyle.value += 'padding-top:' + menuButtonInfo.top + 'px;';
+ }else if(props.global.topStatusBar){
+ navbarInnerStyle.value = ''
}
}
@@ -327,7 +354,8 @@
});
const refresh = ()=> {
- setModuleLocation();
+ setModuleLocation();
+
changeData({ source : 'home' },-1)
diyComponent.value.swiper.list.forEach((item : any) => {
if (item.imageUrl == '') {
@@ -429,8 +457,8 @@
uni-image, image{
-webkit-filter: blur(15px);
filter: blur(15px);
- -webkit-transform: scale(1.5);
- transform: scale(1.5);
+ -webkit-transform: scale(2) translateY(15%);
+ transform: scale(2) translateY(15%);
}
.bg-img-box{
position: absolute;
@@ -457,14 +485,14 @@
display: flex;
position: relative;
align-items: center;
- padding:20rpx;
+ padding:16rpx;
.img-wrap{
display: flex;
align-items: center;
justify-content: center;
width: 140rpx;
height: 60rpx;
- margin-right: 30rpx;
+ margin-right: 20rpx;
image{
width: 100%;
height:100%;
@@ -474,7 +502,8 @@
.search-content {
display: flex;
align-items: center;
- padding: 0 32rpx;
+ padding-left: 32rpx;
+ padding-right: 6rpx;
border-radius: 50rpx;
background-color: rgba(255,255,255,.2);
flex: 1;
@@ -488,6 +517,7 @@
padding-right: 20rpx;
color: #fff;
background: none;
+ flex: 1;
}
.iconfont {
font-size: 30rpx;
@@ -513,7 +543,8 @@
width: 100%;
white-space: nowrap;
box-sizing: border-box;
- padding: 20rpx 80rpx 20rpx 20rpx;
+ padding: 24rpx 80rpx 26rpx 20rpx;
+ line-height: 1;
}
.scroll-item {
display: inline-block;
@@ -522,29 +553,17 @@
width: auto;
position: relative;
padding: 0 20rpx;
- height:54rpx;
.name {
font-size: 28rpx;
color: #333;
- line-height: 38rpx;
- margin-bottom: 15rpx;
+ line-height: 32rpx;
}
&.active {
position: relative;
.name {
- font-size: 28rpx;
- line-height: 38rpx;
- font-weight: 700;
- }
- .line{
- position: absolute;
- bottom: 0rpx;
- width: 34rpx;
- height: 4rpx;
- border-radius: 2rpx;
- left: 50%;
- transform: translateX(-50%);
+ font-size: 30rpx;
+ font-weight: 500;
}
}
}
@@ -602,10 +621,13 @@
left: 80rpx;
transform: translate(0);
}
+ // 指示器样式一
.swiper :deep(.uni-swiper-dot) {
width: 12rpx;
height: 12rpx;
}
+
+ // 指示器样式二
.swiper.ns-indicator-dots :deep(.uni-swiper-dot) {
width: 18rpx;
height: 6rpx;
@@ -614,6 +636,21 @@
.swiper.ns-indicator-dots :deep(.uni-swiper-dot-active) {
width: 36rpx;
}
+
+ // 指示器样式三
+ .swiper.ns-indicator-dots-three :deep(.uni-swiper-dot) {
+ width: 8rpx;
+ height: 8rpx !important;
+ border-radius: 6rpx;
+ margin-right: 14rpx;
+ }
+ .swiper.ns-indicator-dots-three :deep(.uni-swiper-dot):last-of-type {
+ margin-right: 0;
+ }
+ .swiper.ns-indicator-dots-three :deep(.uni-swiper-dot-active) {
+ width: 30rpx;
+ }
+
.swiper-dot-box {
position: absolute;
bottom: 20rpx;
@@ -644,12 +681,36 @@
.swiper-dot {
width: 18rpx;
height: 6rpx;
- border-radius: 4rpx;
+ border-radius: 6rpx;
&.active {
width: 36rpx;
}
}
}
+ &.straightLineStyle2{
+ .swiper-dot {
+ width: 10rpx;
+ height: 10rpx;
+ border-radius: 6rpx;
+ margin: 0;
+ margin-right: 14rpx;
+ &.last-of-type {
+ margin-right: 0;
+ }
+ &.active {
+ width: 30rpx;
+ }
+ }
+ }
+ }
+
+ .swiper-style-3{
+ :deep(.uni-swiper-dots-horizontal){
+ bottom: 46rpx !important;
+ }
+ .swiper-dot-box{
+ bottom: 38rpx !important;
+ }
}
\ No newline at end of file
diff --git a/uni-app/src/app/components/diy/member-level/index.vue b/uni-app/src/app/components/diy/member-level/index.vue
index 679cc45c5..ae0db3786 100644
--- a/uni-app/src/app/components/diy/member-level/index.vue
+++ b/uni-app/src/app/components/diy/member-level/index.vue
@@ -6,7 +6,7 @@
{{info.member_level_name}}
- {{ info.member_level ? (upgradeGrowth > 0 ? '去升级' : '去查看') : '去解锁' }}
+ {{ info.member_level ? (upgradeGrowth > 0 ? '做任务' : '点击查看') : '去解锁' }}
@@ -19,7 +19,7 @@
{{info.member_level_name}}购物享{{benefits_arr[0].title}}
- {{ info.member_level ? (upgradeGrowth > 0 ? '去升级' : '去查看') : '去解锁' }}
+ {{ info.member_level ? (upgradeGrowth > 0 ? '做任务' : '点击查看') : '去解锁' }}
@@ -58,6 +58,50 @@
+
+
+
+
+ {{info.member_level_name}}
+
+
+ {{info.member_level_name}}购物享
+ {{benefits_arr[0].title}}
+
+
+
+ {{ info.member_level ? (upgradeGrowth > 0 ? '做任务' : '点击查看') : '去解锁' }}
+
+
+
+
+
+
+
+ {{info.member_level_name}}
+
+
+
+ {{info.member_level ? (upgradeGrowth > 0 ? '做任务' : '点击查看') : '去解锁'}}
+
+
+
+
+
+
+ 还差{{upgradeGrowth}}成长值即可升级为{{ list[afterCurrIndex].level_name }}
+ 恭喜您升级为最高等级
+
+
+ 规则
+
+
+
+
+
+
+
+
@@ -66,7 +110,6 @@
import { img, redirect } from '@/utils/common'
import useMemberStore from '@/stores/member'
import { t } from '@/locale'
- import { getMemberLevel } from '@/app/api/member';
import useDiyStore from '@/app/stores/diy'
const props = defineProps(['component', 'index', 'pullDownRefreshCount']);
@@ -216,4 +259,22 @@
right: 0;
}
}
+ .style-4{
+ background-size: cover;
+ background-repeat: no-repeat;
+ .style-btn{
+ background: linear-gradient(#FFF3C1, #FFEFB0);
+ }
+ }
+
+ .style-5{
+ background-size: cover;
+ background-repeat: no-repeat;
+ .content-head{
+ background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.14));
+ }
+ .style-btn{
+ background: linear-gradient(#FFFFFF, #FFF8CC);
+ }
+ }
diff --git a/uni-app/src/app/components/diy/notice/index.vue b/uni-app/src/app/components/diy/notice/index.vue
index 4eebd0d09..38a883b85 100644
--- a/uni-app/src/app/components/diy/notice/index.vue
+++ b/uni-app/src/app/components/diy/notice/index.vue
@@ -26,7 +26,7 @@
-
+
{{ item.text }}
@@ -37,18 +37,21 @@
-
-
-
-
- 公告
-
+
+
+
- {{ noticeContent }}
-
-
-
-
+
+
diff --git a/uni-app/src/app/components/diy/picture-show/index.vue b/uni-app/src/app/components/diy/picture-show/index.vue
new file mode 100644
index 000000000..126a5738f
--- /dev/null
+++ b/uni-app/src/app/components/diy/picture-show/index.vue
@@ -0,0 +1,135 @@
+
+
+
+
+
+
+ {{diyComponent.moduleOne.head.subText}}
+
+
+
+
+
+
+
+ {{item.btnTitle.text}}
+
+
+
+
+
+
+
+
+ {{diyComponent.moduleTwo.head.subText}}
+
+
+
+
+
+
+
+ {{item.btnTitle.text}}
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni-app/src/app/pages/auth/agreement.vue b/uni-app/src/app/pages/auth/agreement.vue
index 2316a76b3..65fbc931a 100644
--- a/uni-app/src/app/pages/auth/agreement.vue
+++ b/uni-app/src/app/pages/auth/agreement.vue
@@ -12,25 +12,33 @@
-
diff --git a/uni-app/src/app/pages/member/account.vue b/uni-app/src/app/pages/member/account.vue
index 82e58826e..8507884a0 100644
--- a/uni-app/src/app/pages/member/account.vue
+++ b/uni-app/src/app/pages/member/account.vue
@@ -2,7 +2,7 @@
-