From 8064cae907cba74502534214d893547cda414415 Mon Sep 17 00:00:00 2001
From: liyanhong <17806274112@163.com>
Date: Tue, 26 Nov 2024 15:28:15 +0800
Subject: [PATCH] 1
---
main.js | 16 +-
pages.json | 20 ++
pages/fiance/bonus/bonus.css | 1 +
pages/fiance/bonus/bonus.scss | 59 ++++++
pages/fiance/bonus/bonus.vue | 173 +++++++++++++++++
pages/first/index.vue | 88 +++++----
pages/login/index.vue | 41 ++--
pages/mine/index.vue | 31 +--
pages/store/card.vue | 8 +-
pages/store/cashier/cashier.vue | 5 +-
.../store/modify_password/modify_password.vue | 13 +-
pages/store/secret/secret.js | 7 +-
pages/store/setup.vue | 75 +++-----
pages/store/withdraw/alipay.js | 109 -----------
pages/store/withdraw/alipay.vue | 91 ++++++++-
pages/store/withdraw/credit.vue | 180 +++++++-----------
pages/store/withdraw/creditadd.vue | 168 ++++++----------
utils/api.js | 27 +++
utils/imgtobase.js | 43 +++++
utils/request.js | 22 +++
20 files changed, 714 insertions(+), 463 deletions(-)
create mode 100644 pages/fiance/bonus/bonus.css
create mode 100644 pages/fiance/bonus/bonus.scss
create mode 100644 pages/fiance/bonus/bonus.vue
delete mode 100644 pages/store/withdraw/alipay.js
create mode 100644 utils/api.js
create mode 100644 utils/imgtobase.js
create mode 100644 utils/request.js
diff --git a/main.js b/main.js
index 7cf2b0f..b9fada1 100644
--- a/main.js
+++ b/main.js
@@ -9,17 +9,21 @@ uni.$u.config.unit = 'rpx'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
- ...App
+ ...App
})
+Vue.prototype.$shopId = uni.getStorageSync('shopId')
+// Vue.prototype.$shopAdminId = uni.getStorageSync('shopManage').shop_admin_id
app.$mount()
// #endif
// #ifdef VUE3
-import { createSSRApp } from 'vue'
+import {
+ createSSRApp
+} from 'vue'
export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
+ const app = createSSRApp(App)
+ return {
+ app
+ }
}
// #endif
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 093cbff..e49c107 100644
--- a/pages.json
+++ b/pages.json
@@ -154,6 +154,26 @@
"bounce": "none" //关闭窗口回弹效果
}
}
+ },
+ //支付宝
+ {
+ "path": "pages/store/withdraw/alipay",
+ "style": {
+ "navigationBarTitleText": "绑定支付宝",
+ "app-plus": {
+ "bounce": "none" //关闭窗口回弹效果
+ }
+ }
+ },
+ //提现
+ {
+ "path": "pages/fiance/bonus/bonus",
+ "style": {
+ "navigationBarTitleText": "奖励金提现",
+ "app-plus": {
+ "bounce": "none" //关闭窗口回弹效果
+ }
+ }
}
],
diff --git a/pages/fiance/bonus/bonus.css b/pages/fiance/bonus/bonus.css
new file mode 100644
index 0000000..861d38b
--- /dev/null
+++ b/pages/fiance/bonus/bonus.css
@@ -0,0 +1 @@
+.header{background-image:url(https://yuledui.oss-cn-qingdao.aliyuncs.com/merch_manage/img/bg_bonus.png);background-size:cover;color:#fff}.header .top{padding-top:50rpx;padding-left:30rpx;display:flex;flex-direction:column;justify-content:flex-end;padding-bottom:40rpx}.header .top .desc{font-size:30rpx;font-weight:bold;font-size:36rpx}.header .top .balance{font-size:60rpx;font-weight:600}.header .bottom{height:140rpx;display:flex;flex-direction:row;justify-content:left;border-top:solid 1rpx #f0ecec}.header .bottom .left,.header .bottom .right{width:50%;padding-left:30rpx;padding-top:30rpx}.header .bottom .left .balance,.header .bottom .right .balance{padding-top:10rpx}.header .bottom .left{border-right:solid 1rpx #f0ecec}.content{margin-top:130rpx;background-color:#fff;padding:0rpx 30rpx 0rpx 30rpx}.bottom-tips{margin:15rpx;opacity:.8}.button{width:90%;font-size:40rpx;background-color:#ed6d00;color:#fff;letter-spacing:10rpx}
\ No newline at end of file
diff --git a/pages/fiance/bonus/bonus.scss b/pages/fiance/bonus/bonus.scss
new file mode 100644
index 0000000..a88d7d0
--- /dev/null
+++ b/pages/fiance/bonus/bonus.scss
@@ -0,0 +1,59 @@
+
+
+ .header{
+ background-image: url(https://yuledui.oss-cn-qingdao.aliyuncs.com/merch_manage/img/bg_bonus.png);
+ background-size: cover;
+ color: #FFFFFF;
+ .top{
+ padding-top: 50rpx;
+ padding-left: 30rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ padding-bottom: 40rpx;
+ .desc{
+ font-size: 30rpx;
+ font-weight: bold;font-size: 36rpx;
+ }
+ .balance{
+ font-size: 60rpx;
+ font-weight: 600;
+ }
+ }
+ .bottom{
+ height: 140rpx;
+ display: flex;
+ flex-direction: row;
+ justify-content: left;
+ border-top:solid 1rpx #F0ECEC;
+ .left, .right{
+ width: 50%;
+ padding-left: 30rpx;
+ padding-top: 30rpx;
+ .balance{
+ padding-top:10rpx;
+ }
+ }
+ .left{
+ border-right: solid 1rpx #F0ECEC;
+ }
+ }
+ }
+
+ .content{
+ margin-top: 130rpx;
+ background-color: #FFFFFF;
+ padding: 0rpx 30rpx 0rpx 30rpx;
+ }
+ .bottom-tips{
+ margin: 15rpx;
+ opacity: 0.8;
+ }
+
+ .button{
+ width: 90%;
+ font-size: 40rpx;
+ background-color: #ED6D00;
+ color: #FFFFFF;
+ letter-spacing: 10rpx;
+ }
\ No newline at end of file
diff --git a/pages/fiance/bonus/bonus.vue b/pages/fiance/bonus/bonus.vue
new file mode 100644
index 0000000..b78b1ba
--- /dev/null
+++ b/pages/fiance/bonus/bonus.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提现
+
+
+
+ 备注:奖励金为本店会员在其他店铺消费所得奖励
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/first/index.vue b/pages/first/index.vue
index c9a2616..7526922 100644
--- a/pages/first/index.vue
+++ b/pages/first/index.vue
@@ -65,8 +65,7 @@
扫码送金豆
-
+
店铺设置
+
+
+
+
+ 结算银行卡
+
-
+
+
+
+
+
+ 奖励金
-
+
@@ -147,6 +160,10 @@
+ @import "./creditadd.scss";
+
\ No newline at end of file
diff --git a/pages/store/withdraw/creditadd.vue b/pages/store/withdraw/creditadd.vue
index 598f1d3..f840f50 100644
--- a/pages/store/withdraw/creditadd.vue
+++ b/pages/store/withdraw/creditadd.vue
@@ -1,86 +1,71 @@
-
-
+