Jelajahi Sumber

修改问题

gcj 3 tahun lalu
induk
melakukan
b8422b3a61

+ 1 - 1
src/components/Personalcenter/Teachcourse.vue

@@ -78,7 +78,7 @@ export default {
   methods: {
     jump(item) {
       if (this.userType == "TEACHER") {
-        let url = `/GCLS-Learn/#/GoodsDetail?goods_id=${item.id}&goods_type=201`;
+        let url = `/GCLS-Learn/#/GoodsDetail?goods_id=${item.id}&goods_type=201&invok_module=GCLS-Personal`;
         window.open(url);
       } else {
         jumpPath(item);

+ 2 - 9
src/components/common/Confirmorder.vue

@@ -113,7 +113,7 @@ export default {
         goods_name: resData.goods_name, //商品名称
         goods_picture_id: resData.goods_picture_id, //封面图片id
         goods_person_name_desc: resData.goods_person_name_desc, //老师
-        price: resData.price, //价格
+        price: resData.price || resData.goods_price, //价格
         discount_code: this.back_discount_code,
       };
       getLearnWebContent(MethodName, data)
@@ -156,17 +156,10 @@ export default {
       this.codeloading = true;
       let MethodName = "order-order_manager-VerificationDiscountCode";
       let resData = JSON.parse(JSON.stringify(this.data));
-      let price = 0;
-      if (resData.price) {
-        price = resData.price;
-      }
-      if (resData.goods_price) {
-        price = resData.goods_price;
-      }
       let data = {
         goods_id: resData.goods_id, //商品id
         goods_type: resData.goods_type, //商品类型
-        price: price, //价格
+        price: resData.price || resData.goods_price, //价格
         discount_code: this.discount_code.trim(),
       };
       getLearnWebContent(MethodName, data).then((res) => {

+ 4 - 4
src/components/common/Payment.vue

@@ -15,10 +15,10 @@
         <p class="p3">{{ data.goods_person_name_desc }}</p>
       </div>
       <div class="price">
-        <p v-if="data.price">
+        <p v-if="data.hasOwnProperty('price')">
           ¥<span v-html="changePrice(data.price, 16)"></span>
         </p>
-        <p v-if="data.goods_price">
+        <p v-if="data.hasOwnProperty('goods_price')">
           ¥<span v-html="changePrice(data.goods_price, 16)"></span>
         </p>
       </div>
@@ -41,10 +41,10 @@
       <p class="p1">
         <!-- 一件商品,总金额 -->
         <span> {{ $t("Key53") }}: </span>
-        <span class="co-value" v-if="data.price"
+        <span class="co-value" v-if="data.hasOwnProperty('price')"
           >¥<span v-html="changePrice(data.price, 16)"></span
         ></span>
-        <span class="co-value" v-if="data.goods_price"
+        <span class="co-value" v-if="data.hasOwnProperty('goods_price')"
           >¥<span v-html="changePrice(data.goods_price, 16)"></span
         ></span>
       </p>

+ 1 - 1
src/utils/jumpPath.js

@@ -16,7 +16,7 @@ export function jumpPath(item) {
     system = "GCLS-TC";
   }
   if (system) {
-    let url = `/${system}/#/GoodsDetail?goods_id=${item.goods_id}&goods_type=${item.goods_type}`
+    let url = `/${system}/#/GoodsDetail?goods_id=${item.goods_id}&goods_type=${item.goods_type}&invok_module=GCLS-Personal`
     window.open(url);
   }
 }