2025.03.18 工作代码提交

This commit is contained in:
sx 2025-03-18 19:59:19 +08:00
parent ac93c4706f
commit f8b958405c
11 changed files with 84 additions and 55 deletions

View File

@ -213,7 +213,6 @@ const mine = {
* @param {Object} param * @param {Object} param
*/ */
alipayPay(param) { alipayPay(param) {
console.log('alipayPay',param)
return util.request({ return util.request({
url: '/user/alipay/recharge', url: '/user/alipay/recharge',
query: param.query, query: param.query,

View File

@ -474,8 +474,9 @@ const video = {
*/ */
videoShare(param) { videoShare(param) {
return util.request({ return util.request({
url: `/home/videoShare`, url: `/user/chat/single/sendVideo`,
query: param.query, query: param.query,
data: param.data,
method: 'POST', method: 'POST',
}) })
}, },

View File

@ -7,6 +7,7 @@ const config = {
// #endif // #endif
// #ifndef H5 // #ifndef H5
host: 'http://91f.xyz:8080', host: 'http://91f.xyz:8080',
// host: 'http://96w3gq.natappfree.cc',
// #endif // #endif
// 是否vivo显示 // 是否vivo显示
showVivo: true, showVivo: true,

View File

@ -29,7 +29,7 @@
// //
data: [], data: [],
// //
pageSize: 10, pageSize: 20,
// //
pageNum: 1, pageNum: 1,
// //
@ -190,6 +190,7 @@
// //
defineExpose({ defineExpose({
listProperty,
getList, getList,
getMoreList, getMoreList,
refrshList, refrshList,

View File

@ -2,8 +2,8 @@
"name" : "九亿", "name" : "九亿",
"appid" : "__UNI__08B31BC", "appid" : "__UNI__08B31BC",
"description" : "", "description" : "",
"versionName" : "1.0.16", "versionName" : "1.0.17",
"versionCode" : 1016, "versionCode" : 1017,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {

View File

@ -66,9 +66,9 @@
// //
function getList() { function getList() {
// //
api.video.getCollectVideoList({ api.video.getFavoriteVideo({
query: { query: {
collectId: collects.value.id, folderId: collects.value.id,
} }
}).then(rs => { }).then(rs => {
if (rs.code == 200) { if (rs.code == 200) {
@ -100,7 +100,7 @@
<view class="appbw"> <view class="appbw">
<view> <view>
<!-- --> <!-- -->
<collectList :pageSize="20" ref="collectListRef" @handleItem="handleCollects" /> <collectList ref="collectListRef" @handleItem="handleCollects" />
</view> </view>
<!-- 选择 --> <!-- 选择 -->

View File

@ -231,12 +231,12 @@
onHide(() => { onHide(() => {
// 上一个视频的id // 上一个视频的id
const videoId = tabCurrent.value.listData()[current[tabIndex.value]].id const videoItem = tabCurrent.value.listData()[current[tabIndex.value]]
// 暂停视频 // 暂停视频
if (videoId) { if (videoItem && videoItem.id) {
// 视频组件 // 视频组件
const VideoRef = proxy.$refs[`videoRef${videoId}`][0] const VideoRef = proxy.$refs[`videoRef${videoItem.id}`][0]
VideoRef.pause() VideoRef.pause()
// videoRefList[current[tabIndex.value]].pause() // videoRefList[current[tabIndex.value]].pause()
} }

View File

@ -27,17 +27,17 @@
name: '支付宝', name: '支付宝',
provider: 'alipay', provider: 'alipay',
apiRequest: (event) => { apiRequest: (event) => {
return api.mine.alipayPay(event) return handleAlipayPay(event)
}
},
{
img: '/static/shop-weixin-pay.png',
name: '微信支付',
provider: 'wxpay',
apiRequest: (event) => {
return api.mine.wechatPay(event)
} }
}, },
// {
// img: '/static/shop-weixin-pay.png',
// name: '',
// provider: 'wxpay',
// apiRequest: (event) => {
// return handleWeChat(event)
// }
// },
]) ])
// //
const paymentIndex = ref(0) const paymentIndex = ref(0)
@ -70,44 +70,74 @@
// //
function handlePayment() { function handlePayment() {
const data = { if (!form.totalAmount) {
...form
}
if (!data.totalAmount) {
util.alert('金额不正确') util.alert('金额不正确')
return return
} }
// //
payment.value.apiRequest({ payment.value.apiRequest()
}
//
function handleAlipayPay() {
api.mine.alipayPay({
query: { query: {
...data, ...form,
}, },
}).then(rs => { }).then(rs => {
console.log('payment rs', rs) //
if (rs.code == 200) { callPayment({
uni.requestPayment({ response: rs,
provider: payment.value.provider, paymentParams: {
// orderInfo: rs.data, orderInfo: rs.msg,
package: `prepay_id=${rs.data.prepayId}`, },
success: rs => {
console.log('requestPayment', rs)
util.getPurse()
uni.navigateBack()
},
fail: err => {
console.log('fail err', err)
}
})
return
}
util.alert({
content: rs.msg,
showCancel: false,
}) })
}) })
} }
//
function handleWeChat() {
api.mine.wechatPay({
query: {
...form,
},
}).then(rs => {
//
callPayment({
response: rs,
paymentParams: {
...rs.data.msg,
},
})
})
}
/**
* 唤起支付
* @param {Object} params
*/
function callPayment(params = {}) {
if (params.response.code == 200) {
uni.requestPayment({
provider: payment.value.provider,
...params.paymentParams,
success: rs => {
util.getPurse()
uni.navigateBack()
},
fail: err => {
console.log('fail err', err)
}
})
return
}
util.alert({
content: params.response.msg,
showCancel: false,
})
}
</script> </script>
<template> <template>

View File

@ -217,10 +217,10 @@
<image src="/static/mien-dianpuguanli.png" mode="aspectFit" class="wh50" /> <image src="/static/mien-dianpuguanli.png" mode="aspectFit" class="wh50" />
<text class="txt mt10 wsn">商品管理</text> <text class="txt mt10 wsn">商品管理</text>
</view> </view>
<view class="item ver" @click="link('/pages/shop/store/order')"> <!-- <view class="item ver" @click="link('/pages/shop/store/order')">
<image src="/static/mine-dingdanguanli.png" mode="aspectFit" class="wh50" /> <image src="/static/mine-dingdanguanli.png" mode="aspectFit" class="wh50" />
<text class="txt mt10 wsn">订单管理</text> <text class="txt mt10 wsn">订单管理</text>
</view> </view> -->
<!-- <view class="item ver"> <!-- <view class="item ver">
<image src="/static/mine-kehuxiaoxi.png" mode="aspectFit" class="wh50" /> <image src="/static/mine-kehuxiaoxi.png" mode="aspectFit" class="wh50" />
<text class="txt mt10 wsn">客户消息</text> <text class="txt mt10 wsn">客户消息</text>

View File

@ -62,13 +62,9 @@
// im // im
const imLoad = ref(false) const imLoad = ref(false)
// //
const userinfo = computed(() => { const userinfo = computed(() => store.state.userinfo)
return store.state.userinfo
})
// //
const menuCurrent = computed(() => { const menuCurrent = computed(() => menuList[menuIndex.value])
return menuList[menuIndex.value]
})
const footerMneuRef = ref() const footerMneuRef = ref()
onLoad(() => { onLoad(() => {

View File

@ -4,6 +4,7 @@ import {
import uni from '@dcloudio/vite-plugin-uni'; import uni from '@dcloudio/vite-plugin-uni';
let target = 'http://91f.xyz:8080' let target = 'http://91f.xyz:8080'
// let target = 'http://96w3gq.natappfree.cc'
export default defineConfig({ export default defineConfig({
plugins: [uni()], plugins: [uni()],