uniapp 支付修改
commit
694d8d47b5
|
@ -118,8 +118,7 @@ export default {
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
title: [{required: true, message: "标题不能不空", trigger: "blur"}],
|
title: [{required: true, message: "标题不能不空", trigger: "blur"}],
|
||||||
picUrl: [{required: true, message: "图片地址不能为空", trigger: "blur"}],
|
picUrl: [{required: true, message: "图片地址不能为空", trigger: "blur"}]
|
||||||
// url: [{required: true, message: "跳转地址不能为空", trigger: "blur"}]
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,7 +15,6 @@ const payTypes = ['WXPAY', 'ALIPAY']
|
||||||
* @param wxPaySuccess // 微信支付下单支付成功回调
|
* @param wxPaySuccess // 微信支付下单支付成功回调
|
||||||
* @param aliPaySuccess // 支付宝支付下单成功回调
|
* @param aliPaySuccess // 支付宝支付下单成功回调
|
||||||
*/
|
*/
|
||||||
const unityPay = (options) => {
|
|
||||||
let _options = {
|
let _options = {
|
||||||
payInfo: {},
|
payInfo: {},
|
||||||
payType: '',
|
payType: '',
|
||||||
|
@ -24,6 +23,9 @@ const unityPay = (options) => {
|
||||||
wxPaySuccess: () => {},
|
wxPaySuccess: () => {},
|
||||||
aliPaySuccess: () => {}
|
aliPaySuccess: () => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const unityPay = (options) => {
|
||||||
|
|
||||||
Object.assign(_options, options)
|
Object.assign(_options, options)
|
||||||
if (!_options.payType) {
|
if (!_options.payType) {
|
||||||
return util.Tips({
|
return util.Tips({
|
||||||
|
|
|
@ -362,9 +362,7 @@
|
||||||
handleCustomer(value){
|
handleCustomer(value){
|
||||||
switch (value) {
|
switch (value) {
|
||||||
case '电话客服':
|
case '电话客服':
|
||||||
if(this.tenantInfo.serviceMobile){
|
window.location.href = `tel:4008009935`
|
||||||
window.location.href = `tel:${this.tenantInfo.serviceMobile}`
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case '微信客服':
|
case '微信客服':
|
||||||
if (this.tenantInfo.wxKfUrl) {
|
if (this.tenantInfo.wxKfUrl) {
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<view class="box-phone">
|
<view class="box-phone">
|
||||||
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100">
|
<u--form :model="form" :rules="rules" ref="uForm" labelWidth="100">
|
||||||
<u-form-item label="姓名" prop="userName" >
|
<u-form-item label="姓名" prop="userName" >
|
||||||
<u--input v-model="form.userName" maxlength="11" disabled placeholder="请输入您的姓名"></u--input>
|
<u--input v-model="form.userName" maxlength="11" placeholder="请输入您的姓名"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
<u-form-item label="手机号" prop="phone" >
|
<u-form-item label="手机号" prop="phone" >
|
||||||
<u--input v-model="form.userPhone" maxlength="11" disabled placeholder="请输入您的手机号"></u--input>
|
<u--input v-model="form.userPhone" maxlength="11" disabled placeholder="请输入您的手机号"></u--input>
|
||||||
|
@ -78,6 +78,12 @@ import store from '@/store/index';
|
||||||
userPhone:''
|
userPhone:''
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
userName: [{
|
||||||
|
required: true,
|
||||||
|
message: '姓名不能为空',
|
||||||
|
// 触发器可以同时用blur和change
|
||||||
|
trigger: ['change', 'blur']
|
||||||
|
}],
|
||||||
userPhone: [
|
userPhone: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
|
@ -136,6 +142,7 @@ import store from '@/store/index';
|
||||||
})
|
})
|
||||||
this.payInfo = {
|
this.payInfo = {
|
||||||
userPhone: store.state.app.userInfo.mobile,
|
userPhone: store.state.app.userInfo.mobile,
|
||||||
|
userName: this.form.userName,
|
||||||
orderInfos
|
orderInfos
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
@click="jumpPage('/pages/users/user_spread_code/index')">
|
@click="jumpPage('/pages/users/user_spread_code/index')">
|
||||||
<u-icon slot="icon" size="45" name="/static/images/user_icon2.png"></u-icon>
|
<u-icon slot="icon" size="45" name="/static/images/user_icon2.png"></u-icon>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="热线电话" value="023-12948338" :value="tenantInfo.serviceMobile" isLink @click="callPhone">
|
<u-cell title="热线电话" value="400-8009935" isLink @click="callPhone">
|
||||||
<u-icon slot="icon" size="45" name="/static/images/user_icon3.png"></u-icon>
|
<u-icon slot="icon" size="45" name="/static/images/user_icon3.png"></u-icon>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell title="在线客服" value="8:30-17:30" :value="tenantInfo.serviceTime" isLink @click="kefuClick">
|
<u-cell title="在线客服" value="8:30-17:30" :value="tenantInfo.serviceTime" isLink @click="kefuClick">
|
||||||
|
@ -257,9 +257,7 @@
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
callPhone() {
|
callPhone() {
|
||||||
if(this.tenantInfo.serviceMobile){
|
window.location.href = `tel:4008009935`
|
||||||
window.location.href = `tel:${this.tenantInfo.serviceMobile}`
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
kefuClick() {
|
kefuClick() {
|
||||||
if (this.tenantInfo.wxKfUrl) {
|
if (this.tenantInfo.wxKfUrl) {
|
||||||
|
|
|
@ -81,12 +81,11 @@
|
||||||
mask: true
|
mask: true
|
||||||
});
|
});
|
||||||
that.isHideBtn = true
|
that.isHideBtn = true
|
||||||
for(let i = 0; i<3; i++){
|
for(let i = 0; i<2; i++){
|
||||||
await htmlToImage.toPng(document.getElementById('poster-wrap'), {
|
await htmlToImage.toPng(document.getElementById('poster-wrap'), {
|
||||||
quality: 0.95,
|
quality: 0.95,
|
||||||
cacheBust: true
|
cacheBust: true
|
||||||
});
|
});
|
||||||
console.log('i', i)
|
|
||||||
}
|
}
|
||||||
htmlToImage.toPng(document.getElementById('poster-wrap'), {
|
htmlToImage.toPng(document.getElementById('poster-wrap'), {
|
||||||
quality: 0.95,
|
quality: 0.95,
|
||||||
|
|
Loading…
Reference in New Issue