Commit 75830e7b by sunchao

接口环境变更

parent 711d579e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"version" : "1", "version" : "1",
"prompt" : "template", "prompt" : "template",
"title" : "服务协议和隐私政策", "title" : "服务协议和隐私政策",
"message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=1\">《服务协议》</a>和<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=2\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。", "message" : "  请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。<br/>  你可阅读<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=1&isBack=1\">《服务协议》</a>和<a href=\"https://mdev.zuihuibi.cn/cffp/components/clause/clause?type=2&isBack=1\">《隐私政策》</a>了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
"buttonAccept" : "同意并接受", "buttonAccept" : "同意并接受",
"buttonRefuse" : "暂不同意", "buttonRefuse" : "暂不同意",
"second" : { "second" : {
......
...@@ -58,7 +58,8 @@ ...@@ -58,7 +58,8 @@
sendMessage(){ sendMessage(){
const params = { const params = {
mobileNo:this.mobile, mobileNo:this.mobile,
type:"1" type:"1",
source: "cffp"
} }
if(common.mobileNoValid(this.mobile) && !this.disabledSendBtn){ if(common.mobileNoValid(this.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{ api.verificationCode(params).then((res)=>{
......
...@@ -120,7 +120,8 @@ ...@@ -120,7 +120,8 @@
sendMessage(){ sendMessage(){
const params = { const params = {
mobileNo:this.form.mobile, mobileNo:this.form.mobile,
type:"1" type:"1",
source: "cffp"
} }
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){ if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{ api.verificationCode(params).then((res)=>{
......
...@@ -19,7 +19,7 @@ const config = { ...@@ -19,7 +19,7 @@ const config = {
stage, stage,
prod prod
} }
let env = 'prod'; let env = 'dev';
// if (process.env.NODE_ENV === 'development') { // if (process.env.NODE_ENV === 'development') {
// env = 'dev'; // env = 'dev';
// }else if (process.env.NODE_ENV === 'production') { // }else if (process.env.NODE_ENV === 'production') {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"share" : { "share" : {
"weixin" : { "weixin" : {
"appid" : "wxb591d0034cdcf0cd", "appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/" "UniversalLinks" : "https://mapp.cffp.org.cn/app/"
} }
}, },
"ad" : {}, "ad" : {},
...@@ -84,13 +84,13 @@ ...@@ -84,13 +84,13 @@
"weixin" : { "weixin" : {
"__platform__" : [ "ios", "android" ], "__platform__" : [ "ios", "android" ],
"appid" : "wxb591d0034cdcf0cd", "appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/" "UniversalLinks" : "https://mapp.cffp.org.cn/app/"
} }
}, },
"oauth" : { "oauth" : {
"weixin" : { "weixin" : {
"appid" : "wxb591d0034cdcf0cd", "appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/" "UniversalLinks" : "https://mapp.cffp.org.cn/app/"
} }
} }
}, },
......
...@@ -23,7 +23,8 @@ ...@@ -23,7 +23,8 @@
<view class="courseBannerBox" v-if="!sliceshare"> <view class="courseBannerBox" v-if="!sliceshare">
<video v-if="isRenderVideo" id="myVideo" :src="courseInfo.filePathOss" :initial-time="viewTime" <video v-if="isRenderVideo" id="myVideo" :src="courseInfo.filePathOss" :initial-time="viewTime"
object-fit="contain" class="videoBox" :poster="courseInfo.fileFirstImage" :title="courseInfo.fileTitle" object-fit="contain" class="videoBox" :poster="courseInfo.fileFirstImage" :title="courseInfo.fileTitle"
@play="playVideo" @pause="pause" @timeupdate="timeupdate" style="width: 100vw;height: 320rpx;"></video> @play="playVideo" @pause="pause" @timeupdate="timeupdate" style="width: 100vw;height: 320rpx;"
></video>
</view> </view>
<!-- 课程详情图 --> <!-- 课程详情图 -->
...@@ -190,7 +191,20 @@ ...@@ -190,7 +191,20 @@
scheme: 'com.qdxxzy.user://' scheme: 'com.qdxxzy.user://'
}, },
deviceType:null, deviceType:null,
shareTipsFlag:false shareTipsFlag:false,
src: '',
danmuList: [{
text: '第 1s 出现的弹幕',
color: '#ff0000',
time: 1
},
{
text: '第 3s 出现的弹幕',
color: '#ff00ff',
time: 3
}
],
danmuValue: ''
}; };
}, },
methods: { methods: {
...@@ -541,6 +555,28 @@ ...@@ -541,6 +555,28 @@
} }
}) })
}, },
sendDanmu: function() {
this.videoContext.sendDanmu({
text: this.danmuValue,
color: this.getRandomColor()
});
this.danmuValue = '';
},
videoErrorCallback: function(e) {
uni.showModal({
content: e.target.errMsg,
showCancel: false
})
},
getRandomColor: function() {
const rgb = []
for (let i = 0; i < 3; ++i) {
let color = Math.floor(Math.random() * 256).toString(16)
color = color.length == 1 ? '0' + color : color
rgb.push(color)
}
return '#' + rgb.join('')
},
// 点击播放 // 点击播放
playVideo(e) { playVideo(e) {
console.log('playVideo', this.totalTime, this.viewTime) console.log('playVideo', this.totalTime, this.viewTime)
......
...@@ -71,7 +71,8 @@ ...@@ -71,7 +71,8 @@
sendMessage(){ sendMessage(){
const params = { const params = {
mobileNo:this.form.mobile, mobileNo:this.form.mobile,
type:"1" type:"1",
source: "cffp"
} }
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){ if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{ api.verificationCode(params).then((res)=>{
......
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
import api from "@/api/api" import api from "@/api/api"
import common from '../../common/common'; import common from '../../common/common';
import {hshare} from '@/util/fiveshare'; import {hshare} from '@/util/fiveshare';
import {baseURL,apiURL,cffpURL} from "@/environments/environment";
export default { export default {
data() { data() {
return { return {
...@@ -292,7 +293,7 @@ ...@@ -292,7 +293,7 @@
desc: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击即刻加入!`, desc: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击即刻加入!`,
link: "https://" + window.location.host + "/cffp/pages/invitationRegister/invitationRegister?shareId=" + link: "https://" + window.location.host + "/cffp/pages/invitationRegister/invitationRegister?shareId=" +
this.shareId + '&invitationCode=' + this.invitationCode, //分享链接 this.shareId + '&invitationCode=' + this.invitationCode, //分享链接
imgUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg", //图片 imgUrl: `${baseURL}/cffp/static/cffp_logo.jpg`, //图片
} }
//安卓机型获取当前页面路径 //安卓机型获取当前页面路径
let url = window.location.href.split('#')[0]; let url = window.location.href.split('#')[0];
...@@ -331,7 +332,7 @@ ...@@ -331,7 +332,7 @@
this.shareId + '&invitationCode=' + this.invitationCode, this.shareId + '&invitationCode=' + this.invitationCode,
title: "CFFP家庭财务策划师联盟邀您加入", title: "CFFP家庭财务策划师联盟邀您加入",
summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`, summary: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击下载即刻加入!`,
imageUrl: "https://mdev.zuihuibi.cn/cffp/static/cffp_logo.jpg", imageUrl: `${baseURL}/cffp/static/cffp_logo.jpg`,
success: function(res) { success: function(res) {
// console.log("success:" + JSON.stringify(res)); // console.log("success:" + JSON.stringify(res));
}, },
......
...@@ -88,7 +88,8 @@ ...@@ -88,7 +88,8 @@
sendMessage() { sendMessage() {
const params = { const params = {
mobileNo: this.usermobile, mobileNo: this.usermobile,
type: "1" type: "1",
source: "cffp"
} }
if (common.mobileNoValid(this.usermobile)) { if (common.mobileNoValid(this.usermobile)) {
api.verificationCode(params).then((res) => { api.verificationCode(params).then((res) => {
......
...@@ -19,7 +19,7 @@ export function CommonUpload(psrams) { ...@@ -19,7 +19,7 @@ export function CommonUpload(psrams) {
uni.uploadFile({ uni.uploadFile({
// /api/file/upload //pc上传代理 // /api/file/upload //pc上传代理
// https://mdev.zuihuibi.cn/api/file/upload // https://mdev.zuihuibi.cn/api/file/upload
url: `https://mdev.zuihuibi.cn/api/file/upload`, // 后端api接口 url: `${baseURL}/api/file/upload`, // 后端api接口
filePath: res.tempFilePaths[0], // uni.chooseImage函数调用后获取的本地文件路劲 filePath: res.tempFilePaths[0], // uni.chooseImage函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象 name: 'file', //后端通过'file'获取上传的文件对象
// formData: this.sendDate, // formData: this.sendDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment