[处理冲突删除打包无意义文件]

This commit is contained in:
2021-11-04 15:57:15 +08:00
14 changed files with 113 additions and 48013 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置
const config = {
apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
// apiUrl : 'http://api.ahxh.shangkelian.cn/api/', // 测试环境
// apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
apiUrl : 'http://api.ahxh.shangkelian.cn/api/', // 测试环境
apiUrls : 'https://storage.lianshang.vip/', // 图片路径(测试/正式)
timeout : 60000
}

View File

@@ -2,8 +2,8 @@
"name" : "链商星球",
"appid" : "__UNI__1F65101",
"description" : "安徽星煌,链商星球商家工具",
"versionName" : "1.0.9",
"versionCode" : 109,
"versionName" : "1.1.0",
"versionCode" : 110,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@@ -212,18 +212,19 @@
}, 3000);
},
fail: (err) => {
console.log(err.errMsg)
uni.showToast({
title: '支付失败',
title: '支付被取消',
duration: 3000,
mask: true,
icon: 'none'
})
setTimeout(() => {
uni.navigateTo({
url: '/pages/goods/payStatus?success=false'
})
this.canPay = true
}, 3000);
// setTimeout(() => {
// uni.navigateTo({
// url: '/pages/goods/payStatus?success=false'
// })
// this.canPay = true
// }, 3000);
}
})
} else {
@@ -263,7 +264,7 @@
},
fail: (err) => {
uni.showToast({
title: '支付失败' + err,
title: '支付被取消',
duration: 3000,
mask: true,
icon: 'none'

View File

@@ -215,32 +215,14 @@
this.coupons = res.coupons
})
},
// onBackPress({
// from
// }) {
// if (from == 'backbutton' && uniShare.isShow ) {
// this.$nextTick(function() {
// uniShare.hide()
// })
// return uniShare.isShow;
// }
// },
methods: {
// 提交购买单
buyGoods() {
let token = this.$store.getters.getToken
if (token == '') {
let userLogin = new userAuth()
userLogin.Login()
this.$Router.push({name: 'Login'})
return
}
// this.$Router.push({
// name: 'Buy',
// params: {
// skuId: this.goodsObj.skus[0].sku_id,
// qty : this.goodsObj.skus[0].number
// }
// })
uni.navigateTo({
url: '/pages/goods/confirmOrder?qty=1&type=2&goods_sku_id=' + this.goodsObj.skus[0].sku_id
})

View File

@@ -230,13 +230,13 @@
margin: 0;
border-radius: 0;
border-left: solid 1rpx $border-color;
color: $text-price;
color: $mian-color;
font-size: $title-size-lg;
&::after {
border: none;
}
&[disabled] {
color: rgba($color: $text-price, $alpha: .6);
color: rgba($color: $mian-color, $alpha: .6);
background: $border-color-lg;
}
}
@@ -294,7 +294,7 @@
font-size: $title-size-sm;
color: $text-gray;
view {
color: $text-price;
color: $mian-color;
display: inline-block;
padding: 0 10rpx;
}

View File

@@ -63,15 +63,14 @@
<radio-group class="pay-group" @change="payType">
<view class="item">
<label>
<radio class="pay-radio" value="eb" checked color="#8b64fd" />
<view class="pay-title">易货额支付</view>
<view class="pay-sub-title">可用{{account.eb}}冻结{{account.frozenEb}}</view>
<radio class="pay-radio" value="wechat" checked color="#8b64fd" />
<view class="pay-title">微信支付</view>
</label>
</view>
<view class="item">
<label>
<radio class="pay-radio" value="wechat" color="#8b64fd" />
<view class="pay-title">微信支付</view>
<radio class="pay-radio" value="alipay" color="#8b64fd" />
<view class="pay-title">支付宝支付</view>
</label>
</view>
</radio-group>
@@ -87,16 +86,12 @@
export default {
data() {
return {
payValue: 'eb',
payValue: 'wechat',
orderNo : '',
price : '0.00',
stock : 1,
loding : true,
info : {},
account : {
eb : '0.00',
frozenEb: '0.00'
}
info : {}
};
},
onShow() {
@@ -124,8 +119,7 @@
openLay(){
let token = this.$store.getters.getToken
if(token == ''){
let userLogin = new userAuth()
userLogin.Login()
this.$Router.push({name: 'Login'})
return
}
this.$refs.buyLay.open('bottom')
@@ -152,47 +146,24 @@
},
// 支付
orderPay(){
let data = {}
marketsPay(this.orderNo, this.payValue).then(res => {
switch (this.payValue){
case 'eb':
this.$refs.payLay.close()
this.$Router.push({
name : 'payResults',
params : {
index: 1,
price: this.price,
type : 'eb',
total: '可在我的资产下我的权证中查看购买的数字权证'
}
})
break
case 'wechat':
this.wxPay(JSON.parse(res))
break
case 'alipay':
cashierPay.pay('alipay', res, 'market').then(payRes => {
console.log(payRes)
})
break
}
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'
})
})
},
// 微信支付
wxPay(payConfig){
uni.requestPayment({
provider : 'wxpay',
orderInfo : payConfig,
success : payRes => {
console.log(payRes)
},
fail : payErr => {
uni.showToast({
title: payErr.errMsg,
icon : 'none'
})
}
})
}
}
}

View File

@@ -282,7 +282,7 @@
getAliPayConfig(orderId, {
type: 'app'
}).then(res => {
cashierPay.pay('alipay', res.wechat).then(payRes => {
cashierPay.pay('alipay', res.wechat, 'vip').then(payRes => {
this.idenInfo()
})
}).catch(err => {
@@ -298,7 +298,7 @@
type: 'app'
}).then(res => {
let payConfig = JSON.parse(res)
cashierPay.pay('wxpay', payConfig).then(payRes => {
cashierPay.pay('wxpay', payConfig, 'vip').then(payRes => {
this.idenInfo()
})
}).catch(err => {

View File

@@ -1,4 +1,3 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
@@ -6,49 +5,77 @@
* moduleName: 收银
*/
class cashierPay{
class cashierPay {
constructor() {
}
pay(platform, orderInfo){
if(!platform){
// 收银台
pay(platform, orderInfo, buyType) {
if (!platform) {
uni.showToast({
title: '缺少必要参数:支付平台类型',
icon : 'none'
icon: 'none'
})
return
}
if(!orderInfo){
if (!orderInfo) {
uni.showToast({
title: '缺少必要参数:支付参数不能为空',
icon : 'none'
icon: 'none'
})
return
}
if (!buyType) {
uni.showToast({
title: '缺少必要参数:缺少支付类型',
icon: 'none'
})
return
}
return new Promise((resolve, reject) => {
uni.requestPayment({
provider : platform,
orderInfo : orderInfo,
success : payRes => {
uni.showModal({
title : "开通提示",
content : "支付成功,已成功开通/升级节点身份",
showCancel : false,
success : ()=> {
resolve(payRes)
}
})
provider: platform,
orderInfo: orderInfo,
success: payRes => {
resolve(payRes)
this.showToast(buyType)
},
fail : payErr => {
fail: payErr => {
reject(payErr)
uni.showToast({
title: '支付被取消',
icon : 'none'
icon: 'none'
})
}
})
})
}
// 成功提示信息
showToast(buyType){
switch(buyType){
case 'vip':
uni.showModal({
title: "开通提示",
content: "支付成功,已成功开通/升级节点身份",
showCancel: false,
})
break;
case 'goods':
uni.showToast({
title: '支付成功',
mask: true,
icon: 'none'
})
break;
case 'market':
uni.showToast({
title: '支付成功',
mask: true,
icon: 'none'
})
break;
}
}
}
export default new cashierPay();

View File

@@ -19,7 +19,7 @@ spotlight%403x=823b4145ec87155874cad6c3c6f9f5e9
[universalLinks]
spaceid=
universalLinks=https://io.lianshang.app
universalLinks=https://lianshang/app/
[universalLinks_qq]
spaceid_qq=

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long