|
|
@@ -27,11 +27,10 @@
|
|
|
</div>
|
|
|
<!-- buttom -->
|
|
|
<div class="page-btn app-footer">
|
|
|
-
|
|
|
<div v-if="$util.isEmpty(renewOption)" class="flex-center">
|
|
|
- <span> </span>
|
|
|
+ <span></span>
|
|
|
<span class="app-price">
|
|
|
- <span> </span>
|
|
|
+ <span></span>
|
|
|
<span class="app-size-40" style="text-decoration:line-through">{{ detail.price }}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -57,7 +56,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-// import { getShopUser } from '@/utils/auth'
|
|
|
import wexinPay from "@/utils/pay/wxPay";
|
|
|
import { getMealDet, renewWxPay } from "@/api/official";
|
|
|
export default {
|
|
|
@@ -70,29 +68,20 @@ export default {
|
|
|
renewOption: null
|
|
|
};
|
|
|
},
|
|
|
- onLoad() {
|
|
|
- // if (!this.$util.isLogin()) {
|
|
|
- // getShopUser()
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // this.init()
|
|
|
- },
|
|
|
+ onLoad() {},
|
|
|
methods: {
|
|
|
init() {
|
|
|
- this.$util.getCheckLogin().then(res => {
|
|
|
- if (res) {
|
|
|
- this._getMealDet();
|
|
|
- // 续费
|
|
|
- let renewOption = uni.getStorageSync("renewOption");
|
|
|
- if (renewOption) {
|
|
|
- this.renewOption = JSON.parse(renewOption);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ this._getMealDet();
|
|
|
+ let renewOption = uni.getStorageSync("renewOption");
|
|
|
+ if (renewOption) {
|
|
|
+ this.renewOption = JSON.parse(renewOption);
|
|
|
+ }
|
|
|
},
|
|
|
_getMealDet() {
|
|
|
getMealDet({ id: 1 }).then(res => {
|
|
|
- if (this.$util.isEmpty(res.data)) return false;
|
|
|
+ if (this.$util.isEmpty(res.data)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.detail = res.data.detail;
|
|
|
this.funcitonData = res.data.function;
|
|
|
});
|
|
|
@@ -107,7 +96,6 @@ export default {
|
|
|
},
|
|
|
// 支付成功
|
|
|
paySuccess() {
|
|
|
- // alert('支付成功!')
|
|
|
this.$util.pageTo({
|
|
|
url: "/official/callback",
|
|
|
type: 2,
|
|
|
@@ -117,7 +105,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
payFail() {
|
|
|
- this.$msg("支付失败,请重新支付!");
|
|
|
+ this.$msg("支付没有成功");
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -166,7 +154,7 @@ export default {
|
|
|
.list-wrap {
|
|
|
border: 2px solid #f9f9f9;
|
|
|
border-top: none;
|
|
|
- margin-bottom:110rpx;
|
|
|
+ margin-bottom: 110rpx;
|
|
|
.list {
|
|
|
@include disFlex(center, space-between);
|
|
|
padding: 20px 26px;
|