Commit 75830e7b by sunchao

接口环境变更

parent 711d579e
......@@ -2,7 +2,7 @@
"version" : "1",
"prompt" : "template",
"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" : "同意并接受",
"buttonRefuse" : "暂不同意",
"second" : {
......
......@@ -58,7 +58,8 @@
sendMessage(){
const params = {
mobileNo:this.mobile,
type:"1"
type:"1",
source: "cffp"
}
if(common.mobileNoValid(this.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{
......
......@@ -120,7 +120,8 @@
sendMessage(){
const params = {
mobileNo:this.form.mobile,
type:"1"
type:"1",
source: "cffp"
}
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{
......
......@@ -19,7 +19,7 @@ const config = {
stage,
prod
}
let env = 'prod';
let env = 'dev';
// if (process.env.NODE_ENV === 'development') {
// env = 'dev';
// }else if (process.env.NODE_ENV === 'production') {
......
......@@ -73,7 +73,7 @@
"share" : {
"weixin" : {
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
"UniversalLinks" : "https://mapp.cffp.org.cn/app/"
}
},
"ad" : {},
......@@ -84,13 +84,13 @@
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
"UniversalLinks" : "https://mapp.cffp.org.cn/app/"
}
},
"oauth" : {
"weixin" : {
"appid" : "wxb591d0034cdcf0cd",
"UniversalLinks" : "https://mcffp.anjibao.cn/app/"
"UniversalLinks" : "https://mapp.cffp.org.cn/app/"
}
}
},
......
......@@ -23,7 +23,8 @@
<view class="courseBannerBox" v-if="!sliceshare">
<video v-if="isRenderVideo" id="myVideo" :src="courseInfo.filePathOss" :initial-time="viewTime"
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>
<!-- 课程详情图 -->
......@@ -190,7 +191,20 @@
scheme: 'com.qdxxzy.user://'
},
deviceType:null,
shareTipsFlag:false
shareTipsFlag:false,
src: '',
danmuList: [{
text: '第 1s 出现的弹幕',
color: '#ff0000',
time: 1
},
{
text: '第 3s 出现的弹幕',
color: '#ff00ff',
time: 3
}
],
danmuValue: ''
};
},
methods: {
......@@ -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) {
console.log('playVideo', this.totalTime, this.viewTime)
......
......@@ -71,7 +71,8 @@
sendMessage(){
const params = {
mobileNo:this.form.mobile,
type:"1"
type:"1",
source: "cffp"
}
if(common.mobileNoValid(this.form.mobile) && !this.disabledSendBtn){
api.verificationCode(params).then((res)=>{
......
......@@ -141,6 +141,7 @@
import api from "@/api/api"
import common from '../../common/common';
import {hshare} from '@/util/fiveshare';
import {baseURL,apiURL,cffpURL} from "@/environments/environment";
export default {
data() {
return {
......@@ -292,7 +293,7 @@
desc: `我是家庭财务策划师${this.realName}正在使用CFFP财富中心,点击即刻加入!`,
link: "https://" + window.location.host + "/cffp/pages/invitationRegister/invitationRegister?shareId=" +
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];
......@@ -331,7 +332,7 @@
this.shareId + '&invitationCode=' + this.invitationCode,
title: "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) {
// console.log("success:" + JSON.stringify(res));
},
......
......@@ -88,7 +88,8 @@
sendMessage() {
const params = {
mobileNo: this.usermobile,
type: "1"
type: "1",
source: "cffp"
}
if (common.mobileNoValid(this.usermobile)) {
api.verificationCode(params).then((res) => {
......
......@@ -19,7 +19,7 @@ export function CommonUpload(psrams) {
uni.uploadFile({
// /api/file/upload //pc上传代理
// 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函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象
// 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