s

parent 3accd267
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
const merge = require('webpack-merge'); const merge = require('webpack-merge');
const prodEnv = require('./prod.env'); const prodEnv = require('./prod.env');
// const ip = 'http://10.1.23.212:8085/' // const ip = 'http://10.1.23.212:8085/'
const ip = 'http://192.168.0.111:8085/' const ip = 'http://10.1.22.249:8085/'
module.exports = merge(prodEnv, { module.exports = merge(prodEnv, {
NODE_ENV: '"development"', NODE_ENV: '"development"',
API_URL: `"${ip}"`, API_URL: `"${ip}"`,
......
...@@ -21,7 +21,7 @@ module.exports = { ...@@ -21,7 +21,7 @@ module.exports = {
}, },
// Various Dev Server settings // Various Dev Server settings
// host: '10.1.23.212', // can be overwritten by process.env.HOST // host: '10.1.23.212', // can be overwritten by process.env.HOST
host: '192.168.0.111', // can be overwritten by process.env.HOST host: '10.1.22.249', // can be overwritten by process.env.HOST
// host: 'localhost', // can be overwritten by process.env.HOST // host: 'localhost', // can be overwritten by process.env.HOST
port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined port: 8085, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false, autoOpenBrowser: false,
......
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
position: fixed; position: fixed;
background: #f4f4f4; background: #f4f4f4;
} }
/* html{font-size: 1px;} */</style><link href=static/css/app.129556e9383a4eca915187bdf43f354e.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.70d36f3b71a6728d7954.js></script><script type=text/javascript src=static/js/vendor.73706c7cc85e5a0dcf64.js></script><script type=text/javascript src=static/js/app.c53e7a3149a8250544bc.js></script></body></html> /* html{font-size: 1px;} */</style><link href=static/css/app.129556e9383a4eca915187bdf43f354e.css rel=stylesheet></head><body><div id=app></div><script src=https://res.wx.qq.com/open/js/jweixin-1.3.2.js></script><script></script><script type=text/javascript src=static/js/manifest.70d36f3b71a6728d7954.js></script><script type=text/javascript src=static/js/vendor.73706c7cc85e5a0dcf64.js></script><script type=text/javascript src=static/js/app.cd00f7412754ed86f10f.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<!-- <script src="https://cdn.bootcss.com/html2canvas/0.5.0-alpha2/html2canvas.min.js"></script> --> <!-- <script src="https://cdn.bootcss.com/html2canvas/0.5.0-alpha2/html2canvas.min.js"></script> -->
<script> <script>
</script> </script>
......
...@@ -12,13 +12,11 @@ ...@@ -12,13 +12,11 @@
</van-popup> </van-popup>
</div> </div>
</template> </template>
<script> <script>
// https://cdn.singsingenglish.com/addr.js // https://cdn.singsingenglish.com/new-sing/2306a83c3e48d84a0b6066f235a8158efa4505de.js
import Address from './addr.js' import Address from './addr.js'
import {Picker} from 'mint-ui' import {Picker} from 'mint-ui'
// let Address ={} // let Address ={}
console.log(Address)
let type = 1 let type = 1
let provinceValue = 2 let provinceValue = 2
let cityValue = 52 let cityValue = 52
...@@ -76,6 +74,8 @@ ...@@ -76,6 +74,8 @@
let vm = this let vm = this
vm.show = vm.showAddressPicker vm.show = vm.showAddressPicker
// console.log(vm.show,80) // console.log(vm.show,80)
// console.log(window.addrArr)
// console.log(82)
}, },
components: { components: {
[Picker.name]: Picker [Picker.name]: Picker
......
...@@ -22327,3 +22327,4 @@ var address = { ...@@ -22327,3 +22327,4 @@ var address = {
"version": "1" "version": "1"
} }
export default address.addrs export default address.addrs
console.log(22330)
...@@ -351,13 +351,6 @@ export default { ...@@ -351,13 +351,6 @@ export default {
// this.test() // this.test()
}, },
methods: { methods: {
test(){
// console.log(Vue.prototype)
// console.log(this)
// console.log(this.testAttr)
// console.log(this.__proto__)
// this.__proto__.testAttr = 'testAttr'
},
shadowClick(){ shadowClick(){
this.pt=false this.pt=false
sessionStorage.setItem('orderShadow',true); sessionStorage.setItem('orderShadow',true);
......
...@@ -45,6 +45,7 @@ import bg9 from '../../assets/yb/9.png' ...@@ -45,6 +45,7 @@ import bg9 from '../../assets/yb/9.png'
import bg10 from '../../assets/yb/10.png' import bg10 from '../../assets/yb/10.png'
import bg11 from '../../assets/yb/11.png' import bg11 from '../../assets/yb/11.png'
import bg12 from '../../assets/yb/12.png' import bg12 from '../../assets/yb/12.png'
import shareImg from '../../assets/yb/share.png'
export default { export default {
name: "ybIndex", name: "ybIndex",
components: {}, components: {},
...@@ -68,8 +69,10 @@ export default { ...@@ -68,8 +69,10 @@ export default {
bg10:bg10, bg10:bg10,
bg11:bg11, bg11:bg11,
bg12:bg12, bg12:bg12,
shareImg:shareImg
}, },
videoDis:false videoDis:false,
query:{}
}; };
}, },
mounted() { mounted() {
...@@ -96,30 +99,31 @@ export default { ...@@ -96,30 +99,31 @@ export default {
this.onShare() this.onShare()
this.$sa.track("GetCourseAIA", { this.$sa.track("GetCourseAIA", {
}); });
if (window.location.href.indexOf("parentId") > -1) {
this.query.parentId = this.$route.query.parentId;
}
if (window.location.href.indexOf("redeem_code") > -1) {
this.query.redeem_code = this.$route.query.redeem_code;
}
if (window.location.href.indexOf("invite_code") > -1) {
this.query.invite_code = this.$route.query.invite_code;
}
if (window.location.href.indexOf("agentId") > -1) {
this.query.agentId = this.$route.query.agentId;
}
}, },
goEdit(){ goEdit(){
this.$router.push({name:'addressEdit'}) this.$router.push({name:'addressEdit'})
}, },
nav(){ nav(){
let query = {};
let redeem_code = '' let redeem_code = ''
if (window.location.href.indexOf("channel_code") > -1) { getYoubangApi({'redeem_code':this.query.redeem_code}).then(res =>{
query.channel_code = this.$route.query.channel_code;
}
if (window.location.href.indexOf("redeem_code") > -1) {
query.redeem_code = this.$route.query.redeem_code;
redeem_code = this.$route.query.redeem_code;
}
if (window.location.href.indexOf("invite_code") > -1) {
query.invite_code = this.$route.query.invite_code;
}
getYoubangApi({'redeem_code':redeem_code}).then(res =>{
if(res.res==1){ if(res.res==1){
this.$router.push({name:'ybOrderRender',query:query}) this.$router.push({name:'ybOrderRender',query:this.query})
}else if(res.res==2||res.res==4){ }else if(res.res==2||res.res==4){
this.$router.push({name:'ybPaySuccess',query:query}) this.$router.push({name:'ybPaySuccess',query:this.query})
}else{ }else{
window.location.href=`https://sit.tohours.com/salesplus/goodstart/singing-English-Index.action?&parentId=${this.$route.query.parentId}&agentId=${this.$route.query.agentId}`
} }
}) })
}, },
...@@ -132,11 +136,11 @@ export default { ...@@ -132,11 +136,11 @@ export default {
}); });
}, },
onShare: function(type) { onShare: function(type) {
let URL = `${process.env.BUY_URL}`; let URL = `https://sit.tohours.com/salesplus/goodstart/singing-English-Index.action?&parentId=${this.$route.query.parentId}&agentId=${this.$route.query.agentId}`;
this.enableShare({ this.enableShare({
product_title: '【免费领】价值498元亲子早教英语启蒙训练课', product_title: '【免费领】价值498元亲子早教英语启蒙训练课',
desc: '友邦助您启蒙宝贝快乐家庭', desc: '友邦助您启蒙宝贝快乐家庭',
shareIcon: '', shareIcon: shareImg,
shareUrl: URL shareUrl: URL
}); });
}, },
...@@ -157,7 +161,7 @@ export default { ...@@ -157,7 +161,7 @@ export default {
wx.ready(function() { wx.ready(function() {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
title: option.product_title, // 分享标题 title: option.product_title, // 分享标题
desc: option.desc, // 分享描述 desc: '【庆百年 友惊喜】暑期亲子礼︱价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
...@@ -171,8 +175,8 @@ export default { ...@@ -171,8 +175,8 @@ export default {
} }
}); });
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: option.product_title, // 分享标题 title: '【庆百年 友惊喜】暑期亲子礼', // 分享标题
desc: option.desc, // 分享描述 desc: '价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
......
...@@ -34,9 +34,7 @@ ...@@ -34,9 +34,7 @@
type="text" type="text"
label="所在地区" label="所在地区"
:is-link='link' :is-link='link'
placeholder="请选择"/>
placeholder="请选择"
/>
<div @click="showAddressPicker=true" class="clickItem" ></div> <div @click="showAddressPicker=true" class="clickItem" ></div>
</div> </div>
<van-field <van-field
...@@ -105,10 +103,12 @@ import orderCancelDialog from "../buy/orderCancelDialog"; ...@@ -105,10 +103,12 @@ import orderCancelDialog from "../buy/orderCancelDialog";
import imgprize from '../../assets/yb/imghh@2x.png' import imgprize from '../../assets/yb/imghh@2x.png'
import MyAddress from "@/components/address-picker/Address.vue"; import MyAddress from "@/components/address-picker/Address.vue";
import addressList from "../address-picker/addr"; import addressList from "../address-picker/addr";
import shareImg from '../../assets/yb/share.png'
export default { export default {
name: "ybOrderRender", name: "ybOrderRender",
data() { data() {
return { return {
shareImg:shareImg,
addressInfo: {}, addressInfo: {},
open:false, open:false,
link:true, link:true,
...@@ -126,7 +126,8 @@ export default { ...@@ -126,7 +126,8 @@ export default {
groupDetail:{}, groupDetail:{},
orderCancel:false, orderCancel:false,
imgprize:imgprize, imgprize:imgprize,
deliverDetail:{} deliverDetail:{},
query:{}
}; };
}, },
components: { components: {
...@@ -252,7 +253,7 @@ export default { ...@@ -252,7 +253,7 @@ export default {
console.log(this) console.log(this)
console.log(this.$router) console.log(this.$router)
console.log(this.invite_code) console.log(this.invite_code)
this.$router.push({name:'ybPaySuccess',query:{invite_code:this.invite_code}}); this.$router.push({name:'ybPaySuccess',query:that.$route.query});
}else{ }else{
console.log(220) console.log(220)
let that = this; let that = this;
...@@ -292,7 +293,7 @@ export default { ...@@ -292,7 +293,7 @@ export default {
console.log(254) console.log(254)
// 支付成功后处理 // 支付成功后处理
Toast('支付成功'); Toast('支付成功');
that.$router.push({name:'ybPaySuccess',query:{invite_code:this.invite_code}}) that.$router.push({name:'ybPaySuccess',query:that.$route.query})
} }
if (res.err_msg === 'get_brand_wcpay_request:fail') { if (res.err_msg === 'get_brand_wcpay_request:fail') {
} }
...@@ -346,26 +347,13 @@ export default { ...@@ -346,26 +347,13 @@ export default {
this.showAddressPicker = !this.showAddressPicker; this.showAddressPicker = !this.showAddressPicker;
}, },
initPage() { initPage() {
let query = {}; getYoubangApi({'redeem_code':this.$route.query.redeem_code}).then(res =>{
let redeem_code = ''
if (window.location.href.indexOf("channel_code") > -1) {
query.channel_code = this.$route.query.channel_code;
}
if (window.location.href.indexOf("redeem_code") > -1) {
query.redeem_code = this.$route.query.redeem_code;
redeem_code = this.$route.query.redeem_code;
}
if (window.location.href.indexOf("invite_code") > -1) {
query.invite_code = this.$route.query.invite_code;
this.invite_code = this.$route.query.invite_code;
}
getYoubangApi({'redeem_code':redeem_code}).then(res =>{
if(res.res==1){ if(res.res==1){
this.$router.push({name:'ybOrderRender',query:query}) this.$router.push({name:'ybOrderRender',query:this.$route.query})
}else if(res.res==2||res.res==4){ }else if(res.res==2||res.res==4){
this.$router.push({name:'ybPaySuccess',query:query}) this.$router.push({name:'ybPaySuccess',query:this.$route.query})
}else{ }else{
window.location.href=`https://sit.tohours.com/salesplus/goodstart/singing-English-Index.action?&parentId=${this.$route.query.parentId}&agentId=${this.$route.query.agentId}`
} }
}) })
getNewestAddressListAPi().then(res=>{ getNewestAddressListAPi().then(res=>{
...@@ -404,7 +392,6 @@ export default { ...@@ -404,7 +392,6 @@ export default {
}) })
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id; this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.onShare() this.onShare()
}, },
handleInviteCode() { handleInviteCode() {
if (!this.invite_code) { if (!this.invite_code) {
...@@ -417,11 +404,11 @@ export default { ...@@ -417,11 +404,11 @@ export default {
}, },
onShare: function(type) { onShare: function(type) {
this.handleInviteCode(); this.handleInviteCode();
let URL = `${process.env.BUY_URL}invite_code=${this.this_code}`; let URL = `https://sit.tohours.com/salesplus/goodstart/singing-English-Index.action?&parentId=${this.$route.query.parentId}&agentId=${this.$route.query.agentId}`;
this.enableShare({ this.enableShare({
product_title: '【免费领】价值498元亲子早教英语启蒙训练课', product_title: '【免费领】价值498元亲子早教英语启蒙训练课',
desc: '友邦助您启蒙宝贝快乐家庭', desc: '友邦助您启蒙宝贝快乐家庭',
shareIcon: '', shareIcon: shareImg,
shareUrl: URL shareUrl: URL
}); });
}, },
...@@ -442,7 +429,7 @@ export default { ...@@ -442,7 +429,7 @@ export default {
wx.ready(function() { wx.ready(function() {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
title: option.product_title, // 分享标题 title: option.product_title, // 分享标题
desc: option.desc, // 分享描述 desc: '【庆百年 友惊喜】暑期亲子礼︱价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
...@@ -456,8 +443,8 @@ export default { ...@@ -456,8 +443,8 @@ export default {
} }
}); });
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: option.product_title, // 分享标题 title: '【庆百年 友惊喜】暑期亲子礼', // 分享标题
desc: option.desc, // 分享描述 desc: '价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
import icon_yes from '../../assets/yb/icon_yes@2x.png' import icon_yes from '../../assets/yb/icon_yes@2x.png'
import img1 from '../../assets/yb/img1@2x.png' import img1 from '../../assets/yb/img1@2x.png'
import logo from '../../assets/yb/logo@2x.png' import logo from '../../assets/yb/logo@2x.png'
import shareImg from '../../assets/yb/share.png'
import { getCourseInfoApi,getwechatParam } from "../../service/api"; import { getCourseInfoApi,getwechatParam } from "../../service/api";
export default { export default {
name: "ybPaySuccess", name: "ybPaySuccess",
...@@ -26,7 +27,8 @@ export default { ...@@ -26,7 +27,8 @@ export default {
img1:img1, img1:img1,
icon_yes:icon_yes, icon_yes:icon_yes,
logo:logo, logo:logo,
groupDetail:{} groupDetail:{},
shareImg:shareImg
}; };
}, },
mounted() { mounted() {
...@@ -75,11 +77,11 @@ export default { ...@@ -75,11 +77,11 @@ export default {
}, },
onShare: function(type) { onShare: function(type) {
this.handleInviteCode(); this.handleInviteCode();
let URL = `${process.env.BUY_URL}invite_code=${this.this_code}`; let URL = `https://sit.tohours.com/salesplus/goodstart/singing-English-Index.action?&parentId=${this.$route.query.parentId}&agentId=${this.$route.query.agentId}`;
this.enableShare({ this.enableShare({
product_title: '【免费领】价值498元亲子早教英语启蒙训练课', product_title: '【免费领】价值498元亲子早教英语启蒙训练课',
desc: '友邦助您启蒙宝贝快乐家庭', desc: '友邦助您启蒙宝贝快乐家庭',
shareIcon: '', shareIcon: shareImg,
shareUrl: URL shareUrl: URL
}); });
}, },
...@@ -100,7 +102,7 @@ export default { ...@@ -100,7 +102,7 @@ export default {
wx.ready(function() { wx.ready(function() {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
title: option.product_title, // 分享标题 title: option.product_title, // 分享标题
desc: option.desc, // 分享描述 desc: '【庆百年 友惊喜】暑期亲子礼︱价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
...@@ -114,8 +116,8 @@ export default { ...@@ -114,8 +116,8 @@ export default {
} }
}); });
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
title: option.product_title, // 分享标题 title: '【庆百年 友惊喜】暑期亲子礼', // 分享标题
desc: option.desc, // 分享描述 desc: '价值498元唱唱英语线上课程免费领', // 分享描述
link: option.shareUrl, // 分享链接 link: option.shareUrl, // 分享链接
imgUrl: imgUrl:
option.shareIcon || option.shareIcon ||
......
...@@ -37,9 +37,9 @@ Vue.component('scroll', scroll); ...@@ -37,9 +37,9 @@ Vue.component('scroll', scroll);
// Vue.prototype.$throw = (error)=> errorHandler(error,this); // Vue.prototype.$throw = (error)=> errorHandler(error,this);
/* eslint-disable no-new */ /* eslint-disable no-new */
// Vue.prototype.testAttr = 'testAttr' // Vue.prototype.testAttr = 'testAttr'
if (process.env.NODE_ENV != 'production') { // if (process.env.NODE_ENV != 'production') {
new VConsole(); // new VConsole();
} // }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
next() next()
......
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