Explorar o código

流量活动领取;

loop hai 11 meses
pai
achega
58f94075b3
Modificáronse 2 ficheiros con 17 adicións e 24 borrados
  1. 0 7
      src/pages.json
  2. 17 17
      src/pages/flowactivity/index.vue

+ 0 - 7
src/pages.json

@@ -132,13 +132,6 @@
 			}
 		},
 		{
-			// 活动页面 新需求,充值联通流量
-			"path": "pages/activity/new",
-			"style": {
-				"navigationStyle": "custom"
-			}
-		},
-		{
 			// 协议页面
 			"path": "pages/agreement/index",
 			"style": {

+ 17 - 17
src/pages/flowactivity/index.vue

@@ -48,23 +48,23 @@ export default {
       doDlowActivityExchange(this.form).then(res => {
         console.log(res)
 
-        this.$refs.popup.open()
-        this.content = "恭喜获得120G移动数据流量"
-        this.isShow = true
-        // if (res.code === 0) {
-        //   this.$refs.popup.open()
-        //   this.content = res.data
-        //   this.isShow = true
-        // } else {
-        //
-        //   // console.log(res.data.message)
-        //   uni.showToast({
-        //     title: res.message,
-        //     icon: 'none',
-        //     mask: true,
-        //     duration: 2000
-        //   })
-        // }
+        // this.$refs.popup.open()
+        // this.content = "恭喜获得120G移动数据流量"
+        // this.isShow = true
+        if (res.code === 0) {
+          this.$refs.popup.open()
+          this.content = res.data
+          this.isShow = true
+        } else {
+
+          // console.log(res.data.message)
+          uni.showToast({
+            title: res.message,
+            icon: 'none',
+            mask: true,
+            duration: 2000
+          })
+        }
       })
     },