main
123456 1 month ago
parent e6ec15f44b
commit 183ac4e9d5
  1. 8
      api/index.js
  2. 4
      api/request.js
  3. 61
      main.js
  4. 15
      manifest.json
  5. 8
      pages.json
  6. 5
      pages/index/index.vue
  7. 15
      pages/login/index.vue
  8. 77
      pages/pipei/shipin/detail.nvue
  9. 188
      pages/users/chat/index.vue
  10. 163
      pages/users/meiyan/index.vue
  11. 2
      pages/users/yuyin/index.vue
  12. BIN
      static/tishiyin.mp3
  13. BIN
      static/video_bg.png
  14. 4
      unpackage/dist/dev/app-plus/app-config-service.js
  15. 3508
      unpackage/dist/dev/app-plus/app-service.js
  16. 3557
      unpackage/dist/dev/app-plus/app-view.js
  17. 2
      unpackage/dist/dev/app-plus/manifest.json
  18. BIN
      unpackage/dist/dev/app-plus/static/tishiyin.mp3
  19. BIN
      unpackage/dist/dev/app-plus/static/video_bg.png

@ -1,5 +1,13 @@
import { request } from './request'
const api = {
//视频语音匹配
costDescription(data) {
return request({
url: 'api/costDescription',
method: 'get',
data
})
},
//视频语音匹配
userSpeedDating(data) {
return request({

@ -16,8 +16,8 @@ export function request(prams) {
},
success: (res) => {
if (res.data.code == 200 || res.data.code == -1){
console.log(prams)
console.log("返回结果:"+JSON.stringify(res.data))
// console.log(prams)
// console.log("返回结果:"+JSON.stringify(res.data))
resolve(res.data);
}else if(res.data.code == 401){
uni.showModal({

@ -16,17 +16,15 @@ Vue.component('share', share)
Vue.component('dashan', dashan)
Vue.config.productionTip = false
// import ZegoExpressEngine from '@/uni_modules/zego-ZegoExpressUniApp-JS/components/zego-ZegoExpressUniApp-JS/lib/ZegoExpressEngine';
// const profile = {
// appID : 267111980,
// appSign: 'afcaa90a7750ee556e450ca62287c5f9a362e9ed711789717cda0e18f088858e',
// scenario : 0
// };
// ZegoExpressEngine.createEngineWithProfile(profile);
// Vue.prototype.$ZegoExpressEngine = ZegoExpressEngine;
const bgAudioManager = uni.getBackgroundAudioManager();
console.log(bgAudioManager)
uni.$on("playAudio",res=>{
console.log(11)
bgAudioManager.src = 'https://api.lyiyuan.cn/profile/upload/static/tishiyin.mp3';
bgAudioManager.play();
})
import api from '@/api/index.js'
Vue.prototype.$api = api
@ -40,22 +38,45 @@ const app = new Vue({
app.$mount()
// #endif
let timer = null;
//socket
uni.$on("openSocket",function(res){
uni.connectSocket({
url: 'wss://api.lyiyuan.cn/websocket?userId='+uni.getStorageSync('userInfo').id
});
});
console.log(1111212)
uni.onSocketOpen(function (res) {
console.log('WebSocket连接已打开!');
uni.sendSocketMessage({data:JSON.stringify({"userId": uni.getStorageSync("userInfo").id,"topic":"heart_beat"})});
xintiao()
xintiao()
uni.setStorageSync("isOpen",true)
});
uni.onSocketMessage(function (res) {
console.log(res)
let obj = JSON.parse(res.data)
if(obj.topic == 'message'){
// if(uni.getStorageSync("userInfo").id == obj.sellerid){
// uni.showModal({
// title: "视频通话来了",
// content: "来自"+obj.from_user_data.name+"视频消息,请立即处理!",
// confirmText: "加入房间",
// success(data) {
// if(data.confirm){
// }else{
// uni.sendSocketMessage({
// data: JSON.stringify({event: 3, "room_id": obj.room_id, "to_id": obj.from_user_data.fromUserId,'from_id':0})
// });
// }
// }
// })
// }
}
// if((res.data !="success") && (JSON.parse(res.data).event == 1)){
// let obj = JSON.parse(res.data)
// console.log(obj)
// console.log(obj)
//uni.$emit("playAudio")
// uni.showModal({
// title: "视频通话来了",
// content: "来自"+obj.from_user_data.name+"视频消息,请立即处理!",
@ -79,18 +100,24 @@ uni.$on("openSocket",function(res){
});
uni.onSocketClose(function (res) {
clearInterval(timer)
uni.closeSocket();
uni.closeSocket();
uni.removeStorageSync("isOpen",false)
console.log('WebSocket 已关闭!');
});
})
})
function xintiao() {
clearInterval(timer)
timer = setInterval(()=>{
console.log("xintiao")
console.log("xintiao")
uni.setStorageSync("isOpen",true)
uni.sendSocketMessage({data:JSON.stringify({"userId": uni.getStorageSync("userInfo").id,"topic":"heart_beat"})});
}, 10000)
}
setTimeout(()=>{
console.log(1212)
uni.$emit("openSocket")
},1000)
// #ifdef VUE3
import { createSSRApp } from 'vue'

@ -26,8 +26,7 @@
"Record" : {},
"Share" : {},
"Barcode" : {},
"VideoPlayer" : {},
"Push" : {}
"VideoPlayer" : {}
},
/* */
"distribute" : {
@ -59,7 +58,17 @@
/* ios */
"ios" : {
"idfa" : false,
"dSYMs" : false
"dSYMs" : false,
"UIBackgroundModes" : [ "audio" ],
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "获取用户相册方便用户上传照片",
"NSPhotoLibraryAddUsageDescription" : "获取用户相册方便用户上传照片",
"NSCameraUsageDescription" : "打开摄像头进行视频聊天",
"NSMicrophoneUsageDescription" : "打开麦克风方便用户录音说话",
"NSLocationWhenInUseUsageDescription" : "获取用户当前位置",
"NSLocationAlwaysUsageDescription" : "实时获取用户位置",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "获取用户当前位置"
}
},
/* SDK */
"sdkConfigs" : {

@ -529,6 +529,14 @@
"navigationBarTitleText" : "",
"navigationStyle": "custom" //
}
},
{
"path" : "pages/pipei/shipin/detail",
"style" :
{
"navigationBarTitleText" : "",
"navigationStyle": "custom" //
}
}
],
"globalStyle": {

@ -378,7 +378,8 @@
}
}
that.trackUpload(res1)
uni.$emit("openSocket")
if(res.data.regeocode.addressComponent){
let city = res.data.regeocode.addressComponent.city.length==0?res.data.regeocode.addressComponent.province:res.data.regeocode.addressComponent.city
that.city = res.data.regeocode.formatted_address.split(res.data.regeocode.addressComponent.township)[1]
@ -441,7 +442,7 @@
})
}else if(index == 3){
uni.navigateTo({
url: "/pages/pipei/shipin/index"
url: "/pages/pipei/shipin/detail"
})
}else if(index == 4){
uni.navigateTo({

@ -47,10 +47,17 @@
this.id = o.id?o.id:""
uni.setStorageSync("deviceSn",uni.getSystemInfoSync().deviceId)
if(uni.getStorageSync("userInfo").token){
this.isShow1 = false
uni.switchTab({
url:"/pages/index/index"
})
if(uni.getStorageSync("userInfo").sex){
this.isShow1 = false
uni.switchTab({
url:"/pages/index/index"
})
}else{
this.isShow1 = true
uni.switchTab({
url:"/pages/index/sex"
})
}
}else{
this.isShow1 = true
}

@ -0,0 +1,77 @@
<template>
<view class="tongcheng">
<!-- <zego-local-view class="video-view"></zego-local-view>
<zego-remote-view
class="video-view"
:streamID="playStreamID"
>
</zego-remote-view> -->
</view>
</template>
<script>
// import permision from "@/js_sdk/wa-permission/permission.js"
// //导入 ZEGO Express SDK
// import ZegoExpressEngine from '@/uni_modules/zego-ZegoExpressUniApp-JS/components/zego-ZegoExpressUniApp-JS/lib/ZegoExpressEngine';
// const profile = {
// appID : 267111980,
// appSign: 'afcaa90a7750ee556e450ca62287c5f9a362e9ed711789717cda0e18f088858e',
// scenario : 0
// };
// ZegoExpressEngine.createEngineWithProfile(profile);
import ZegoRemoteView from "@/uni_modules/zego-ZegoExpressUniApp-JS/components/zego-ZegoExpressUniApp-JS/zego-view/ZegoRemoteView";
import ZegoLocalView from "@/uni_modules/zego-ZegoExpressUniApp-JS/components/zego-ZegoExpressUniApp-JS/zego-view/ZegoLocalView";
export default {
components: {
ZegoLocalView,
ZegoRemoteView,
},
data() {
return {
playStreamID: "",
title: "视频语音",
background: {
// 导航栏背景图
background: 'url(https://api.lyiyuan.cn/profile/upload/static/yuyin-bg.png) center top no-repeat',
// 还可以设置背景图size属性
backgroundSize: '100 auto',
},
}
},
onReady() {
console.log(uni.getSystemInfoSync().platform)
// #ifdef APP-PLUS
if (uni.getSystemInfoSync().platform === "android") {
const res = await permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
console.log(res)
const res1 = await permision.requestAndroidPermission(
"android.permission.CAMERA"
);
console.log(res1)
}
// #endif
// let roomConfig = {};
// // 只有传入 “isUserStatusNotify” 参数取值为 “true” 的 ZegoRoomConfig,才能收到 onRoomUserUpdate 回调。
// roomConfig.isUserStatusNotify = true;
// // 获取token传入
// roomConfig.token = "********";
// // 登录房间
// // 开始登录房间
// ZegoExpressEngine.instance().loginRoom('room1', {'userID': 'id1', 'userName': 'user1'}, roomConfig);
},
methods: {
}
}
</script>
<style lang="scss">
.tongcheng{
width: 750px;
background: #0d0b15;
}
</style>

@ -13,20 +13,22 @@
<scroll-view id="wrapper" class="chat-bd"
:class="list.length==0?(isOpen?'chat-bd-active1':'chat-bd-active'):(isOpen?'chat-bd-on':'')"
:scroll-y="true"
@scrolltoupper="scrolltoupper"
:scroll-with-animation="true"
:scroll-top="wrapperScrollHeight"
>
<view id="wrapper">
<view class="item" :class="userId != a.rightUserId?'item-on':''" v-for="(a,index) in chatList" :key="index">
<template v-if="userId != a.rightUserId">
<view id="wrapper1">
<view class="item" :class="a.sendType == 1?'item-on':''" v-for="(a,index) in chatList" :key="index">
<!-- 增加字段sendType 1我发给你 2你发给我 -->
<template v-if="a.sendType == 1">
<view class="fr">
<view class="desc" v-if="a.type == 6 || a.type==3">{{a.message}}</view>
<view class="gift" v-if="a.type == 5">送出礼物<image mode="widthFix" :src="a.message"></image>棒棒糖<text>X{{a.num}}</text></view>
<view class="yinping" v-if="a.type == 1">
<image :src="a.message"></image> {{a.num}}
<view class="yinping" v-if="a.type == 1" @click="toAudio(a.message)">
<image src="@/static/chat-03.png"></image> {{a.num}}
</view>
<view class="video" v-if="a.type == 2">
<video :src="a.message"></video>
<image @click="toPlay(a.message)" src="@/static/video_bg.png"></image>
</view>
<view class="img" v-if="a.type == 4">
<image :src="a.message"></image>
@ -37,14 +39,14 @@
<template v-else>
<view class="fl"><image :src="a.rightFaceImage"></image></view>
<view class="fr">
<view class="name">{{a.rightNickname}}<text v-if="a.rightRole == 2">陪玩师</text></view>
<view class="name">{{a.leftNickname}}<text v-if="a.leftRole == 2">陪玩师</text></view>
<view class="desc" v-if="a.type == 6 || a.type==3">{{a.message}}</view>
<view class="gift" v-if="a.type == 5">送出礼物<image mode="widthFix" :src="a.message"></image>棒棒糖<text>X{{a.num}}</text></view>
<view class="yinping" v-if="a.type == 1">
<image :src="a.message"></image> {{a.num}}
<view class="yinping" v-if="a.type == 1" @click="toAudio(a.message)">
<image src="@/static/chat-03.png"></image> {{a.num}}
</view>
<view class="video" v-if="a.type == 2">
<video :src="a.message"></video>
<image @click="toPlay(a.message)" src="@/static/video_bg.png"></image>
</view>
<view class="img" v-if="a.type == 4">
<image :src="a.message"></image>
@ -77,7 +79,7 @@
<view class="b" v-if="isOpen">
<image @click="uploadImg()" src="@/static/chat-zhaopian.png"></image>
<image @click="uploadVideo()" src="@/static/chat-xiangji.png"></image>
<image src="@/static/chat-yinshipin.png"></image>
<image @click="openShiping()" src="@/static/chat-yinshipin.png"></image>
<image @click="openGift()" src="@/static/chat-liwu.png"></image>
</view>
</view>
@ -116,26 +118,29 @@
</view>
</u-popup>
<insufficient :isCoins="isCoins" />
<u-popup v-model="show2" mode="center">
<video style="width: 680rpx;" v-if="videoUrl" :src="videoUrl" object-fit="contain" controls></video>
</u-popup>
</view>
</template>
<script>
const systemInfoSync = uni.getSystemInfoSync();
import permision from "@/js_sdk/wa-permission/permission.js"
const recorderManager = uni.getRecorderManager();
const innerAudioContext = uni.createInnerAudioContext();
innerAudioContext.autoplay = true;
let timer = 0;
// import ZIM from '@/js_sdk/zego-ZIMUniplugin-JS/lib/index.js';
// ZIM.create({ appID: 267111980, appSign: 'afcaa90a7750ee556e450ca62287c5f9a362e9ed711789717cda0e18f088858e' });
// const zim = ZIM.getInstance();
export default {
data() {
return {
videoUrl: "",
wrapperScrollHeight: 0,
tabIndex: 0,
id: "",
current: 1,
show1: false,
show2: false,
isCoins: false,
isToggle: true,
isOpen: false,
@ -153,10 +158,15 @@
balanceInfo: {},
num: 1,
giftList: [],
giftListNum: 1
giftListNum: 1,
statusBarHeight: 0,
wrapperHeight: 0,
total: 0,
page: 1
};
},
onLoad(o) {
this.statusBarHeight = systemInfoSync.statusBarHeight;
this.userId = uni.getStorageSync("userInfo").id;
this.id = o.id;
this.getUserInfo();
@ -165,7 +175,6 @@
},
onReady() {
const that = this;
this.toImLogin()
recorderManager.onStop(function (res) {
that.uploadAudio(res.tempFilePath);
clearInterval(timer);
@ -175,12 +184,26 @@
innerAudioContext.onEnded(res=>{
that.isPlay = false
})
// //
// zim.on('receivePeerMessage', function (zim, { messageList, fromConversationID }) {
// console.log('receivePeerMessage', messageList, fromConversationID);
// });
},
methods: {
scrolltoupper(e) {
if(this.chatList.length <=this.total){
this.page ++;
this.getChatList(1);
}
},
toAudio(url) {
innerAudioContext.src = url;
innerAudioContext.play();
},
toPlay(url){
this.show2 = true;
this.videoUrl = url
},
// pxrpx
pxToRpx(px) {
return px * 750 / systemInfoSync.windowWidth;
},
//type:1. 2. 3. 4 56
async giftGiving() {
await this.$api.giftGiving({
@ -246,8 +269,10 @@
recorderManager.stop();
},
toToggle() {
const that = this;
this.isToggle = !this.isToggle
this.isOpen = false;
},
//
async userBalance() {
@ -276,11 +301,12 @@
},
toOpen(){
const that = this;
// {"userId":"123","sellerId":"4575676878","type":3} type:1. 2. 3. 4 56
//{"userId":"123","sellerId":"4575676878","type":3} type:1. 2. 3. 4 56
// console.log(111)
// console.log(JSON.stringify({"userId": uni.getStorageSync("userInfo").id,sellerId:this.id, type:3,"topic":"message"}))
// uni.sendSocketMessage({data:JSON.stringify({"userId": uni.getStorageSync("userInfo").id,sellerId:this.id, type:3,"topic":"message"})});
// return ;
uni.sendSocketMessage({data:JSON.stringify({"userId": uni.getStorageSync("userInfo").id,sellerId:this.id, type:3,"topic":"message"})});
return ;
// APP
if(uni.getSystemInfoSync().platform == 'android') {
plus.android.checkPermission(
@ -387,7 +413,6 @@
success: (res1) => {
console.log(res1)
that.count = res1.duration;
return ;
if(that.userInfo.isBlack == 1){
uni.showToast({
title: "当前用户是黑名单,已限制",
@ -489,7 +514,7 @@
return ;
}
if(uni.getStorageSync("userInfo").sex == 1){
if(that.balanceInfo.wordCoins >= 1){
if(that.balanceInfo.wordCoins <= 1){
that.isCoins=true;
return ;
}
@ -519,35 +544,39 @@
}
},
//
toImLogin() {
// zim.login(uni.getStorageSync("userInfo").id, {
// userName: uni.getStorageSync("userInfo").nickname,
// token: uni.getStorageSync("chatToken"),
// })
// .then(function (res) {
// //
// console.log(res,"")
// })
// .catch(function (err) {
// //
// console.log(err)
// });
//
arrayUnique (arr, name) {
var hash = {};
return arr.reduce(function (item, next) {
hash[next[name]]
? ""
: (hash[next[name]] = true && item.push(next));
return item;
}, []);
},
async getChatList(){
async getChatList(type){
const that = this;
const { code, data , msg } = await this.$api.findChatList({formUserId: uni.getStorageSync("userInfo").id,toUserId: this.id});
const { code, data , msg } = await this.$api.findChatList({
limit: 10,
page: this.page,
formUserId: uni.getStorageSync("userInfo").id,
toUserId: this.id});
if(code == 200){
this.chatList= data;
this.total= data.total;
this.chatList= that.arrayUnique([...this.chatList,...data.list],'msgId');
if(type == 1){
return ;
}
setTimeout(()=>{
let wrapper = uni.createSelectorQuery().in(this).select('#wrapper');
wrapper.fields({
size: true,
scrollOffset: true
}, data => {
console.log("得到节点信息" + JSON.stringify(data));
that.wrapperScrollHeight = data.scrollHeight
console.log("wrapper",data)
that.wrapperScrollHeight = data.scrollHeight*5
}).exec()
// ;
},100)
}
},
@ -566,6 +595,7 @@
})
}
},
//
async getConfigData() {
const that = this;
@ -610,6 +640,63 @@
},2000)
}
},
//
async openShiping() {
const that = this;
const {code, data } = await that.$api.costDescription({});
if(code == 200){
uni.showActionSheet({
title: "语音/视频通话",
itemList: ["语音通话("+data.voiceCoins+"金币/分钟)","视频通话("+data.videoCoins+"金币/分钟)"],
success(res){
if(res.tapIndex == 0){
if(that.userInfo.isBlack == 1){
uni.showToast({
title: "当前用户是黑名单,已限制",
position: "bottom",
icon: "none",
})
return ;
}
if(uni.getStorageSync("userInfo").sex == 1){
if(that.balanceInfo.userBalance <= 0){
that.isCoins=true;
return ;
}
}
uni.navigateTo({
url: "/pages/pipwei/yuyin?id="+that.id
})
}else if(res.tapIndex == 1){
if(that.userInfo.isBlack == 1){
uni.showToast({
title: "当前用户是黑名单,已限制",
position: "bottom",
icon: "none",
})
return ;
}
if(uni.getStorageSync("userInfo").sex == 1){
if(that.balanceInfo.userBalance <= 0){
that.isCoins=true;
return ;
}
}
uni.navigateTo({
url: "/pages/pipei/shipin/?id="+that.id
})
}
}
})
}
},
toSheet1() {
const that = this;
that.getcostDescription();
},
toSheet() {
const that = this;
uni.showActionSheet({
@ -635,9 +722,6 @@
console.log(e)
},
},
onBackPress() {
zim.logout();
}
}
</script>
@ -797,17 +881,17 @@
}
&-bd{
width: 100%;
height: calc(100vh - 190rpx - 88rpx);
height: calc(100vh - 190rpx - 88rpx - 50rpx);
padding: 0 25rpx;
box-sizing: border-box;
&-on{
height: calc(100vh - 190rpx - 88rpx - 160rpx);
height: calc(100vh - 190rpx - 88rpx - 50rpx - 160rpx);
}
&-active{
height: calc(100vh - 120rpx - 88rpx);
height: calc(100vh - 120rpx - 88rpx - 50rpx);
}
&-active1{
height: calc(100vh - 120rpx - 88rpx - 160rpx);
height: calc(100vh - 120rpx - 88rpx - 50rpx - 160rpx);
}
.item{
padding: 20rpx 0;
@ -856,7 +940,7 @@
border-radius: 20rpx;
margin-top: 20rpx;
padding: 20rpx;
video{
image{
width: 100%;
}
}

@ -1,6 +1,27 @@
<template>
<view>
<view class="meiyan">
<view class="meiyan-hd">
<video src="https://zego-public.oss-cn-shanghai.aliyuncs.com/sdk-doc/doc/video/Express_Video_SDK/ExpressBeauty.mp4"
:muted="true" :loop="true" :autoplay="true" object-fit="cover" :controls="false"></video>
</view>
<view class="meiyan-bd">
<view class="a">
<u-slider inactive-color="#E8EAEB" active-color="#000000" min="0" max="100" :use-slot="true" v-model="value" @end="sliderEnd">
<view class="">
<view class="badge-button">
{{value}}
</view>
</view>
</u-slider>
</view>
<view class="b">
<view class="item" :class="tabIndex == 0?'item-on':''" @click="tabItem(0)">磨皮</view>
<view class="item" :class="tabIndex == 1?'item-on':''" @click="tabItem(1)">美白</view>
<view class="item" :class="tabIndex == 2?'item-on':''" @click="tabItem(2)">红润</view>
<view class="item" :class="tabIndex == 3?'item-on':''" @click="tabItem(3)">锐化</view>
</view>
<view class="c" @click="toSave">保存</view>
</view>
</view>
</template>
@ -8,12 +29,144 @@
export default {
data() {
return {
value: 50,
tabIndex: 0
};
},
onLoad() {
this.getUserInfo();
},
methods: {
async toSave() {
const {code, data, msg} = await this.$api.editUser({
id: uni.getStorageSync("userInfo").id,
reserved5: this.userInfo.reserved5,
reserved6: this.userInfo.reserved6,
reserved7: this.userInfo.reserved7,
reserved8: this.userInfo.reserved8,
})
if(code == 200){
uni.showToast({
title: "保存成功"
})
this.getUserInfo();
}else{
uni.showToast({
icon: "none",
position: "bottom",
title: msg
})
}
},
sliderEnd(e) {
if(this.tabIndex == 0){
this.userInfo.reserved5 = this.value;
}else if(this.tabIndex == 1){
this.userInfo.reserved6 = this.value;
}else if(this.tabIndex == 2){
this.userInfo.reserved7 = this.value;
}else if(this.tabIndex == 3){
this.userInfo.reserved8 = this.value;
}
},
async getUserInfo() {
const { code, data , msg } = await this.$api.findUserInfo({userId: uni.getStorageSync("userInfo").id});
if(code == 200){
this.userInfo = data;
this.value = data.reserved5; //
this.reserved5 = data.reserved5; //
this.reserved6 = data.reserved6; //
this.reserved7 = data.reserved7; //
this.reserved8 = data.reserved8; //
}else{
uni.showToast({
title: msg,
position: "bottom",
icon: "none",
})
}
},
tabItem(index){
this.tabIndex = index;
if(index == 0){
this.value = this.userInfo.reserved5;
}else if(index == 1){
this.value = this.userInfo.reserved6;
}else if(index == 2){
this.value = this.userInfo.reserved7;
}else if(index == 3){
this.value = this.userInfo.reserved8;
}
}
}
}
</script>
<style lang="scss">
<style scoped lang="scss">
.meiyan{
&-hd{
display: flex;
align-items: center;
justify-content: center;
video{
width: 400rpx;
height: 400rpx;
margin-top: 100rpx;
border-radius: 50%;
}
}
&-bd{
width: 100%;
background-color: #fff;
padding: 30rpx 25rpx;
box-sizing: border-box;
position: absolute;
left: 0;
bottom: 0;
z-index: 2;
.a{
padding: 20px 50rpx;
.badge-button {
padding: 4rpx 6rpx;
background-color: #000000;
color: #fff;
border-radius: 10rpx;
font-size: 22rpx;
line-height: 1;
}
}
.c{
width: 100%;
line-height: 80rpx;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 20rpx;
color: #FFFFFF;
font-size: 30rpx;
text-align: center;
margin-top: 50rpx;
}
.b{
padding: 0 0 50rpx;
overflow: hidden;
display: flex;
justify-content: center;
.item{
width: 100rpx;
line-height: 100rpx;
text-align: center;
font-weight: 500;
font-size: 26rpx;
color: #222222;
margin-right: 30rpx;
&-on{
color: #FFFFFF;
background: linear-gradient(0deg, #000000, #3D3B38);
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
border-radius: 20rpx;
}
}
}
}
}
</style>

@ -155,8 +155,8 @@
console.log(innerAudioContext.src)
}
innerAudioContext.src = that.yuyinInfo.voice;
that.isPlay = true;
innerAudioContext.play();
that.isPlay = true;
that.isPlay1 = true;
}else if(index == 4){
console.log(222,innerAudioContext)

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Loading…
Cancel
Save