10.10 风格替换备份

main
shilei 1 month ago
parent 60b26e1c13
commit e932a67763

@ -14,5 +14,8 @@
"通用组件" "通用组件"
] ]
}, },
"name": "zw-tabbar自定义tabbar" "name": "zw-tabbar自定义tabbar",
"scripts": {
"dev:mp-weixin": "pnpm run dev -- --miniprogram mp-weixin"
}
} }

@ -1,5 +1,5 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
@ -267,14 +267,10 @@
"navigationBarTitleText": "换电云", "navigationBarTitleText": "换电云",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
// "enablePullDownRefresh": true,
"onReachBottomDistance": 100 "onReachBottomDistance": 100
//
// "navigationStyle": "custom"
}, },
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
// customhttps://ask.dcloud.net.cn/question/131175
"custom": { "custom": {
"^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue", "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",

@ -83,7 +83,7 @@
<text class="lg text-gray cuIcon-right padding-top-xs"></text> <text class="lg text-gray cuIcon-right padding-top-xs"></text>
</view> </view>
</view> </view>
<view class="flex padding-tb-sm justify-between" @click="gobillingPage"> <view class="flex solids-bottom padding-tb-sm justify-between" @click="gobillingPage">
<view class="flex"> <view class="flex">
<image class="titleImg" src="../../static/user/myOrder.svg" mode="scaleToFill"> <image class="titleImg" src="../../static/user/myOrder.svg" mode="scaleToFill">
</image> </image>

@ -19,7 +19,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="action padding-lr-sm padding-bottom-sm"><text class="cuIcon-titles textBlue"></text>充值明细</view> <view class="tab_cls">
<uv-subsection :list="tab_list" :current="tab_current" @change="tab_change"></uv-subsection>
</view>
<!-- <view class="action padding-lr-sm padding-bottom-sm"><text class="cuIcon-titles textBlue"></text>充值明细</view> -->
<view> <view>
<view class="cu-card " v-for="(item,index) in payData" :key="index" v-if="payData.length!=0"> <view class="cu-card " v-for="(item,index) in payData" :key="index" v-if="payData.length!=0">
<view class="cu-item shadow"> <view class="cu-item shadow">
@ -58,6 +61,7 @@
// import { // import {
// AESDecrypt // AESDecrypt
// } from '../../../static/utils/encodes.js'; // } from '../../../static/utils/encodes.js';
import PayWalletApi from '@/sheep/api/pay/wallet';
import { import {
reactive, reactive,
ref, ref,
@ -74,12 +78,20 @@
const totalPages = ref() // const totalPages = ref() //
const size = ref(10) const size = ref(10)
const pageNo = ref(1) const pageNo = ref(1)
const tab_list = ref([
'充值明细', '消费明细'
])
const tab_current = ref(0)
onLoad(() => { onLoad(() => {
handle_bindType() handle_bindType()
getPayconsumption()
}) })
onShow(() => { onShow(() => {
getPayList(0) getPayList(0)
}) })
const tab_change = (e) => {
tab_current.value = e
}
const handle_bindType = async (type) => { const handle_bindType = async (type) => {
let data = { let data = {
bindType: 1 bindType: 1
@ -115,6 +127,17 @@
} }
}) })
} }
const getPayconsumption = async () => {
let param = {
pageNo: pageNo.value,
}
const {
data,
code
} = await PayWalletApi.getWalletTransactionPage(param)
console.log(data, 'data')
}
onReachBottom(async () => { onReachBottom(async () => {
if (payData.value.length == totalPages.value) { if (payData.value.length == totalPages.value) {
uni.$u.toast('没有更多啦'); uni.$u.toast('没有更多啦');
@ -234,6 +257,9 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.tab_cls {
padding: 0 30rpx;
}
</style> </style>
<style lang="scss"> <style lang="scss">
page { page {

@ -9,13 +9,12 @@
<input placeholder="请设置新密码" v-model="edit_password_form.password"> <input placeholder="请设置新密码" v-model="edit_password_form.password">
</view> </view>
</uni-forms-item> </uni-forms-item>
<!-- <uni-forms-item name="mobile"> <uni-forms-item name="mobile" v-if="option_mobile">
<view class="changePwd_form_wrap "> <view class="changePwd_form_wrap ">
<text>手机号:</text> <text>手机号:</text>
<input type="password" placeholder="请输入手机号" v-model="check_mobile"> <input placeholder="请输入手机号" v-model="check_mobile">
</view> </view>
</uni-forms-item> --> </uni-forms-item>
<uni-forms-item name="code"> <uni-forms-item name="code">
<view class="changePwd_form_wrap pxl"> <view class="changePwd_form_wrap pxl">
<text>验证码:</text> <text>验证码:</text>
@ -24,7 +23,7 @@
</view> </view>
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<text class="tips">密码长度6-12由字母数字构成</text> <text class="tips">密码长度4-16由字母或数字构成</text>
<view class="btn"> <view class="btn">
<button @click="confirm"></button> <button @click="confirm"></button>
</view> </view>
@ -54,10 +53,10 @@
onShow, onShow,
onReachBottom onReachBottom
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
const option_mobile = ref('') const option_mobile = ref(false)
onLoad((option) => { onLoad((option) => {
// console.log(option, 'option'); // console.log(option, 'option');
option_mobile.value = option.mobile option_mobile.value = option.ismobile
}) })
const edit_password_form = ref({ const edit_password_form = ref({
password: '', password: '',
@ -91,8 +90,8 @@
title: '正在获取验证码' title: '正在获取验证码'
}) })
let data = { let data = {
mobile: uni.getStorageSync("mobile"), mobile: option_mobile.value ? check_mobile.value : uni.getStorageSync("mobile"),
scene: 3 scene: option_mobile.value ? 4 : 3
} }
await uni.$request({ await uni.$request({
url: config.baseUrl + 'app-api/member/auth/send-sms-code', url: config.baseUrl + 'app-api/member/auth/send-sms-code',
@ -129,8 +128,15 @@
if (!validate) { if (!validate) {
return; return;
} }
let config_url = ''
if (option_mobile.value) {
config_url = 'app-api/member/user/reset-password'
edit_password_form.value.mobile = check_mobile.value
} else {
config_url = 'app-api/member/user/update-password'
}
await uni.$request({ await uni.$request({
url: config.baseUrl + 'app-api/member/user/update-password', url: config.baseUrl + config_url,
method: 'PUT', method: 'PUT',
data: edit_password_form.value data: edit_password_form.value
}).then((res) => { }).then((res) => {

@ -41,7 +41,9 @@
<button @click="handle_gologin">{{ islogin }}</button> <button @click="handle_gologin">{{ islogin }}</button>
<view class="forgetPwd"> <view class="forgetPwd">
<span></span> <view style="color: burlywood; font-weight: 600" @click="handle_forgetword">
忘记密码
</view>
<view v-if="islogin == '登录'"> <view v-if="islogin == '登录'">
没有账号<span style="color: aqua; " @click="change_login"></span> 没有账号<span style="color: aqua; " @click="change_login"></span>
</view> </view>
@ -178,6 +180,13 @@
} }
}) })
} }
const handle_forgetword = () => {
uni.navigateTo({
url: `/pagesCenter/login/changepassword?ismobile=true`
})
}
const handle_signin = async () => { const handle_signin = async () => {
await uni.$request({ await uni.$request({
url: config.baseUrl + 'app-api/member/auth/login', url: config.baseUrl + 'app-api/member/auth/login',

@ -48,11 +48,8 @@ const PayWalletApi = {
}, },
// 获得钱包流水分页 // 获得钱包流水分页
getWalletTransactionPage: (params) => { getWalletTransactionPage: (params) => {
const queryString = Object.keys(params)
.map((key) => encodeURIComponent(key) + '=' + params[key])
.join('&');
return request({ return request({
url: `/pay/wallet-transaction/page?${queryString}`, url: `/pay/wallet-transaction/page?bindType=1&pageNo=${params.pageNo}&pageSize=10`,
method: 'GET', method: 'GET',
}); });
}, },

Loading…
Cancel
Save