This commit is contained in:
GaoHao 2024-12-13 11:40:46 +08:00
commit 3d7d5178e6
20 changed files with 386 additions and 144 deletions

View File

@ -1,4 +1,5 @@
<script> <script>
import config from '@/common/config.js'
export default { export default {
onLaunch: function() { onLaunch: function() {
let that = this let that = this
@ -468,6 +469,8 @@
content: res.des, content: res.des,
success: res => { success: res => {
if (res.confirm) { if (res.confirm) {
plus.runtime.openURL(config.APIHOST2+'/pages/login/appEq')
return
uni.showLoading({ uni.showLoading({
title: '下载中...', title: '下载中...',
mask: true mask: true
@ -528,6 +531,8 @@
content: res.des, content: res.des,
success: res => { success: res => {
if (res.confirm) { if (res.confirm) {
plus.runtime.openURL(config.APIHOST2+'/pages/login/appEq')
return
uni.showLoading({ uni.showLoading({
title: '下载中...', title: '下载中...',
mask: true mask: true

View File

@ -6,14 +6,14 @@
<!-- <view class="money"> <!-- <view class="money">
<view class="money-l flex align-center"> <view class="money-l flex align-center">
账号余额: 账号余额:
<text>{{moneyNum}}</text> <text>{{moneyNum}}</text>
<view class="money-l-go" @click="goWallet('/me/wallet/wallet')"> <view class="money-l-go" @click="goWallet('/me/wallet/wallet')">
查看明细 查看明细
</view> </view>
</view> </view>
<view class="money-r"> <view class="money-r">
解锁价格: 解锁价格:
<text>{{payPrice}}</text> <text>{{payPrice}}</text>
</view> </view>
</view> --> </view> -->
<!-- <scroll-view scroll-y="true" class="payLists"> <!-- <scroll-view scroll-y="true" class="payLists">
@ -31,10 +31,10 @@
</view> --> </view> -->
<!-- #endif --> <!-- #endif -->
<!-- <view class="payList-item-dou"> <!-- <view class="payList-item-dou">
{{item.money}} {{item.money}}
</view> </view>
<view class="payList-item-duo" v-if="item.giveMoney>0"> <view class="payList-item-duo" v-if="item.giveMoney>0">
多送{{item.giveMoney}} 多送{{item.giveMoney}}
</view> </view>
<view class="payList-item-hui" v-if="item.remarks"> <view class="payList-item-hui" v-if="item.remarks">
{{item.remarks}} {{item.remarks}}
@ -136,7 +136,7 @@
type: Number, type: Number,
default: null default: null
}, },
// //
payPrice: { payPrice: {
type: Number, type: Number,
default: 0 default: 0

View File

@ -4,7 +4,7 @@
<view class="list-box"> <view class="list-box">
<view class="list-box-title flex align-center justify-between"> <view class="list-box-title flex align-center justify-between">
<view class="list-box-title-name"> <view class="list-box-title-name">
{{title}} {{title||''}}
</view> </view>
<view @click="clickItem('more')" class="list-box-title-more flex align-center"> <view @click="clickItem('more')" class="list-box-title-more flex align-center">
查看更多 查看更多

View File

@ -2,8 +2,8 @@
"name" : "斯耀短剧", "name" : "斯耀短剧",
"appid" : "__UNI__E0B05B1", "appid" : "__UNI__E0B05B1",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.4",
"versionCode" : "100", "versionCode" : 104,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
@ -58,7 +58,7 @@
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 26, "minSdkVersion" : 26,
"targetSdkVersion" : 30, "targetSdkVersion" : 28,
"schemes" : "com.hnsiyao.duanju" "schemes" : "com.hnsiyao.duanju"
}, },
/* ios */ /* ios */

View File

@ -14,7 +14,7 @@
@longpress="toSave(tempFilePath)"></image> @longpress="toSave(tempFilePath)"></image>
<!-- #endif --> <!-- #endif -->
</view> </view>
<view class="u-flex u-m-t-20" > <view class="u-flex bg-fff u-flex" >
<button class="purple_btn btn_box" hover-class="none" open-type="openSetting" <button class="purple_btn btn_box" hover-class="none" open-type="openSetting"
@click.stop="toSave(tempFilePath)">保存海报</button> @click.stop="toSave(tempFilePath)">保存海报</button>
</view> </view>
@ -324,8 +324,10 @@
<style scoped lang="scss"> <style scoped lang="scss">
.btn_box { .btn_box {
width: 100%;
box-sizing: border-box;
background: rgb(221, 220, 255); background: rgb(221, 220, 255);
border-radius: 8rpx; border-radius: 0;
color: rgb(69, 68, 255); color: rgb(69, 68, 255);
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;

View File

@ -3,14 +3,13 @@
<list :bounce="false" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox" :pagingEnabled="true" <list :bounce="false" :loadmoreoffset="wHeight*3" :show-scrollbar="false" ref="listBox" :pagingEnabled="true"
:scrollable="true"> :scrollable="true">
<cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId"> <cell v-for="(item,i) in videoList" :key="i" :ref="'list'+item.courseDetailsId">
<view class="swipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)" @appear="appear(item.courseDetailsId,i)" <view class="swipers-items" @longpress="openBs()" @disappear="disappear(item.courseDetailsId,i)"
:style="boxStyle"> @appear="appear(item.courseDetailsId,i)" :style="boxStyle">
<!-- 视频 --> <!-- 视频 -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="contain" <video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="contain"
v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2" v-if="isShowVideo == item.courseDetailsId && item.videoUrl" :play-strategy="2"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true" :show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="true"
@timeupdate="timeupdate" @timeupdate="timeupdate" @play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
@ended="ended" :enable-progress-gesture="false" :poster="item.titleImg" @ended="ended" :enable-progress-gesture="false" :poster="item.titleImg"
:ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :ref="'myVideo'+item.courseDetailsId" :id="'myVideo'+item.courseDetailsId" :src="item.videoUrl"
:autoplay="item.autoPlay" class="swipers-items-video"></video> :autoplay="item.autoPlay" class="swipers-items-video"></video>
@ -18,7 +17,8 @@
mode="aspectFill"> mode="aspectFill">
</image> </image>
<!-- 返回图标 --> <!-- 返回图标 -->
<image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()" class="swipers-items-back" mode=""> <image v-if="showBack" src="../static/nvueIcon/backs.png" @click="goBack()"
class="swipers-items-back" mode="">
</image> </image>
<!-- 右边操作 --> <!-- 右边操作 -->
<view class="swipers-items-right" :style="rightTop" v-if="showControls"> <view class="swipers-items-right" :style="rightTop" v-if="showControls">
@ -145,7 +145,8 @@
<image class="list-title-rs" src="../../static/images/me/closeIconss.png" mode=""></image> <image class="list-title-rs" src="../../static/images/me/closeIconss.png" mode=""></image>
</view> </view>
</view> </view>
<text class="" style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin: 20rpx 0; auto;text-align: left;width: 100%;"> <text class=""
style="font-size: 24rpx;color: #999;padding: 0 34rpx;margin: 20rpx 0; auto;text-align: left;width: 100%;">
{{getRedEnvelopeTips}} {{getRedEnvelopeTips}}
</text> </text>
<view class="pay-content"> <view class="pay-content">
@ -181,7 +182,7 @@
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
<!-- 支付弹窗 --> <!-- 支付弹窗 -->
<uni-popup ref="popuppay" :safe-area="false"> <uni-popup ref="popuppay" :safe-area="false">
@ -298,7 +299,7 @@
</view> </view>
</uni-popup> </uni-popup>
<!-- 抽奖弹窗 --> <!-- 抽奖弹窗 -->
<!-- <uni-popup ref="refPopupZhuanPan" :safe-area="true" background-color="#ffffff"> <!-- <uni-popup ref="refPopupZhuanPan" :safe-area="true" background-color="#ffffff">
<view case=""> <view case="">
@ -316,8 +317,10 @@
export default { export default {
data() { data() {
return { return {
showBack:false, //可抽奖次数
noBuyVideoIndex:null, freeNum: 0,
showBack: false,
noBuyVideoIndex: null,
// 奖品列表, // 奖品列表,
showMoney: true, showMoney: true,
nowBs: 1, //当前倍速 nowBs: 1, //当前倍速
@ -386,7 +389,7 @@
'width': '750rpx', 'width': '750rpx',
}, },
isShowVideo: '', isShowVideo: '',
noBuyVideoIndex:null, noBuyVideoIndex: null,
playFlag: false, playFlag: false,
getRedEnvelopeTips: '', getRedEnvelopeTips: '',
scale: 1, scale: 1,
@ -399,10 +402,15 @@
} }
}, },
onShow() { onShow() {
console.log('onSHow video');
//当应用从后台进入前台时自动播放 //当应用从后台进入前台时自动播放
if (this.videoContext) { if (this.videoContext) {
this.videoContext.play() this.videoContext.play()
} }
const noBuyVideoIndex= uni.getStorageSync('noBuyVideoIndex')
if(noBuyVideoIndex!==null&&noBuyVideoIndex!==undefined){
this.noBuyVideoIndex=noBuyVideoIndex
}
this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否' this.isVips = uni.getStorageSync('isVips') ? uni.getStorageSync('isVips') : '否'
let that = this let that = this
uni.$on('back', (data) => { uni.$on('back', (data) => {
@ -475,17 +483,17 @@
} }
// #endif // #endif
this.$nextTick(()=>{ this.$nextTick(() => {
this.closePopusPay() this.closePopusPay()
}) })
if(this.courseId){ if (this.courseId) {
this.getDataList(this.courseId, this.courseDetailsId); this.getDataList(this.courseId, this.courseDetailsId);
} }
httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => { httpsRequest.getT('app/course/getRedEnvelopeTips').then(res => {
console.log(res) console.log(res)
if (res.code == 0) { if (res.code == 0) {
this.getRedEnvelopeTips= res.data this.getRedEnvelopeTips = res.data
} }
}) })
this.getScale() this.getScale()
@ -521,23 +529,23 @@
this.getMoneyList() this.getMoneyList()
this.getMyMoney() this.getMyMoney()
} }
}, },
methods: { methods: {
/** /**
* 获取金币比例 * 获取金币比例
*/ */
getScale () { getScale() {
httpsRequest.getT("app/common/type/914", {}).then(res => { httpsRequest.getT("app/common/type/914", {}).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.scale = Number(res.data.value) this.scale = Number(res.data.value)
} }
}); });
}, },
//播放时的回掉 //播放时的回掉
videoPlay(videoId,courseDetailsId) { videoPlay(videoId, courseDetailsId) {
this.courseDetailsId = courseDetailsId this.courseDetailsId = courseDetailsId
if ( !this.playFlag ) { if (!this.playFlag) {
console.log(this.courseDetailsId) console.log(this.courseDetailsId)
this.playFlag = true this.playFlag = true
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('app/course/viewCourse', {
@ -548,12 +556,12 @@
console.log('播放开始') console.log('播放开始')
}) })
} }
}, },
//播放进度变化回掉 //播放进度变化回掉
timeupdate(e) { timeupdate(e) {
if (e.detail.currentTime > e.detail.duration*0.9) { if (e.detail.currentTime > e.detail.duration * 0.9) {
if ( this.playFlag) { if (this.playFlag) {
this.playFlag = false this.playFlag = false
httpsRequest.getT('app/course/viewCourse', { httpsRequest.getT('app/course/viewCourse', {
courseId: this.courseId, courseId: this.courseId,
@ -564,7 +572,7 @@
}) })
} }
} }
}, },
appear(e, index) { appear(e, index) {
this.courseDetailsId = e this.courseDetailsId = e
@ -581,24 +589,24 @@
this.$forceUpdate() this.$forceUpdate()
}, },
disappear(e, index) { disappear(e, index) {
if (this.videoContext) { //判断之前是否有视频的上下文 if (this.videoContext) { //判断之前是否有视频的上下文
this.videoContext.stop(); this.videoContext.stop();
this.videoContext = null; this.videoContext = null;
} }
if ( this.current > index) { if (this.current > index) {
index = index+1 index = index + 1
} else { } else {
index = index-1 index = index - 1
} }
let numIdCurr = this.videoList[index].courseDetailsId; let numIdCurr = this.videoList[index].courseDetailsId;
if (this.videoList[index].videoUrl) { //已经购买可直接播放 if (this.videoList[index].videoUrl) { //已经购买可直接播放
// 播放时记录当前播放的id // 播放时记录当前播放的id
this.appear(numIdCurr,index) this.appear(numIdCurr, index)
this.videoContextId = 'myVideo' + numIdCurr; this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this.videoContextId, this); this.videoContext = uni.createVideoContext(this.videoContextId, this);
console.log('走更新了') console.log('走更新了')
this.$nextTick(() => { this.$nextTick(() => {
//播放当前的 //播放当前的
this.videoContext.play(); this.videoContext.play();
@ -748,12 +756,17 @@
}) })
} else if (this.openWay == 1) { } else if (this.openWay == 1) {
// APP支付宝支付 // APP支付宝支付
httpsRequest.getT("/app/wuyou/payOrder/"+this.ordersId, {}).then(ret => { httpsRequest.getT("/app/wuyou/payOrder/" + this.ordersId, {}).then(ret => {
// plus.runtime.openURL(ret.data.h5Url) // plus.runtime.openURL(ret.data.h5Url)
uni.navigateTo({ uni.navigateTo({
url: '/pages/index/webView?url=' + ret.data.h5Url url: '/pages/pays/pays?ordersId=' + this.ordersId + '&url=' + ret.data.h5Url
}); });
// uni.navigateTo({
// url: '/pages/index/webView?ordersId='+this.ordersId+'url=' + ret.data.h5Url
// });
// this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data)); // this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
}); });
} else if (this.openWay == 3) { } else if (this.openWay == 3) {
@ -881,6 +894,21 @@
//打开支付弹窗 //打开支付弹窗
openPopusPay() { openPopusPay() {
this.$refs.popuppay.open('bottom') this.$refs.popuppay.open('bottom')
return
// 通过 id 获取 nvue 子窗体
const subNVue = uni.getSubNVueById('pay')
subNVue.setStyle({
height: '350rpx',
})
// 打开 nvue 子窗体
subNVue.show('slide-in-bottom', 300, function() {
// 打开后进行一些操作...
//
console.log('subnvue open')
});
// 关闭 nvue 子窗体
// subNVue.hide('fade-out', 300)
// this.$refs.refPopupZhuanPan.open('bottom') // this.$refs.refPopupZhuanPan.open('bottom')
}, },
// 获取收藏状态 // 获取收藏状态
@ -902,7 +930,7 @@
//显示/隐藏适配控制器的回调 //显示/隐藏适配控制器的回调
controlstoggles(e) { controlstoggles(e) {
this.showControls = e.detail.show this.showControls = e.detail.show
this.showBack=!this.showBack this.showBack = !this.showBack
// console.log(e.detail.show, '显示/隐藏控制栏') // console.log(e.detail.show, '显示/隐藏控制栏')
}, },
//打开倍速弹框 //打开倍速弹框
@ -973,7 +1001,7 @@
let data = { let data = {
courseId: this.courseId courseId: this.courseId
} }
data.courseDetailsId = this.videoList[this.current].courseDetailsId data.courseDetailsId = this.videoList[this.current].courseDetailsId
httpsRequest.getT('/app/order/insertCourseOrders', data).then(res => { httpsRequest.getT('/app/order/insertCourseOrders', data).then(res => {
if (res.code == 0) { if (res.code == 0) {
@ -982,12 +1010,12 @@
if (type == 1) { //金币 if (type == 1) { //金币
this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney) this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
} else if(type == 2){ //支付宝 } else if (type == 2) { //支付宝
this.closePay() //关闭购买选择弹窗 this.closePay() //关闭购买选择弹窗
this.payPrice = res.data.orders.payMoney //需要支付的价格 this.payPrice = res.data.orders.payMoney //需要支付的价格
this.openPopusPay() //显示充值弹窗 this.openPopusPay() //显示充值弹窗
} }
// this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney) // this.payOrder(res.data.orders.ordersId, res.data.orders.payMoney)
} else { } else {
uni.showToast({ uni.showToast({
@ -999,7 +1027,7 @@
}, },
payOrder(orderId, payMoney) { payOrder(orderId, payMoney) {
let that = this let that = this
console.log("orderId=="+orderId) console.log("orderId==" + orderId)
httpsRequest.postT("/app/order/payOrders", { httpsRequest.postT("/app/order/payOrders", {
orderId: orderId, orderId: orderId,
}).then(res => { }).then(res => {
@ -1034,11 +1062,12 @@
}, },
//打开购买弹窗 //打开购买弹窗
openPay() { openPay() {
this.zongPrice = this.info.price this.zongPrice = this.info.price
this.countPrice = this.videoList[this.current].price this.countPrice = this.videoList[this.current].price
this.$refs.popupPya.open('bottom') this.$refs.popupPya.open('bottom')
this.noBuyVideoIndex=this.current this.noBuyVideoIndex = this.current
uni.setStorageSync('noBuyVideoIndex',this.current)
}, },
//关闭购买弹窗 //关闭购买弹窗
closePay() { closePay() {
@ -1148,6 +1177,7 @@
this.$nextTick(() => { this.$nextTick(() => {
//播放当前的 //播放当前的
this.videoContext.play(); this.videoContext.play();
this.videoContext.playbackRate(this.subList[this.nowBs].num)
}) })
} else { //没有视频链接则表示没有权限,需要购买 弹出购买弹窗 } else { //没有视频链接则表示没有权限,需要购买 弹出购买弹窗
this.openPay() this.openPay()
@ -1163,16 +1193,25 @@
let _this = this; let _this = this;
this.$nextTick(() => { this.$nextTick(() => {
// setTimeout(()=>{ // setTimeout(()=>{
console.log(courseDetailsId, '开始移动了') console.log(courseDetailsId, '开始移动了')
const el = _this.$refs['list' + courseDetailsId][0] const el = _this.$refs['list' + courseDetailsId][0]
listDom.scrollToElement(el, { listDom.scrollToElement(el, {
animated: false animated: false
}) })
_this.$forceUpdate() _this.$forceUpdate()
console.log('移动结束',el) console.log('移动结束', el)
// },1000) // },1000)
}) })
}, },
async getCount() {
console.log('getCount')
const res = await this.$Request.getT('app/discSpinning/drawCount')
if (res.code == 0) {
this.freeNum = res.count || 0
}
console.log(res);
return res
},
/** /**
* @param {Number} courseId 总id * @param {Number} courseId 总id
* @param {Number} courseDetailsId 当前视频id * @param {Number} courseDetailsId 当前视频id
@ -1206,7 +1245,7 @@
//菜单数组 //菜单数组
this.meunList = arr; this.meunList = arr;
console.log(type) console.log(type)
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex) console.log('this.noBuyVideoIndex', this.noBuyVideoIndex)
if (type == true) { //购买视频后返回的 if (type == true) { //购买视频后返回的
console.log('购买视频后返回的') console.log('购买视频后返回的')
let courseDetailsIds = this.videoList[this.current].courseDetailsId; let courseDetailsIds = this.videoList[this.current].courseDetailsId;
@ -1224,15 +1263,26 @@
} }
}) })
}) })
if(this.noBuyVideoIndex!==null){
this.noBuyVideoIndex=null if (this.noBuyVideoIndex !== null&& this.videoList[this
.noBuyVideoIndex].videoUrl) {
this.noBuyVideoIndex = null
uni.removeStorageSync('noBuyVideoIndex')
this.videoContext.stop() this.videoContext.stop()
uni.navigateTo({ httpsRequest.getT('app/discSpinning/drawCount').then(res => {
url:'/me/choujiang/choujiang' console.log('转盘抽奖次数')
console.log(res)
if (res.count >= 1) {
uni.navigateTo({
url: '/me/choujiang/choujiang'
})
}else{
this.videoContext.play();
}
}) })
} }
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex) console.log('this.noBuyVideoIndex', this.noBuyVideoIndex)
} else { //直接跳转进来的 } else { //直接跳转进来的
this.videoList = this.meunList this.videoList = this.meunList
this.$nextTick(() => { this.$nextTick(() => {
@ -1242,24 +1292,33 @@
console.log(indexs, '有记录吗?') console.log(indexs, '有记录吗?')
this.goListPosition(this.videoList[indexs].courseDetailsId) this.goListPosition(this.videoList[indexs].courseDetailsId)
} }
console.log('this.noBuyVideoIndex',this.noBuyVideoIndex) console.log('this.noBuyVideoIndex', this.noBuyVideoIndex)
if (this.videoList[indexss].videoUrl) { //有播放权限 if (this.videoList[indexss].videoUrl) { //有播放权限
console.log('有播放权限进入是否抽取转盘判断')
let numIdCurr = this.videoList[indexss].courseDetailsId; let numIdCurr = this.videoList[indexss].courseDetailsId;
this.videoContextId = 'myVideo' + numIdCurr; this.videoContextId = 'myVideo' + numIdCurr;
this.videoContext = uni.createVideoContext(this this.videoContext = uni.createVideoContext(this
.videoContextId, .videoContextId,
this); this);
if(this.noBuyVideoIndex!=null&&this.videoList[this.noBuyVideoIndex].videoUrl){ if (this.noBuyVideoIndex != null && this.videoList[this
this.videoContext.stop(); .noBuyVideoIndex].videoUrl) {
uni.navigateTo({ this.videoContext.stop();
url:'/me/choujiang/choujiang' httpsRequest.getT('app/discSpinning/drawCount').then(res => {
}) console.log('转盘抽奖次数')
this.noBuyVideoIndex=null if (res.count >= 1) {
}else{ uni.navigateTo({
this.videoContext.play(); url: '/me/choujiang/choujiang'
} })
}else{
this.videoContext.play();
}
})
uni.removeStorageSync('noBuyVideoIndex')
this.noBuyVideoIndex = null
} else {
this.videoContext.play();
}
} else { //没有播放权限打开购买弹窗 } else { //没有播放权限打开购买弹窗
this.openPay() this.openPay()
} }

View File

@ -1210,7 +1210,7 @@
closeMoney(data) { closeMoney(data) {
this.showMoney = data this.showMoney = data
}, },
//使 //使
submitPay(type) { submitPay(type) {
let data = { let data = {
courseId: this.courseId courseId: this.courseId

View File

@ -197,7 +197,7 @@
账号余额: 账号余额:
</text> </text>
<text class="popuppay-money-l-jd"> <text class="popuppay-money-l-jd">
{{moneyNum}}金 {{moneyNum}}金
</text> </text>
<text class="popuppay-money-l-mx" @click="goWallet('/me/wallet/wallet')"> <text class="popuppay-money-l-mx" @click="goWallet('/me/wallet/wallet')">
查看明细 查看明细
@ -208,7 +208,7 @@
解锁价格: 解锁价格:
</text> </text>
<text class="popuppay-money-jd"> <text class="popuppay-money-jd">
{{payPrice}}金 {{payPrice}}金
</text> </text>
</view> </view>
</view> --> </view> -->
@ -225,12 +225,12 @@
</view> </view>
<view class="payList-item-dou"> <view class="payList-item-dou">
<text class="payList-item-dous"> <text class="payList-item-dous">
{{item.money}}金 {{item.money}}金
</text> </text>
</view> </view>
<view class="payList-item-duo" v-if="item.giveMoney>0"> <view class="payList-item-duo" v-if="item.giveMoney>0">
<text class="payList-item-duos"> <text class="payList-item-duos">
多送{{item.giveMoney}}金 多送{{item.giveMoney}}金
</text> </text>
</view> </view>
<view class="payList-item-hui" v-if="item.remarks"> <view class="payList-item-hui" v-if="item.remarks">
@ -925,7 +925,7 @@
}) })
} }
}, },
//使用金购买 //使用金购买
submitPay(type) { submitPay(type) {
let data = { let data = {
courseId: this.courseId courseId: this.courseId

View File

@ -0,0 +1,15 @@
<template>
<view>
<web-view src="http://baidu.com/"></web-view>
</view>
</template>
<script>
</script>
<style scoped>
.bg-fff{
width: 750rpx;
height: 300rpx;background-color: #fff;
}
</style>

View File

@ -6,8 +6,20 @@
<view class="u-relative"> <view class="u-relative">
<u-image src="/me/static/invite/top-bg.png" alt="" width="100%" mode="widthFix"></u-image> <u-image src="/me/static/invite/top-bg.png" alt="" width="100%" mode="widthFix"></u-image>
<view class="u-absolute top-title"> <view class="u-absolute top-title">
<u-image src="/me/static/invite/title.png" alt="" width="544rpx" mode="widthFix"></u-image> <view class="u-flex u-row-center">
<u-image src="/me/static/invite/title.png" alt="" width="544rpx" mode="widthFix"></u-image>
</view>
<view class="u-flex u-row-right" style="padding-right:70rpx;">
<u-image src="/me/static/invite/rule.png" alt="" width="400rpx" mode="widthFix"></u-image>
</view>
<!-- <view class="u-m-t-24 color-fff u-font-28 u-text-left "
style=" padding-left: 248rpx;text-shadow: 0 0 10px #000;">
<view>好友首次签到成功送1元现金红包</view>
<view>满15人签到额外送9.9元红包</view>
<view>满99人签到额外送100元红包</view>
</view> -->
</view> </view>
</view> </view>
<view class=" invite-box u-relative"> <view class=" invite-box u-relative">
<view class="top"> <view class="top">
@ -59,13 +71,22 @@
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{inviterNumber}}</text></view> <view class="text-red u-m-t-16 "><text class=" u-font-40">{{inviterNumber}}</text></view>
</view> </view>
<view> <view>
<view class="">签到</view>
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{inviteSignCount}}</text></view>
</view>
<view @click="toGold">
<view class="">金币收益</view>
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{earning.inviteGoldMoney}}</text></view>
</view>
<view @click="toPack">
<view class="">红包收益</view>
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{earning.inviteMoney}}</text></view>
</view>
<!-- <view>
<view class="">累计收益</view> <view class="">累计收益</view>
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{cumulativeRevenue}}</text></view> <view class="text-red u-m-t-16 "><text class=" u-font-40">{{cumulativeRevenue}}</text></view>
</view> </view> -->
<view>
<view class="">已签到</view>
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{inviteCount}}</text></view>
</view>
<!-- <view> <!-- <view>
<view class="">已提现</view> <view class="">已提现</view>
<view class="text-red u-m-t-16 "><text class="u-font-40">{{withdrawn}}</text></view> <view class="text-red u-m-t-16 "><text class="u-font-40">{{withdrawn}}</text></view>
@ -75,7 +96,7 @@
</view> </view>
</view> </view>
<view class="margin u-m-t-40 u-m-b-32 padding bg-white radius-16" > <view class="margin u-m-t-40 u-m-b-32 padding bg-white radius-16">
<view class="u-font-32 color-333 font-bold u-text-center">已邀请列表</view> <view class="u-font-32 color-333 font-bold u-text-center">已邀请列表</view>
<view v-if="inviterList.length" class="u-m-t-20"> <view v-if="inviterList.length" class="u-m-t-20">
<view class="flex justify-between" style="line-height: 80rpx;" v-for="(item, index) in inviterList" <view class="flex justify-between" style="line-height: 80rpx;" v-for="(item, index) in inviterList"
@ -94,7 +115,7 @@
<!-- <view class="u-p-t-30 u-p-b-30 empty" v-if="hasAjax&&!inviterList.length"> <!-- <view class="u-p-t-30 u-p-b-30 empty" v-if="hasAjax&&!inviterList.length">
<my-empty ></my-empty> <my-empty ></my-empty>
</view> --> </view> -->
</view> </view>
<!-- <view class="padding" style="position: relative;height: 250rpx;"> <!-- <view class="padding" style="position: relative;height: 250rpx;">
@ -141,18 +162,23 @@
import tkiQrcode from '../../components/tki-qrcode/tki-qrcode.vue'; import tkiQrcode from '../../components/tki-qrcode/tki-qrcode.vue';
import wmPoster from '../components/wm-poster/wm-posterorders.vue'; import wmPoster from '../components/wm-poster/wm-posterorders.vue';
import myEmpty from '@/components/my-empty.vue'; import myEmpty from '@/components/my-empty.vue';
import config from '../../common/config.js' import config from '../../common/config.js'
export default { export default {
components: { components: {
tkiQrcode,myEmpty, tkiQrcode,
myEmpty,
wmPoster wmPoster
}, },
data() { data() {
return { return {
earning: {
inviteMoney: 0,
inviteGoldMoney: 0,
},
// //
inviteCount:0, inviteCount: 0,
hasAjax:false, hasAjax: false,
erweimapath: '', erweimapath: '',
poster: {}, poster: {},
qrShow: false, qrShow: false,
@ -235,6 +261,16 @@
// #endif // #endif
}, },
methods: { methods: {
toGold(){
uni.navigateTo({
url:'/me/invite/moneyList?moneyType=2'
})
},
toPack(){
uni.navigateTo({
url:'/me/invite/moneyList?moneyType=1'
})
},
// //
getUserInfoBl() { getUserInfoBl() {
this.$Request.getT('/app/user/selectUserById').then(res => { this.$Request.getT('/app/user/selectUserById').then(res => {
@ -402,7 +438,7 @@
this.$u.api.inviter(data).then(res => { this.$u.api.inviter(data).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.inviterList = res.data.list this.inviterList = res.data.list
this.hasAjax=true; this.hasAjax = true;
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
@ -418,7 +454,8 @@
this.cumulativeRevenue = res.data.inviteMoney.moneySum // this.cumulativeRevenue = res.data.inviteMoney.moneySum //
this.inviterNumber = res.data.inviteCount // this.inviterNumber = res.data.inviteCount //
this.withdrawn = res.data.inviteMoney.cashOut // this.withdrawn = res.data.inviteMoney.cashOut //
this.inviteSignCount =res.data.inviteSignCount this.inviteSignCount = res.data.inviteSignCount
Object.assign(this.earning,res.data.earning)
} else { } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
@ -719,9 +756,11 @@
<style lang="scss" scoped> <style lang="scss" scoped>
$color1: #5857FF; $color1: #5857FF;
.cu-dialog{
.cu-dialog {
background-color: transparent; background-color: transparent;
} }
.text-red { .text-red {
color: $color1; color: $color1;
} }
@ -767,7 +806,7 @@
.invite-box { .invite-box {
position: relative; position: relative;
margin-top: -280rpx; margin-top: -240rpx;
background-color: #fff; background-color: #fff;
border-radius: 16rpx 16rpx 16rpx 16rpx; border-radius: 16rpx 16rpx 16rpx 16rpx;
margin-left: 28rpx; margin-left: 28rpx;
@ -814,9 +853,11 @@
transition: all 0.3s ease-in-out 0s; transition: all 0.3s ease-in-out 0s;
pointer-events: none; pointer-events: none;
} }
.bg-img{
.bg-img {
background-color: transparent; background-color: transparent;
} }
.modal.show { .modal.show {
opacity: 1; opacity: 1;
transition-duration: 0.3s; transition-duration: 0.3s;
@ -860,10 +901,14 @@
.top-title { .top-title {
left: 0; left: 0;
right: 0; right: 0;
display: flex;
justify-content: center;
top: 192rpx; top: 192rpx;
.rule {
line-height: 32rpx;
width: 428rpx;
padding-right: 150rpx;
}
.top-title-img { .top-title-img {
width: 550rpx; width: 550rpx;
height: 92rpx; height: 92rpx;

View File

@ -128,7 +128,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -138,7 +138,7 @@
if (checkIosPay === '是') { if (checkIosPay === '是') {
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@ -155,7 +155,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -166,7 +166,7 @@
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@ -181,7 +181,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -194,7 +194,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -209,7 +209,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -225,7 +225,7 @@
}, },
{ {
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
} }
] ]
@ -233,7 +233,7 @@
} else { } else {
this.payList = [{ this.payList = [{
imgurl: '/static/images/pay/lingqian.png', imgurl: '/static/images/pay/lingqian.png',
name: '金支付', name: '金支付',
payAway: 3 payAway: 3
}] }]
this.payAway = 3 this.payAway = 3
@ -385,7 +385,7 @@
} }
}) })
} else { } else {
switch (this.payAway) { //1:,2: 3: switch (this.payAway) { //1:,2: 3:
case 1: // case 1: //
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
that.$Request.postT("/app/wxPay/wxPayJsApiOrder", { that.$Request.postT("/app/wxPay/wxPayJsApiOrder", {

BIN
me/static/invite/rule.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 420 KiB

After

Width:  |  Height:  |  Size: 385 KiB

View File

@ -5,14 +5,14 @@
<view class="money-top"> <view class="money-top">
<image src="../../static/images/me/moneyBanner.png" mode=""></image> <image src="../../static/images/me/moneyBanner.png" mode=""></image>
<view class="money-top-title"> <view class="money-top-title">
当前剩余金 当前剩余金
</view> </view>
<view class="money-top-money"> <view class="money-top-money">
{{formatNumber(moneyNum)}} {{formatNumber(moneyNum)}}
</view> </view>
</view> </view>
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between"> <view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between">
明细 明细
<u-icon name="arrow-right" color="#ff7581" size="40"></u-icon> <u-icon name="arrow-right" color="#ff7581" size="40"></u-icon>
</view> </view>
</view> </view>
@ -41,7 +41,7 @@
</view> </view>
</view> </view>
<view class="moneycz-bom"> <view class="moneycz-bom">
{{item.money}}<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text> {{item.money}}<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
</view> </view>
</view> </view>
<u-radio :name="index"></u-radio> <u-radio :name="index"></u-radio>

View File

@ -5,14 +5,14 @@
<view class="money-top"> <view class="money-top">
<image src="../../static/images/me/moneyBanner.png" mode=""></image> <image src="../../static/images/me/moneyBanner.png" mode=""></image>
<view class="money-top-title"> <view class="money-top-title">
当前剩余金 当前剩余金
</view> </view>
<view class="money-top-money"> <view class="money-top-money">
{{formatNumber(moneyNum)}} {{formatNumber(moneyNum)}}
</view> </view>
</view> </view>
<view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between"> <view @click="goNav('/me/wallet/mingxi')" class="money-bto flex align-center justify-between">
明细 明细
<u-icon name="arrow-right" color="#6696ff" size="40"></u-icon> <u-icon name="arrow-right" color="#6696ff" size="40"></u-icon>
</view> </view>
</view> </view>
@ -34,7 +34,7 @@
</view> </view>
</view> </view>
<view class="moneycz-bom"> <view class="moneycz-bom">
{{item.money}}<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text> {{item.money}}<text v-if="item.giveMoney>0">+{{item.giveMoney}}赠豆</text>
</view> </view>
</view> </view>
<u-radio :name="index"></u-radio> <u-radio :name="index"></u-radio>

View File

@ -243,6 +243,13 @@
"style": { "style": {
"navigationBarTitleText": "手机号绑定" "navigationBarTitleText": "手机号绑定"
} }
},
{
"path" : "pages/pays/pays",
"style" :
{
"navigationBarTitleText" : ""
}
} }
], ],
"subPackages": [{ "subPackages": [{
@ -451,6 +458,18 @@
"safeAreaInsetBottom": "none" "safeAreaInsetBottom": "none"
}, },
"app-plus": { "app-plus": {
// "subNVues": [{
// "id": "pay", //
// "path": "detail/subNvue/pay", //
// // "type": "popup",
// "style": {
// "position": "popup",
// "dock": "bottom",
// "width": "750rpx",
// "height": "150rpx",
// "background": "#fff"
// }
// }],
"bounce": "none", "bounce": "none",
"safearea": { "safearea": {
"bottom": { "bottom": {
@ -475,14 +494,14 @@
}, { }, {
"path": "wallet/wallet", "path": "wallet/wallet",
"style": { "style": {
"navigationBarTitleText": "金充值", "navigationBarTitleText": "金充值",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, { }, {
"path": "wallet/mingxi", "path": "wallet/mingxi",
"style": { "style": {
"navigationBarTitleText": "金明细", "navigationBarTitleText": "金明细",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }

View File

@ -139,7 +139,7 @@
src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png" src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png"
mode=""></image> mode=""></image>
<view class="zl-titles"> <view class="zl-titles">
{{xxJDNum}} <text></text> {{xxJDNum}} <text></text>
</view> </view>
</view> </view>
</u-popup> </u-popup>
@ -382,7 +382,7 @@
this.$Request.postT('/app/user/getNewUserRed').then(res => { this.$Request.postT('/app/user/getNewUserRed').then(res => {
if (res.code == 0) { if (res.code == 0) {
this.xxPopu = false; this.xxPopu = false;
this.$queue.showToast('领取成功,金已到账!'); this.$queue.showToast('领取成功,金已到账!');
} else { } else {
this.$queue.showToast(res.msg) this.$queue.showToast(res.msg)
} }

View File

@ -5,7 +5,7 @@
<u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false"> <u-navbar :background="background" height="60" :is-back="false" :title="title" :border-bottom="false">
<!-- #endif --> <!-- #endif -->
<!-- #ifndef H5 --> <!-- #ifndef H5 -->
<u-navbar :background="background" :is-back="false" :title="title" :border-bottom="false"> <u-navbar height="60" :background="background" :is-back="false" :title="title" :border-bottom="false">
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-TOUTIAO --> <!-- #ifdef MP-TOUTIAO -->
<view :style="{marginTop:barHeight/2+'px'}" class="nvavBar flex" style="padding-left: 80rpx;"> <view :style="{marginTop:barHeight/2+'px'}" class="nvavBar flex" style="padding-left: 80rpx;">
@ -32,7 +32,7 @@
</view> </view>
</u-navbar> </u-navbar>
<view class="bgColorTop"> <view class="bgColorTop">
<view v-if="homeTypeSel != '否'" class="topTabs flex align-center justify-center"> <!-- <view v-if="homeTypeSel != '否'" class="topTabs flex align-center justify-center">
<view class="topTabs-box"> <view class="topTabs-box">
<scroll-view class="topTabs-box-H" scroll-x="true"> <scroll-view class="topTabs-box-H" scroll-x="true">
<view class="topTabs-box-H-item" @tap="typeSel(index)" <view class="topTabs-box-H-item" @tap="typeSel(index)"
@ -41,7 +41,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</view> </view> -->
<!-- 轮播图 --> <!-- 轮播图 -->
<view v-if="TabCur == 0" class="swipers flex align-center justify-center"> <view v-if="TabCur == 0" class="swipers flex align-center justify-center">
<view class="swipers-box"> <view class="swipers-box">
@ -166,7 +166,7 @@
src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png" src="https://dj-api.hnsiyao.cn/file/uploadPath/2024/02/22/cee2fcdc4c4ebe31ab4ce2c3c3a3d183.png"
mode=""></image> mode=""></image>
<view class="zl-titles"> <view class="zl-titles">
{{xxJDNum}} <text></text> {{xxJDNum}} <text></text>
</view> </view>
</view> </view>
</u-popup> </u-popup>
@ -175,9 +175,8 @@
<!-- 追剧悬浮 --> <!-- 追剧悬浮 -->
<!-- <drag-button v-if="shodrag && shodrags" @clickClose="clickClose" :videoInfo="videoInfo" :isDock="true" <!-- <drag-button v-if="shodrag && shodrags" @clickClose="clickClose" :videoInfo="videoInfo" :isDock="true"
:existTabBar="true" @btnClick="btnClick" /> --> :existTabBar="true" @btnClick="btnClick" /> -->
<u-image @click="goMsg('/me/choujiang/choujiang')" :src="`../../static/images/draw/draw.gif`" <u-image @click="goMsg('/me/choujiang/choujiang')" :src="`../../static/images/draw/draw.gif`"
style="width: 150rpx;height: 150rpx;position: fixed;right: 30rpx;bottom: 180rpx;" style="width: 150rpx;height: 150rpx;position: fixed;right: 30rpx;bottom: 180rpx;"></u-image>
></u-image>
</view> </view>
</template> </template>
@ -226,7 +225,7 @@
xxJDNum: 0, xxJDNum: 0,
typeList: [], typeList: [],
TabCur: 0, TabCur: 0,
homeTypeSel: '否', homeTypeSel: '否', //
barWidth: 0, // barWidth: 0, //
barHeight: 0, // barHeight: 0, //
rmVideList: [], // rmVideList: [], //
@ -545,7 +544,7 @@
this.$Request.postT('/app/user/getNewUserRed').then(res => { this.$Request.postT('/app/user/getNewUserRed').then(res => {
if (res.code == 0) { if (res.code == 0) {
this.xxPopu = false; this.xxPopu = false;
this.$queue.showToast('领取成功,金已到账!'); this.$queue.showToast('领取成功,金已到账!');
} else { } else {
this.$queue.showToast(res.msg) this.$queue.showToast(res.msg)
} }
@ -1015,7 +1014,7 @@
height: auto; height: auto;
position: relative; position: relative;
z-index: 3; z-index: 3;
.swipers-box { .swipers-box {
width: 686rpx; width: 686rpx;
height: 270rpx; height: 270rpx;

View File

@ -16,13 +16,13 @@
<view class="flex justify-between margin-bottom" v-for="(item, index) in VIPlist" :key="index"> <view class="flex justify-between margin-bottom" v-for="(item, index) in VIPlist" :key="index">
<view> <view>
<view class="u-font-40"> <view class="u-font-40">
{{item.money}}<text style="font-size: 22rpx;margin-right: 16rpx;"></text> {{item.money}}<text style="font-size: 22rpx;margin-right: 16rpx;"></text>
<!-- #ifdef MP-TOUTIAO --> <!-- #ifdef MP-TOUTIAO -->
/ {{item.payDiamond}}<text style="font-size: 22rpx;"></text> / {{item.payDiamond}}<text style="font-size: 22rpx;"></text>
<!-- #endif --> <!-- #endif -->
</view> </view>
<view class="" style="color: #7F8299;">{{item.type}} <view class="" style="color: #7F8299;">{{item.type}}
{{item.money}}/ {{item.money}}/
<!-- #ifdef MP-TOUTIAO --> <!-- #ifdef MP-TOUTIAO -->
{{item.payDiamond}}钻石/ {{item.payDiamond}}钻石/
<!-- #endif --> <!-- #endif -->
@ -53,7 +53,7 @@
</view> </view>
<view @click="goMoney" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;"> <view @click="goMoney" class="flex align-center justify-end" style="margin-right: 20rpx;color: #ff7581;">
<view class="" style="color: #666666;"> <view class="" style="color: #666666;">
不足 不足
</view> </view>
去充值 去充值
</view> </view>
@ -141,7 +141,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 1; this.openWay = 1;
@ -150,7 +150,7 @@
if (checkIosPay === '是') { if (checkIosPay === '是') {
this.openLists = [{ this.openLists = [{
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}]; }];
this.openWay = 3; this.openWay = 3;
@ -165,7 +165,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}]; }];
this.openWay = 1; this.openWay = 1;
@ -183,7 +183,7 @@
// }, // },
{ {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
} }
], ],
@ -199,7 +199,7 @@
id: 1 id: 1
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}], }],
this.openWay = 1; this.openWay = 1;
@ -210,7 +210,7 @@
id: 2 id: 2
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}], }],
this.openWay = 2; this.openWay = 2;
@ -224,7 +224,7 @@
id: 4 id: 4
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 4; this.openWay = 4;
@ -237,14 +237,14 @@
id: 5 id: 5
}, { }, {
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 5 this.openWay = 5
} else { } else {
this.openLists = [{ this.openLists = [{
image: '/static/images/pay/lingqian.png', image: '/static/images/pay/lingqian.png',
text: '金支付', text: '金支付',
id: 3 id: 3
}] }]
this.openWay = 3 this.openWay = 3

98
pages/pays/pays.vue Normal file
View File

@ -0,0 +1,98 @@
<template>
<view style="width: 100%;">
<web-view :src="url" style="width: 100%;"></web-view>
</view>
</template>
<script>
import httpsRequest from '@/common/httpRequest.js'
export default {
data() {
return {
ordersId:'',
timer:null,
maxAjaxNum:5,
ajaxNum:0,
url: null, //
viewerUrl: '/hybrid/html/web/viewer.html',
webviewStyles: {
width: '750px',
height: '100%',
},
}
},
onReady() {
uni.setNavigationBarTitle({
title:'预览'
})
// #ifdef APP-PLUS
// console.log('App plus2')
// var currentWebview = this.$mp.page.$getAppWebview() //webview
// setTimeout(function() {
// wv = currentWebview.children()[0]
// wv.setStyle({
// scalable: true
// })
// }, 1000); //
// #endif
},
onShow() {
console.log(this.ordersId);
httpsRequest.getT("/app/wuyou/queryOrder/"+this.ordersId, {}).then(res => {
console.log(res);
if(res.data ==1){
uni.hideLoading()
uni.showToast({
title:'支付成功',
icon:'none'
})
this.timer= setTimeout(()=>{
clearTimeout(this.timer)
uni.navigateBack()
},500)
}else{
uni.showLoading({
title:'支付中'
})
}
});
},
onHide() {
clearInterval(this.timer)
},
onLoad: function(option) {
console.log(option)
this.url = option.url
this.ordersId=option.ordersId
console.log('this.ordersId'+this.ordersId);
// this.url="https://jiaoyu.xianmxkj.com/file/uploadPath/2023/03/08/b6c0dd4821cc9ce70c897adca3ad22c2.pdf"
// h5使h5访
// #ifdef H5
// this.url="https://jiaoyu.xianmxkj.com/file/uploadPath/2023/03/08/b6c0dd4821cc9ce70c897adca3ad22c2.pdf"
// this.url = `${this.viewerUrl}?file=${encodeURIComponent(option.url)}`;
// this.url = `${this.viewerUrl}?file=${'https://jiaoyu.xianmxkj.com/file/uploadPath/2023/03/08/b6c0dd4821cc9ce70c897adca3ad22c2.pdf'}`;
// #endif
// ios
// 使pdf.js
// #ifdef APP-PLUS
// if(plus.os.name === 'Android') {
// this.url = `${this.viewerUrl}?file=${encodeURIComponent(option.url)}`;
// }
// // ios访pdf
// else {
// this.url = encodeURIComponent(option.url);
// }
// #endif
}
}
</script>
<style lang="scss">
.webview {
width: 100%;
height: 100%;
}
</style>