2025.03.18 工作代码提交
This commit is contained in:
parent
ac93c4706f
commit
f8b958405c
|
@ -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,
|
||||||
|
|
|
@ -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',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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" : {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
<!-- 选择 -->
|
<!-- 选择 -->
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
|
@ -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()],
|
||||||
|
|
Loading…
Reference in New Issue