Browse Source

修改和优化布局

master
liaoxinyu 1 year ago
parent
commit
a49a7f14f4
  1. 18
      common/js/api.js
  2. 2
      common/js/wxApi.js
  3. 340
      pages/Invoicing/Invoicing.vue
  4. 2
      pages/index/index.vue
  5. 2
      unpackage/dist/build/h5/index.html
  6. 2
      unpackage/dist/build/h5/static/js/index.1e9aec6e.js
  7. 1
      unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.1851575d.js
  8. 1
      unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.497e6493.js
  9. 3
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.97b6cf75.js
  10. 3
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.c6ab42da.js
  11. 1
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index.8925e708.js
  12. 1
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index.94ea056c.js
  13. 1
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.c092caf2.js
  14. 1
      unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.d1636744.js
  15. 1
      unpackage/dist/build/h5/static/js/pages-index-index.6131139f.js
  16. 1
      unpackage/dist/build/h5/static/js/pages-index-index.ddd9d744.js
  17. 2
      unpackage/dist/build/h5/static/js/pages-wxlogin-wxlogin.a1d82352.js

18
common/js/api.js

@ -20,6 +20,10 @@ let API = {
Home(data, success, fail, boolean=true){
API.sendRequest('post', data, '/api/InvoiceIssuance/getList', success, fail, boolean)
},
// 验证是否缴费
validateFeePay(data, success, fail, boolean=true){
API.sendRequest('post', data, '/api/InvoiceIssuance/validateFeePay', success, fail, boolean)
},
// 手机号获取验证码
sendSms(data, success, fail, boolean=true){
API.sendRequest('post', data, '/wechat/wechat/sendSms', success, fail, boolean)
@ -62,11 +66,11 @@ let API = {
...requestObj,
success(res) {
if(res.data.code == 1){
if(res.data.code == 1||res.data.code == -8){
success && success(res.data);
return;
}
if(res.data.code == -14){
if(res.data.code == -14||res.data.code == -997){
uni.removeStorageSync('AccessToken');
uni.removeStorageSync('openid');
setTimeout(()=>{
@ -76,10 +80,12 @@ let API = {
},2600)
}
uni.showToast({
title: res.data.msg || res.msg,
icon: 'none'
})
if (url !== '/api/InvoiceIssuance/validateFeePay') {
uni.showToast({
title: res.data.msg || res.msg,
icon: 'none'
})
}
// if(res.data.code==403 || res.data.code==201){
// uni.removeStorageSync('user_token');

2
common/js/wxApi.js

@ -5,9 +5,7 @@ const wxApi = {
*/
wxRegister(callback) {
let _this = this;
// const u = 'https://intp.xingtongworld.com/wechat/#/'
let signUrl = encodeURIComponent(location.href.split("#")[0]);
// let signUrl = u.split("#")[0];
let jsApiList = ["chooseInvoiceTitle"];
// 接口请求传入路径
API.getJsSdkData({url:signUrl}, res => {

340
pages/Invoicing/Invoicing.vue

@ -4,7 +4,8 @@
<block class="block-step" v-for="(item, index) in stepsDatas" :key="index">
<view class="view_item">
<!-- 打钩 -->
<icon v-if="stepsIndex >= index ? true : false" type="success" size="48rpx" color="#007aff" />
<!-- <icon v-if="stepsIndex >= index ? true : false" type="success" size="48rpx" color="#007aff" /> -->
<view v-if="stepsIndex >= index ? true : false" style="color: #fff;background-color: #228def;"> {{ index + 1 }} </view>
<!-- 圆圈数字 -->
<view v-else> {{ index + 1 }} </view>
<!-- 标题 -->
@ -23,28 +24,37 @@
<view class="form-title">开票信息</view>
<view class="form-box">
<uni-forms :modelValue="list1" ref="form">
<uni-forms-item label="开票项目:" required name="name" :label-width="80">
<uni-data-select v-model="list1.project_id" :localdata="range" placeholder="请选择开票项目"></uni-data-select>
<uni-forms-item label="开票项目:" required name="name" :label-width="85">
<uni-data-select v-model="list1.project_id" :clear="false" :localdata="range" placeholder="请选择开票项目"></uni-data-select>
</uni-forms-item>
<uni-forms-item label="合并开票:" required name="name" :label-width="80">
<uni-data-checkbox v-model="list1.merge" :localdata="mergelist"></uni-data-checkbox>
<uni-forms-item label="合并开票:" required name="name" :label-width="85">
<!-- <uni-data-checkbox v-model="list1.merge" :localdata="mergelist"></uni-data-checkbox> -->
<radio-group @change="radioChange" style="height: 100%;display: flex;align-items: center;">
<label v-for="(item,index) in mergelist" :key="item.value">
<radio :value="item.value" :checked="list1.merge === item.value" /><text>{{item.text}}</text>
</label>
</radio-group>
</uni-forms-item>
<uni-forms-item label="用户编号:" required name="name" :label-width="80">
<uni-combox v-model="list1.pucode_id" :border="false" :candidates="candidates" placeholder="请选择或输入用户编号"></uni-combox>
<uni-forms-item label="用户编号:" required name="name" :label-width="85">
<uni-combox v-model="list1.pucode" :border="false" :candidates="candidates" placeholder="请选择或输入用户编号"></uni-combox>
</uni-forms-item>
<uni-forms-item label="到期:" required name="name" placeholder="请选择账期" :label-width="80">
<picker mode="date" fields="month" v-model="list1.expire_time" @change="bindDateChange" style="height: 36px;line-height: 36px;">
<view class="picker_box">
<view class="uni-input">{{list1.expire_time}}</view>
<view><uni-icons type="down" size="30rpx"></uni-icons></view>
<uni-forms-item label="期:" required name="name" :label-width="85">
<view @click="showPopup" style="height: 72rpx;line-height: 72rpx;margin-left: 20rpx;margin-right: 18rpx;">
<view style="font-size: 28rpx;height: 100%;display: flex;justify-content: space-between;" v-if="list1.expire_time">
<view>{{list1.expire_time}}</view>
<view><uni-icons type="down" size="30rpx" color="rgb(153, 153, 153)"></uni-icons></view>
</view>
</picker>
<view v-else style="color: #999;font-size: 28rpx;height: 100%;display: flex;justify-content: space-between;">
<view>请选择账期</view>
<view><uni-icons type="down" size="30rpx" color="rgb(153, 153, 153)"></uni-icons></view>
</view>
</view>
</uni-forms-item>
<view class="form-title">接收方式</view>
<uni-forms-item label="手机号:" required name="name" :label-width="80">
<uni-forms-item label="手机号:" required name="name" :label-width="85">
<uni-easyinput type="text" v-model="list1.phone" :styles="styles" :inputBorder="false" @blur="onInput" placeholder="请输入可用手机号码"></uni-easyinput>
</uni-forms-item>
<uni-forms-item label="邮箱:" required name="name" :label-width="80">
<uni-forms-item label="邮箱:" name="name" :label-width="78" style="margin-left: 40rpx;">
<uni-easyinput type="text" v-model="list1.email" :inputBorder="false" placeholder="请输入邮箱" @blur="validateEmail"></uni-easyinput>
</uni-forms-item>
</uni-forms>
@ -57,13 +67,18 @@
<view class="lookup-title1" @click="Obtain"><uni-icons type="redo-filled" size="30rpx" color="#007aff"></uni-icons></view>
</view>
<uni-forms :modelValue="list2" ref="form1">
<uni-forms-item label="抬头类型" required name="name" :label-width="80">
<uni-data-checkbox v-model="list2.type" :localdata="headerType"></uni-data-checkbox>
<uni-forms-item label="抬头类型" required name="name" :label-width="85">
<!-- <uni-data-checkbox v-model="list2.type" :localdata="headerType"></uni-data-checkbox> -->
<radio-group @change="radioChange2" style="height: 100%;display: flex;align-items: center;">
<label v-for="(item,index) in headerType" :key="item.value">
<radio :value="item.value" :checked="list2.type === item.value" /><text>{{item.text}}</text>
</label>
</radio-group>
</uni-forms-item>
<uni-forms-item label="名称" required name="name" :label-width="80">
<uni-forms-item label="名称" required name="name" :label-width="85">
<uni-easyinput type="text" v-model="list2.title" :inputBorder="false" placeholder="请输入抬头名称"></uni-easyinput>
</uni-forms-item>
<uni-forms-item label="税号" required name="name" :label-width="80">
<uni-forms-item label="税号" required name="name" :label-width="85" v-if="list2.type=='0'||!list2.type">
<uni-easyinput type="text" v-model="list2.tax_number" @blur="taxiD" :inputBorder="false" placeholder="请输入纳税人识别号"></uni-easyinput>
</uni-forms-item>
</uni-forms>
@ -72,28 +87,31 @@
<view v-if="stepsIndex === 2">
<view class="form-title">开票信息</view>
<uni-forms>
<uni-forms-item label="开票项目" name="name" :label-width="80">
<!-- <uni-easyinput disabled type="text" v-model="" :inputBorder="false" placeholder="请输入纳税人识别号"></uni-easyinput> -->
<uni-forms-item label="开票项目" name="name" :label-width="85">
<view class="list3_box">{{project_id1(list1.project_id)}}</view>
</uni-forms-item>
<uni-forms-item label="开票金额" name="name" :label-width="80">
<uni-forms-item label="开票金额" name="name" :label-width="85">
<view class="list3_box">{{amount}}</view>
</uni-forms-item>
<view class="form-title">抬头信息</view>
<uni-forms-item label="抬头类型" name="name" :label-width="80">
<uni-data-checkbox v-model="list2.type" :localdata="headerType1"></uni-data-checkbox>
<uni-forms-item label="抬头类型" name="name" :label-width="85">
<radio-group @change="radioChange2" style="height: 100%;display: flex;align-items: center;" >
<label v-for="(item,index) in headerType" :key="item.value">
<radio :value="list2.type" :checked="list2.type === item.value" disabled /><text>{{item.text}}</text>
</label>
</radio-group>
</uni-forms-item>
<uni-forms-item label="名称" name="name" :label-width="80">
<uni-forms-item label="名称" name="name" :label-width="85">
<view class="list3_box">{{list2.title}}</view>
</uni-forms-item>
<uni-forms-item label="税号" name="name" :label-width="80">
<uni-forms-item label="税号" name="name" :label-width="85">
<view class="list3_box">{{list2.tax_number}}</view>
</uni-forms-item>
<view class="form-title">接收方式</view>
<uni-forms-item label="邮箱" name="name" :label-width="80">
<uni-forms-item label="邮箱" name="name" :label-width="85">
<view class="list3_box">{{list1.email}}</view>
</uni-forms-item>
<uni-forms-item label="手机号" name="name" :label-width="80">
<uni-forms-item label="手机号" name="name" :label-width="85">
<view class="list3_box">{{list1.phone}}</view>
</uni-forms-item>
</uni-forms>
@ -103,17 +121,40 @@
</view>
<view class="flex justify-end">
<view class="bottom">
<button class="btn1" v-if="stepsIndex !== 0" @click="changeSteps" data-type="prev">上一步</button>
</view>
<view class="bottom bottom-next">
<button class="btn" v-if="stepsIndex !== 2" @click="changeSteps" data-type="next">下一步</button>
</view>
<view class="bottom bottom-next" style="padding-bottom: 30rpx;">
<button v-if="stepsIndex !== 0 && stepsIndex !== 1" class="btn" @click="submitForm">提交</button>
</view>
</view>
</view>
<view class="bottom">
<button class="btn1" v-if="stepsIndex !== 0" @click="changeSteps" data-type="prev">上一页</button>
</view>
<view class="bottom bottom-next">
<button class="btn" v-if="stepsIndex !== 2" @click="changeSteps" data-type="next">下一页</button>
</view>
<view class="bottom bottom-next" style="padding-bottom: 30rpx;">
<button v-if="stepsIndex !== 0 && stepsIndex !== 1" class="btn" @click="submitForm">确认提交</button>
</view>
</view>
<uni-popup ref="inputDialog" type="dialog">
<uni-popup-dialog ref="inputClose" mode="base" title=" " :showClose="false"
confirmText="知道了" content="该账单还未缴费,请先完成缴费。"></uni-popup-dialog>
</uni-popup>
<!-- 账期弹框 -->
<uni-popup ref="popup" type="bottom" background-color="#fff">
<view style="height: 280px;">
<view class="popup-header">
<view @click="cancel" style="color: #999;">取消</view>
<view style="color: #488fd2;">更多账期</view>
<view @click="confirm" style="color: #646a8e;">确认</view>
</view>
<picker-view :indicator-style="indicatorStyle" :value="pickerValue" @change="onPickerChange" class="picker-view">
<picker-view-column>
<view class="item" v-for="(item,index) in years" :key="index">{{item}}</view>
</picker-view-column>
<picker-view-column>
<view class="item" v-for="(item,index) in months" :key="index">{{item < 10 ? '0' + item : item}}</view>
</picker-view-column>
</picker-view>
</view>
</uni-popup>
</view>
</template>
@ -123,13 +164,34 @@
import wxApi from "@/common/js/wxApi.js"
export default {
data() {
const currentDate = this.getDate({format: true})
const date = new Date()
const years = []
const year = date.getFullYear()
const months = []
const month = date.getMonth() + 1
//
for (let i = 1990; i <= year + 1000; i++) {
years.push(i)
}
//
for (let i = 1; i <= 12; i++) {
months.push(i)
}
//
const currentYearIndex = years.indexOf(year);
return {
date: currentDate,
years,
year,
months,
month,
selectedYear: year, //
selectedMonth: month, //
pickerValue: [currentYearIndex, month - 1],
indicatorStyle: `height: 50px;`,
//
list1:{
project_id: '',//
pucode_id: '',//id
pucode: '',//id
merge: '',//
expire_time: '',//
email: '',//
@ -145,7 +207,7 @@
bank_name:'',//
bank_account:''//
},
amount: 9,//
amount: "",//
//
styles: {
color:"#d5213c"
@ -175,6 +237,17 @@
onLoad() {
this.dropdown()
},
watch: {
// selectedYearselectedMonthpickerValue
selectedYear(newVal) {
const yearIndex = this.years.indexOf(newVal);
this.pickerValue[0] = yearIndex; //
},
selectedMonth(newVal) {
const monthIndex = newVal - 1; //
this.pickerValue[1] = monthIndex; //
}
},
methods: {
//
dropdown(){
@ -216,34 +289,54 @@
if(this.stepsIndex == 1){
if(!this.list1.project_id){
uni.showToast({title: '请选择开票项目',icon: 'none'});
this.stepsIndex = 0
this.stepsIndex = 0;
return
}
if(!this.list1.merge){
uni.showToast({title: '请选择是否合并开票',icon: 'none'});
this.stepsIndex = 0
this.stepsIndex = 0;
return
}
if(!this.list1.pucode_id){
if(!this.list1.pucode){
uni.showToast({title: '请选择或输入用户编号',icon: 'none'});
this.stepsIndex = 0
this.stepsIndex = 0;
return
}
if(!this.list1.expire_time){
uni.showToast({title: '请选择到期时间',icon: 'none'});
this.stepsIndex = 0
this.stepsIndex = 0;
return
}
if(!this.list1.phone){
uni.showToast({title: '请输入手机号',icon: 'none'});
this.stepsIndex = 0
this.stepsIndex = 0;
return
}
if(!this.list1.email){
uni.showToast({title: '请输入邮箱号',icon: 'none'});
this.stepsIndex = 0
// 使
const phonePattern = /^1[3-9]\d{9}$/;
if (!phonePattern.test(this.list1.phone)) {
uni.showToast({
title: '您输入的手机号格式有误',
icon: 'none'
});
this.stepsIndex = 0;
return
}
const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
if (!emailPattern.test(this.list1.email)&&this.list1.email) {
uni.showToast({
title: '请输入有效的邮箱地址',
icon: 'none'
});
this.stepsIndex = 0;
return
}
// if(!this.list1.email){
// uni.showToast({title: '',icon: 'none'});
// this.stepsIndex = 0;
// return
// }
this.pay()
this.form1 = this.$refs.form.modelValue;
}
@ -258,76 +351,62 @@
this.stepsIndex = 1
return
}
if(!this.list2.tax_number){
if(!this.list2.tax_number&&this.list2.type=='0'){
uni.showToast({title: '请输入税号',icon: 'none'});
this.stepsIndex = 1
return
}
const taxiD1 = /^([A-Z0-9]{18})$/
if (!taxiD1.test(this.list2.tax_number)&&this.list2.type=='0') {
uni.showToast({
title: '请输入有效的税号',
icon: 'none'
});
this.stepsIndex = 1;
return
}
this.form2 = this.$refs.form1.modelValue;
}
},
//
bindDateChange(e) {
// let value = e.detail.value;
// this.list1.expire_time = value.replace(/-/g, '');
this.list1.expire_time = e.detail.value;
showPopup() {
this.$refs.popup.open();
},
//
onPickerChange(e){
const val = e.detail.value;
this.selectedYear = this.years[val[0]];
this.selectedMonth = this.months[val[1]];
},
//
confirm() {
const formattedMonth = this.selectedMonth < 10 ? '0' + this.selectedMonth : this.selectedMonth; //
this.list1.expire_time = `${this.selectedYear}-${formattedMonth}`; // YYYY-MM
this.$refs.popup.close(); //
},
//
cancel() {
this.$refs.popup.close(); //
},
//
radioChange(e){
this.list1.merge = e.detail.value;
},
radioChange2(e){
this.list2.type = e.detail.value;
},
//
onInput(event) {
// 使
const phonePattern = /^1[3-9]\d{9}$/;
if (!phonePattern.test(event.detail.value) && event.detail.value) {
uni.showToast({
title: '您输入的手机号格式有误',
icon: 'none'
});
this.list1.phone = ''; //
}else{
this.list1.phone = event.detail.value
}
this.list1.phone = event.detail.value
},
//
validateEmail(event) {
const emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
if (!emailPattern.test(event.detail.value) && event.detail.value) {
uni.showToast({
title: '请输入有效的邮箱地址',
icon: 'none'
});
this.list1.email = ''; //
}else{
this.list1.email = event.detail.value
}
this.list1.email = event.detail.value
},
//
taxiD(event){
const taxiD1 = /^([A-Z0-9]{18})$/
if (!taxiD1.test(event.detail.value) && event.detail.value) {
uni.showToast({
title: '请输入有效的税号',
icon: 'none'
});
this.list2.tax_number = ''; //
}else{
this.list2.tax_number = event.detail.value
}
},
//
getDate(type) {
const date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
if (type === 'start') {
year = year - 60;
} else if (type === 'end') {
year = year + 2;
}
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
return `${year}${month}${day}`;
this.list2.tax_number = event.detail.value
},
//
Obtain(){
@ -363,6 +442,26 @@
})
// #endif
},
pay(){
let data = {
pucode: this.list1.pucode,
expire_time: this.list1.expire_time,
project_id: this.list1.project_id
}
if(!this.amount){
this.stepsIndex = 0;
}
API.validateFeePay(data, res => {
this.amount = res.data.amount
if(!this.amount){
this.$refs.inputDialog.open();
this.stepsIndex = 0;
return
}else{
this.stepsIndex = 1;
}
})
},
//
submitForm() {
let list1 = this.form1;
@ -376,7 +475,7 @@
}
let data = {
project_id: list1.project_id,
pucode_id: list1.pucode_id,
pucode: list1.pucode,
expire_time: list1.expire_time,
mobile: +list1.phone,// +
email: list1.email,
@ -561,7 +660,34 @@
/deep/.uni-data-checklist .checklist-group{
height: 72rpx;
}
.uni-forms-item__label{
width: 160rpx !important;
/deep/.uni-forms-item__label{
font-size: 30rpx;
color: #000 !important;
}
/deep/.uni-radio-input{
width: 35rpx;
height: 35rpx;
margin-left: 20rpx;
}
/deep/.uni-select__input-placeholder{
color: #999;
font-size: 28rpx;
}
/deep/.uni-easyinput__placeholder-class{
font-size: 28rpx;
}
.popup-header {
display: flex;
justify-content: space-between;
padding: 10px;
}
.picker-view {
width: 750rpx;
height: 600rpx;
margin-top: 20rpx;
}
.item {
line-height: 100rpx;
text-align: center;
}
</style>

2
pages/index/index.vue

@ -16,7 +16,7 @@
<view class="index_list" v-for="(item, index) in universityList" :key="index" style="margin-bottom: 20rpx;" @click="toviewinvoice(item.serial_number,item.status)"
:class="item.status==='已作废'?'back1':'back2'">
<view class="d-flex jcontent-between">
<view class="index_list_size":class="item.status==='已作废'?'grey1':'black'">业务流水号{{item.serial_number}}</view>
<view class="index_list_size":class="item.status==='已作废'?'grey1':'black'">{{item.serial_number}}</view>
<view class="index_list_color" :class="item.status==='已作废'?'grey2':'blue'">{{item.status}}</view>
</view>
<view class="d-flex jcontent-between">

2
unpackage/dist/build/h5/index.html

@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>Waterinvoice_uiapp</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.410d4646.js></script><script src=./static/js/index.e90e0ff2.js></script></body></html>
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=./static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=./static/js/chunk-vendors.410d4646.js></script><script src=./static/js/index.1e9aec6e.js></script></body></html>

2
unpackage/dist/build/h5/static/js/index.e90e0ff2.js → unpackage/dist/build/h5/static/js/index.1e9aec6e.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.1851575d.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoiced-Invoiced.497e6493.js

File diff suppressed because one or more lines are too long

3
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.97b6cf75.js

File diff suppressed because one or more lines are too long

3
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing.c6ab42da.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index.8925e708.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index.94ea056c.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.c092caf2.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-Invoicing-Invoicing~pages-index-index~pages-wxlogin-registerphone.d1636744.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-index-index.6131139f.js

File diff suppressed because one or more lines are too long

1
unpackage/dist/build/h5/static/js/pages-index-index.ddd9d744.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/h5/static/js/pages-wxlogin-wxlogin.5634c344.js → unpackage/dist/build/h5/static/js/pages-wxlogin-wxlogin.a1d82352.js

@ -1 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-wxlogin-wxlogin"],{"0601":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},"16f6":function(e,t,n){"use strict";n.r(t);var a=n("31af"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},"31af":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("4d55")),i={data:function(){return{code:"",state:"",state1:"",appId:"",redirectUri:""}},onLoad:function(e){this.checkWeChatCode()},methods:{checkWeChatCode:function(){var e=this;o.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state,e.getCode())}))},getCode:function(){var e=encodeURIComponent("https://intp.xingtongworld.com/wechat/");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+this.appId+"&redirect_uri="+e+"&response_type=code&scope=snsapi_userinfo&state="+this.state+"#wechat_redirect"}}};t.default=i},"4d55":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("5530")),i="https://intp.xingtongworld.com",c={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){c.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){c.sendRequest("get",e,"/wechat/login/wx",t,n)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,c,d){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};d&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code?(-14==e.data.code&&(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},d=c;t.default=d},"6a49":function(e,t,n){"use strict";n.r(t);var a=n("0601"),o=n("16f6");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var c=n("f0c5"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"44bf1784",null,!1,a["a"],void 0);t["default"]=d.exports}}]);
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-wxlogin-wxlogin"],{"0601":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view")},o=[]},"16f6":function(e,t,n){"use strict";n.r(t);var a=n("31af"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);t["default"]=o.a},"31af":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("4d55")),i={data:function(){return{code:"",state:"",state1:"",appId:"",redirectUri:""}},onLoad:function(e){this.checkWeChatCode()},methods:{checkWeChatCode:function(){var e=this;o.default.getWxCode({},(function(t){1==t.code&&(e.redirectUri=t.data.redirectUri,e.appId=t.data.appId,e.state=t.data.state,e.getCode())}))},getCode:function(){var e=encodeURIComponent("https://intp.xingtongworld.com/wechat/");window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+this.appId+"&redirect_uri="+e+"&response_type=code&scope=snsapi_userinfo&state="+this.state+"#wechat_redirect"}}};t.default=i},"4d55":function(e,t,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n("5530")),i="https://intp.xingtongworld.com",c={baseUrl:i,getJsSdkData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/Wechat/getJsSdkData",t,n,a)},getQrCode:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getQrCode",t,n,a)},getApplyData:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("get",e,"/api/InvoiceIssuance/getApplyData",t,n,a)},Home:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/getList",t,n,a)},validateFeePay:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/api/InvoiceIssuance/validateFeePay",t,n,a)},sendSms:function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];c.sendRequest("post",e,"/wechat/wechat/sendSms",t,n,a)},getWxCode:function(e,t,n){c.sendRequest("get",e,"/wechat/login/getWxCode",t,n)},wx:function(e,t,n){c.sendRequest("get",e,"/wechat/login/wx",t,n)},request:function(e,t,n,a){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];c.sendRequest("post",t,e,n,a,o)},sendRequest:function(e,t,n,a,c,d){var s="";s="post"==e?"application/x-www-form-urlencoded":"application/json";var u={};d&&(u.header={"Content-Type":s,Accept:"application/json, text/javascript, */*; q=0.01",token:uni.getStorageSync("AccessToken")||""}),uni.request((0,o.default)((0,o.default)({url:i+n,method:e,data:t},u),{},{success:function(e){1!=e.data.code&&-8!=e.data.code?(-14!=e.data.code&&-997!=e.data.code||(uni.removeStorageSync("AccessToken"),uni.removeStorageSync("openid"),setTimeout((function(){uni.navigateTo({url:"/pages/wxlogin/wxlogin"})}),2600)),"/api/InvoiceIssuance/validateFeePay"!==n&&uni.showToast({title:e.data.msg||e.msg,icon:"none"})):a&&a(e.data)}}))}},d=c;t.default=d},"6a49":function(e,t,n){"use strict";n.r(t);var a=n("0601"),o=n("16f6");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var c=n("f0c5"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"44bf1784",null,!1,a["a"],void 0);t["default"]=d.exports}}]);
Loading…
Cancel
Save