Merge branch 'dongjian' into develop
This commit is contained in:
@@ -24,3 +24,11 @@ export function contractInfo(data) {
|
|||||||
data
|
data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
export function quickens(data) {
|
||||||
|
// return request.post('/common/getSmsCode',qs.stringify(params));
|
||||||
|
return request({
|
||||||
|
url: "/finance/getQuickens",
|
||||||
|
method: "get",
|
||||||
|
data
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onCancel(){
|
onCancel(){
|
||||||
|
|
||||||
this.$emit('cancel');
|
this.$emit('cancel');
|
||||||
},
|
},
|
||||||
onOk(){
|
onOk(){
|
||||||
|
|||||||
@@ -234,9 +234,13 @@ export default {
|
|||||||
this.wayShow = type;
|
this.wayShow = type;
|
||||||
},
|
},
|
||||||
async getWayOption() {
|
async getWayOption() {
|
||||||
const result = await getSupportPay();
|
let parmas = {
|
||||||
|
type:4
|
||||||
|
}
|
||||||
|
const result = await getSupportPay(parmas);
|
||||||
if (result && result.bizcode === 100) {
|
if (result && result.bizcode === 100) {
|
||||||
const data = result.data || [];
|
const data = result.data || [];
|
||||||
|
console.log('getWayOption',data)
|
||||||
const amount = this.orderInfo.amount;
|
const amount = this.orderInfo.amount;
|
||||||
let flag = data.some(item => ['wechat', 'alipay'].includes(item.type));
|
let flag = data.some(item => ['wechat', 'alipay'].includes(item.type));
|
||||||
// 没有支付宝和微信支付
|
// 没有支付宝和微信支付
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
async getSearchList(){
|
async getSearchList(){
|
||||||
this.productListLoading = true;
|
this.productListLoading = true;
|
||||||
const params = {
|
const params = {
|
||||||
type:SEARCH_TYPE.EXPLOSIVE,
|
type:3,
|
||||||
page:1,
|
page:1,
|
||||||
pageSize:99,
|
pageSize:99,
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
*/
|
*/
|
||||||
jumpInfo(item){
|
jumpInfo(item){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/other_package/productInfo/productInfo?id='+item.id,
|
url: `/pages/other_package/productInfo/productInfo?id=${item.id}&ji=1`,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,15 +104,15 @@
|
|||||||
@click="serviceShow = true;"></up-image>
|
@click="serviceShow = true;"></up-image>
|
||||||
<view>咨询</view>
|
<view>咨询</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="left_item">
|
<view class="left_item" v-if="!ji">
|
||||||
<up-image src="/static/product/cart.png" width="24" height="20" bgColor="#f1f6ff00"
|
<up-image src="/static/product/cart.png" width="24" height="20" bgColor="#f1f6ff00"
|
||||||
@click="jumpOther('cart')"></up-image>
|
@click="jumpOther('cart')"></up-image>
|
||||||
<view>购物车</view>
|
<view>购物车</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="product_but_right">
|
<view class="product_but_right">
|
||||||
<view class="but_comm join_warp" @click="checkSpecification(true, 'addCart')">加入购物车</view>
|
<view v-if="!ji" class="but_comm join_warp" @click="checkSpecification(true, 'addCart')">加入购物车</view>
|
||||||
<view class="but_comm buy_warp" @click="checkSpecification(true, 'buy')">立即购买</view>
|
<view class="but_comm buy_warp" :class="{'border-16':ji}" @click="checkSpecification(true, 'buy')">立即购买</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 选择规格的弹框 -->
|
<!-- 选择规格的弹框 -->
|
||||||
@@ -269,11 +269,15 @@ export default {
|
|||||||
serviceShow: false,// 联系客服弹框
|
serviceShow: false,// 联系客服弹框
|
||||||
openShow: false,
|
openShow: false,
|
||||||
source: null,// 来源:供应链,自营
|
source: null,// 来源:供应链,自营
|
||||||
|
ji:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
const id = options.id;
|
const id = options.id;
|
||||||
const source = options.source;
|
const source = options.source;
|
||||||
|
if(options.ji){
|
||||||
|
this.ji = 1;
|
||||||
|
}
|
||||||
if (id && id !== 0) {
|
if (id && id !== 0) {
|
||||||
this.id = id ? parseInt(id, 10) : 0;
|
this.id = id ? parseInt(id, 10) : 0;
|
||||||
if (source && source === 'supply_chain') {
|
if (source && source === 'supply_chain') {
|
||||||
@@ -524,6 +528,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.border-16{
|
||||||
|
border-radius: 16rpx !important;
|
||||||
|
}
|
||||||
.product_info_warp {
|
.product_info_warp {
|
||||||
height: calc(100vh - 196rpx);
|
height: calc(100vh - 196rpx);
|
||||||
background-color: $app-bj;
|
background-color: $app-bj;
|
||||||
|
|||||||
+7
-1
@@ -40,7 +40,7 @@
|
|||||||
<text>{{ item.name }}</text>
|
<text>{{ item.name }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item-container" v-if="item.foods && item.foods.length !== 0">
|
<view class="item-container" v-if="item.foods && item.foods.length !== 0">
|
||||||
<view class="thumb-box" v-for="(item1, index1) in item.foods" :key="index1" @click="jumpSearch(item1)">
|
<view class="thumb-box" v-for="(item1, index1) in item.foods" :key="index1" @click="jumpInfo(item1)">
|
||||||
<image class="item-menu-image" :src="item1.icon ? item1.icon : '/static/common/def_img.jpg'" mode="">
|
<image class="item-menu-image" :src="item1.icon ? item1.icon : '/static/common/def_img.jpg'" mode="">
|
||||||
</image>
|
</image>
|
||||||
<view class="item-menu-name">{{ item1.name }}</view>
|
<view class="item-menu-name">{{ item1.name }}</view>
|
||||||
@@ -132,6 +132,12 @@ export default {
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/shop/search',
|
url: '/pages/shop/search',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
},
|
||||||
|
jumpInfo(item){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/other_package/productInfo/productInfo?id=${item.id}`,
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 查询分类
|
// 查询分类
|
||||||
async getSort(pId) {
|
async getSort(pId) {
|
||||||
|
|||||||
+20
-23
@@ -54,6 +54,7 @@
|
|||||||
<!-- (2)转盘抽奖获得 -->
|
<!-- (2)转盘抽奖获得 -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <DownPopup :show="true"></DownPopup> -->
|
<!-- <DownPopup :show="true"></DownPopup> -->
|
||||||
|
<up-toast ref="uToastRef"></up-toast>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -62,7 +63,7 @@ import { getUserInfo } from '@/api/auth.js';
|
|||||||
import Header from '@/components/common/header.vue';
|
import Header from '@/components/common/header.vue';
|
||||||
import TopSafe from '@/components/common/top-safe.nvue'
|
import TopSafe from '@/components/common/top-safe.nvue'
|
||||||
import DownPopup from '@/components/common/down-popup.vue';
|
import DownPopup from '@/components/common/down-popup.vue';
|
||||||
import { getContractList,signContract } from '@/api/contract.js'
|
import { quickens } from '@/api/contract.js'
|
||||||
|
|
||||||
import func from '@/utils/func.js';
|
import func from '@/utils/func.js';
|
||||||
|
|
||||||
@@ -81,38 +82,33 @@ export default {
|
|||||||
],
|
],
|
||||||
tableHead:['加速比例','释放TBC数量','时间'],
|
tableHead:['加速比例','释放TBC数量','时间'],
|
||||||
tableList:[
|
tableList:[
|
||||||
{one:'12%',two:'888',three:'2022-12-15'},
|
|
||||||
{one:'12%',two:'888',three:'2022-12-15'},
|
|
||||||
{one:'12%',two:'888',three:'2022-12-15'},
|
|
||||||
{one:'12%',two:'888',three:'2022-12-15'},
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onLoad() {
|
||||||
// this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init(){
|
init(){
|
||||||
// this.isSignContract()
|
// this.isSignContract()
|
||||||
this.getSignContract()
|
this.getQuichens()
|
||||||
},
|
},
|
||||||
isSignContract(){
|
getQuichens(){
|
||||||
signContract().then(res=>{
|
quickens().then(res=>{
|
||||||
if(res.bizcode == 100){
|
if(res.bizcode == 100){
|
||||||
this.type = res.data;
|
// this.type = res.data;
|
||||||
}else{
|
this.tList[0].text = res.data.vcoinsLock;
|
||||||
this.$refs.uToastRef.show({
|
this.tList[1].text = res.data.quickenBalance;
|
||||||
type: 'error',
|
this.topList[0].value = res.data.quickenTotal;
|
||||||
message: res.msg,
|
this.topList[1].value = res.data.quickenValue;
|
||||||
});
|
this.topList[2].value = res.data.quickenBalance;
|
||||||
}
|
this.tableList = res.data.quickenDetail;
|
||||||
|
this.tableList.forEach(item=>{
|
||||||
|
item.one = item.quickenRate * 100 + '%';
|
||||||
|
item.two = item.quickenValue;
|
||||||
|
item.three = func.formatDate(new Date(item.ctdate), 3)
|
||||||
})
|
})
|
||||||
},
|
|
||||||
getSignContract(){
|
|
||||||
getContractList().then(res=>{
|
|
||||||
if(res.bizcode == 100){
|
|
||||||
this.obj = res.data[0];
|
|
||||||
this.obj.time = func.formatDate(new Date(res.data[0].signatureTime),3)
|
|
||||||
}else{
|
}else{
|
||||||
this.$refs.uToastRef.show({
|
this.$refs.uToastRef.show({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
@@ -121,6 +117,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
onBtn(){
|
onBtn(){
|
||||||
if(this.type){
|
if(this.type){
|
||||||
//查看
|
//查看
|
||||||
|
|||||||
Reference in New Issue
Block a user