Browse Source

返回首页

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
b6ac68a284
2 changed files with 7 additions and 4 deletions
  1. 8
      src/view/put-money-success.vue
  2. 3
      src/view/put-money.vue

8
src/view/put-money-success.vue

@ -16,7 +16,7 @@
<p>提现金额 <span>{{num}}</span></p>
</div>
</div>
<button class="goHome">返回首页</button>
<button class="goHome" @click="goHome">返回首页</button>
</div>
</div>
</template>
@ -32,7 +32,11 @@
created(){
// this.getParams()
},
methods:{
methods:{
//
goHome() {
window.location.href = '/mall/web'
},
//
goBack() {
history.go(-1)

3
src/view/put-money.vue

@ -77,14 +77,13 @@ export default {
//
submit() {
if (this.isActive) {
//
var ua = navigator.userAgent.toLowerCase();
if (!ua.match(/MicroMessenger/i) == "micromessenger") {
this.$vux.toast.text("请登录微信进行操作", "middle");
return;
}
putMoney.putMoney({ num : this.inputVal * 100 }).then(res => {
putMoney.putMoney({ num: this.inputVal * 100 }).then(res => {
if (res.code == 0) {
this.$router.push({
name: "提现成功",

Loading…
Cancel
Save