修改bug:1:活动金-交易记录-修改交易对象类型。2:活动金-活动列表-添加-修改优惠折扣金额。3:活动金充值增加提示。

huipay-h5
游梦婷 1 year ago
parent 5674a70f50
commit 7609481755
  1. 11
      App.vue
  2. 5
      pages/index/activity_Funds_transaction_records/activity_Funds_transaction_records.vue
  3. 22
      pages/index/activity_add/activity_add.vue
  4. 17
      pages/index/recharge_balance/recharge_balance.vue
  5. 1
      pages/tabBar/home/home.vue
  6. 5
      pages/welcome/welcome.vue

@ -39,7 +39,7 @@
storeAddress: ''
},
onLaunch: function() {
let that = this;
/* let that = this;
uni.getStorage({
key: 'payuser',
success: (res) => {
@ -52,9 +52,14 @@
})
}
});
}); */
},
onShow: function() {
this.globalData.Dictionaries =uni.getStorageSync("Dictionaries")|| '';
this.globalData.userInfo = uni.getStorageSync("payuser") || '';
this.globalData.token = uni.getStorageSync("paytoken") || '';
this.globalData.openId = uni.getStorageSync("openId") || '';
},
onShow: function() {},
onHide: function() {}
}
</script>

@ -20,8 +20,9 @@
<view class="font13 fcor999 width100">交易对象类型:
<text class="font14 fcor333 margle" v-if="item.objectType == 1">充值</text>
<text class="font14 fcor333 margle" v-if="item.objectType == 2">活动金</text>
<text class="font14 fcor333 margle" v-if="item.objectType == 3">活动</text>
<text class="font14 fcor333 margle" v-if="item.objectType == 2">返利金</text>
<text class="font14 fcor333 margle" v-if="item.objectType == 3">活动金额充值</text>
<text class="font14 fcor333 margle" v-if="item.objectType == 4">活动金额回收</text>
</view>
<view class="alijusstart font13 ">

@ -26,8 +26,8 @@
<view class="width100 backcorfff">
<view class="username">
<view class="namecont" >优惠金额</view>
<input v-if="type !=3" placeholder="请输入优惠金额" v-model="price" type="text"
placeholder-style="color: #bfbfbf;" />
<input v-if="type !=3" :placeholder="placeholderTip" v-model="price" type="text"
placeholder-style="color: #bfbfbf;" style="width: 72%;" />
<view v-if="type ==3">{{price}}</view>
</view>
</view>
@ -126,6 +126,12 @@
//
endDate() {
return this.getDate('end');
},
placeholderTip(){
if(this.preferentialType==3){
return "折扣比例(10~99),例98折:98"
}
return '请输入优惠金额'
}
},
methods: {
@ -232,6 +238,18 @@
});
return;
}
if(this.preferentialType==3){
let reg =/^[1-9][0-9]$/; //10-99
if(!reg.test(this.price)){
this.price="";
uni.showToast({
title: '请输入正确的折扣比例,例如99折输入:99,打七折输入:70',
icon: "none",
duration: 2000
});
return
}
}
if (!this.end_date) {
uni.showToast({
title: '请选择结束时间',

@ -103,6 +103,23 @@
});
return;
}
let _this = this;
uni.showModal({
title: '提示',
content: `确定充值${this.inputAmount}元吗?`,
success: function(res) {
if (res.confirm) {
_this.createrOrder();
} else if (res.cancel) {
// console.log('');
}
}
});
},
createrOrder(){
uni.showLoading({
title: '正在提交订单...'
})

@ -205,6 +205,7 @@
getDictionaries().then(res => {
if (res.return_code == '000000') {
app.globalData.Dictionaries = res.return_data;
uni.setStorageSync("Dictionaries",res.return_data)
}
})
},

@ -50,10 +50,11 @@
getAccessToken(params).then(res => {
if (res.return_code == '000000' && res.return_data.openid) {
app.globalData.openId = res.return_data.openid;
uni.setStorage({
/* uni.setStorage({
key: "openId",
data: res.return_data.openid
})
}) */
uni.setStorageSync("openId",res.return_data.openid);
if (this.userInfo) {
uni.reLaunch({
url: '../tabBar/home/home'

Loading…
Cancel
Save